preprocesse page popsu

This commit is contained in:
armansansd 2021-08-11 10:22:31 +02:00
parent 958324cb7a
commit 368fb029fb
4 changed files with 29 additions and 3 deletions

View File

@ -2138,7 +2138,7 @@ article p, .paragraph p {
position: relative; }
.page-node-type-programme #projets-block_2 .main_logo {
z-index: 10;
height: 7rem;
height: 7.2rem;
width: 100%;
position: absolute;
top: 0;
@ -2267,6 +2267,11 @@ article p, .paragraph p {
.page-node-type-programme .block-region-third .views-field a:hover {
text-decoration: underline; }
.page-node-type-programme article {
font-size: 0.45rem; }
.page-node-type-programme article h2:first-child {
display: none; }
.page-node-type-programme .block-region-bottom {
background: url(../images/motif_croix.svg); }
.page-node-type-programme .block-region-bottom h2 {

File diff suppressed because one or more lines are too long

View File

@ -33,6 +33,20 @@ function popsu_preprocess_html(&$variables) {
}
}
function popsu_preprocess_field(&$variables){
$element = &$variables['element'];
// $items = &$variables['items'];
if (isset($element['#field_name'])) {
// kint($element['#field_name']);
if ($element['#field_name'] == 'field_sous_parties') {
// ['attributes'] = new Attribute();
// $variables['classes_array'][] = 'field_sous_parties';
// kint($variables);
}
}
}
function popsu_preprocess_views_view_unformatted(&$variables) {
$view = &$variables['view'];

View File

@ -3,7 +3,7 @@
position: relative;
.main_logo{
z-index: 10;
height: 7rem;
height: 7.2rem;
width: 100%;
position: absolute;
// background: red;
@ -199,6 +199,13 @@
}
}
}
article{
font-size: $font-small;
h2:first-child{
display: none;
}
}
.block-region-bottom{
background: $trame;
h2{