Przeglądaj źródła

:art: nav styling simplification

tags/0.9.0
j 4 lat temu
rodzic
commit
28bdd39d9d

+ 6
- 3
vue-theme/src/app.vue Wyświetl plik

30
         display: none !important
30
         display: none !important
31
     > body
31
     > body
32
         font-family: $sans
32
         font-family: $sans
33
-        font-size: $base
33
+        font-size: $ms-0
34
         main 
34
         main 
35
             background-color: green
35
             background-color: green
36
             width: 100%
36
             width: 100%
38
             
38
             
39
             :--headings, a
39
             :--headings, a
40
                 color: $cia_red
40
                 color: $cia_red
41
+            
42
+            a:hover
43
+                color: $dark
44
+
41
             img
45
             img
42
                 transition: $transition ease-in
46
                 transition: $transition ease-in
43
                 &:hover
47
                 &:hover
44
-                    filter: grayscale(100%) brightness(85%)
48
+                    filter: grayscale(70%) brightness(85%)
45
                     cursor: pointer
49
                     cursor: pointer
46
 
50
 
47
             > [class^="page--"]
51
             > [class^="page--"]
81
         nav, footer
85
         nav, footer
82
             &.main
86
             &.main
83
                 background-color: pink
87
                 background-color: pink
84
-                width: 100%
85
 </style>
88
 </style>

+ 1
- 1
vue-theme/src/components/footer.vue Wyświetl plik

1
 <template lang="pug">
1
 <template lang="pug">
2
 .footer-wrapper.t-up.t-sans
2
 .footer-wrapper.t-up.t-sans
3
-    footer.main
3
+    footer.main.w-max
4
         //- address contact
4
         //- address contact
5
         ul.f-col.start.b-dot.b-radius
5
         ul.f-col.start.b-dot.b-radius
6
             li.b-dot.b-radius
6
             li.b-dot.b-radius

+ 10
- 15
vue-theme/src/components/navigation/navigation.vue Wyświetl plik

1
 // Replace with calls to menu system
1
 // Replace with calls to menu system
2
 <template lang="pug">
2
 <template lang="pug">
3
-nav.main
4
-
3
+nav.main.w-max
5
     .menu
4
     .menu
6
-        ul.f-row
5
+        ul.f-row.w-max
7
             li.f-row.start
6
             li.f-row.start
8
                 router-link(to="/")
7
                 router-link(to="/")
9
                     img(src="../../star.svg")
8
                     img(src="../../star.svg")
10
                 router-link(to="/")
9
                 router-link(to="/")
11
-                    h1.t-serif.t-up &nbsp;logotype
10
+                    h1.t-serif.t-up craft in america
12
             li.f-grow
11
             li.f-grow
13
             li(v-for="item in menuItems")
12
             li(v-for="item in menuItems")
14
                 router-link(:to="`/${item}`")
13
                 router-link(:to="`/${item}`")
19
             router-link(to="/")
18
             router-link(to="/")
20
                 img(src="../../star.svg")
19
                 img(src="../../star.svg")
21
             router-link(to="/")
20
             router-link(to="/")
22
-                h1.t-serif.t-up &nbsp;logotype
21
+                h1.t-serif.t-up craft in america
23
         
22
         
24
         label(for="toggle-mobile-menu" aria-label="Menu").drop-down &#9776;
23
         label(for="toggle-mobile-menu" aria-label="Menu").drop-down &#9776;
25
         input(id="toggle-mobile-menu" type="checkbox").hide
24
         input(id="toggle-mobile-menu" type="checkbox").hide
26
 
25
 
27
-        ul.drop-down
26
+        ul.drop-down.w-max
28
             li(v-for="item in menuItems")
27
             li(v-for="item in menuItems")
29
                 router-link(:to="`/${item}`")
28
                 router-link(:to="`/${item}`")
30
                     h5.t-up {{ item }}
29
                     h5.t-up {{ item }}
48
                 'center',
47
                 'center',
49
                 'education',
48
                 'education',
50
                 'support',
49
                 'support',
51
-                'search'
50
+                '🔍'
52
             ]
51
             ]
53
             const ignored = [
52
             const ignored = [
54
                 'pages',
53
                 'pages',
54
+                'sticky',
55
                 // 'posts',
55
                 // 'posts',
56
             ]
56
             ]
57
             const filtered = postTypes.filter(val => !ignored.includes(val))
57
             const filtered = postTypes.filter(val => !ignored.includes(val))
75
     word-wrap: break-word
75
     word-wrap: break-word
76
     z-index: 10000
76
     z-index: 10000
77
     
77
     
78
-    h5
79
-        margin: 0
80
-    
81
     .menu, .mobile-menu
78
     .menu, .mobile-menu
82
         padding: $ms-0 0
79
         padding: $ms-0 0
83
         a
80
         a
84
-            margin: 0
81
+            text-decoration: none
85
             h1
82
             h1
86
-                font-size: $ms-1
83
+                font-size: $ms-0
87
                 color: $cia_red
84
                 color: $cia_red
88
-                margin: 0
89
             img
85
             img
90
                 width: $ms-3
86
                 width: $ms-3
91
                 height: $ms-3
87
                 height: $ms-3
94
     .menu
90
     .menu
95
         display: none
91
         display: none
96
         > ul
92
         > ul
97
-            width: 100%
93
+            padding: 0 $ms-1
98
     
94
     
99
     .mobile-menu
95
     .mobile-menu
100
         img 
96
         img 
117
                     clear: both 
113
                     clear: both 
118
                     position: absolute
114
                     position: absolute
119
         ul
115
         ul
120
-            width: 100%
121
             background-color: $primary-dark
116
             background-color: $primary-dark
122
             display: none
117
             display: none
123
             padding: $ms--1 0
118
             padding: $ms--1 0

+ 0
- 2
vue-theme/src/sss/_helpers.sss Wyświetl plik

4
 /* Custom selectors */
4
 /* Custom selectors */
5
 @custom-selector :--headings h1, h2, h3, h4, h5, h6
5
 @custom-selector :--headings h1, h2, h3, h4, h5, h6
6
 
6
 
7
-@custom-media --viewport-medium (width <= 50rem)
8
-
9
 %flexer
7
 %flexer
10
     display: flex
8
     display: flex
11
     justify-content: center
9
     justify-content: center

+ 6
- 18
vue-theme/src/sss/_typography.sss Wyświetl plik

31
     margin-left: 0
31
     margin-left: 0
32
     margin-right: 0
32
     margin-right: 0
33
 h1
33
 h1
34
-    font-size: 2em
35
-    /* margin-top: 0.6em */
36
-    margin-bottom: 0.6em
34
+    font-size: $ms-4
37
 h2
35
 h2
38
-    font-size: 1.5em
39
-    /* margin-top: 0.8em */
40
-    margin-bottom: 0.8em
36
+    font-size: $ms-3
41
 h3
37
 h3
42
-    font-size: 1.17em
43
-    /* margin-top: 1em */
44
-    margin-bottom: 1em
38
+    font-size: $ms-2
45
 h4
39
 h4
46
-    font-size: 1em
47
-    /* margin-top: 1.33em */
48
-    margin-bottom: 1.33em
40
+    font-size: $ms-1
49
 h5
41
 h5
50
-    font-size: .8em
51
-    /* margin-top: 1.6em */
52
-    margin-bottom: 1.6em
42
+    font-size: $ms-0
53
 h6
43
 h6
54
-    font-size: .67em
55
-    /* margin-top: 2em */
56
-    margin-bottom: 2em
44
+    font-size: $ms--1
57
     
45
     

Ładowanie…
Anuluj
Zapisz