sass-zero 0.0.15 → 0.0.16
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/README.md +46 -37
- data/app/assets/stylesheets/sass-zero/base/breadboard.scss +11 -10
- data/lib/sass/zero/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c28fb1cfc92cea251c2e6c5ca5f45057744151bff8d0e20e9931d3ee7dd325d
|
4
|
+
data.tar.gz: b42892bb9448cf55e25e14eceefd5c6ccc629b15bdb91d06a075722e4a3df81e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3db2f05373c83d233c362e399e717f089e7517ed2a8c1e6274a5606043865aa3039e071b795154d45619b737f5c950150de041fe9a27c615dd5ce644d92be5d2
|
7
|
+
data.tar.gz: b0d676cd0a8f8610ad4d47ffb4c4928a43aa296c422c3c68dd7a2bcb4333d0b325ee1664f59146ee465fcf5d91c97903b05cbfe12c8a89a3fde8d61b39f31b5d
|
data/README.md
CHANGED
@@ -2,11 +2,7 @@
|
|
2
2
|
|
3
3
|
SASS-ZERO is a css framework that brings concepts from [tailwindcss](https://tailwindcss.com) and [milligram](https://milligram.io) but with ideas from [BEM](http://getbem.com/naming), [Refactoring UI](https://refactoringui.com/book) and [Shape UP](https://basecamp.com/shapeup).
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
"Instead of hand-picking values from a limitless pool any time you need to make a decision, start with a smaller set of options." - [Refactoring UI](https://refactoringui.com/book).
|
8
|
-
|
9
|
-
SASS-ZERO use font, color, spacing, border and etc from [tailwindcss](https://tailwindcss.com) but instead the utility-first approach we use [sass variables](https://sass-lang.com/documentation/variables).
|
5
|
+

|
10
6
|
|
11
7
|
### Milligram
|
12
8
|
|
@@ -14,32 +10,53 @@ SASS-ZERO use font, color, spacing, border and etc from [tailwindcss](https://ta
|
|
14
10
|
|
15
11
|
SASS-ZERO comes with a basic grayscale theme that help you to bring your ideas to life, questions about font, color, spacing and layout can be resolved after the raw affordances.
|
16
12
|
|
13
|
+
### Tailwindcss
|
14
|
+
|
15
|
+
"Instead of hand-picking values from a limitless pool any time you need to make a decision, start with a smaller set of options." - [Refactoring UI](https://refactoringui.com/book).
|
16
|
+
|
17
|
+
SASS-ZERO use font, color, spacing, border and etc from [tailwindcss](https://tailwindcss.com) but instead the utility-first approach we use [sass variables](https://sass-lang.com/documentation/variables).
|
18
|
+
|
17
19
|
### BEM
|
18
20
|
|
19
21
|
I believe that html is code, therefore it should be named and scoped as well. Developers need to be good with naming things, css is another oportunity to practice.
|
20
22
|
|
23
|
+
### Shape UP
|
24
|
+
|
25
|
+
SASS-ZERO comes with a implict flow from Shape UP, Find Elemens -> Create Affordance -> Make it Beautiful.
|
26
|
+
|
21
27
|
### Refactoring UI
|
22
28
|
|
23
29
|
Developers should be able to produce your own design, [Refactoring UI](https://refactoringui.com/book) is the book for that.
|
24
30
|
|
25
|
-
###
|
31
|
+
### Breadboard Theme
|
32
|
+
|
33
|
+
- [Example](https://github.com/lazaronixon/sass-zero/blob/master/Example.html)
|
34
|
+
- [Breadboard](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/base/breadboard.scss)
|
35
|
+
|
36
|
+
### Variables
|
37
|
+
|
38
|
+
- [Border](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/border.scss)
|
39
|
+
- [Breakpoint](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/breakpoints.scss)
|
40
|
+
- [Colors](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/colors.scss)
|
41
|
+
- [Effects](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/effects.scss)
|
42
|
+
- [Flex](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/flex.scss)
|
43
|
+
- [Spacing](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/spacing.scss)
|
44
|
+
- [Transform](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/transform.scss)
|
45
|
+
- [Transition](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/transition.scss)
|
46
|
+
- [Typography](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/typography.scss)
|
47
|
+
- [Width](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/width.scss)
|
48
|
+
- [Z-Index](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/variables/zindex.scss)
|
26
49
|
|
27
|
-
SASS-ZERO comes with a implict flow from Shape UP, Find Elemens -> Create Affordance -> Make it Beautiful.
|
28
50
|
|
29
51
|
### Utilities
|
30
52
|
|
31
|
-
- [Margin Reset](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/flush.scss)
|
32
53
|
- [Margin Push](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/push.scss)
|
33
54
|
- [Margin Pull](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/pull.scss)
|
55
|
+
- [Margin Reset](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/flush.scss)
|
34
56
|
- [Padding Reset](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/unpad.scss)
|
35
57
|
- [Text Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/text.scss)
|
36
58
|
- [Layout Utilities](https://github.com/lazaronixon/sass-zero/blob/master/app/assets/stylesheets/sass-zero/utilities/layout.scss)
|
37
59
|
|
38
|
-
|
39
|
-
### Breadboard Theme - [Just HTML](https://github.com/lazaronixon/sass-zero/blob/master/Example.html)
|
40
|
-
|
41
|
-

|
42
|
-
|
43
60
|
## Installation
|
44
61
|
|
45
62
|
Add this to your application's Gemfile:
|
@@ -64,36 +81,28 @@ Create some stylesheet using [BEM](http://getbem.com/naming) and [SASS-ZERO Vari
|
|
64
81
|
@import "sass-zero/variables";
|
65
82
|
@import "sass-zero/mixins";
|
66
83
|
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
// Element
|
71
|
-
.block__elem { color: $red-400; }
|
84
|
+
.block {
|
85
|
+
color: $red-300;
|
72
86
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
.block__elem--mod { color: $red-500; }
|
87
|
+
&__elem {
|
88
|
+
color: $red-400;
|
89
|
+
}
|
77
90
|
|
91
|
+
&--mod {
|
92
|
+
color: $red-500;
|
93
|
+
}
|
94
|
+
}
|
78
95
|
```
|
79
96
|
|
80
97
|
## References
|
81
98
|
|
82
|
-
[SASS](https://sass-lang.com)
|
83
|
-
|
84
|
-
[
|
85
|
-
|
86
|
-
[
|
87
|
-
|
88
|
-
[
|
89
|
-
|
90
|
-
[Refactoring UI](https://refactoringui.com/book)
|
91
|
-
|
92
|
-
[Shape UP](https://basecamp.com/shapeup)
|
93
|
-
|
94
|
-
[Zondicons](http://www.zondicons.com)
|
95
|
-
|
96
|
-
[Inline SVG](https://github.com/jamesmartin/inline_svg)
|
99
|
+
- [SASS](https://sass-lang.com)
|
100
|
+
- [Tailwindcss](https://tailwindcss.com)
|
101
|
+
- [Milligram](https://milligram.io)
|
102
|
+
- [BEM](http://getbem.com/naming)
|
103
|
+
- [Refactoring UI](https://refactoringui.com/book)
|
104
|
+
- [Shape UP](https://basecamp.com/shapeup)
|
105
|
+
- [Hero Icons](https://github.com/refactoringui/heroicons)
|
97
106
|
|
98
107
|
## License
|
99
108
|
|
@@ -1,11 +1,11 @@
|
|
1
1
|
@import "sass-zero/variables";
|
2
2
|
@import "sass-zero/mixins";
|
3
3
|
|
4
|
-
$breadboard-primary:
|
5
|
-
$breadboard-color:
|
6
|
-
$breadboard-border:
|
7
|
-
$breadboard-border-control:
|
8
|
-
$breadboard-background:
|
4
|
+
$breadboard-primary: $gray-900;
|
5
|
+
$breadboard-color: $gray-700;
|
6
|
+
$breadboard-border: $gray-400;
|
7
|
+
$breadboard-border-control: $gray-300;
|
8
|
+
$breadboard-background: $gray-200;
|
9
9
|
|
10
10
|
html {
|
11
11
|
background-color: $white;
|
@@ -50,30 +50,30 @@ input[type='submit'] {
|
|
50
50
|
}
|
51
51
|
|
52
52
|
.btn {
|
53
|
-
|
53
|
+
&.btn--primary {
|
54
54
|
background-color: $breadboard-primary;
|
55
55
|
border-color: $breadboard-primary;
|
56
56
|
color: $white;
|
57
57
|
}
|
58
58
|
|
59
|
-
|
59
|
+
&.btn--secondary {
|
60
60
|
background-color: $white;
|
61
61
|
border-color: $breadboard-primary;
|
62
62
|
}
|
63
63
|
|
64
|
-
|
64
|
+
&.btn--tertiary {
|
65
65
|
background-color: transparent;
|
66
66
|
border-color: transparent;
|
67
67
|
}
|
68
68
|
|
69
|
-
|
69
|
+
&.btn--with-icon {
|
70
70
|
padding-left: $size-8;
|
71
71
|
background-position: $size-2 center;
|
72
72
|
background-repeat: no-repeat;
|
73
73
|
background-size: $size-5 auto;
|
74
74
|
}
|
75
75
|
|
76
|
-
|
76
|
+
&.btn--small {
|
77
77
|
font-size: $text-sm;
|
78
78
|
padding-top: 0.35rem;
|
79
79
|
padding-bottom: 0.35rem;
|
@@ -135,6 +135,7 @@ select {
|
|
135
135
|
|
136
136
|
&:focus {
|
137
137
|
border-color: $breadboard-color;
|
138
|
+
outline: 0;
|
138
139
|
}
|
139
140
|
}
|
140
141
|
|
data/lib/sass/zero/version.rb
CHANGED
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "sass-zero",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.16",
|
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.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- lazaronixon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: autoprefixer-rails
|