#2092 phone burger menu, text tei fix
This commit is contained in:
+56
-2
@@ -55,6 +55,7 @@ header[role="banner"]{
|
|||||||
font-size: 1em;
|
font-size: 1em;
|
||||||
}
|
}
|
||||||
nav#header-menu{
|
nav#header-menu{
|
||||||
|
span.burger-btn{ display:none; }
|
||||||
grid-column: 2;
|
grid-column: 2;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
>ul>li{
|
>ul>li{
|
||||||
@@ -101,9 +102,48 @@ header[role="banner"]{
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
nav#header-menu{
|
nav#header-menu{
|
||||||
text-align: left;
|
position: absolute;
|
||||||
|
top:0;
|
||||||
|
right:0;
|
||||||
|
span.burger-btn{
|
||||||
|
display:block;
|
||||||
|
color: $bleuroi;
|
||||||
|
margin:1em 1em 0;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
>ul{
|
||||||
|
padding:1em 0 1em 1em;
|
||||||
|
background-color: #fff;
|
||||||
|
// height:150px;
|
||||||
|
box-shadow: -3px 3px 5px $grisclair;
|
||||||
|
|
||||||
|
transform: translateX(120%);
|
||||||
|
transition: transform 0.3s ease-in-out;
|
||||||
|
|
||||||
|
>li{
|
||||||
|
display: block;
|
||||||
|
margin-bottom: 0.5em;
|
||||||
|
>ul{
|
||||||
|
position: relative;
|
||||||
|
top:unset;
|
||||||
|
padding: 0;
|
||||||
|
>li{
|
||||||
|
box-sizing: border-box;
|
||||||
|
a{
|
||||||
|
padding-top: 0.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
&.opened{
|
||||||
|
>ul{
|
||||||
|
transform: translateX(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
section[role="main-content"]{
|
section[role="main-content"]{
|
||||||
#home{
|
#home{
|
||||||
@@ -884,6 +924,20 @@ section[role="main-content"]{
|
|||||||
}
|
}
|
||||||
margin-bottom: $base-line;
|
margin-bottom: $base-line;
|
||||||
}
|
}
|
||||||
|
@media only screen and (max-width: $iphone-bp), (orientation: portrait) {
|
||||||
|
padding-top: $base-line * 0.5;
|
||||||
|
h1{
|
||||||
|
font-size: 2em;
|
||||||
|
.initial{
|
||||||
|
display: inline-block;
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 1.3em;
|
||||||
|
line-height: $base-line*2;
|
||||||
|
margin: $base-line/2 0;
|
||||||
|
}
|
||||||
|
margin-bottom: $base-line;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
span.metamark.tailpiece,
|
span.metamark.tailpiece,
|
||||||
span.metamark.simpleLine{
|
span.metamark.simpleLine{
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<nav id="header-menu">
|
<nav id="header-menu" ref="header_menu">
|
||||||
<!-- <span v-if="!corpusLoaded" class="loading">Chargement ...</span> -->
|
<!-- <span v-if="!corpusLoaded" class="loading">Chargement ...</span> -->
|
||||||
|
<span
|
||||||
|
class="mdi mdi-menu burger-btn"
|
||||||
|
@click.prevent="onClickBTN"
|
||||||
|
@keyup.enter="onClickBTN"
|
||||||
|
/>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<li>
|
||||||
<span v-if="!corpusLoaded" class="loading">Chargement ...</span>
|
<span v-if="!corpusLoaded" class="loading">Chargement ...</span>
|
||||||
@@ -22,11 +27,11 @@
|
|||||||
</li>
|
</li>
|
||||||
<li><router-link to="/bibliography">Bibliographie</router-link></li>
|
<li><router-link to="/bibliography">Bibliographie</router-link></li>
|
||||||
<li><router-link to="/schema">Schema</router-link></li>
|
<li><router-link to="/schema">Schema</router-link></li>
|
||||||
<li>
|
<!-- <li>
|
||||||
<a href="#" class="mdi mdi-login-variant" title="connexion">
|
<a href="#" class="mdi mdi-login-variant" title="connexion">
|
||||||
<span class="visualy-hidden">connexion</span>
|
<span class="visualy-hidden">connexion</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li> -->
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
</template>
|
</template>
|
||||||
@@ -49,12 +54,16 @@ export default {
|
|||||||
$route (n, o) {
|
$route (n, o) {
|
||||||
// console.log('route changed')
|
// console.log('route changed')
|
||||||
this.indexOpened = false
|
this.indexOpened = false
|
||||||
|
this.$refs.header_menu.classList.remove('opened')
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onClickIndex (e) {
|
onClickIndex (e) {
|
||||||
console.log('onClickIndex')
|
console.log('onClickIndex')
|
||||||
this.indexOpened = !this.indexOpened
|
this.indexOpened = !this.indexOpened
|
||||||
|
},
|
||||||
|
onClickBTN () {
|
||||||
|
this.$refs.header_menu.classList.toggle('opened')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user