sass-zero 0.0.52 → 0.0.56

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6610b5da4558e1c7f9b87b7b7801e14ba3bb0b53efd0fc072ab6d375f570a5a7
4
- data.tar.gz: 954783c8989efd9f2c14528650dec68900081039cf2798241b9b7a28c94aceeb
3
+ metadata.gz: 681331b510c60fd1ab5c3b9b308a7818164ce3eef6ed19851c436e5a533b694f
4
+ data.tar.gz: 1122523fea09214ded53cd922fe7fd0bf3ed0ed24cfa9d27538631ce98040a27
5
5
  SHA512:
6
- metadata.gz: 45119907b187ac09dfb64197d29abf2ce803836a06a17e4790c5024699f6217ba1995addded561e88d0b674a7af2142c982c1d74e0a5a436740fe69b08e28861
7
- data.tar.gz: 91f538c4f7ce0cb6d4a2163583351af0dd7bae427aca30657cf79125609b5842b0e567c4ebbb3b51be06f3a6be09036aeb2348021484ce570fd4d23576ed23ae
6
+ metadata.gz: 04da4bfeea03866a3c10fb8ffd1bb0f691d0d192faf483e433f9c5f0a867b50b42c0595076b34c83fae46748b26b926bac8b2cd4899e59e6670a560480b16622
7
+ data.tar.gz: 93ec7018d346d113aaafdfa32645e6d9f9539a5bf1046dbe644e1a80a0022e3042a281f766c6d3f5e449876295f310a1dc91e67403a6d623fe3c772352de0a42
data/Example.html CHANGED
@@ -40,31 +40,31 @@
40
40
 
41
41
  <div class="push-md--bottom">
42
42
  <div>
43
- <input type="checkbox" name="option1" value="1" class="checkbox" checked>
43
+ <input type="checkbox" id="option1" name="option1" value="1" checked>
44
44
  <label for="option1" class="u-display-ib">Option 1</label>
45
45
  </div>
46
46
  <div>
47
- <input type="checkbox" name="option2" value="2" class="checkbox">
47
+ <input type="checkbox" id="option2" name="option2" value="2">
48
48
  <label for="option2" class="u-display-ib">Option 2</label>
49
49
  </div>
50
50
  <div>
51
- <input type="checkbox" name="option3" value="3" class="checkbox">
51
+ <input type="checkbox" id="option3" name="option3" value="3">
52
52
  <label for="option3" class="u-display-ib">Option 3</label>
53
53
  </div>
54
54
  </div>
55
55
 
56
56
  <div class="push-md--bottom">
57
57
  <div>
58
- <input type="radio" name="radio" value="1" class="radio" checked>
59
- <label for="radio" class="u-display-ib">Option 1</label>
58
+ <input type="radio" id="radio1" name="radio" value="1" checked>
59
+ <label for="radio1" class="u-display-ib">Option 1</label>
60
60
  </div>
61
61
  <div>
62
- <input type="radio" name="radio" value="2" class="radio">
63
- <label for="radio" class="u-display-ib">Option 2</label>
62
+ <input type="radio" id="radio2" name="radio" value="2">
63
+ <label for="radio2" class="u-display-ib">Option 2</label>
64
64
  </div>
65
65
  <div>
66
- <input type="radio" name="radio" value="3" class="radio">
67
- <label for="radio" class="u-display-ib">Option 3</label>
66
+ <input type="radio" id="radio3" name="radio" value="3">
67
+ <label for="radio3" class="u-display-ib">Option 3</label>
68
68
  </div>
69
69
  </div>
70
70
  </div>
data/README.md CHANGED
@@ -91,11 +91,11 @@ Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Vari
91
91
  .block {
92
92
  color: $red-300;
93
93
 
94
- &__elem {
94
+ &__element {
95
95
  color: $red-400;
96
96
  }
97
97
 
98
- &--mod {
98
+ &--modifier {
99
99
  color: $red-500;
100
100
  }
101
101
  }
@@ -12,13 +12,10 @@ $radius-button: $rounded;
12
12
  --color-primary: #{$gray-900};
13
13
  --color-text: #{$gray-900};
14
14
  --color-focus-ring: #{rgba($gray-900, $opacity-50)};
15
-
16
- --image-bg-select: url('data:image/svg+xml,<svg viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path stroke="black" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M6 8l4 4 4-4"/></svg>');
17
- --image-checked-checkbox: url('data:image/svg+xml,<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><path d="M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z"/></svg>');
18
- --image-checked-radio: url('data:image/svg+xml,<svg viewBox="0 0 16 16" fill="white" xmlns="http://www.w3.org/2000/svg"><circle cx="8" cy="8" r="3"/></svg>');
19
15
  }
20
16
 
21
17
  html {
18
+ accent-color: var(--color-primary);
22
19
  background: var(--color-bg--main);
23
20
  color: var(--color-text);
24
21
  font-family: $font-family;
@@ -33,11 +30,6 @@ html {
33
30
  padding: $size-2 $size-4;
34
31
  cursor: pointer;
35
32
 
36
- &:disabled {
37
- pointer-events: none;
38
- opacity: $opacity-50;
39
- }
40
-
41
33
  &--primary {
42
34
  background-color: var(--color-primary);
43
35
  border-color: var(--color-primary);
@@ -54,6 +46,16 @@ html {
54
46
  background-color: $transparent;
55
47
  border-color: $transparent;
56
48
  }
49
+
50
+ &:focus {
51
+ box-shadow: ring($color: var(--color-focus-ring));
52
+ @include outline-none;
53
+ }
54
+
55
+ &:disabled {
56
+ pointer-events: none;
57
+ opacity: $opacity-50;
58
+ }
57
59
  }
58
60
 
59
61
  .input {
@@ -66,26 +68,10 @@ html {
66
68
  width: $w-full;
67
69
 
68
70
  &--select {
69
- background-image: var(--image-bg-select);
70
- background-position: right $size-2 center;
71
+ background-image: linear-gradient(45deg, transparent 49%, var(--color-primary) 51%), linear-gradient(135deg, var(--color-primary) 51%, transparent 49%);
72
+ background-position: calc(100% - 20px), calc(100% - 15px);
71
73
  background-repeat: no-repeat;
72
- background-size: auto $size-5;
73
- padding-right: $size-8;
74
- }
75
-
76
- &:focus {
77
- box-shadow: ring($color: var(--color-focus-ring));
78
- @include outline-none;
79
- }
80
- }
81
-
82
- .checkbox {
83
- border-radius: $rounded;
84
- @include input-selection(var(--color-primary));
85
-
86
- &:checked {
87
- background-image: var(--image-checked-checkbox);
88
- @include checked;
74
+ background-size: 5px 5px, 5px 5px;
89
75
  }
90
76
 
91
77
  &:focus {
@@ -94,17 +80,11 @@ html {
94
80
  }
95
81
  }
96
82
 
97
- .radio {
98
- border-radius: $rounded-full;
99
- @include input-selection(var(--color-primary));
100
-
101
- &:checked {
102
- background-image: var(--image-checked-radio);
103
- @include checked;
104
- }
83
+ input[type="checkbox"], input[type="radio"] {
84
+ transform: scale(1.2, 1.2);
105
85
 
106
86
  &:focus {
107
- box-shadow: ring($color: var(--color-focus-ring));
87
+ box-shadow: ring($width: 1.5px, $color: var(--color-focus-ring));
108
88
  @include outline-none;
109
89
  }
110
90
  }
@@ -13,36 +13,12 @@
13
13
  -moz-osx-font-smoothing: auto;
14
14
  }
15
15
 
16
- @mixin clearfix {
17
- &::after {
18
- display: block;
19
- clear: both;
20
- content: "";
21
- }
22
- }
23
-
24
16
  @mixin ellipsis {
25
17
  text-overflow: ellipsis;
26
18
  white-space: nowrap;
27
19
  overflow: hidden;
28
20
  }
29
21
 
30
- @mixin input-selection($color) {
31
- appearance: none;
32
- border-width: $border;
33
- color: $color;
34
- margin-bottom: -0.1rem;
35
- height: $size-4;
36
- width: $size-4;
37
- }
38
-
39
- @mixin checked {
40
- border-color: transparent;
41
- background-color: currentColor;
42
- background-position: center;
43
- background-repeat: no-repeat;
44
- }
45
-
46
22
  @mixin outline-none {
47
23
  outline: 2px solid transparent;
48
24
  outline-offset: 2px;
@@ -2,28 +2,28 @@
2
2
  display: flex;
3
3
  }
4
4
 
5
- .i-flex {
6
- display: inline-flex;
7
- }
8
-
9
5
  .flex--column {
10
6
  flex-direction: column;
11
7
  }
12
8
 
13
- .flex--centered {
14
- justify-content: center;
15
- }
16
-
17
9
  .flex--space-items {
18
10
  justify-content: space-between;
19
11
  }
20
12
 
13
+ .flex--wrap {
14
+ flex-wrap: wrap;
15
+ }
16
+
17
+ .flex--centered {
18
+ justify-content: center;
19
+ }
20
+
21
21
  .flex--align-center {
22
22
  align-items: center;
23
23
  }
24
24
 
25
- .flex--wrap {
26
- flex-wrap: wrap;
25
+ .i-flex {
26
+ display: inline-flex;
27
27
  }
28
28
 
29
29
  .flex-item--grow {
@@ -2,117 +2,82 @@
2
2
  @import "sass-zero/variables/effects";
3
3
  @import "sass-zero/mixins";
4
4
 
5
- .u-full-width {
6
- width: 100%;
7
- }
8
-
9
- .u-full-height {
10
- height:100%
11
- }
12
-
13
- .u-min-width {
14
- min-width: 0;
15
- }
16
-
17
- .u-disabled {
18
- pointer-events: none;
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;
5
+ .u-display-n {
6
+ display: none !important;
29
7
  }
30
8
 
31
- .u-unscrollable {
32
- overflow: hidden;
9
+ .u-display-b {
10
+ display: block;
33
11
  }
34
12
 
35
13
  .u-display-i {
36
14
  display: inline;
37
15
  }
38
16
 
39
- .u-display-b {
40
- display: block;
41
- }
42
-
43
17
  .u-display-ib {
44
18
  display: inline-block;
45
19
  }
46
20
 
47
- .u-display-n {
48
- display: none !important;
49
- }
50
-
51
21
  .u-visibility-hidden {
52
22
  visibility: hidden;
53
23
  }
54
24
 
55
- .u-pointer-events-n {
56
- pointer-events: none;
25
+ .u-hide {
26
+ display: none;
57
27
  }
58
28
 
59
- .u-margin-centered {
60
- margin-left: auto;
61
- margin-right: auto;
29
+ .u-float-l {
30
+ float: left;
62
31
  }
63
32
 
64
- .u-wrap {
65
- display: block;
33
+ .u-float-r {
34
+ float: right;
66
35
  }
67
36
 
68
37
  .u-nowrap {
69
38
  white-space: nowrap;
70
39
  }
71
40
 
72
- .u-clearfix {
73
- @include clearfix;
74
- }
75
-
76
- .u-float-l {
77
- float: left;
41
+ .u-full-width {
42
+ width: 100%;
78
43
  }
79
44
 
80
- .u-float-r {
81
- float: right;
45
+ .u-min-width {
46
+ min-width: 0;
82
47
  }
83
48
 
84
- .u-float-n {
85
- float: none;
49
+ .u-full-height {
50
+ height: 100%
86
51
  }
87
52
 
88
- .u-float-clear {
89
- clear: both;
53
+ .u-disabled {
54
+ pointer-events: none;
55
+ opacity: $opacity-30;
90
56
  }
91
57
 
92
- .u-float-clear-l {
93
- clear: left;
58
+ .u-off-screen {
59
+ position: absolute;
60
+ left: -9999em;
94
61
  }
95
62
 
96
- .u-float-clear-r {
97
- clear: right;
63
+ .u-overflow-auto {
64
+ overflow: auto;
98
65
  }
99
66
 
100
- .u-hide {
101
- display: none;
67
+ .u-overflow-hidden {
68
+ overflow: hidden;
102
69
  }
103
70
 
104
- .u-hide-focus {
105
- outline: none !important;
106
- }
71
+ @media (min-width: $breakpoint-sm) {
72
+ .u-show--inline\@sm {
73
+ display: inline;
74
+ }
107
75
 
108
- @media (max-width: $breakpoint-md - 1) {
109
- .u-hide\@small {
110
- display: none;
76
+ .u-show\@sm {
77
+ display: block;
111
78
  }
112
- }
113
79
 
114
- @media (min-width: $breakpoint-md) {
115
- .u-hide\@medium {
80
+ .u-hide\@sm {
116
81
  display: none;
117
82
  }
118
83
  }
@@ -14,28 +14,11 @@
14
14
  list-style: none;
15
15
  }
16
16
 
17
- .list--spaced > li + li {
18
- margin-top: $size-2;
19
- }
20
-
21
- .list--inside-bulleted {
22
- padding-left: $size-0;
23
- list-style-position: inside;
24
- }
25
-
26
- .list--ruled-top {
27
- border-top-width: $border;
28
- }
29
-
30
- .list--inline > li {
17
+ .list--inline li {
31
18
  display: inline-block;
19
+ vertical-align: middle;
32
20
  }
33
21
 
34
- .list--inline > li + li {
35
- margin-left: $size-2;
36
- }
37
-
38
- .list--ruled > li {
39
- padding: $size-4 $size-2;
40
- border-top-width: $border;
22
+ .list--dividers li:not(:last-child) {
23
+ border-bottom-width: $border;
41
24
  }
@@ -5,33 +5,24 @@
5
5
  // $size-map: ("xs": $size-1, "sm": $size-2, "md": $size-4, "lg": $size-6, "xl": $size-8, "2xl": $size-10, "3xl": $size-12);
6
6
  // *******************************************************************
7
7
  @each $scale, $size in $size-map {
8
- .pull-#{$scale} {
9
- margin: -$size !important;
10
- }
11
-
12
8
  .pull-#{$scale}--top {
13
- margin-top: -$size !important;
9
+ margin-top: $size * -1 !important;
14
10
  }
15
11
 
16
12
  .pull-#{$scale}--right {
17
- margin-right: -$size !important;
13
+ margin-right: $size * -1 !important;
18
14
  }
19
15
 
20
16
  .pull-#{$scale}--bottom {
21
- margin-bottom: -$size !important;
17
+ margin-bottom: $size * -1 !important;
22
18
  }
23
19
 
24
20
  .pull-#{$scale}--left {
25
- margin-left: -$size !important;
26
- }
27
-
28
- .pull-#{$scale}--ends {
29
- margin-top: -$size !important;
30
- margin-bottom: -$size !important;
21
+ margin-left: $size * -1 !important;
31
22
  }
32
23
 
33
24
  .pull-#{$scale}--sides {
34
- margin-right: -$size !important;
35
- margin-left: -$size !important;
25
+ margin-right: $size * -1 !important;
26
+ margin-left: $size * -1 !important;
36
27
  }
37
28
  }
@@ -4,6 +4,7 @@
4
4
 
5
5
  .txt--normal {
6
6
  font-weight: $font-normal !important;
7
+ font-style: normal !important;
7
8
  }
8
9
 
9
10
  .txt--bold {
@@ -22,6 +23,10 @@
22
23
  white-space: nowrap;
23
24
  }
24
25
 
26
+ .txt--wrap {
27
+ white-space: normal;
28
+ }
29
+
25
30
  .txt--break-words {
26
31
  word-wrap: break-word;
27
32
  }
@@ -1,5 +1,5 @@
1
1
  module Sass
2
2
  module Zero
3
- VERSION = "0.0.52"
3
+ VERSION = "0.0.56"
4
4
  end
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sass-zero",
3
- "version": "0.0.52",
3
+ "version": "0.0.56",
4
4
  "description": "A CSS framework for rapid UI development based on tailwindcss, miligram and BEM.",
5
5
  "homepage": "https://github.com/lazaronixon/sass-zero",
6
6
  "repository": "lazaronixon/sass-zero",
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-zero
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.52
4
+ version: 0.0.56
5
5
  platform: ruby
6
6
  authors:
7
7
  - lazaronixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-18 00:00:00.000000000 Z
11
+ date: 2022-01-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: