sass-zero 1.1.5 → 1.1.7
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.
- checksums.yaml +4 -4
- data/.sass-zero-references.scss +20 -21
- data/Gemfile.lock +1 -1
- data/README.md +73 -42
- data/app/assets/stylesheets/sass-zero/{mixins.scss → _mixins.scss} +9 -4
- data/app/assets/stylesheets/sass-zero/base.scss +363 -1
- data/app/assets/stylesheets/sass-zero/variables/{border.scss → _border.scss} +1 -1
- data/app/assets/stylesheets/sass-zero/variables/{breakpoints.scss → _breakpoints.scss} +1 -1
- data/app/assets/stylesheets/sass-zero/variables/{colors.scss → _colors.scss} +3 -1
- data/app/assets/stylesheets/sass-zero/variables/{effects.scss → _effects.scss} +1 -18
- data/app/assets/stylesheets/sass-zero/variables/{filters.scss → _filters.scss} +9 -9
- data/app/assets/stylesheets/sass-zero/variables/{flex.scss → _flex.scss} +4 -4
- data/lib/sass_zero/version.rb +1 -1
- metadata +32 -33
- data/app/assets/stylesheets/sass-zero/base/preflight.scss +0 -363
- /data/app/assets/stylesheets/sass-zero/{variables.scss → _variables.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{align.scss → _align.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{animation.scss → _animation.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{border.scss → _border.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{container.scss → _container.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{flex.scss → _flex.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{flush.scss → _flush.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{layout.scss → _layout.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{list.scss → _list.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{pad.scss → _pad.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{position.scss → _position.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{pull.scss → _pull.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{push.scss → _push.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{text.scss → _text.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/utilities/{unpad.scss → _unpad.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/variables/{grid.scss → _grid.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/variables/{height.scss → _height.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/variables/{sizing.scss → _sizing.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/variables/{transform.scss → _transform.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/variables/{transition.scss → _transition.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/variables/{typography.scss → _typography.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/variables/{width.scss → _width.scss} +0 -0
- /data/app/assets/stylesheets/sass-zero/variables/{zindex.scss → _zindex.scss} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 114ed05332fe9df3860360aadec6045faaa8e260fe8f67e0c013683929577b01
|
4
|
+
data.tar.gz: 72b2ab1ad8d57e93762ff9e314c0fb3139dcbd7d2fcab8e206a8c48628eea8b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1472582db52dba68bf6bde60c1cbe2146ada491d39d83271a3a24f8005e2a60b52e75d01a3bcd9066f89a13b40df228bf95219546173783e5cc1da5f6d96b89
|
7
|
+
data.tar.gz: bfd43f33caa510c7a675acb957c215dc74e3e95339f2da0a4937886bc5296004ae626bed236d428a6c007b5e32b3b0ad21879930b2e49da4a3a39065a16a18d1
|
data/.sass-zero-references.scss
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
// *******************************************************************
|
2
|
-
//
|
2
|
+
// Borders
|
3
3
|
// *******************************************************************
|
4
4
|
|
5
5
|
$rounded-none: 0;
|
@@ -19,7 +19,7 @@ $border-4: 4px;
|
|
19
19
|
$border-8: 8px;
|
20
20
|
|
21
21
|
// *******************************************************************
|
22
|
-
//
|
22
|
+
// Breakpoints
|
23
23
|
// *******************************************************************
|
24
24
|
|
25
25
|
$breakpoint-sm: 640px;
|
@@ -29,7 +29,7 @@ $breakpoint-xl: 1280px;
|
|
29
29
|
$breakpoint-2xl: 1536px;
|
30
30
|
|
31
31
|
// *******************************************************************
|
32
|
-
//
|
32
|
+
// Colors
|
33
33
|
// *******************************************************************
|
34
34
|
|
35
35
|
$transparent: transparent;
|
@@ -281,7 +281,7 @@ $blue-gray-800: #1e293b;
|
|
281
281
|
$blue-gray-900: #0f172a;
|
282
282
|
|
283
283
|
// *******************************************************************
|
284
|
-
//
|
284
|
+
// Effects
|
285
285
|
// *******************************************************************
|
286
286
|
|
287
287
|
$shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
@@ -309,10 +309,8 @@ $opacity-90: 0.9;
|
|
309
309
|
$opacity-95: 0.95;
|
310
310
|
$opacity-100: 1;
|
311
311
|
|
312
|
-
@function ring($width: 2px, $color: rgba($blue-500, 0.5), $offset-width: 0px, $offset-color: $white, $inset: false) {}
|
313
|
-
|
314
312
|
// *******************************************************************
|
315
|
-
//
|
313
|
+
// Filters
|
316
314
|
// *******************************************************************
|
317
315
|
|
318
316
|
$blur-none: blur(0);
|
@@ -375,13 +373,13 @@ $sepia-0: sepia(0);
|
|
375
373
|
$sepia: sepia(100%);
|
376
374
|
|
377
375
|
// *******************************************************************
|
378
|
-
//
|
376
|
+
// Flex
|
379
377
|
// *******************************************************************
|
380
378
|
|
381
|
-
$flex-1: 1 1 0%;
|
382
|
-
$flex-auto: 1 1 auto;
|
383
|
-
$flex-initial: 0 1 auto;
|
384
|
-
$flex-none: none;
|
379
|
+
$flex-1: 1 1 0%; // Allow grow and shrink, ignoring its initial size.
|
380
|
+
$flex-auto: 1 1 auto; // Allow grow and shrink, considering its initial size.
|
381
|
+
$flex-initial: 0 1 auto; // Allow shrink but not grow, considering its initial size.
|
382
|
+
$flex-none: none; // Prevent grow or shrink.
|
385
383
|
|
386
384
|
$flex-grow-0: 0;
|
387
385
|
$flex-grow: 1;
|
@@ -390,7 +388,7 @@ $flex-shrink-0: 0;
|
|
390
388
|
$flex-shrink: 1;
|
391
389
|
|
392
390
|
// *******************************************************************
|
393
|
-
//
|
391
|
+
// Grid
|
394
392
|
// *******************************************************************
|
395
393
|
|
396
394
|
$grid-cols-1: repeat(1, minmax(0, 1fr));
|
@@ -450,7 +448,7 @@ $auto-rows-max: max-content;
|
|
450
448
|
$auto-rows-fr: minmax(0, 1fr);
|
451
449
|
|
452
450
|
// *******************************************************************
|
453
|
-
//
|
451
|
+
// Height
|
454
452
|
// *******************************************************************
|
455
453
|
|
456
454
|
$h-auto: auto;
|
@@ -489,7 +487,7 @@ $max-h-max: max-content;
|
|
489
487
|
$max-h-fit: fit-content;
|
490
488
|
|
491
489
|
// *******************************************************************
|
492
|
-
//
|
490
|
+
// Sizing
|
493
491
|
// *******************************************************************
|
494
492
|
|
495
493
|
$size-px: 1px;
|
@@ -525,7 +523,7 @@ $size-80: 20rem;
|
|
525
523
|
$size-96: 24rem;
|
526
524
|
|
527
525
|
// *******************************************************************
|
528
|
-
//
|
526
|
+
// Transform
|
529
527
|
// *******************************************************************
|
530
528
|
|
531
529
|
$scale-0: 0;
|
@@ -565,7 +563,7 @@ $skew-6: 6deg;
|
|
565
563
|
$skew-12: 12deg;
|
566
564
|
|
567
565
|
// *******************************************************************
|
568
|
-
//
|
566
|
+
// Transition
|
569
567
|
// *******************************************************************
|
570
568
|
|
571
569
|
$transition-none: none;
|
@@ -600,7 +598,7 @@ $ease-out: cubic-bezier(0, 0, 0.2, 1);
|
|
600
598
|
$ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
|
601
599
|
|
602
600
|
// *******************************************************************
|
603
|
-
//
|
601
|
+
// Typography
|
604
602
|
// *******************************************************************
|
605
603
|
|
606
604
|
$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";
|
@@ -654,7 +652,7 @@ $tracking-wider: 0.05em;
|
|
654
652
|
$tracking-widest: 0.1em;
|
655
653
|
|
656
654
|
// *******************************************************************
|
657
|
-
//
|
655
|
+
// Width
|
658
656
|
// *******************************************************************
|
659
657
|
|
660
658
|
$w-auto: auto;
|
@@ -715,7 +713,7 @@ $max-w-max: max-content;
|
|
715
713
|
$max-w-fit: fit-content;
|
716
714
|
|
717
715
|
// *******************************************************************
|
718
|
-
//
|
716
|
+
// Zindex
|
719
717
|
// *******************************************************************
|
720
718
|
|
721
719
|
$z-auto: auto;
|
@@ -727,7 +725,7 @@ $z-40: 40;
|
|
727
725
|
$z-50: 50;
|
728
726
|
|
729
727
|
// *******************************************************************
|
730
|
-
//
|
728
|
+
// Mixins
|
731
729
|
// *******************************************************************
|
732
730
|
|
733
731
|
@mixin antialiased {}
|
@@ -736,3 +734,4 @@ $z-50: 50;
|
|
736
734
|
@mixin outline-none {}
|
737
735
|
@mixin progress-bar {}
|
738
736
|
@mixin make-container($padding-x: $size-4) {}
|
737
|
+
@mixin gradient($direction, $from, $to: transparent, $via: null) {}
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -21,73 +21,80 @@ Add these lines to your application.css:
|
|
21
21
|
|
22
22
|
### Variables
|
23
23
|
|
24
|
-
|
25
|
-
|
26
|
-
- [
|
27
|
-
- [
|
28
|
-
- [
|
29
|
-
- [Flex](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/
|
30
|
-
- [Grid](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/
|
31
|
-
- [
|
32
|
-
- [
|
33
|
-
- [
|
34
|
-
- [
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
24
|
+
#### Essential
|
25
|
+
|
26
|
+
- [Border](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_border.scss)
|
27
|
+
- [Colors](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_colors.scss)
|
28
|
+
- [Effects](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_effects.scss)
|
29
|
+
- [Flex](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_flex.scss)
|
30
|
+
- [Grid](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_grid.scss)
|
31
|
+
- [Height](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_height.scss)
|
32
|
+
- [Sizing](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_sizing.scss)
|
33
|
+
- [Typography](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_typography.scss)
|
34
|
+
- [Width](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_width.scss)
|
35
|
+
|
36
|
+
#### Others
|
37
|
+
|
38
|
+
- [Breakpoints](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_breakpoints.scss)
|
39
|
+
- [Filters](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_filters.scss)
|
40
|
+
- [Transform](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_transform.scss)
|
41
|
+
- [Transition](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_transition.scss)
|
42
|
+
- [Z-Index](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/_zindex.scss)
|
43
|
+
- [Mixins](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/_mixins.scss)
|
39
44
|
|
40
45
|
### Utility classes
|
41
46
|
|
42
|
-
- [Align](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/
|
43
|
-
- [Animation](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/
|
44
|
-
- [Border](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/
|
45
|
-
- [Container](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/
|
46
|
-
- [
|
47
|
-
- [
|
48
|
-
- [
|
49
|
-
- [
|
50
|
-
- [
|
51
|
-
- [
|
52
|
-
- [
|
53
|
-
- [
|
54
|
-
- [Position Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/
|
55
|
-
- [
|
56
|
-
|
57
|
-
### Breadboard
|
58
|
-
|
59
|
-
- [Breadboard](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/breadboard.scss)
|
60
|
-
- [Example](https://github.com/lazaronixon/sass-zero/blob/master/example.html)
|
47
|
+
- [Align](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_align.scss)
|
48
|
+
- [Animation](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_animation.scss)
|
49
|
+
- [Border](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_border.scss)
|
50
|
+
- [Container](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_container.scss)
|
51
|
+
- [Flex Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_flex.scss)
|
52
|
+
- [Layout Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_layout.scss)
|
53
|
+
- [List Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_list.scss)
|
54
|
+
- [Margin Pull](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_pull.scss)
|
55
|
+
- [Margin Push](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_push.scss)
|
56
|
+
- [Margin Reset](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_flush.scss)
|
57
|
+
- [Padding](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_pad.scss)
|
58
|
+
- [Padding Reset](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_unpad.scss)
|
59
|
+
- [Position Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_position.scss)
|
60
|
+
- [Text Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/_text.scss)
|
61
61
|
|
62
62
|
## Breadboard
|
63
63
|
|
64
64
|
This is an optional black-and-white theme that you can use as design foundation.
|
65
65
|
|
66
|
-
|
66
|
+
- [Breadboard](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/breadboard.scss)
|
67
|
+
- [Screenshot](https://nixo-etc.s3-sa-east-1.amazonaws.com/sass-zero-screenshot-3.png)
|
68
|
+
- [Example](https://github.com/lazaronixon/sass-zero/blob/master/example.html)
|
67
69
|
|
68
70
|
## Using variables
|
69
71
|
|
70
|
-
Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Variables](https://github.com/lazaronixon/sass-zero/blob/master/vendor/assets/stylesheets/sass-zero/
|
72
|
+
Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Variables](https://github.com/lazaronixon/sass-zero/blob/master/vendor/assets/stylesheets/sass-zero/_variables.scss):
|
71
73
|
|
72
74
|
```scss
|
73
75
|
@import "sass-zero/variables";
|
74
76
|
|
75
77
|
.block {
|
76
|
-
color: $
|
78
|
+
color: $rose-500;
|
79
|
+
|
80
|
+
&__element_one {
|
81
|
+
color: $fuchsia-500;
|
82
|
+
}
|
77
83
|
|
78
|
-
&
|
79
|
-
color: $
|
84
|
+
&__element_two {
|
85
|
+
color: $purple-500;
|
80
86
|
}
|
81
87
|
|
82
88
|
&--modifier {
|
83
|
-
color: $
|
89
|
+
color: $violet-500;
|
84
90
|
}
|
85
91
|
}
|
86
92
|
```
|
87
93
|
|
88
94
|
```html
|
89
95
|
<div class="block block--modifier">
|
90
|
-
<div class="
|
96
|
+
<div class="block__element_one" />
|
97
|
+
<div class="block__element_two" />
|
91
98
|
</div>
|
92
99
|
```
|
93
100
|
|
@@ -98,10 +105,34 @@ Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Vari
|
|
98
105
|
1. Copy `.sass-zero-references.scss` to the root of your application.
|
99
106
|
2. Install [SCSS IntelliSense](https://marketplace.visualstudio.com/items?itemName=mrmlnc.vscode-scss).
|
100
107
|
|
101
|
-
###
|
108
|
+
### Pulsar/TextMate
|
102
109
|
|
103
110
|
1. Copy `.sass-zero-references.scss` to the root of your application.
|
104
111
|
|
112
|
+
## Customization
|
113
|
+
|
114
|
+
### Breadboard
|
115
|
+
|
116
|
+
When you are sure about the style of your application you should make a copy of `breadboard.scss` and customize fonts, borders, and colors.
|
117
|
+
|
118
|
+
You will need to remove the breadboard from application.css:
|
119
|
+
|
120
|
+
```css
|
121
|
+
*= require sass-zero/base
|
122
|
+
*= require sass-zero/utilities
|
123
|
+
```
|
124
|
+
|
125
|
+
### Variables
|
126
|
+
|
127
|
+
Instead of using the default variables you can add or change variables, I recommend you make a copy of `_variables.scss` to your application and change it as you want.
|
128
|
+
|
129
|
+
```scss
|
130
|
+
@import "sass-zero/variables/border";
|
131
|
+
@import "sass-zero/variables/breakpoints";
|
132
|
+
@import "design-system/colors";
|
133
|
+
...
|
134
|
+
```
|
135
|
+
|
105
136
|
## Development
|
106
137
|
|
107
138
|
To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
@@ -1,7 +1,4 @@
|
|
1
|
-
@import "variables/border";
|
2
|
-
@import "variables/effects";
|
3
1
|
@import "variables/sizing";
|
4
|
-
@import "variables/zindex";
|
5
2
|
|
6
3
|
@mixin antialiased {
|
7
4
|
-webkit-font-smoothing: antialiased;
|
@@ -39,5 +36,13 @@
|
|
39
36
|
padding-right: $padding-x;
|
40
37
|
padding-left: $padding-x;
|
41
38
|
margin-right: auto;
|
42
|
-
margin-left:
|
39
|
+
margin-left: auto;
|
40
|
+
}
|
41
|
+
|
42
|
+
@mixin gradient($direction, $from, $to: transparent, $via: null) {
|
43
|
+
@if $via {
|
44
|
+
background-image: linear-gradient($direction, $from, $via, $to);
|
45
|
+
} @else {
|
46
|
+
background-image: linear-gradient($direction, $from, $to);
|
47
|
+
}
|
43
48
|
}
|