Parcourir la source

:art: tweaks to mobile menu pos | fixing z-index for tint | justifying embed top

tags/0.9.0
J il y a 4 ans
Parent
révision
241c8aba31

+ 2
- 2
vue-theme/src/components/hero.vue Voir le fichier

@@ -1,6 +1,6 @@
1 1
 <template lang="pug">
2 2
 .hero.w-max.f-col(v-if="showHero")
3
-    .tint
3
+    .tint.z-top.w-max
4 4
     .hero--video.w-max(v-if="heroType === 'video'")
5 5
         iframe(
6 6
             v-if="isPlaying"
@@ -91,10 +91,10 @@ export default {
91 91
     min-height: 25vh
92 92
     position: relative
93 93
     overflow: hidden
94
+    justify-content: flex-start
94 95
     .tint
95 96
         position: absolute
96 97
         height: 100%
97
-        width: 100%
98 98
         background-color: #00000055
99 99
 
100 100
     &--image

+ 3
- 5
vue-theme/src/components/navigation/navigation.vue Voir le fichier

@@ -101,7 +101,7 @@ nav.main
101 101
         display: none
102 102
         h1
103 103
             /* font-size: $ms-3  */
104
-            margin: $ms--5 0  $ms--7
104
+            margin: $ms--5 0 $ms--7
105 105
             /* padding-top: $ms--7 */
106 106
         h5  
107 107
             font-size: $ms--1
@@ -134,16 +134,14 @@ nav.main
134 134
                 cursor: pointer
135 135
                 &:checked + ul
136 136
                     display: block 
137
-                    clear: both 
138 137
                     position: absolute
139
-                    right: $ms-0
140
-                    width: fit-content
138
+                    width: 100%
141 139
         ul
142 140
             /* background-color: $primary-dark */
143 141
             background-color: $cia_grey
144 142
             display: none
145 143
             padding: $ms--1 $ms-4 0 $ms--3
146
-            margin: $ms-0 0 0 0
144
+            margin: 1px 0 0 0
147 145
             box-shadow: lightgrey $ms--7 $ms--7 $ms--7
148 146
             li  
149 147
                 /* color: $primary-light */

Chargement…
Annuler
Enregistrer