sass-zero 0.0.40 → 0.0.45

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/Example.html +12 -12
  3. data/README.md +6 -1
  4. data/app/assets/stylesheets/sass-zero/base.scss +0 -1
  5. data/app/assets/stylesheets/sass-zero/base/preflight.scss +15 -4
  6. data/app/assets/stylesheets/sass-zero/breadboard.scss +215 -0
  7. data/app/assets/stylesheets/sass-zero/mixins.scss +41 -16
  8. data/app/assets/stylesheets/sass-zero/utilities.scss +10 -0
  9. data/app/assets/stylesheets/sass-zero/utilities/align.scss +28 -0
  10. data/app/assets/stylesheets/sass-zero/utilities/animation.scss +59 -0
  11. data/app/assets/stylesheets/sass-zero/utilities/container.scss +36 -0
  12. data/app/assets/stylesheets/sass-zero/utilities/flex.scss +33 -21
  13. data/app/assets/stylesheets/sass-zero/utilities/layout.scss +40 -3
  14. data/app/assets/stylesheets/sass-zero/utilities/list.scss +22 -5
  15. data/app/assets/stylesheets/sass-zero/utilities/position.scss +2 -2
  16. data/app/assets/stylesheets/sass-zero/utilities/text.scss +88 -53
  17. data/app/assets/stylesheets/sass-zero/variables.scss +1 -0
  18. data/app/assets/stylesheets/sass-zero/variables/border.scss +4 -1
  19. data/app/assets/stylesheets/sass-zero/variables/breakpoints.scss +5 -4
  20. data/app/assets/stylesheets/sass-zero/variables/colors.scss +239 -118
  21. data/app/assets/stylesheets/sass-zero/variables/effects.scss +28 -4
  22. data/app/assets/stylesheets/sass-zero/variables/flex.scss +17 -1
  23. data/app/assets/stylesheets/sass-zero/variables/grid.scss +85 -0
  24. data/app/assets/stylesheets/sass-zero/variables/spacing.scss +16 -2
  25. data/app/assets/stylesheets/sass-zero/variables/transform.scss +9 -2
  26. data/app/assets/stylesheets/sass-zero/variables/typography.scss +18 -15
  27. data/app/assets/stylesheets/sass-zero/variables/width.scss +8 -3
  28. data/app/assets/stylesheets/sass-zero/variables/zindex.scss +1 -1
  29. data/lib/sass/zero/version.rb +1 -1
  30. data/package.json +1 -1
  31. metadata +8 -5
  32. data/app/assets/stylesheets/sass-zero/base/breadboard.scss +0 -191
  33. data/app/assets/stylesheets/sass-zero/base/variables.scss +0 -7
@@ -1,3 +1,13 @@
1
+ $color-txt: #18181b;
2
+ $color-txt--subtle: #3f3f46;
3
+ $color-txt--subtle-reversed: #fff;
4
+ $color-txt--decorated: #3b82f6;
5
+
6
+ $color-bg--highlight: #f4f4f5;
7
+
8
+ @import "sass-zero/utilities/align";
9
+ @import "sass-zero/utilities/animation";
10
+ @import "sass-zero/utilities/container";
1
11
  @import "sass-zero/utilities/flex";
2
12
  @import "sass-zero/utilities/flush";
3
13
  @import "sass-zero/utilities/layout";
@@ -0,0 +1,28 @@
1
+ .align--top {
2
+ vertical-align: top;
3
+ }
4
+
5
+ .align--middle {
6
+ vertical-align: middle;
7
+ }
8
+
9
+ .align--bottom {
10
+ vertical-align: bottom;
11
+ }
12
+
13
+ .align--left {
14
+ text-align: left;
15
+ }
16
+
17
+ .align--center {
18
+ text-align: center;
19
+ }
20
+
21
+ .align--right {
22
+ text-align: right;
23
+ }
24
+
25
+ .centered {
26
+ margin-left: auto;
27
+ margin-right: auto
28
+ }
@@ -0,0 +1,59 @@
1
+ .animate-none {
2
+ animation: none;
3
+ }
4
+
5
+ .animate-spin {
6
+ animation: spin 1s linear infinite;
7
+ }
8
+
9
+ .animate-ping {
10
+ animation: ping 1s cubic-bezier(0, 0, .2, 1) infinite;
11
+ }
12
+
13
+ .animate-pulse {
14
+ animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;
15
+ }
16
+
17
+ .animate-bounce {
18
+ animation: bounce 1s infinite;
19
+ }
20
+
21
+ @keyframes spin {
22
+ from {
23
+ transform: rotate(0deg);
24
+ }
25
+ to {
26
+ transform: rotate(360deg);
27
+ }
28
+ }
29
+
30
+ @keyframes ping {
31
+ 0% {
32
+ transform: scale(1);
33
+ opacity: 1;
34
+ }
35
+ 75%, 100% {
36
+ transform: scale(2);
37
+ opacity: 0;
38
+ }
39
+ }
40
+
41
+ @keyframes pulse {
42
+ 0%, 100% {
43
+ opacity: 1;
44
+ }
45
+ 50% {
46
+ opacity: .5;
47
+ }
48
+ }
49
+
50
+ @keyframes bounce {
51
+ 0%, 100% {
52
+ transform: translateY(-25%);
53
+ animationTimingFunction: cubic-bezier(0.8, 0, 1, 1);
54
+ }
55
+ 50% {
56
+ transform: translateY(0);
57
+ animationTimingFunction: cubic-bezier(0, 0, 0.2, 1);
58
+ }
59
+ }
@@ -0,0 +1,36 @@
1
+ @import "sass-zero/variables/breakpoints";
2
+ @import "sass-zero/mixins";
3
+
4
+ .container {
5
+ @include make-container;
6
+ }
7
+
8
+ @media (min-width: $breakpoint-sm) {
9
+ .container {
10
+ max-width: $breakpoint-sm;
11
+ }
12
+ }
13
+
14
+ @media (min-width: $breakpoint-md) {
15
+ .container {
16
+ max-width: $breakpoint-md;
17
+ }
18
+ }
19
+
20
+ @media (min-width: $breakpoint-lg) {
21
+ .container {
22
+ max-width: $breakpoint-lg;
23
+ }
24
+ }
25
+
26
+ @media (min-width: $breakpoint-xl) {
27
+ .container {
28
+ max-width: $breakpoint-xl;
29
+ }
30
+ }
31
+
32
+ @media (min-width: $breakpoint-2xl) {
33
+ .container {
34
+ max-width: $breakpoint-2xl;
35
+ }
36
+ }
@@ -1,31 +1,43 @@
1
1
  .flex {
2
2
  display: flex;
3
+ }
3
4
 
4
- &--column {
5
- flex-direction: column;
6
- }
5
+ .i-flex {
6
+ display: inline-flex;
7
+ }
7
8
 
8
- &--justify-center {
9
- justify-content: center;
10
- }
9
+ .flex--column {
10
+ flex-direction: column;
11
+ }
11
12
 
12
- &--justify-between {
13
- justify-content: space-between;
14
- }
13
+ .flex--justify-center {
14
+ justify-content: center;
15
+ }
15
16
 
16
- &--items-center {
17
- align-items: center;
18
- }
17
+ .flex--justify-between {
18
+ justify-content: space-between;
19
+ }
19
20
 
20
- &--wrap {
21
- flex-wrap: wrap;
22
- }
21
+ .flex--items-center {
22
+ align-items: center;
23
+ }
23
24
 
24
- &--grow {
25
- flex-grow: 1;
26
- }
25
+ .flex--wrap {
26
+ flex-wrap: wrap;
27
+ }
28
+
29
+ .flex-item--grow {
30
+ flex-grow: 1;
31
+ }
32
+
33
+ .flex-item--no-shrink {
34
+ flex-shrink: 0;
35
+ }
36
+
37
+ .flex-item--fill {
38
+ flex: 1;
39
+ }
27
40
 
28
- &--shrink-0 {
29
- flex-shrink: 0;
30
- }
41
+ .flex-item--align-center {
42
+ align-self: center;
31
43
  }
@@ -6,13 +6,26 @@
6
6
  width: 100%;
7
7
  }
8
8
 
9
+ .u-full-height {
10
+ height:100%
11
+ }
12
+
9
13
  .u-min-width {
10
14
  min-width: 0;
11
15
  }
12
16
 
13
17
  .u-disabled {
14
18
  pointer-events: none;
15
- opacity: $opacity-50;
19
+ opacity: $opacity-30;
20
+ }
21
+
22
+ .u-off-screen {
23
+ position: absolute;
24
+ left: -9999em;
25
+ }
26
+
27
+ .u-overflow-auto {
28
+ overflow: auto;
16
29
  }
17
30
 
18
31
  .u-unscrollable {
@@ -35,9 +48,25 @@
35
48
  display: none !important;
36
49
  }
37
50
 
38
- .u-centered {
39
- margin-right: auto;
51
+ .u-visibility-hidden {
52
+ visibility: hidden;
53
+ }
54
+
55
+ .u-pointer-events-n {
56
+ pointer-events: none;
57
+ }
58
+
59
+ .u-margin-centered {
40
60
  margin-left: auto;
61
+ margin-right: auto;
62
+ }
63
+
64
+ .u-wrap {
65
+ display: block;
66
+ }
67
+
68
+ .u-nowrap {
69
+ white-space: nowrap;
41
70
  }
42
71
 
43
72
  .u-clearfix {
@@ -68,6 +97,14 @@
68
97
  clear: right;
69
98
  }
70
99
 
100
+ .u-hide {
101
+ display: none;
102
+ }
103
+
104
+ .u-hide-focus {
105
+ outline: none !important;
106
+ }
107
+
71
108
  @media (max-width: $breakpoint-md - 1) {
72
109
  .u-hide\@small {
73
110
  display: none;
@@ -2,23 +2,40 @@
2
2
  @import "sass-zero/mixins";
3
3
 
4
4
  .list--unindented {
5
- padding-left: $size-8;
5
+ padding-left: $size-4;
6
+ }
7
+
8
+ .list--flush {
9
+ padding-left: $size-0;
6
10
  }
7
11
 
8
12
  .list--unbulleted {
9
- list-style: none;
13
+ padding-left: $size-0;
14
+ list-style: none;
10
15
  }
11
16
 
12
17
  .list--spaced {
13
18
  @include space-y($size-2);
14
19
  }
15
20
 
16
- .list--ruled > li {
17
- padding: $size-3 $size-4;
21
+ .list--inside-bulleted {
22
+ padding-left: $size-0;
23
+ list-style-position: inside;
24
+ }
25
+
26
+ .list--ruled-top {
18
27
  border-top-width: $border;
19
28
  }
20
29
 
30
+ .list--inline {
31
+ @include space-x($size-2);
32
+ }
33
+
21
34
  .list--inline > li {
22
- margin-right: $size-2;
23
35
  display: inline-block;
24
36
  }
37
+
38
+ .list--ruled > li {
39
+ padding: $size-4 $size-2;
40
+ border-top-width: $border;
41
+ }
@@ -1,8 +1,8 @@
1
- .position-context {
1
+ .u-position-context {
2
2
  position: relative;
3
3
  }
4
4
 
5
- .position {
5
+ .u-position {
6
6
  position: absolute;
7
7
 
8
8
  &--right { right: 0; }
@@ -1,46 +1,38 @@
1
1
  @import "sass-zero/variables/typography";
2
2
  @import "sass-zero/variables/spacing";
3
- @import "sass-zero/variables/colors";
4
3
  @import "sass-zero/mixins";
5
4
 
6
- .txt--xs {
7
- font-size: $text-xs;
8
- }
9
-
10
- .txt--sm {
11
- font-size: $text-sm;
12
- }
13
-
14
- .txt--md {
15
- font-size: $text-base;
5
+ .txt--normal {
6
+ font-weight: $font-normal !important;
16
7
  }
17
8
 
18
- .txt--lg {
19
- font-size: $text-lg;
9
+ .txt--bold {
10
+ font-weight: $font-bold;
20
11
  }
21
12
 
22
- .txt--xl {
23
- font-size: $text-xl;
13
+ .txt--underline {
14
+ text-decoration: underline;
24
15
  }
25
16
 
26
- .txt--2xl {
27
- font-size: $text-2xl;
17
+ .txt--uppercase {
18
+ text-transform: uppercase;
28
19
  }
29
20
 
30
- .txt--3xl {
31
- font-size: $text-3xl;
21
+ .txt--subtle {
22
+ color: $color-txt--subtle;
32
23
  }
33
24
 
34
- .txt--4xl {
35
- font-size: $text-4xl;
25
+ .txt--subtle-reversed {
26
+ color: $color-txt--subtle-reversed;
36
27
  }
37
28
 
38
- .txt--5xl {
39
- font-size: $text-5xl;
29
+ .txt--full-contrast {
30
+ color: $color-txt;
40
31
  }
41
32
 
42
- .txt--6xl {
43
- font-size: $text-6xl;
33
+ .txt--meta {
34
+ font-size: $text-sm;
35
+ color: $color-txt--subtle;
44
36
  }
45
37
 
46
38
  .txt--nowrap {
@@ -51,6 +43,10 @@
51
43
  word-wrap: break-word;
52
44
  }
53
45
 
46
+ .txt--break-words-alt {
47
+ word-break: break-word;
48
+ }
49
+
54
50
  .txt--break-all {
55
51
  word-break: break-all;
56
52
  }
@@ -59,61 +55,100 @@
59
55
  @include ellipsis;
60
56
  }
61
57
 
62
- .txt--normal {
63
- font-weight: $font-normal;
58
+ .txt--dimmed {
59
+ opacity: $opacity-75;
64
60
  }
65
61
 
66
- .txt--bold {
67
- font-weight: $font-bold;
62
+ .txt--very-dimmed {
63
+ opacity: $opacity-50;
68
64
  }
69
65
 
70
- .txt--subtle {
71
- color: $gray-700;
66
+ .txt--highlight {
67
+ background-color: $color-bg--highlight;
68
+ border-radius: $rounded-full;
69
+ padding: $size-0 $size-1;
72
70
  }
73
71
 
74
- .txt--very-subtle {
75
- color: $gray-600;
72
+ .txt--overflow-hidden {
73
+ overflow: hidden;
76
74
  }
77
75
 
78
- .txt--underline {
79
- text-decoration: underline;
76
+ .txt--xs {
77
+ font-size: $text-xs;
78
+ line-height: $leading-4;
80
79
  }
81
80
 
82
- .txt--uppercase {
83
- text-transform: uppercase;
81
+ .txt--sm {
82
+ font-size: $text-sm;
83
+ line-height: $leading-5;
84
+ }
85
+
86
+ .txt--md {
87
+ font-size: $text-base;
88
+ line-height: $leading-6;
89
+ }
90
+
91
+ .txt--lg {
92
+ font-size: $text-lg;
93
+ line-height: $leading-7;
94
+ }
95
+
96
+ .txt--xl {
97
+ font-size: $text-xl;
98
+ line-height: $leading-7;
84
99
  }
85
100
 
86
- .align--top {
87
- vertical-align: top;
101
+ .txt--2xl {
102
+ font-size: $text-2xl;
103
+ line-height: $leading-8;
88
104
  }
89
105
 
90
- .align--middle {
91
- vertical-align: middle;
106
+ .txt--3xl {
107
+ font-size: $text-3xl;
108
+ line-height: $leading-9;
92
109
  }
93
110
 
94
- .align--bottom {
95
- vertical-align: bottom;
111
+ .txt--4xl {
112
+ font-size: $text-4xl;
113
+ line-height: $leading-10;
96
114
  }
97
115
 
98
- .align--left {
99
- text-align: left;
116
+ .txt--5xl {
117
+ font-size: $text-5xl;
118
+ line-height: $leading-none;
100
119
  }
101
120
 
102
- .align--center {
103
- text-align: center;
121
+ .txt--6xl {
122
+ font-size: $text-6xl;
123
+ line-height: $leading-none;
104
124
  }
105
125
 
106
- .align--right {
107
- text-align: right;
126
+ .txt--7xl {
127
+ font-size: $text-7xl;
128
+ line-height: $leading-none;
129
+ }
130
+
131
+ .txt--8xl {
132
+ font-size: $text-8xl;
133
+ line-height: $leading-none;
134
+ }
135
+
136
+ .txt--9xl {
137
+ font-size: $text-9xl;
138
+ line-height: $leading-none;
108
139
  }
109
140
 
110
141
  .decorated {
111
- color: $blue-800;
142
+ color: $color-txt--decorated;
112
143
  text-decoration: underline;
113
144
  }
114
145
 
115
146
  .decorated--subtle {
116
- color: $gray-700;
117
- font-weight: $font-normal;
118
- &:hover { text-decoration: underline; }
147
+ color: $color-txt--subtle;
148
+ text-decoration: underline;
149
+ }
150
+
151
+ .undecorated {
152
+ color: inherit;
153
+ text-decoration: none;
119
154
  }