From 986dd45d8aba4f1cb8be06ba55547007edb8ec41 Mon Sep 17 00:00:00 2001 From: "stephen@cubedesigners.com" Date: Wed, 17 Apr 2019 17:03:50 +0000 Subject: [PATCH] Done #2679 @0.5 --- .../application/views/helpers/HomeBlocs.php | 2 +- framework/application/views/helpers/Liste.php | 3 ++- .../application/views/helpers/Realisation.php | 4 ++-- .../views/scripts/templates/home.phtml | 3 ++- less/02-utilities.less | 20 +++++++++++++++++++ 5 files changed, 27 insertions(+), 5 deletions(-) diff --git a/framework/application/views/helpers/HomeBlocs.php b/framework/application/views/helpers/HomeBlocs.php index f9ba244..5a487a5 100644 --- a/framework/application/views/helpers/HomeBlocs.php +++ b/framework/application/views/helpers/HomeBlocs.php @@ -28,7 +28,7 @@ class Cubedesigners_View_Helper_HomeBlocs extends Zend_View_Helper_Abstract { $res.= '

' . $titre . '

'; $res.=$this->view->markupDotclear($bloc['texte']); if ($displayDetailsButton && isset($bloc['lien']) && $bloc['lien']) { - $res.=$this->view->linkInternal(__('En savoir plus'), $bloc['lien'], array('class' => 'but')); + $res.=$this->view->linkInternal($this->view->linkArrow(__('En savoir plus')), $bloc['lien'], array('class' => 'animated-arrow mt-6')); } $res.=''; $res .= ''; diff --git a/framework/application/views/helpers/Liste.php b/framework/application/views/helpers/Liste.php index 13edc64..03f8950 100644 --- a/framework/application/views/helpers/Liste.php +++ b/framework/application/views/helpers/Liste.php @@ -22,7 +22,8 @@ class Cubedesigners_View_Helper_Liste extends CubeIT_View_Helper_Abstract { } $res .= $this->view->homeBlocs($items, $displayDetailsButtons, $cols); if ($items['button']['label']) { - $res .= $this->view->linkCMS($items['button'], array('class' => 'but')); + $items['button']['label'] = $this->linkArrow($items['button']['label']); + $res .= $this->view->linkCMS($items['button'], array('class' => 'animated-arrow')); } $res .= ''; diff --git a/framework/application/views/helpers/Realisation.php b/framework/application/views/helpers/Realisation.php index 00b38e8..167ae81 100644 --- a/framework/application/views/helpers/Realisation.php +++ b/framework/application/views/helpers/Realisation.php @@ -52,11 +52,11 @@ class Cubedesigners_View_Helper_Realisation extends CubeIT_View_Helper_Abstract $b = CubeIT_Util_Array::asArray($b); if ($b['label'] == '') { - $b['label'] = __('Voir le site'); + $b['label'] = $this->linkArrow(__('Voir le site')); } $event = array('category' => 'external', 'action' => 'go', 'label' => "%href%"); - return $this->linkCMS($b, array('class' => 'but', 'data-event' => $event)); + return $this->linkCMS($b, array('class' => 'animated-arrow float-right', 'data-event' => $event)); } } diff --git a/framework/application/views/scripts/templates/home.phtml b/framework/application/views/scripts/templates/home.phtml index 514f8f9..7684475 100644 --- a/framework/application/views/scripts/templates/home.phtml +++ b/framework/application/views/scripts/templates/home.phtml @@ -29,7 +29,8 @@ echo $this->caseStudiesGrid(6); echo ''; if ($this->case_studies['button']['label']) { - echo $this->linkCMS($this->case_studies['button'], array('class' => 'but')); + $this->case_studies['button']['label'] = $this->linkArrow($this->case_studies['button']['label']); + echo $this->linkCMS($this->case_studies['button'], array('class' => 'animated-arrow text-white')); } echo ''; echo ''; diff --git a/less/02-utilities.less b/less/02-utilities.less index 64efa60..1d8651f 100644 --- a/less/02-utilities.less +++ b/less/02-utilities.less @@ -9,6 +9,18 @@ .ml-0 { margin-left: 0; } .mr-0 { margin-right: 0; } +// Top Margins +.mt-0 { margin-top: 0; } +.mt-1 { margin-top: .25rem; } +.mt-2 { margin-top: .5rem; } +.mt-3 { margin-top: .75rem; } +.mt-4 { margin-top: 1rem; } +.mt-6 { margin-top: 1.5rem; } +.mt-8 { margin-top: 2rem; } +.mt-12 { margin-top: 3rem; } +.mt-16 { margin-top: 4rem; } +.mt-20 { margin-top: 5rem; } + // Bottom Margins .mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .25rem; } @@ -46,3 +58,11 @@ .pr-2vw { .constrain(padding-right, 2vw); } .pr-3vw { .constrain(padding-right, 3vw); } .pr-4vw { .constrain(padding-right, 4vw); } + +// Text Colours +.text-white { color: #fff; } + +// Floats +.float-none { float: none; } +.float-left { float: left; } +.float-right { float: right; } -- 2.39.5