improved mobile menu

This commit is contained in:
Bachir Soussi Chiadmi 2021-05-31 16:59:15 +02:00
parent cb15c9faf1
commit 305df5c7df
8 changed files with 8 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -415,6 +415,10 @@ header[role="banner"]{
text-align: right; text-align: right;
li{ li{
display: block; display: block;
a{
display: block;
padding: 0.2em 0;
}
} }
} }
} }

View File

@ -134,8 +134,8 @@ function materiotheme_preprocess_html(&$vars) {
'#tag' => 'meta', '#tag' => 'meta',
'#attributes' => array( '#attributes' => array(
'rel' => 'mask-icon', 'rel' => 'mask-icon',
'color' => "#69ccce",
'href' => '/safari-pinned-tab.svg', 'href' => '/safari-pinned-tab.svg',
'color' => "#69ccce",
), ),
); );
$vars['page']['#attached']['html_head'][] = [$safaripinnedtab, '$safaripinnedtab']; $vars['page']['#attached']['html_head'][] = [$safaripinnedtab, '$safaripinnedtab'];

View File

@ -49,7 +49,9 @@ export default {
console.log('startShowroomCarroussel') console.log('startShowroomCarroussel')
this.showrooms = document.querySelectorAll('.field--name-computed-showrooms-reference > .field__item') this.showrooms = document.querySelectorAll('.field--name-computed-showrooms-reference > .field__item')
console.log('showrooms', this.showrooms) console.log('showrooms', this.showrooms)
if (!this.showrooms.lenght) {
return
}
for (let i = 0; i < this.showrooms.length; i++) { for (let i = 0; i < this.showrooms.length; i++) {
if (i%2 === 0) { if (i%2 === 0) {
this.showroomsOdd.push(this.showrooms[i]) this.showroomsOdd.push(this.showrooms[i])