Procházet zdrojové kódy

:art: nav styling simplification

tags/0.9.0
j před 4 roky
rodič
revize
28bdd39d9d

+ 6
- 3
vue-theme/src/app.vue Zobrazit soubor

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

+ 1
- 1
vue-theme/src/components/footer.vue Zobrazit soubor

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

+ 10
- 15
vue-theme/src/components/navigation/navigation.vue Zobrazit soubor

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

+ 0
- 2
vue-theme/src/sss/_helpers.sss Zobrazit soubor

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

+ 6
- 18
vue-theme/src/sss/_typography.sss Zobrazit soubor

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

Načítá se…
Zrušit
Uložit