浏览代码

:recycle: dubious tweaking of postcss files

tags/0.0.1
J 5 年前
父节点
当前提交
d2c58f7df3

+ 3
- 7
src/App.vue 查看文件

@@ -5,6 +5,8 @@ hello-world(msg="Hello Vue 3 + Vite")
5 5
 </template>
6 6
 
7 7
 <script>
8
+import * as sss from '@/sss/import.css'
9
+
8 10
 import { ref } from 'vue'
9 11
 
10 12
 import helloWorld from '@/components/HelloWorld.vue'
@@ -13,7 +15,7 @@ import card from '@/components/card.vue'
13 15
 export default {
14 16
     components: { card, helloWorld },
15 17
     setup() {
16
-        
18
+
17 19
         const cards = ref([
18 20
             { name: 'jwick' },
19 21
             { name: 'hwick' },
@@ -35,13 +37,7 @@ export default {
35 37
 </script>
36 38
 
37 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 40
 @import './sss/theme.sss'
44
-@import './sss/variables.sss'
45 41
 
46 42
 #app
47 43
     -webkit-font-smoothing: antialiased

+ 1
- 2
src/components/card.vue 查看文件

@@ -5,7 +5,7 @@
5 5
 
6 6
     main.ph-1
7 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 10
     footer.ph-1.b-1
11 11
         button(@click="state.count++").b-solid.rounded.p-0 {{ state.count }}
@@ -37,7 +37,6 @@ const close = e => {
37 37
 
38 38
 <style lang="postcss">
39 39
 @import '@/sss/theme.sss'
40
-@import '@/sss/variables.sss'
41 40
 
42 41
 .card
43 42
     height: $ms-8

src/sss/variables.sss → src/sss/_variables.sss 查看文件


+ 4
- 0
src/sss/import.css 查看文件

@@ -0,0 +1,4 @@
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 查看文件

@@ -1,6 +1,12 @@
1
-@import '../variables.sss'
1
+@import '../_variables.sss'
2 2
 @import '../theme.sss'
3 3
 
4
+.w
5
+    &-full
6
+        width: 100%
7
+    &-half
8
+        width: 50%
9
+    
4 10
 /* Flex box  */
5 11
 %flexy
6 12
     display: flex
@@ -62,6 +68,12 @@
62 68
         background-color: $dark
63 69
     &-light
64 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 78
 /* Colors */
67 79
 .primary
@@ -175,4 +187,27 @@
175 187
         &-1
176 188
             margin-right: $ms-1
177 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 查看文件

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

+ 1
- 1
src/sss/partials/_typography.sss 查看文件

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

+ 1
- 1
src/sss/theme.sss 查看文件

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

正在加载...
取消
保存