Ver código fonte

:art: adding a few more css helpers

master
J 5 anos atrás
pai
commit
0d2a958287

+ 7
- 13
src/components/card.vue Ver arquivo

@@ -1,7 +1,7 @@
1 1
 <template lang="pug">
2
-.card.f-col
3
-    header
4
-        p {{ card.name }}
2
+.card.f-col.start.b-solid.rounded.bg-primary
3
+    header.t-right.dark
4
+        h3 {{ card.name }}
5 5
 
6 6
     main
7 7
         section
@@ -40,17 +40,11 @@ const close = e => {
40 40
 @import '@/sss/variables.sss'
41 41
 
42 42
 .card
43
-    background-color: $primary
44
-    opacity: 0.8
45
-    width: $ms-4
46
-    height: $ms-5
47
-    border-radius: $ms-0
48
-    margin: 0 $ms-0 0 0
49
-    border: 1px solid black
50
-    transition: $transition
43
+    margin: 0 $ms-3 0 0
44
+    height: $ms-8
45
+    width: $ms-7
46
+    
51 47
     header, main, footer
52
-        color: $dark
53
-        text-align: left
54 48
         padding: 0 $ms-1
55 49
     header
56 50
         padding-top: $ms-1

+ 30
- 0
src/sss/partials/_helpers.sss Ver arquivo

@@ -34,3 +34,33 @@
34 34
         flex-direction: column
35 35
     &-grow
36 36
         flex-grow: 1
37
+
38
+.b
39
+    &-none
40
+        border: none
41
+    &-solid
42
+        border: 1px solid $dark
43
+    &-dot
44
+        border: 1px dotted $dark
45
+    &-solid, &-dot
46
+        &.rounded
47
+            border-radius: $ms-0
48
+        &.invert
49
+            border-color: $light
50
+
51
+.bg
52
+    &-none
53
+        background-color: none
54
+    &-primary
55
+        background-color: $primary
56
+    &-dark
57
+        background-color: $dark
58
+    &-light
59
+        background-color: $light
60
+
61
+.primary
62
+    color: $primary
63
+.dark
64
+    color: $dark
65
+.light
66
+    color: $light

+ 3
- 0
src/sss/partials/_typography.sss Ver arquivo

@@ -19,10 +19,13 @@ p
19 19
 
20 20
 .t
21 21
     &-center
22
+        width: 100%
22 23
         text-align: center
23 24
     &-right
25
+        width: 100%
24 26
         text-align: right
25 27
     &-left
28
+        width: 100%
26 29
         text-align: left
27 30
     &-up
28 31
         text-transform: uppercase

+ 2
- 2
src/sss/variables.sss Ver arquivo

@@ -22,7 +22,7 @@ $mono: 'input', 'consolas','monospace'
22 22
 /**
23 23
   * Modular Scale
24 24
   */
25
-$base: 1em
25
+$base: 0.5em
26 26
 $scale: $golden
27 27
 
28 28
 $ms-0: calc($base)
@@ -39,7 +39,7 @@ $ms-9: calc($ms-8 * $scale)
39 39
 /**
40 40
   * Color Scale
41 41
   */
42
-$cbase: 1
42
+$cbase: 0.5
43 43
 $cs-0: calc($cbase)
44 44
 $cs-1: calc($cs-0 * $scale)
45 45
 $cs-2: calc($cs-1 * $scale)

Carregando…
Cancelar
Salvar