sass-zero 0.0.5 → 0.0.7

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: 30fc54323d7fcae1fd7b2d1b33f6e3f8a316e658844bf41dddcdb91237f9bcad
4
- data.tar.gz: 777c96a3ae72edbcbad36f23540436ef7f604e4569cd33dc1e6eeb08a075a255
3
+ metadata.gz: ccee9665f00b1ba28fbb1e6df9ceeea1fd2708f5df730e3800e359fa4cca4810
4
+ data.tar.gz: 196433c044083bdc7f7c59ca29488912b40f193e422cc915c6cb8b0f94eff645
5
5
  SHA512:
6
- metadata.gz: c77075115f20c261a9d4ece2552a98cf1e2c93cf0ffce15befe33c5ccca8437a66910e9430f57e590989a887f3ce9a1c766ca327043897a235eff5f14127ea87
7
- data.tar.gz: 2241eb077d83a20f5e4a454ca636d3d378b2dd037f6268237c904b04811f2ae1f0b84f03061c591a4f9b3a6b9bd943f94b8feff4b6ff939d9e4ea9c2a534326f
6
+ metadata.gz: e9ff04f0a4f10534e756c6901f3ba8cae1c7f207ee5d3987909594497957c4ab9775b194cbe3e91499dad42f00d630c78d611c838cb1a23c116d9b84e02f2f4d
7
+ data.tar.gz: 800e4861177112cc2b8383c75239bdeb4f12cfcf74de11747804a71c2946efdb5682eeb2c20fd82efb7ef0b8bf56552ce674f5fe03ce0189bb894d84a8c3fe71
data/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in sass-zero.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,17 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ sass-zero (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+
10
+ PLATFORMS
11
+ ruby
12
+
13
+ DEPENDENCIES
14
+ sass-zero!
15
+
16
+ BUNDLED WITH
17
+ 1.17.3
data/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # Sass::Zero
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/sass/zero`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ Gemfile
12
+
13
+ ```ruby
14
+ gem 'sass-zero'
15
+ gem 'autoprefixer-rails'
16
+ ```
17
+
18
+ application.css
19
+
20
+ ```css
21
+ *= require sass-zero/base
22
+ ```
23
+
24
+ somefile.scss
25
+
26
+ ```scss
27
+ @import "sass-zero/variables";
28
+ @import "sass-zero/mixins";
29
+ ```
30
+
31
+ ## Usage
32
+
33
+ TODO: Write usage instructions here
34
+
35
+ ## Development
36
+
37
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
38
+
39
+ To install this gem onto your local machine, run `bundle exec rake install`. 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 tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
40
+
41
+ ## Contributing
42
+
43
+ Bug reports and pull requests are welcome on GitHub at https://github.com/lazaronixon/sass-zero. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
44
+
45
+ ## License
46
+
47
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
48
+
49
+ ## Code of Conduct
50
+
51
+ Everyone interacting in the Sass::Zero project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/sass-zero/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,5 @@
1
+ module Sass
2
+ module Zero
3
+ VERSION = "0.0.7"
4
+ end
5
+ end
data/lib/sass/zero.rb ADDED
@@ -0,0 +1,7 @@
1
+ require "sass/zero/version"
2
+
3
+ module Sass
4
+ module Zero
5
+ class Engine < ::Rails::Engine; end
6
+ end
7
+ end
data/sass-zero.gemspec ADDED
@@ -0,0 +1,25 @@
1
+
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require "sass/zero/version"
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "sass-zero"
8
+ spec.version = Sass::Zero::VERSION
9
+ spec.authors = ["Lázaro Nixon"]
10
+ spec.email = ["lazaronixon@hotmail.com"]
11
+
12
+ spec.summary = "CSS framework."
13
+ spec.description = "SASS-ZERO is a CSS framework that provides a basic grayscale theme to create raw affordance and after that, you can make it beautiful with our constrained variable system."
14
+ spec.homepage = "http://github.com/lazaronixon/sass-zero"
15
+ spec.license = "MIT"
16
+
17
+ # Specify which files should be added to the gem when it is released.
18
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
19
+ spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
20
+ `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
21
+ end
22
+ spec.require_paths = ["lib"]
23
+
24
+ spec.requirements << "autoprefixer-rails"
25
+ end
@@ -0,0 +1,222 @@
1
+ @import "sass-zero/variables";
2
+ @import "sass-zero/mixins";
3
+
4
+ $breadboard-bg: $white !default;
5
+ $breadboard-200: $gray-200 !default;
6
+ $breadboard-300: $gray-300 !default;
7
+ $breadboard-700: $gray-700 !default;
8
+ $breadboard-900: $gray-900 !default;
9
+
10
+ html {
11
+ background-color: $breadboard-bg;
12
+ color: $breadboard-700;
13
+ @include antialiased;
14
+ }
15
+
16
+ body {
17
+ font-size: $text-base;
18
+ line-height: $leading-normal;
19
+ }
20
+
21
+ blockquote {
22
+ border-left: $border-4 solid $breadboard-300;
23
+ padding: $size-3 $size-4;
24
+
25
+ *:last-child {
26
+ margin-bottom: $size-0;
27
+ }
28
+ }
29
+
30
+ button,
31
+ input[type='button'],
32
+ input[type='reset'],
33
+ input[type='submit'] {
34
+ background-color: $breadboard-900;
35
+ border-radius: $rounded;
36
+ color: $white;
37
+ cursor: pointer;
38
+ font-weight: $font-bold;
39
+ padding: $size-2 $size-3;
40
+
41
+ &:hover {
42
+ background-color: $breadboard-700;
43
+ }
44
+
45
+ &[disabled] {
46
+ background-color: $breadboard-900;
47
+ cursor: default;
48
+ opacity: $opacity-50;
49
+ }
50
+ }
51
+
52
+ code {
53
+ background: $breadboard-200;
54
+ border-radius: $rounded;
55
+ font-size: $text-sm;
56
+ margin: 0 $size-1;
57
+ padding: $size-1 $size-2;
58
+ white-space: nowrap;
59
+ }
60
+
61
+ pre {
62
+ background: $breadboard-200;
63
+ border-left: $border-4 solid $breadboard-900;
64
+ overflow-y: hidden;
65
+
66
+ & > code {
67
+ border-radius: $rounded-none;
68
+ display: block;
69
+ padding: $size-2 $size-3;
70
+ white-space: pre;
71
+ }
72
+ }
73
+
74
+ hr {
75
+ border-top: $border solid $breadboard-300;
76
+ margin: $size-4 $size-0;
77
+ }
78
+
79
+ input[type='email'],
80
+ input[type='number'],
81
+ input[type='password'],
82
+ input[type='search'],
83
+ input[type='tel'],
84
+ input[type='text'],
85
+ input[type='url'],
86
+ input[type='color'],
87
+ input[type='date'],
88
+ input[type='month'],
89
+ input[type='week'],
90
+ input[type='datetime'],
91
+ input[type='datetime-local'],
92
+ input:not([type]),
93
+ textarea,
94
+ select {
95
+ appearance: none;
96
+ background-color: $breadboard-200;
97
+ border: $border solid $breadboard-200;
98
+ border-radius: $rounded;
99
+ display: block;
100
+ line-height: $leading-tight;
101
+ padding: $size-3 $size-4;
102
+ width: $size-full;
103
+
104
+ &:focus {
105
+ background-color: $breadboard-bg;
106
+ border-color: $breadboard-300;
107
+ outline: 0;
108
+ }
109
+ }
110
+
111
+ select {
112
+ background: $breadboard-200 url('data:image/svg+xml;utf8,<svg width="16" height="16" style="fill: %23#{str-slice(ie-hex-str($breadboard-700), 4)};" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z"></path></svg>') center right $size-2 no-repeat;
113
+ padding-right: $size-8;
114
+ }
115
+
116
+ textarea {
117
+ min-height: $size-24;
118
+ }
119
+
120
+ label, legend {
121
+ display: block;
122
+ font-size: $text-xs;
123
+ font-weight: $font-bold;
124
+ letter-spacing: $tracking-wide;
125
+ margin-bottom: $size-1;
126
+ }
127
+
128
+ a {
129
+ color: $breadboard-900;
130
+ font-weight: $font-medium;
131
+ text-decoration: underline;
132
+
133
+ &:hover {
134
+ color: $breadboard-700;
135
+ }
136
+ }
137
+
138
+ ol {
139
+ list-style: decimal inside;
140
+ }
141
+
142
+ ul {
143
+ list-style: circle inside;
144
+ }
145
+
146
+ button,
147
+ dd,
148
+ dt,
149
+ li {
150
+ margin-bottom: $size-2;
151
+ }
152
+
153
+ fieldset,
154
+ input,
155
+ select,
156
+ textarea {
157
+ margin-bottom: $size-3;
158
+ }
159
+
160
+ blockquote,
161
+ dl,
162
+ figure,
163
+ form,
164
+ ol,
165
+ p,
166
+ pre,
167
+ table,
168
+ ul {
169
+ margin-bottom: $size-4;
170
+ }
171
+
172
+ table {
173
+ width: $size-full;
174
+ }
175
+
176
+ td, th {
177
+ border-bottom: $border solid $breadboard-300;
178
+ padding: $size-2 $size-4;
179
+ text-align: left;
180
+ }
181
+
182
+ td:first-child, th:first-child {
183
+ padding-left: 0;
184
+ }
185
+
186
+ td:last-child, th:last-child {
187
+ padding-right: 0;
188
+ }
189
+
190
+ h1, h2, h3, h4, h5, h6 {
191
+ font-weight: $font-semibold;
192
+ line-height: $leading-tight;
193
+ margin-bottom: $size-2;
194
+ }
195
+
196
+ h1 {
197
+ font-size: $text-4xl;
198
+ }
199
+
200
+ h2 {
201
+ font-size: $text-3xl;
202
+ }
203
+
204
+ h3 {
205
+ font-size: $text-2xl;
206
+ }
207
+
208
+ h4 {
209
+ font-size: $text-xl;
210
+ }
211
+
212
+ h5 {
213
+ font-size: $text-lg;
214
+ }
215
+
216
+ h6 {
217
+ font-size: $text-base;
218
+ }
219
+
220
+ main {
221
+ @include make-container($size-6, $breakpoint-lg);
222
+ }
@@ -0,0 +1,349 @@
1
+ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
2
+
3
+ /* Document
4
+ ========================================================================== */
5
+
6
+ /**
7
+ * 1. Correct the line height in all browsers.
8
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
9
+ */
10
+
11
+ html {
12
+ line-height: 1.15; /* 1 */
13
+ -webkit-text-size-adjust: 100%; /* 2 */
14
+ }
15
+
16
+ /* Sections
17
+ ========================================================================== */
18
+
19
+ /**
20
+ * Remove the margin in all browsers.
21
+ */
22
+
23
+ body {
24
+ margin: 0;
25
+ }
26
+
27
+ /**
28
+ * Render the `main` element consistently in IE.
29
+ */
30
+
31
+ main {
32
+ display: block;
33
+ }
34
+
35
+ /**
36
+ * Correct the font size and margin on `h1` elements within `section` and
37
+ * `article` contexts in Chrome, Firefox, and Safari.
38
+ */
39
+
40
+ h1 {
41
+ font-size: 2em;
42
+ margin: 0.67em 0;
43
+ }
44
+
45
+ /* Grouping content
46
+ ========================================================================== */
47
+
48
+ /**
49
+ * 1. Add the correct box sizing in Firefox.
50
+ * 2. Show the overflow in Edge and IE.
51
+ */
52
+
53
+ hr {
54
+ box-sizing: content-box; /* 1 */
55
+ height: 0; /* 1 */
56
+ overflow: visible; /* 2 */
57
+ }
58
+
59
+ /**
60
+ * 1. Correct the inheritance and scaling of font size in all browsers.
61
+ * 2. Correct the odd `em` font sizing in all browsers.
62
+ */
63
+
64
+ pre {
65
+ font-family: monospace, monospace; /* 1 */
66
+ font-size: 1em; /* 2 */
67
+ }
68
+
69
+ /* Text-level semantics
70
+ ========================================================================== */
71
+
72
+ /**
73
+ * Remove the gray background on active links in IE 10.
74
+ */
75
+
76
+ a {
77
+ background-color: transparent;
78
+ }
79
+
80
+ /**
81
+ * 1. Remove the bottom border in Chrome 57-
82
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
83
+ */
84
+
85
+ abbr[title] {
86
+ border-bottom: none; /* 1 */
87
+ text-decoration: underline; /* 2 */
88
+ text-decoration: underline dotted; /* 2 */
89
+ }
90
+
91
+ /**
92
+ * Add the correct font weight in Chrome, Edge, and Safari.
93
+ */
94
+
95
+ b,
96
+ strong {
97
+ font-weight: bolder;
98
+ }
99
+
100
+ /**
101
+ * 1. Correct the inheritance and scaling of font size in all browsers.
102
+ * 2. Correct the odd `em` font sizing in all browsers.
103
+ */
104
+
105
+ code,
106
+ kbd,
107
+ samp {
108
+ font-family: monospace, monospace; /* 1 */
109
+ font-size: 1em; /* 2 */
110
+ }
111
+
112
+ /**
113
+ * Add the correct font size in all browsers.
114
+ */
115
+
116
+ small {
117
+ font-size: 80%;
118
+ }
119
+
120
+ /**
121
+ * Prevent `sub` and `sup` elements from affecting the line height in
122
+ * 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
+ /* Embedded content
142
+ ========================================================================== */
143
+
144
+ /**
145
+ * Remove the border on images inside links in IE 10.
146
+ */
147
+
148
+ img {
149
+ border-style: none;
150
+ }
151
+
152
+ /* Forms
153
+ ========================================================================== */
154
+
155
+ /**
156
+ * 1. Change the font styles in all browsers.
157
+ * 2. Remove the margin in Firefox and Safari.
158
+ */
159
+
160
+ button,
161
+ input,
162
+ optgroup,
163
+ select,
164
+ textarea {
165
+ font-family: inherit; /* 1 */
166
+ font-size: 100%; /* 1 */
167
+ line-height: 1.15; /* 1 */
168
+ margin: 0; /* 2 */
169
+ }
170
+
171
+ /**
172
+ * Show the overflow in IE.
173
+ * 1. Show the overflow in Edge.
174
+ */
175
+
176
+ button,
177
+ input { /* 1 */
178
+ overflow: visible;
179
+ }
180
+
181
+ /**
182
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
183
+ * 1. Remove the inheritance of text transform in Firefox.
184
+ */
185
+
186
+ button,
187
+ select { /* 1 */
188
+ text-transform: none;
189
+ }
190
+
191
+ /**
192
+ * Correct the inability to style clickable types in iOS and Safari.
193
+ */
194
+
195
+ button,
196
+ [type="button"],
197
+ [type="reset"],
198
+ [type="submit"] {
199
+ -webkit-appearance: button;
200
+ }
201
+
202
+ /**
203
+ * Remove the inner border and padding in Firefox.
204
+ */
205
+
206
+ button::-moz-focus-inner,
207
+ [type="button"]::-moz-focus-inner,
208
+ [type="reset"]::-moz-focus-inner,
209
+ [type="submit"]::-moz-focus-inner {
210
+ border-style: none;
211
+ padding: 0;
212
+ }
213
+
214
+ /**
215
+ * Restore the focus styles unset by the previous rule.
216
+ */
217
+
218
+ button:-moz-focusring,
219
+ [type="button"]:-moz-focusring,
220
+ [type="reset"]:-moz-focusring,
221
+ [type="submit"]:-moz-focusring {
222
+ outline: 1px dotted ButtonText;
223
+ }
224
+
225
+ /**
226
+ * Correct the padding in Firefox.
227
+ */
228
+
229
+ fieldset {
230
+ padding: 0.35em 0.75em 0.625em;
231
+ }
232
+
233
+ /**
234
+ * 1. Correct the text wrapping in Edge and IE.
235
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
236
+ * 3. Remove the padding so developers are not caught out when they zero out
237
+ * `fieldset` elements in all browsers.
238
+ */
239
+
240
+ legend {
241
+ box-sizing: border-box; /* 1 */
242
+ color: inherit; /* 2 */
243
+ display: table; /* 1 */
244
+ max-width: 100%; /* 1 */
245
+ padding: 0; /* 3 */
246
+ white-space: normal; /* 1 */
247
+ }
248
+
249
+ /**
250
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
251
+ */
252
+
253
+ progress {
254
+ vertical-align: baseline;
255
+ }
256
+
257
+ /**
258
+ * Remove the default vertical scrollbar in IE 10+.
259
+ */
260
+
261
+ textarea {
262
+ overflow: auto;
263
+ }
264
+
265
+ /**
266
+ * 1. Add the correct box sizing in IE 10.
267
+ * 2. Remove the padding in IE 10.
268
+ */
269
+
270
+ [type="checkbox"],
271
+ [type="radio"] {
272
+ box-sizing: border-box; /* 1 */
273
+ padding: 0; /* 2 */
274
+ }
275
+
276
+ /**
277
+ * Correct the cursor style of increment and decrement buttons in Chrome.
278
+ */
279
+
280
+ [type="number"]::-webkit-inner-spin-button,
281
+ [type="number"]::-webkit-outer-spin-button {
282
+ height: auto;
283
+ }
284
+
285
+ /**
286
+ * 1. Correct the odd appearance in Chrome and Safari.
287
+ * 2. Correct the outline style in Safari.
288
+ */
289
+
290
+ [type="search"] {
291
+ -webkit-appearance: textfield; /* 1 */
292
+ outline-offset: -2px; /* 2 */
293
+ }
294
+
295
+ /**
296
+ * Remove the inner padding in Chrome and Safari on macOS.
297
+ */
298
+
299
+ [type="search"]::-webkit-search-decoration {
300
+ -webkit-appearance: none;
301
+ }
302
+
303
+ /**
304
+ * 1. Correct the inability to style clickable types in iOS and Safari.
305
+ * 2. Change font properties to `inherit` in Safari.
306
+ */
307
+
308
+ ::-webkit-file-upload-button {
309
+ -webkit-appearance: button; /* 1 */
310
+ font: inherit; /* 2 */
311
+ }
312
+
313
+ /* Interactive
314
+ ========================================================================== */
315
+
316
+ /*
317
+ * Add the correct display in Edge, IE 10+, and Firefox.
318
+ */
319
+
320
+ details {
321
+ display: block;
322
+ }
323
+
324
+ /*
325
+ * Add the correct display in all browsers.
326
+ */
327
+
328
+ summary {
329
+ display: list-item;
330
+ }
331
+
332
+ /* Misc
333
+ ========================================================================== */
334
+
335
+ /**
336
+ * Add the correct display in IE 10+.
337
+ */
338
+
339
+ template {
340
+ display: none;
341
+ }
342
+
343
+ /**
344
+ * Add the correct display in IE 10.
345
+ */
346
+
347
+ [hidden] {
348
+ display: none;
349
+ }