sass-zero 0.0.41 → 0.0.46

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 +13 -13
  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 +213 -0
  7. data/app/assets/stylesheets/sass-zero/mixins.scss +48 -23
  8. data/app/assets/stylesheets/sass-zero/utilities.scss +3 -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 +20 -10
  15. data/app/assets/stylesheets/sass-zero/utilities/position.scss +2 -2
  16. data/app/assets/stylesheets/sass-zero/utilities/text.scss +66 -64
  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 +12 -9
  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,6 @@
1
+ @import "sass-zero/utilities/align";
2
+ @import "sass-zero/utilities/animation";
3
+ @import "sass-zero/utilities/container";
1
4
  @import "sass-zero/utilities/flex";
2
5
  @import "sass-zero/utilities/flush";
3
6
  @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;
@@ -1,31 +1,41 @@
1
1
  @import "sass-zero/variables/spacing";
2
- @import "sass-zero/variables/colors";
3
2
  @import "sass-zero/mixins";
4
3
 
5
4
  .list--unindented {
6
- padding-left: $size-8;
5
+ padding-left: $size-4;
6
+ }
7
+
8
+ .list--flush {
9
+ padding-left: $size-0;
7
10
  }
8
11
 
9
12
  .list--unbulleted {
10
- list-style: none;
13
+ padding-left: $size-0;
14
+ list-style: none;
11
15
  }
12
16
 
13
17
  .list--spaced {
14
18
  @include space-y($size-2);
15
19
  }
16
20
 
17
- .list--boxed {
18
- background-color: $gray-200;
19
- padding: $size-4;
20
- border-radius: $rounded;
21
+ .list--inside-bulleted {
22
+ padding-left: $size-0;
23
+ list-style-position: inside;
21
24
  }
22
25
 
23
- .list--ruled > li {
24
- padding: $size-3 $size-4;
26
+ .list--ruled-top {
25
27
  border-top-width: $border;
26
28
  }
27
29
 
30
+ .list--inline {
31
+ @include space-x($size-2);
32
+ }
33
+
28
34
  .list--inline > li {
29
- margin-right: $size-2;
30
35
  display: inline-block;
31
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,21 @@
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;
16
- }
17
-
18
- .txt--lg {
19
- font-size: $text-lg;
20
- }
21
-
22
- .txt--xl {
23
- font-size: $text-xl;
24
- }
25
-
26
- .txt--2xl {
27
- font-size: $text-2xl;
28
- }
29
-
30
- .txt--3xl {
31
- font-size: $text-3xl;
5
+ .txt--normal {
6
+ font-weight: $font-normal !important;
32
7
  }
33
8
 
34
- .txt--4xl {
35
- font-size: $text-4xl;
9
+ .txt--bold {
10
+ font-weight: $font-bold;
36
11
  }
37
12
 
38
- .txt--5xl {
39
- font-size: $text-5xl;
13
+ .txt--underline {
14
+ text-decoration: underline;
40
15
  }
41
16
 
42
- .txt--6xl {
43
- font-size: $text-6xl;
17
+ .txt--uppercase {
18
+ text-transform: uppercase;
44
19
  }
45
20
 
46
21
  .txt--nowrap {
@@ -51,6 +26,10 @@
51
26
  word-wrap: break-word;
52
27
  }
53
28
 
29
+ .txt--break-words-alt {
30
+ word-break: break-word;
31
+ }
32
+
54
33
  .txt--break-all {
55
34
  word-break: break-all;
56
35
  }
@@ -59,61 +38,84 @@
59
38
  @include ellipsis;
60
39
  }
61
40
 
62
- .txt--normal {
63
- font-weight: $font-normal;
41
+ .txt--dimmed {
42
+ opacity: $opacity-75;
64
43
  }
65
44
 
66
- .txt--bold {
67
- font-weight: $font-bold;
45
+ .txt--very-dimmed {
46
+ opacity: $opacity-50;
68
47
  }
69
48
 
70
- .txt--subtle {
71
- color: $gray-700;
49
+ .txt--overflow-hidden {
50
+ overflow: hidden;
72
51
  }
73
52
 
74
- .txt--very-subtle {
75
- color: $gray-600;
53
+ .txt--xs {
54
+ font-size: $text-xs;
55
+ line-height: $leading-4;
76
56
  }
77
57
 
78
- .txt--underline {
79
- text-decoration: underline;
58
+ .txt--sm {
59
+ font-size: $text-sm;
60
+ line-height: $leading-5;
80
61
  }
81
62
 
82
- .txt--uppercase {
83
- text-transform: uppercase;
63
+ .txt--md {
64
+ font-size: $text-base;
65
+ line-height: $leading-6;
84
66
  }
85
67
 
86
- .align--top {
87
- vertical-align: top;
68
+ .txt--lg {
69
+ font-size: $text-lg;
70
+ line-height: $leading-7;
88
71
  }
89
72
 
90
- .align--middle {
91
- vertical-align: middle;
73
+ .txt--xl {
74
+ font-size: $text-xl;
75
+ line-height: $leading-7;
76
+ }
77
+
78
+ .txt--2xl {
79
+ font-size: $text-2xl;
80
+ line-height: $leading-8;
81
+ }
82
+
83
+ .txt--3xl {
84
+ font-size: $text-3xl;
85
+ line-height: $leading-9;
92
86
  }
93
87
 
94
- .align--bottom {
95
- vertical-align: bottom;
88
+ .txt--4xl {
89
+ font-size: $text-4xl;
90
+ line-height: $leading-10;
96
91
  }
97
92
 
98
- .align--left {
99
- text-align: left;
93
+ .txt--5xl {
94
+ font-size: $text-5xl;
95
+ line-height: $leading-none;
100
96
  }
101
97
 
102
- .align--center {
103
- text-align: center;
98
+ .txt--6xl {
99
+ font-size: $text-6xl;
100
+ line-height: $leading-none;
104
101
  }
105
102
 
106
- .align--right {
107
- text-align: right;
103
+ .txt--7xl {
104
+ font-size: $text-7xl;
105
+ line-height: $leading-none;
108
106
  }
109
107
 
110
- .decorated {
111
- color: $blue-500;
112
- text-decoration: underline;
108
+ .txt--8xl {
109
+ font-size: $text-8xl;
110
+ line-height: $leading-none;
111
+ }
112
+
113
+ .txt--9xl {
114
+ font-size: $text-9xl;
115
+ line-height: $leading-none;
113
116
  }
114
117
 
115
- .decorated--subtle {
116
- color: $gray-700;
117
- font-weight: $font-normal;
118
- &:hover { text-decoration: underline; }
118
+ .undecorated {
119
+ color: inherit;
120
+ text-decoration: none;
119
121
  }