Bläddra i källkod

:recycle: dubious tweaking of postcss files

master
J 5 år sedan
förälder
incheckning
d2c58f7df3

+ 3
- 7
src/App.vue Visa fil

5
 </template>
5
 </template>
6
 
6
 
7
 <script>
7
 <script>
8
+import * as sss from '@/sss/import.css'
9
+
8
 import { ref } from 'vue'
10
 import { ref } from 'vue'
9
 
11
 
10
 import helloWorld from '@/components/HelloWorld.vue'
12
 import helloWorld from '@/components/HelloWorld.vue'
13
 export default {
15
 export default {
14
     components: { card, helloWorld },
16
     components: { card, helloWorld },
15
     setup() {
17
     setup() {
16
-        
18
+
17
         const cards = ref([
19
         const cards = ref([
18
             { name: 'jwick' },
20
             { name: 'jwick' },
19
             { name: 'hwick' },
21
             { name: 'hwick' },
35
 </script>
37
 </script>
36
 
38
 
37
 <style lang="postcss">
39
 <style lang="postcss">
38
-@import './sss/partials/_reset.sss'
39
-@import './sss/partials/_ratios.sss'
40
-@import './sss/partials/_helpers.sss'
41
-@import './sss/partials/_typography.sss'
42
-
43
 @import './sss/theme.sss'
40
 @import './sss/theme.sss'
44
-@import './sss/variables.sss'
45
 
41
 
46
 #app
42
 #app
47
     -webkit-font-smoothing: antialiased
43
     -webkit-font-smoothing: antialiased

+ 1
- 2
src/components/card.vue Visa fil

5
 
5
 
6
     main.ph-1
6
     main.ph-1
7
         section
7
         section
8
-            img(alt="Vue logo" style="width: 100%;" src="@/assets/logo.png")
8
+            img(alt="Vue logo" src="@/assets/logo.png").w-full
9
 
9
 
10
     footer.ph-1.b-1
10
     footer.ph-1.b-1
11
         button(@click="state.count++").b-solid.rounded.p-0 {{ state.count }}
11
         button(@click="state.count++").b-solid.rounded.p-0 {{ state.count }}
37
 
37
 
38
 <style lang="postcss">
38
 <style lang="postcss">
39
 @import '@/sss/theme.sss'
39
 @import '@/sss/theme.sss'
40
-@import '@/sss/variables.sss'
41
 
40
 
42
 .card
41
 .card
43
     height: $ms-8
42
     height: $ms-8

src/sss/variables.sss → src/sss/_variables.sss Visa fil


+ 4
- 0
src/sss/import.css Visa fil

1
+@import './partials/_reset.sss'
2
+@import './partials/_ratios.sss'
3
+@import './partials/_helpers.sss'
4
+@import './partials/_typography.sss'

+ 37
- 2
src/sss/partials/_helpers.sss Visa fil

1
-@import '../variables.sss'
1
+@import '../_variables.sss'
2
 @import '../theme.sss'
2
 @import '../theme.sss'
3
 
3
 
4
+.w
5
+    &-full
6
+        width: 100%
7
+    &-half
8
+        width: 50%
9
+    
4
 /* Flex box  */
10
 /* Flex box  */
5
 %flexy
11
 %flexy
6
     display: flex
12
     display: flex
62
         background-color: $dark
68
         background-color: $dark
63
     &-light
69
     &-light
64
         background-color: $light
70
         background-color: $light
71
+    &-cover
72
+        background-size: cover
73
+    &-contain
74
+        background-size: contain
75
+    &-repeat
76
+        background-repeat: repeat
65
 
77
 
66
 /* Colors */
78
 /* Colors */
67
 .primary
79
 .primary
175
         &-1
187
         &-1
176
             margin-right: $ms-1
188
             margin-right: $ms-1
177
         &-2
189
         &-2
178
-            margin-right: $ms-2
190
+            margin-right: $ms-2
191
+
192
+.z
193
+    &-bottom
194
+        position: relative
195
+        z-index: -1
196
+    &-10
197
+        position: relative
198
+        z-index: 10
199
+    &-20
200
+        position: relative
201
+        z-index: 20
202
+    &-30
203
+        position: relative
204
+        z-index: 30
205
+    &-40
206
+        position: relative
207
+        z-index: 40
208
+    &-50
209
+        position: relative
210
+        z-index: 50
211
+    &-top
212
+        position: relative
213
+        z-index: 10001

+ 1
- 1
src/sss/partials/_reset.sss Visa fil

1
-@import '../variables.sss'
1
+@import '../_variables.sss'
2
 @import '../theme.sss'
2
 @import '../theme.sss'
3
 
3
 
4
 *
4
 *

+ 1
- 1
src/sss/partials/_typography.sss Visa fil

1
-@import '../variables.sss'
1
+@import '../_variables.sss'
2
 @import '../theme.sss'
2
 @import '../theme.sss'
3
 
3
 
4
 h1
4
 h1

+ 1
- 1
src/sss/theme.sss Visa fil

1
-@import './variables.sss'
1
+@import './_variables.sss'
2
 
2
 
3
 /**
3
 /**
4
   * Colors
4
   * Colors

Laddar…
Avbryt
Spara