Переглянути джерело

changing file names | cleaning up a little

tags/0.9.0
J 6 роки тому
джерело
коміт
205af31690

+ 8
- 9
vue-theme/src/app.vue Переглянути файл

@@ -21,25 +21,24 @@ export default {
21 21
 </script>
22 22
 
23 23
 <style lang="postcss">
24
-@import './sss/_variables.sss'
25
-@import './sss/_flex.sss'
24
+@import './sss/variables.sss'
26 25
 
27 26
 html > body
28
-    font-family: sans-serif
27
+    font-family: $sans
29 28
     main > article[class^="page--"]
30
-        padding: var(--spacer)
29
+        padding: $ms
31 30
         > section
32
-            padding: 0 0 var(--spacer)
31
+            padding: 0 0 $ms
33 32
     :--headings
34 33
         color: red
35 34
 
36 35
     nav.main, footer.main
37 36
         background-color: #ccc
38
-        margin: 0 0 var(--spacer)
39
-        padding: var(--spacer)
37
+        margin: 0 0 $ms
38
+        padding: $ms
40 39
         width: 100%
41 40
         ul > li
42
-            padding: 0 var(--spacer)
41
+            padding: 0 $ms
43 42
     footer.main
44
-        margin: var(--spacer) 0 0
43
+        margin: $ms 0 0
45 44
 </style>

vue-theme/src/sss/_flex.sss → vue-theme/src/sss/_helpers.sss Переглянути файл

@@ -1,16 +1,16 @@
1
-[class^="f-"]
1
+// Custom selectors
2
+@custom-selector :--headings h1, h2, h3, h4, h5, h6
3
+
4
+@custom-media --viewport-medium (width <= 50rem)
5
+
6
+%flexer
2 7
     display: flex
3 8
     justify-content: center
4 9
     align-items: center
5 10
 
6 11
 .f
7
-    &-row
8
-        flex-direction: row
9
-    &-col
10
-        flex-direction: column
11
-    &-grow
12
-        flex-grow: 1
13 12
     &-row, &-col
13
+        @extend %flexer
14 14
         &.start
15 15
             justify-content: flex-start
16 16
         &.end
@@ -18,4 +18,10 @@
18 18
         &.between
19 19
             justify-content: space-between
20 20
         &.around
21
-            justify-content: space-around
21
+            justify-content: space-around
22
+    &-row
23
+        flex-direction: row
24
+    &-col
25
+        flex-direction: column
26
+    &-grow
27
+        flex-grow: 1

vue-theme/src/sss/reset.sss → vue-theme/src/sss/_reset.sss Переглянути файл


+ 0
- 7
vue-theme/src/sss/_variables.sss Переглянути файл

@@ -1,7 +0,0 @@
1
-// Custom selectors
2
-@custom-selector :--headings h1, h2, h3, h4, h5, h6
3
-
4
-@custom-media --viewport-medium (width <= 50rem)
5
-
6
-:root
7
-  --spacer: 0.5em

+ 2
- 1
vue-theme/src/sss/index.js Переглянути файл

@@ -1,2 +1,3 @@
1 1
 // Include all your *.sss Sugarss files
2
-import './reset.sss'
2
+import './_reset.sss'
3
+import './_helpers.sss'

+ 27
- 0
vue-theme/src/sss/variables.sss Переглянути файл

@@ -0,0 +1,27 @@
1
+// Colors
2
+$blue: #0076A3
3
+$chart-bg: rgba(20,20,20)
4
+$background: #444
5
+$background-light: #505050
6
+$dark: #3F3F3F
7
+$darker: #383838
8
+$light: #BBBBBB
9
+$lighter: #CCCCCC
10
+$primary: #008462
11
+$primary-light: #00D6A3
12
+$primary-lighter: #CEFFF3
13
+$primary-dark: #007351
14
+
15
+// Fonts
16
+$sans: 'sans-serif'
17
+$serif: 'serif'
18
+$mono: 'monospace'
19
+
20
+// Proportion (to be replaced with modular scale)
21
+$ms: 0.7em
22
+
23
+// Circles for add page
24
+$radius: 2.5vw
25
+$path: 4px
26
+
27
+$transition: 300ms

+ 1
- 4
vue-theme/style.css Переглянути файл

@@ -7,7 +7,4 @@ Description: A WordPress theme with Vue.js and REST API
7 7
 Version: 1.0.0
8 8
 License: MIT
9 9
 Contributors: Sagar Bhatt, Pradeep Sonawane
10
-*/
11
-html body {
12
-    color: purple;
13
-}
10
+*/

Завантаження…
Відмінити
Зберегти