sass-zero 1.1.6 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.sass-zero-references.scss +15 -25
  3. data/Gemfile.lock +1 -1
  4. data/README.md +78 -42
  5. data/app/assets/stylesheets/sass-zero/{mixins.scss → _mixins.scss} +1 -4
  6. data/app/assets/stylesheets/sass-zero/base.scss +363 -1
  7. data/app/assets/stylesheets/sass-zero/variables/{breakpoints.scss → _breakpoints.scss} +5 -5
  8. data/app/assets/stylesheets/sass-zero/variables/{grid.scss → _grid.scss} +0 -20
  9. data/app/assets/stylesheets/sass-zero/variables/{typography.scss → _typography.scss} +3 -3
  10. data/lib/sass_zero/version.rb +1 -1
  11. data/sass-zero.gemspec +1 -1
  12. metadata +33 -35
  13. data/app/assets/stylesheets/sass-zero/base/preflight.scss +0 -363
  14. /data/app/assets/stylesheets/sass-zero/{variables.scss → _variables.scss} +0 -0
  15. /data/app/assets/stylesheets/sass-zero/utilities/{align.scss → _align.scss} +0 -0
  16. /data/app/assets/stylesheets/sass-zero/utilities/{animation.scss → _animation.scss} +0 -0
  17. /data/app/assets/stylesheets/sass-zero/utilities/{border.scss → _border.scss} +0 -0
  18. /data/app/assets/stylesheets/sass-zero/utilities/{container.scss → _container.scss} +0 -0
  19. /data/app/assets/stylesheets/sass-zero/utilities/{flex.scss → _flex.scss} +0 -0
  20. /data/app/assets/stylesheets/sass-zero/utilities/{flush.scss → _flush.scss} +0 -0
  21. /data/app/assets/stylesheets/sass-zero/utilities/{layout.scss → _layout.scss} +0 -0
  22. /data/app/assets/stylesheets/sass-zero/utilities/{list.scss → _list.scss} +0 -0
  23. /data/app/assets/stylesheets/sass-zero/utilities/{pad.scss → _pad.scss} +0 -0
  24. /data/app/assets/stylesheets/sass-zero/utilities/{position.scss → _position.scss} +0 -0
  25. /data/app/assets/stylesheets/sass-zero/utilities/{pull.scss → _pull.scss} +0 -0
  26. /data/app/assets/stylesheets/sass-zero/utilities/{push.scss → _push.scss} +0 -0
  27. /data/app/assets/stylesheets/sass-zero/utilities/{text.scss → _text.scss} +0 -0
  28. /data/app/assets/stylesheets/sass-zero/utilities/{unpad.scss → _unpad.scss} +0 -0
  29. /data/app/assets/stylesheets/sass-zero/variables/{border.scss → _border.scss} +0 -0
  30. /data/app/assets/stylesheets/sass-zero/variables/{colors.scss → _colors.scss} +0 -0
  31. /data/app/assets/stylesheets/sass-zero/variables/{effects.scss → _effects.scss} +0 -0
  32. /data/app/assets/stylesheets/sass-zero/variables/{filters.scss → _filters.scss} +0 -0
  33. /data/app/assets/stylesheets/sass-zero/variables/{flex.scss → _flex.scss} +0 -0
  34. /data/app/assets/stylesheets/sass-zero/variables/{height.scss → _height.scss} +0 -0
  35. /data/app/assets/stylesheets/sass-zero/variables/{sizing.scss → _sizing.scss} +0 -0
  36. /data/app/assets/stylesheets/sass-zero/variables/{transform.scss → _transform.scss} +0 -0
  37. /data/app/assets/stylesheets/sass-zero/variables/{transition.scss → _transition.scss} +0 -0
  38. /data/app/assets/stylesheets/sass-zero/variables/{width.scss → _width.scss} +0 -0
  39. /data/app/assets/stylesheets/sass-zero/variables/{zindex.scss → _zindex.scss} +0 -0
@@ -1 +1,363 @@
1
- @import "base/preflight";
1
+ @import "variables/colors";
2
+ @import "variables/typography";
3
+
4
+ /*
5
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
6
+ 2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
7
+ */
8
+
9
+ *,
10
+ ::before,
11
+ ::after {
12
+ box-sizing: border-box; /* 1 */
13
+ border-width: 0; /* 2 */
14
+ border-style: solid; /* 2 */
15
+ border-color: $gray-200; /* 2 */
16
+ }
17
+
18
+ ::before,
19
+ ::after {
20
+ --tw-content: '';
21
+ }
22
+
23
+ /*
24
+ 1. Use a consistent sensible line-height in all browsers.
25
+ 2. Prevent adjustments of font size after orientation changes in iOS.
26
+ 3. Use a more readable tab size.
27
+ 4. Use the user's configured `sans` font-family by default.
28
+ */
29
+
30
+ html {
31
+ line-height: 1.5; /* 1 */
32
+ -webkit-text-size-adjust: 100%; /* 2 */
33
+ -moz-tab-size: 4; /* 3 */
34
+ tab-size: 4; /* 3 */
35
+ font-family: $font-sans; /* 4 */
36
+ }
37
+
38
+ /*
39
+ 1. Remove the margin in all browsers.
40
+ 2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
41
+ */
42
+
43
+ body {
44
+ margin: 0; /* 1 */
45
+ line-height: inherit; /* 2 */
46
+ }
47
+
48
+ /*
49
+ 1. Add the correct height in Firefox.
50
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
51
+ 3. Ensure horizontal rules are visible by default.
52
+ */
53
+
54
+ hr {
55
+ height: 0; /* 1 */
56
+ color: inherit; /* 2 */
57
+ border-top-width: 1px; /* 3 */
58
+ }
59
+
60
+ /*
61
+ Add the correct text decoration in Chrome, Edge, and Safari.
62
+ */
63
+
64
+ abbr:where([title]) {
65
+ text-decoration: underline dotted;
66
+ }
67
+
68
+ /*
69
+ Remove the default font size and weight for headings.
70
+ */
71
+
72
+ h1,
73
+ h2,
74
+ h3,
75
+ h4,
76
+ h5,
77
+ h6 {
78
+ font-size: inherit;
79
+ font-weight: inherit;
80
+ }
81
+
82
+ /*
83
+ Reset links to optimize for opt-in styling instead of opt-out.
84
+ */
85
+
86
+ a {
87
+ color: inherit;
88
+ text-decoration: inherit;
89
+ }
90
+
91
+ /*
92
+ Add the correct font weight in Edge and Safari.
93
+ */
94
+
95
+ b,
96
+ strong {
97
+ font-weight: bolder;
98
+ }
99
+
100
+ /*
101
+ 1. Use the user's configured `mono` font family by default.
102
+ 2. Correct the odd `em` font sizing in all browsers.
103
+ */
104
+
105
+ code,
106
+ kbd,
107
+ samp,
108
+ pre {
109
+ font-family: $font-mono; /* 1 */
110
+ font-size: 1em; /* 2 */
111
+ }
112
+
113
+ /*
114
+ Add the correct font size in all browsers.
115
+ */
116
+
117
+ small {
118
+ font-size: 80%;
119
+ }
120
+
121
+ /*
122
+ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
123
+ */
124
+
125
+ sub,
126
+ sup {
127
+ font-size: 75%;
128
+ line-height: 0;
129
+ position: relative;
130
+ vertical-align: baseline;
131
+ }
132
+
133
+ sub {
134
+ bottom: -0.25em;
135
+ }
136
+
137
+ sup {
138
+ top: -0.5em;
139
+ }
140
+
141
+ /*
142
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
143
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
144
+ 3. Remove gaps between table borders by default.
145
+ */
146
+
147
+ table {
148
+ text-indent: 0; /* 1 */
149
+ border-color: inherit; /* 2 */
150
+ border-collapse: collapse; /* 3 */
151
+ }
152
+
153
+ /*
154
+ 1. Change the font styles in all browsers.
155
+ 2. Remove the margin in Firefox and Safari.
156
+ 3. Remove default padding in all browsers.
157
+ */
158
+
159
+ button,
160
+ input,
161
+ optgroup,
162
+ select,
163
+ textarea {
164
+ font-family: inherit; /* 1 */
165
+ font-size: 100%; /* 1 */
166
+ font-weight: inherit; /* 1 */
167
+ line-height: inherit; /* 1 */
168
+ color: inherit; /* 1 */
169
+ margin: 0; /* 2 */
170
+ padding: 0; /* 3 */
171
+ }
172
+
173
+ /*
174
+ Remove the inheritance of text transform in Edge and Firefox.
175
+ */
176
+
177
+ button,
178
+ select {
179
+ text-transform: none;
180
+ }
181
+
182
+ /*
183
+ 1. Correct the inability to style clickable types in iOS and Safari.
184
+ 2. Remove default button styles.
185
+ */
186
+
187
+ button,
188
+ [type='button'],
189
+ [type='reset'],
190
+ [type='submit'] {
191
+ -webkit-appearance: button; /* 1 */
192
+ background-color: transparent; /* 2 */
193
+ background-image: none; /* 2 */
194
+ }
195
+
196
+ /*
197
+ Use the modern Firefox focus style for all focusable elements.
198
+ */
199
+
200
+ :-moz-focusring {
201
+ outline: auto;
202
+ }
203
+
204
+ /*
205
+ Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
206
+ */
207
+
208
+ :-moz-ui-invalid {
209
+ box-shadow: none;
210
+ }
211
+
212
+ /*
213
+ Add the correct vertical alignment in Chrome and Firefox.
214
+ */
215
+
216
+ progress {
217
+ vertical-align: baseline;
218
+ }
219
+
220
+ /*
221
+ Correct the cursor style of increment and decrement buttons in Safari.
222
+ */
223
+
224
+ ::-webkit-inner-spin-button,
225
+ ::-webkit-outer-spin-button {
226
+ height: auto;
227
+ }
228
+
229
+ /*
230
+ 1. Correct the odd appearance in Chrome and Safari.
231
+ 2. Correct the outline style in Safari.
232
+ */
233
+
234
+ [type='search'] {
235
+ -webkit-appearance: textfield; /* 1 */
236
+ outline-offset: -2px; /* 2 */
237
+ }
238
+
239
+ /*
240
+ Remove the inner padding in Chrome and Safari on macOS.
241
+ */
242
+
243
+ ::-webkit-search-decoration {
244
+ -webkit-appearance: none;
245
+ }
246
+
247
+ /*
248
+ 1. Correct the inability to style clickable types in iOS and Safari.
249
+ 2. Change font properties to `inherit` in Safari.
250
+ */
251
+
252
+ ::-webkit-file-upload-button {
253
+ -webkit-appearance: button; /* 1 */
254
+ font: inherit; /* 2 */
255
+ }
256
+
257
+ /*
258
+ Add the correct display in Chrome and Safari.
259
+ */
260
+
261
+ summary {
262
+ display: list-item;
263
+ }
264
+
265
+ /*
266
+ Removes the default spacing and border for appropriate elements.
267
+ */
268
+
269
+ blockquote,
270
+ dl,
271
+ dd,
272
+ h1,
273
+ h2,
274
+ h3,
275
+ h4,
276
+ h5,
277
+ h6,
278
+ hr,
279
+ figure,
280
+ p,
281
+ pre {
282
+ margin: 0;
283
+ }
284
+
285
+ fieldset {
286
+ margin: 0;
287
+ padding: 0;
288
+ }
289
+
290
+ legend {
291
+ padding: 0;
292
+ }
293
+
294
+ ol,
295
+ ul,
296
+ menu {
297
+ list-style: none;
298
+ margin: 0;
299
+ padding: 0;
300
+ }
301
+
302
+ /*
303
+ Prevent resizing textareas horizontally by default.
304
+ */
305
+
306
+ textarea {
307
+ resize: vertical;
308
+ }
309
+
310
+ /*
311
+ 1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
312
+ 2. Set the default placeholder color to the user's configured gray 400 color.
313
+ */
314
+
315
+ input::placeholder,
316
+ textarea::placeholder {
317
+ opacity: 1; /* 1 */
318
+ color: $gray-400; /* 2 */
319
+ }
320
+
321
+ /*
322
+ Set the default cursor for buttons.
323
+ */
324
+
325
+ button,
326
+ [role="button"] {
327
+ cursor: pointer;
328
+ }
329
+
330
+ /*
331
+ Make sure disabled buttons don't get the pointer cursor.
332
+ */
333
+ :disabled {
334
+ cursor: default;
335
+ }
336
+
337
+ /*
338
+ 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
339
+ 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
340
+ This can trigger a poorly considered lint error in some tools but is included by design.
341
+ */
342
+
343
+ img,
344
+ svg,
345
+ video,
346
+ canvas,
347
+ audio,
348
+ iframe,
349
+ embed,
350
+ object {
351
+ display: block; /* 1 */
352
+ vertical-align: middle; /* 2 */
353
+ }
354
+
355
+ /*
356
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
357
+ */
358
+
359
+ img,
360
+ video {
361
+ max-width: 100%;
362
+ height: auto;
363
+ }
@@ -3,8 +3,8 @@
3
3
  // Five breakpoints inspired by common device resolutions.
4
4
  // @media (min-width: $breakpoint-md) { }
5
5
  // *******************************************************************
6
- $breakpoint-sm: 640px;
7
- $breakpoint-md: 768px;
8
- $breakpoint-lg: 1024px;
9
- $breakpoint-xl: 1280px;
10
- $breakpoint-2xl: 1536px;
6
+ $breakpoint-sm: 640px !default;
7
+ $breakpoint-md: 768px !default;
8
+ $breakpoint-lg: 1024px !default;
9
+ $breakpoint-xl: 1280px !default;
10
+ $breakpoint-2xl: 1536px !default;
@@ -63,23 +63,3 @@ $row-span-4: span 4 / span 4;
63
63
  $row-span-5: span 5 / span 5;
64
64
  $row-span-6: span 6 / span 6;
65
65
  $row-span-full: calc(1 / -1);
66
-
67
- // *******************************************************************
68
- // Grid Auto Columns
69
- // Variables for controlling the size of implicitly-created grid columns.
70
- // grid-auto-columns: $auto-cols-auto;
71
- // *******************************************************************
72
- $auto-cols-auto: auto;
73
- $auto-cols-min: min-content;
74
- $auto-cols-max: max-content;
75
- $auto-cols-fr: minmax(0, 1fr);
76
-
77
- // *******************************************************************
78
- // Grid Auto Rows
79
- // Variables for controlling the size of implicitly-created grid rows.
80
- // grid-auto-rows: $auto-rows-auto;
81
- // *******************************************************************
82
- $auto-rows-auto: auto;
83
- $auto-rows-min: min-content;
84
- $auto-rows-max: max-content;
85
- $auto-rows-fr: minmax(0, 1fr);
@@ -3,9 +3,9 @@
3
3
  // Variables for controlling the font family of an element.
4
4
  // font-family: $font-sans;
5
5
  // *******************************************************************
6
- $font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
7
- $font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif;
8
- $font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
6
+ $font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji" !default;
7
+ $font-serif: ui-serif, Georgia, Cambria, "Times New Roman", Times, serif !default;
8
+ $font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !default;
9
9
 
10
10
  // *******************************************************************
11
11
  // Font Size
@@ -1,5 +1,5 @@
1
1
  module Sass
2
2
  module Zero
3
- VERSION = "1.1.6"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
data/sass-zero.gemspec CHANGED
@@ -5,7 +5,7 @@ Gem::Specification.new do |spec|
5
5
  spec.version = Sass::Zero::VERSION
6
6
  spec.authors = ["lazaronixon"]
7
7
  spec.email = ["lazaronixon@hotmail.com"]
8
- spec.summary = "A CSS framework for rapid UI development based on tailwindcss, miligram and BEM."
8
+ spec.summary = "A CSS framework for custom UI development."
9
9
  spec.homepage = "http://github.com/lazaronixon/sass-zero"
10
10
  spec.license = "MIT"
11
11
 
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: 1.1.6
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - lazaronixon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-04 00:00:00.000000000 Z
11
+ date: 2023-07-07 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -25,40 +25,39 @@ files:
25
25
  - Gemfile.lock
26
26
  - README.md
27
27
  - Rakefile
28
+ - app/assets/stylesheets/sass-zero/_mixins.scss
29
+ - app/assets/stylesheets/sass-zero/_variables.scss
28
30
  - app/assets/stylesheets/sass-zero/base.scss
29
- - app/assets/stylesheets/sass-zero/base/preflight.scss
30
31
  - app/assets/stylesheets/sass-zero/breadboard.scss
31
- - app/assets/stylesheets/sass-zero/mixins.scss
32
32
  - app/assets/stylesheets/sass-zero/utilities.scss
33
- - app/assets/stylesheets/sass-zero/utilities/align.scss
34
- - app/assets/stylesheets/sass-zero/utilities/animation.scss
35
- - app/assets/stylesheets/sass-zero/utilities/border.scss
36
- - app/assets/stylesheets/sass-zero/utilities/container.scss
37
- - app/assets/stylesheets/sass-zero/utilities/flex.scss
38
- - app/assets/stylesheets/sass-zero/utilities/flush.scss
39
- - app/assets/stylesheets/sass-zero/utilities/layout.scss
40
- - app/assets/stylesheets/sass-zero/utilities/list.scss
41
- - app/assets/stylesheets/sass-zero/utilities/pad.scss
42
- - app/assets/stylesheets/sass-zero/utilities/position.scss
43
- - app/assets/stylesheets/sass-zero/utilities/pull.scss
44
- - app/assets/stylesheets/sass-zero/utilities/push.scss
45
- - app/assets/stylesheets/sass-zero/utilities/text.scss
46
- - app/assets/stylesheets/sass-zero/utilities/unpad.scss
47
- - app/assets/stylesheets/sass-zero/variables.scss
48
- - app/assets/stylesheets/sass-zero/variables/border.scss
49
- - app/assets/stylesheets/sass-zero/variables/breakpoints.scss
50
- - app/assets/stylesheets/sass-zero/variables/colors.scss
51
- - app/assets/stylesheets/sass-zero/variables/effects.scss
52
- - app/assets/stylesheets/sass-zero/variables/filters.scss
53
- - app/assets/stylesheets/sass-zero/variables/flex.scss
54
- - app/assets/stylesheets/sass-zero/variables/grid.scss
55
- - app/assets/stylesheets/sass-zero/variables/height.scss
56
- - app/assets/stylesheets/sass-zero/variables/sizing.scss
57
- - app/assets/stylesheets/sass-zero/variables/transform.scss
58
- - app/assets/stylesheets/sass-zero/variables/transition.scss
59
- - app/assets/stylesheets/sass-zero/variables/typography.scss
60
- - app/assets/stylesheets/sass-zero/variables/width.scss
61
- - app/assets/stylesheets/sass-zero/variables/zindex.scss
33
+ - app/assets/stylesheets/sass-zero/utilities/_align.scss
34
+ - app/assets/stylesheets/sass-zero/utilities/_animation.scss
35
+ - app/assets/stylesheets/sass-zero/utilities/_border.scss
36
+ - app/assets/stylesheets/sass-zero/utilities/_container.scss
37
+ - app/assets/stylesheets/sass-zero/utilities/_flex.scss
38
+ - app/assets/stylesheets/sass-zero/utilities/_flush.scss
39
+ - app/assets/stylesheets/sass-zero/utilities/_layout.scss
40
+ - app/assets/stylesheets/sass-zero/utilities/_list.scss
41
+ - app/assets/stylesheets/sass-zero/utilities/_pad.scss
42
+ - app/assets/stylesheets/sass-zero/utilities/_position.scss
43
+ - app/assets/stylesheets/sass-zero/utilities/_pull.scss
44
+ - app/assets/stylesheets/sass-zero/utilities/_push.scss
45
+ - app/assets/stylesheets/sass-zero/utilities/_text.scss
46
+ - app/assets/stylesheets/sass-zero/utilities/_unpad.scss
47
+ - app/assets/stylesheets/sass-zero/variables/_border.scss
48
+ - app/assets/stylesheets/sass-zero/variables/_breakpoints.scss
49
+ - app/assets/stylesheets/sass-zero/variables/_colors.scss
50
+ - app/assets/stylesheets/sass-zero/variables/_effects.scss
51
+ - app/assets/stylesheets/sass-zero/variables/_filters.scss
52
+ - app/assets/stylesheets/sass-zero/variables/_flex.scss
53
+ - app/assets/stylesheets/sass-zero/variables/_grid.scss
54
+ - app/assets/stylesheets/sass-zero/variables/_height.scss
55
+ - app/assets/stylesheets/sass-zero/variables/_sizing.scss
56
+ - app/assets/stylesheets/sass-zero/variables/_transform.scss
57
+ - app/assets/stylesheets/sass-zero/variables/_transition.scss
58
+ - app/assets/stylesheets/sass-zero/variables/_typography.scss
59
+ - app/assets/stylesheets/sass-zero/variables/_width.scss
60
+ - app/assets/stylesheets/sass-zero/variables/_zindex.scss
62
61
  - example.html
63
62
  - lib/sass-zero.rb
64
63
  - lib/sass_zero.rb
@@ -86,6 +85,5 @@ requirements: []
86
85
  rubygems_version: 3.3.7
87
86
  signing_key:
88
87
  specification_version: 4
89
- summary: A CSS framework for rapid UI development based on tailwindcss, miligram and
90
- BEM.
88
+ summary: A CSS framework for custom UI development.
91
89
  test_files: []