Bläddra i källkod

styling adjust - colours set to cia theme - min-width 480px smaller mobile menu version example

tags/0.9.0
Alej 4 år sedan
förälder
incheckning
6a46b0c142
1 ändrade filer med 41 tillägg och 34 borttagningar
  1. 41
    34
      vue-theme/src/components/navigation/navigation.vue

+ 41
- 34
vue-theme/src/components/navigation/navigation.vue Visa fil

46
             const extras = [
46
             const extras = [
47
                 'center',
47
                 'center',
48
                 'education',
48
                 'education',
49
+                'resources',
49
                 'support',
50
                 'support',
51
+                'about',
50
                 '🔍'
52
                 '🔍'
51
             ]
53
             ]
52
             const ignored = [
54
             const ignored = [
72
     position: sticky
74
     position: sticky
73
     top: 0
75
     top: 0
74
     /* background-color: lightblue */
76
     /* background-color: lightblue */
75
-    background-color: white
77
+    background-color: $cia_grey
76
     word-wrap: break-word
78
     word-wrap: break-word
77
     z-index: 10000
79
     z-index: 10000
78
-    
79
     .menu, .mobile-menu
80
     .menu, .mobile-menu
80
         /* padding: $ms-0 0 */
81
         /* padding: $ms-0 0 */
81
-        background: $cia_grey
82
-        /* border-bottom: 2px $cia_darker solid */
83
-
84
         a
82
         a
85
-            text-decoration: none
83
+            /* text-decoration: none leave on for testing*/
86
             color: $cia_black
84
             color: $cia_black
87
-
88
             h1
85
             h1
86
+                font-size: $ms-2
89
                 font-weight: 400
87
                 font-weight: 400
90
                 color: $cia_red
88
                 color: $cia_red
91
-                padding: 7px 0 0
92
-            /* img
89
+
90
+            img
93
                 width: $ms-3
91
                 width: $ms-3
94
                 height: $ms-3
92
                 height: $ms-3
95
-                padding: 0 */
93
+                padding: 0
94
+            &:hover
95
+                color: $cia_darker
96
     
96
     
97
     .menu   
97
     .menu   
98
         display: none
98
         display: none
99
         h1
99
         h1
100
-            font-size: $ms-3
101
-        h5
102
-            /* font-size: $ms--1  */
103
-            font-weight: 200
100
+            /* font-size: $ms-3  */
101
+            margin: $ms--5 0  $ms--7
102
+            /* padding-top: $ms--7 */
103
+        h5  
104
+            font-size: $ms--1
105
+            font-weight: 400
106
+            margin: 0 $ms--6 $ms--6
107
+
104
         > ul
108
         > ul
105
             padding: 0 $ms-1
109
             padding: 0 $ms-1
106
-        img
107
-            width: $ms-3
108
-            height: $ms-3
109
-            /* padding: 0 */
110
-            margin-top: $ms--7
111
     
110
     
112
     .mobile-menu
111
     .mobile-menu
113
-        padding: $ms--3
114
-        img
115
-            width: $ms-2
116
-            height: $ms-2
117
-            padding: 0
118
-            margin: $ms--7 0 0 $ms--7
112
+        /* cia logotype adjust for smaller screens */
113
+        img 
114
+            margin: $ms--7 $ms--6 0 $ms-0
119
         h1
115
         h1
120
-            font-size: $ms-2
116
+            /* font-size: $ms-2 */
117
+            margin: $ms--3 0 $ms--5
118
+        /* hamburger menu drawer */
121
         label
119
         label
122
             position: absolute
120
             position: absolute
123
             right: 0
121
             right: 0
124
             top: 0
122
             top: 0
125
             padding: $ms-0
123
             padding: $ms-0
126
             &:hover
124
             &:hover
127
-                color: $cia_red
125
+                color: $primary-dark
128
                 cursor: pointer
126
                 cursor: pointer
129
-                transition: $transition
127
+        /* make this menu style for $small min-width 480px screen */
130
         input
128
         input
131
             &.hide
129
             &.hide
132
                 display: none
130
                 display: none
135
                     display: block 
133
                     display: block 
136
                     clear: both 
134
                     clear: both 
137
                     position: absolute
135
                     position: absolute
136
+                    right: $ms-0
137
+                    width: fit-content
138
         ul
138
         ul
139
-            background-color: $primary-dark
139
+            /* background-color: $primary-dark */
140
+            background-color: $cia_grey
140
             display: none
141
             display: none
141
-            /* padding: $ms--1 0 */
142
+            padding: $ms--1 $ms-4 0 $ms--3
142
             margin: $ms-0 0 0 0
143
             margin: $ms-0 0 0 0
144
+            box-shadow: lightgrey $ms--7 $ms--7 $ms--7
143
             li  
145
             li  
144
-                color: $primary-light
146
+                /* color: $primary-light */
145
                 &:hover
147
                 &:hover
146
                     color: $primary-dark
148
                     color: $primary-dark
147
                     background-color: $primary-light
149
                     background-color: $primary-light
150
+                    transition: $transition
148
                 h5
151
                 h5
149
-                    font-size: $ms-1
150
-                    color: $cia_black
152
+                    /* font-size: $ms-0 */
153
+                    /* color: $cia_black */
151
                     padding: $ms--1
154
                     padding: $ms--1
155
+                    /* padding: 0 */
156
+                    margin: 0
152
 
157
 
153
     @media (min-width: $large)
158
     @media (min-width: $large)
154
         .menu
159
         .menu
159
 
164
 
160
     @media (min-width:  $extra-large)
165
     @media (min-width:  $extra-large)
161
         .menu > ul
166
         .menu > ul
162
-            /* max-width: $max-width */
167
+            max-width: $max-width
168
+
169
+
163
 </style>
170
 </style>

Laddar…
Avbryt
Spara