Просмотр исходного кода

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

tags/0.9.0
Alej 4 лет назад
Родитель
Сommit
6a46b0c142
1 измененных файлов: 41 добавлений и 34 удалений
  1. 41
    34
      vue-theme/src/components/navigation/navigation.vue

+ 41
- 34
vue-theme/src/components/navigation/navigation.vue Просмотреть файл

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

Загрузка…
Отмена
Сохранить