Przeglądaj źródła

first commit

master
TOJ 7 lat temu
commit
041b8b09d7
9 zmienionych plików z 211 dodań i 0 usunięć
  1. 6
    0
      index.js
  2. 61
    0
      partials/_helpers.sss
  3. 27
    0
      partials/_layout.sss
  4. 43
    0
      partials/_reset.sss
  5. 0
    0
      partials/_scale.sss
  6. 4
    0
      partials/_selectors.sss
  7. 28
    0
      partials/_typography.sss
  8. 13
    0
      style.sss
  9. 29
    0
      variables.sss

+ 6
- 0
index.js Wyświetl plik

@@ -0,0 +1,6 @@
1
+// Include all your *.sss Sugarss files
2
+import './partials/_reset.sss'
3
+import './partials/_layout.sss'
4
+import './partials/_typography.sss'
5
+import './partials/_selectors.sss'
6
+import './partials/_helpers.sss'

+ 61
- 0
partials/_helpers.sss Wyświetl plik

@@ -0,0 +1,61 @@
1
+/* Helpers */
2
+@import '../variables.sss'
3
+@import '_selectors.sss'
4
+
5
+:--headings
6
+    color: $color-primary
7
+p
8
+    line-height: 1.5em
9
+
10
+
11
+%flexer
12
+    display: flex
13
+
14
+.f
15
+    &-row, &-col
16
+        @extend %flexer
17
+    &-row
18
+        flex-direction: row
19
+    &-col
20
+        flex-direction: column
21
+    &-cntr
22
+        justify-content: center
23
+        align-items: center
24
+    &-grow
25
+        flex-grow: 10
26
+
27
+%borderer
28
+    border-width: 1px 
29
+    border-color: $primary
30
+
31
+
32
+.b
33
+    &-none
34
+        border-style: none
35
+    &-solid
36
+        @extend %borderer
37
+        border-style: solid
38
+    &-dash
39
+        @extend %borderer
40
+        border-style: dashed
41
+    &-dot
42
+        @extend %borderer
43
+        border-style: dotted
44
+    &-pill
45
+        border-radius: 999px
46
+    &-rnd
47
+        border-radius: $ms
48
+
49
+.p
50
+    &-all
51
+        padding: $ms
52
+    &-horz
53
+        padding-left: $ms
54
+        padding-right: @padding-left
55
+    &-vert
56
+        padding-top: $ms
57
+        padding-bottom: @padding-top
58
+
59
+.bg
60
+    &-none
61
+        background: none

+ 27
- 0
partials/_layout.sss Wyświetl plik

@@ -0,0 +1,27 @@
1
+/* Layout */
2
+@import '../variables.sss'
3
+
4
+nav, nav > ul, nav > ul li, body > header, body > main, footer, footer > ul
5
+    display: flex
6
+    justify-content: center
7
+    position: relative
8
+    z-index: $zcontent
9
+
10
+._maxwidth
11
+    width: 480px
12
+
13
+@media (min-width: 768px)
14
+    ._maxwidth
15
+        width: 600px
16
+
17
+@media (min-width: 1080px)
18
+    ._maxwidth
19
+        width: 960px
20
+
21
+@media (min-width: 1200px)
22
+    ._maxwidth
23
+        width: 1080px
24
+
25
+@media (min-width: 1920px)
26
+    ._maxwidth
27
+        width: $maxwidth

+ 43
- 0
partials/_reset.sss Wyświetl plik

@@ -0,0 +1,43 @@
1
+// Kill margins and paddings; add border-box
2
+*
3
+    margin: 0
4
+    padding: 0
5
+    box-sizing: border-box
6
+    &:before, &:after
7
+        background-repeat: no-repeat
8
+        box-sizing: inherit
9
+    &:focus
10
+        outline: none !important
11
+
12
+::before, ::after
13
+    text-decoration: inherit
14
+    vertical-align: inherit
15
+
16
+html
17
+    cursor: default
18
+    font-family: system-ui
19
+    line-height: 1.15
20
+    tab-size: 4
21
+
22
+// Always set color/background/font-size on root
23
+body
24
+    margin: 0
25
+    color: $primary
26
+    font-size: $ms
27
+    font-family: Helvetica, Arial, sans-serif
28
+
29
+// Remove list-style in navigation tags
30
+nav
31
+    ol, ul
32
+        list-style: none
33
+
34
+// Useful for single page apps to use up all available space
35
+html, body
36
+    height: 100%
37
+
38
+// Reset some other default styles
39
+button, input, select, textarea
40
+    font-family: inherit
41
+    font-size: inherit
42
+    line-height: inherit
43
+

+ 0
- 0
partials/_scale.sss Wyświetl plik


+ 4
- 0
partials/_selectors.sss Wyświetl plik

@@ -0,0 +1,4 @@
1
+@custom-selector :--headings h1, h2, h3, h4, h5, h6
2
+
3
+--ms-bases: 1, 0.75
4
+--ms-ratios: 2

+ 28
- 0
partials/_typography.sss Wyświetl plik

@@ -0,0 +1,28 @@
1
+@import '../variables.sss'
2
+
3
+:--headings
4
+    color: $primary
5
+
6
+.t
7
+    &-cntr
8
+        text-align: center
9
+    &-left
10
+        text-align: left
11
+    &-b
12
+        text-weight: bold
13
+    &-i
14
+        text-style: italic
15
+    &-up
16
+        text-transform: uppercase
17
+    &-cap
18
+        text-transform: capitalize
19
+    &-sans
20
+        font-family: $sans
21
+    &-serif
22
+        font-family: $serif
23
+    &-mono
24
+        font-family: $mono
25
+
26
+a
27
+    &:hover
28
+        cursor: pointer

+ 13
- 0
style.sss Wyświetl plik

@@ -0,0 +1,13 @@
1
+@import './partials/_reset.sss'
2
+@import './variables.sss'
3
+@import './partials/_layout.sss'
4
+@import './partials/_helpers.sss'
5
+@import './partials/_selectors.sss'
6
+
7
+html
8
+    background-color: $primary
9
+    
10
+body
11
+    display: flex
12
+    flex-direction: column
13
+

+ 29
- 0
variables.sss Wyświetl plik

@@ -0,0 +1,29 @@
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.5em
22
+
23
+// Circles for add page
24
+$radius: 2.5vw
25
+$path: 4px
26
+
27
+$transition: 300ms
28
+
29
+

Ładowanie…
Anuluj
Zapisz