$res.= '<h3>' . $titre . '</h3>';
$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.='</div>';
$res .= '</article>';
}
$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 .= '</div>';
$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));
}
}
echo '</div>';
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 '</div>';
echo '</section>';
.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; }
.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; }