Przeglądaj źródła

changing file names | cleaning up a little

tags/0.9.0
J 6 lat temu
rodzic
commit
205af31690

+ 8
- 9
vue-theme/src/app.vue Wyświetl plik

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

vue-theme/src/sss/_flex.sss → vue-theme/src/sss/_helpers.sss Wyświetl plik

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
     display: flex
7
     display: flex
3
     justify-content: center
8
     justify-content: center
4
     align-items: center
9
     align-items: center
5
 
10
 
6
 .f
11
 .f
7
-    &-row
8
-        flex-direction: row
9
-    &-col
10
-        flex-direction: column
11
-    &-grow
12
-        flex-grow: 1
13
     &-row, &-col
12
     &-row, &-col
13
+        @extend %flexer
14
         &.start
14
         &.start
15
             justify-content: flex-start
15
             justify-content: flex-start
16
         &.end
16
         &.end
18
         &.between
18
         &.between
19
             justify-content: space-between
19
             justify-content: space-between
20
         &.around
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 Wyświetl plik


+ 0
- 7
vue-theme/src/sss/_variables.sss Wyświetl plik

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 Wyświetl plik

1
 // Include all your *.sss Sugarss files
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 Wyświetl plik

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 Wyświetl plik

7
 Version: 1.0.0
7
 Version: 1.0.0
8
 License: MIT
8
 License: MIT
9
 Contributors: Sagar Bhatt, Pradeep Sonawane
9
 Contributors: Sagar Bhatt, Pradeep Sonawane
10
-*/
11
-html body {
12
-    color: purple;
13
-}
10
+*/

Ładowanie…
Anuluj
Zapisz