pure-css-reset-rails 1.0.1
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 +7 -0
- data/LICENSE +22 -0
- data/README.md +31 -0
- data/lib/pure-css-reset-rails.rb +1 -0
- data/lib/pure-css/reset/rails.rb +10 -0
- data/lib/pure-css/reset/rails/version.rb +7 -0
- data/vendor/assets/stylesheets/pure_css_reset.css +361 -0
- metadata +51 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 51b760d300c0aefbcefc126f2d675f8a1e543523
|
4
|
+
data.tar.gz: e2fef3c1b183ba984ff2f82d1c4051d7c84e81a2
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9a6fd614c91d279e5c4b5a28460dd6d6c7a38293383052ef727d403ba7185355ba92483eaab4ad3e7a484d310865cac7f0e11413b5fc364e36d02487a5f1f9da
|
7
|
+
data.tar.gz: bca03c7ed3cad9a9dea2f49e00c503c93789d65b743befb2504ac7d11bad005af4833c6d6d7d4aa18bde7cb4c55817192811db1752fee9e6ca683625a5494cac
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Grant Colegate
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
22
|
+
|
data/README.md
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# pure-css-rails-reset
|
2
|
+
While Pure CSS is pretty unopinionated there's still a few things it could touch less.
|
3
|
+
This CSS fixes some of those and adds some useful classes that pure lacks.
|
4
|
+
|
5
|
+
http://purecss.io
|
6
|
+
https://github.com/bkutil/pure-css-rails
|
7
|
+
|
8
|
+
What it does:
|
9
|
+
* adds a container for each media breakpoint
|
10
|
+
* hidden classes for each breakpoint
|
11
|
+
* show classes for each breakpoint
|
12
|
+
* clear float class
|
13
|
+
* reset some mobile input styles
|
14
|
+
* better heading font sizes
|
15
|
+
* error styles for control groups
|
16
|
+
|
17
|
+
## Install
|
18
|
+
|
19
|
+
1. Add this to your Gemfile
|
20
|
+
|
21
|
+
`gem "pure-css-rails-reset"`
|
22
|
+
|
23
|
+
2. Run
|
24
|
+
|
25
|
+
`$ bundle`
|
26
|
+
|
27
|
+
3. Add `pure_css_reset` to application.css after `//= require pure`
|
28
|
+
|
29
|
+
`//= require pure_css_reset`
|
30
|
+
|
31
|
+
4. Profit!
|
@@ -0,0 +1 @@
|
|
1
|
+
require 'pure-css/reset/rails'
|
@@ -0,0 +1,361 @@
|
|
1
|
+
* {
|
2
|
+
-webkit-box-sizing: border-box;
|
3
|
+
-moz-box-sizing: border-box;
|
4
|
+
box-sizing: border-box;
|
5
|
+
}
|
6
|
+
|
7
|
+
body {
|
8
|
+
color: #555555;
|
9
|
+
}
|
10
|
+
|
11
|
+
h1, h2, h3, h4, h5, h6 {
|
12
|
+
color: #444444;
|
13
|
+
}
|
14
|
+
|
15
|
+
h1 {
|
16
|
+
font-size: 2.25em;
|
17
|
+
margin: 1.5em 0 0.7em 0;
|
18
|
+
}
|
19
|
+
|
20
|
+
h2 {
|
21
|
+
font-size: 1.85em;
|
22
|
+
margin: 1.5em 0 0.7em 0;
|
23
|
+
}
|
24
|
+
|
25
|
+
h3 {
|
26
|
+
font-size: 1.6em;
|
27
|
+
margin: 1.5em 0 0.7em 0;
|
28
|
+
}
|
29
|
+
|
30
|
+
h4 {
|
31
|
+
font-size: 1.2em;
|
32
|
+
margin: 1.7em 0 0.8em 0;
|
33
|
+
}
|
34
|
+
|
35
|
+
h5 {
|
36
|
+
font-size: 1em;
|
37
|
+
margin: 1.8em 0 0.8em 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
h6 {
|
41
|
+
font-size: 0.9em;
|
42
|
+
margin: 2em 0 0.8em 0;
|
43
|
+
}
|
44
|
+
|
45
|
+
.cf:before, .cf:after {
|
46
|
+
content: " ";
|
47
|
+
display: table;
|
48
|
+
}
|
49
|
+
|
50
|
+
.cf:after {
|
51
|
+
clear: both;
|
52
|
+
}
|
53
|
+
|
54
|
+
.cf {
|
55
|
+
*zoom: 1;
|
56
|
+
}
|
57
|
+
|
58
|
+
.container {
|
59
|
+
width: 100%;
|
60
|
+
}
|
61
|
+
|
62
|
+
@media (min-width: 48em) {
|
63
|
+
.container {
|
64
|
+
width: 730px;
|
65
|
+
margin: 0 auto;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
|
69
|
+
@media (min-width: 64em) {
|
70
|
+
.container {
|
71
|
+
width: 970px;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
@media (min-width: 80em) {
|
76
|
+
.container {
|
77
|
+
width: 1170px;
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
.pure-button {
|
82
|
+
border-radius: 0;
|
83
|
+
border: 1px solid #cccccc;
|
84
|
+
}
|
85
|
+
|
86
|
+
.pure-button .fa {
|
87
|
+
margin-left: -3px;
|
88
|
+
margin-right: 3px;
|
89
|
+
position: relative;
|
90
|
+
top: -1px;
|
91
|
+
}
|
92
|
+
|
93
|
+
.pure-button:hover {
|
94
|
+
color: #555555;
|
95
|
+
}
|
96
|
+
|
97
|
+
a.pure-button-primary, .pure-button-primary {
|
98
|
+
background-color: #4a9fc8;
|
99
|
+
border-color: #3484ab;
|
100
|
+
}
|
101
|
+
|
102
|
+
a.pure-button-primary:hover, .pure-button-primary:hover {
|
103
|
+
color: #ffffff;
|
104
|
+
}
|
105
|
+
|
106
|
+
.pure-button-hover,
|
107
|
+
.pure-button:hover,
|
108
|
+
.pure-button:focus {
|
109
|
+
background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15));
|
110
|
+
background-image: -moz-linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15));
|
111
|
+
background-image: -o-linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15));
|
112
|
+
background-image: linear-gradient(rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15));
|
113
|
+
}
|
114
|
+
|
115
|
+
.pure-form {
|
116
|
+
width: 100%;
|
117
|
+
margin: 1em 0;
|
118
|
+
}
|
119
|
+
|
120
|
+
.pure-form legend {
|
121
|
+
margin-bottom: 1em;
|
122
|
+
}
|
123
|
+
|
124
|
+
.pure-form .pure-control-group {
|
125
|
+
margin-bottom: 1em;
|
126
|
+
}
|
127
|
+
|
128
|
+
.pure-form .hint, .pure-form .error {
|
129
|
+
display: block;
|
130
|
+
margin-top: 0.8em;
|
131
|
+
margin-bottom: 0.5em;
|
132
|
+
color: #999999;
|
133
|
+
font-style: italic;
|
134
|
+
font-size: 0.9em;
|
135
|
+
line-height: 1.2em;
|
136
|
+
}
|
137
|
+
|
138
|
+
.pure-form .error {
|
139
|
+
color: #b94a48;
|
140
|
+
}
|
141
|
+
|
142
|
+
.pure-form input[type="text"],
|
143
|
+
.pure-form input[type="password"],
|
144
|
+
.pure-form input[type="email"],
|
145
|
+
.pure-form input[type="url"],
|
146
|
+
.pure-form input[type="date"],
|
147
|
+
.pure-form input[type="month"],
|
148
|
+
.pure-form input[type="time"],
|
149
|
+
.pure-form input[type="datetime"],
|
150
|
+
.pure-form input[type="datetime-local"],
|
151
|
+
.pure-form input[type="week"],
|
152
|
+
.pure-form input[type="number"],
|
153
|
+
.pure-form input[type="search"],
|
154
|
+
.pure-form input[type="tel"],
|
155
|
+
.pure-form input[type="color"],
|
156
|
+
.pure-form textarea {
|
157
|
+
border-radius: 0;
|
158
|
+
box-shadow: none;
|
159
|
+
-webkit-appearance: none;
|
160
|
+
}
|
161
|
+
|
162
|
+
@media only screen and (max-width: 480px) {
|
163
|
+
.pure-form input[type="text"],
|
164
|
+
.pure-form input[type="password"],
|
165
|
+
.pure-form input[type="email"],
|
166
|
+
.pure-form input[type="url"],
|
167
|
+
.pure-form input[type="date"],
|
168
|
+
.pure-form input[type="month"],
|
169
|
+
.pure-form input[type="time"],
|
170
|
+
.pure-form input[type="datetime"],
|
171
|
+
.pure-form input[type="datetime-local"],
|
172
|
+
.pure-form input[type="week"],
|
173
|
+
.pure-form input[type="number"],
|
174
|
+
.pure-form input[type="search"],
|
175
|
+
.pure-form input[type="tel"],
|
176
|
+
.pure-form input[type="color"],
|
177
|
+
.pure-form textarea {
|
178
|
+
width: 100%;
|
179
|
+
}
|
180
|
+
}
|
181
|
+
|
182
|
+
.pure-form input[type="text"]:focus,
|
183
|
+
.pure-form input[type="password"]:focus,
|
184
|
+
.pure-form input[type="email"]:focus,
|
185
|
+
.pure-form input[type="url"]:focus,
|
186
|
+
.pure-form input[type="date"]:focus,
|
187
|
+
.pure-form input[type="month"]:focus,
|
188
|
+
.pure-form input[type="time"]:focus,
|
189
|
+
.pure-form input[type="datetime"]:focus,
|
190
|
+
.pure-form input[type="datetime-local"]:focus,
|
191
|
+
.pure-form input[type="week"]:focus,
|
192
|
+
.pure-form input[type="number"]:focus,
|
193
|
+
.pure-form input[type="search"]:focus,
|
194
|
+
.pure-form input[type="tel"]:focus,
|
195
|
+
.pure-form input[type="color"]:focus,
|
196
|
+
.pure-form textarea:focus {
|
197
|
+
border-color: #4a9fc8;
|
198
|
+
}
|
199
|
+
|
200
|
+
.pure-form select {
|
201
|
+
border-radius: 0;
|
202
|
+
box-shadow: none;
|
203
|
+
}
|
204
|
+
|
205
|
+
@media only screen and (max-width: 480px) {
|
206
|
+
.pure-form select {
|
207
|
+
width: 100%;
|
208
|
+
}
|
209
|
+
}
|
210
|
+
|
211
|
+
.pure-form select:focus {
|
212
|
+
border-color: #4a9fc8;
|
213
|
+
}
|
214
|
+
|
215
|
+
@media only screen and (max-width: 480px) {
|
216
|
+
.pure-form button[type="submit"] {
|
217
|
+
margin: 0;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
|
221
|
+
.pure-form .pure-control-group.control-group-with-error input {
|
222
|
+
color: #b94a48;
|
223
|
+
border-color: #ee5f5b;
|
224
|
+
}
|
225
|
+
|
226
|
+
.pure-form .pure-group input:first-child {
|
227
|
+
border-radius: 0;
|
228
|
+
}
|
229
|
+
|
230
|
+
.pure-form .pure-group input:last-child {
|
231
|
+
border-radius: 0;
|
232
|
+
}
|
233
|
+
|
234
|
+
.pure-form .pure-group input:first-child:last-child {
|
235
|
+
border-radius: 0;
|
236
|
+
}
|
237
|
+
|
238
|
+
.pure-form-aligned .hint, .pure-form-aligned .error {
|
239
|
+
margin-left: 12.3em;
|
240
|
+
}
|
241
|
+
|
242
|
+
@media (max-width: 63.9em) {
|
243
|
+
.pure-form-aligned .hint, .pure-form-aligned .error {
|
244
|
+
margin-left: 9em;
|
245
|
+
}
|
246
|
+
}
|
247
|
+
|
248
|
+
@media (max-width: 480px) {
|
249
|
+
.pure-form-aligned .hint, .pure-form-aligned .error {
|
250
|
+
margin-left: 0;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
.pure-form-aligned .pure-controls {
|
255
|
+
margin-top: 1em;
|
256
|
+
margin-left: 0;
|
257
|
+
padding-left: 11em;
|
258
|
+
}
|
259
|
+
|
260
|
+
@media screen and (max-width: 63.9em) {
|
261
|
+
.pure-form-aligned .pure-controls {
|
262
|
+
padding-left: 8em;
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
@media only screen and (max-width: 480px) {
|
267
|
+
.pure-form-aligned .pure-controls {
|
268
|
+
padding-left: 0;
|
269
|
+
}
|
270
|
+
}
|
271
|
+
|
272
|
+
@media only screen and (min-width: 480px) {
|
273
|
+
.pure-form-aligned .pure-control-group label {
|
274
|
+
float: left;
|
275
|
+
line-height: 2.3em;
|
276
|
+
}
|
277
|
+
.pure-form-aligned .pure-input-wrapper {
|
278
|
+
margin-left: 11em;
|
279
|
+
}
|
280
|
+
}
|
281
|
+
|
282
|
+
@media screen and (max-width: 63.9em) {
|
283
|
+
.pure-form-aligned .pure-control-group label {
|
284
|
+
width: 7em;
|
285
|
+
}
|
286
|
+
.pure-form-aligned .pure-input-wrapper {
|
287
|
+
margin-left: 8em;
|
288
|
+
}
|
289
|
+
}
|
290
|
+
|
291
|
+
@media screen and (max-width: 480px) {
|
292
|
+
.pure-form-aligned .pure-input-wrapper {
|
293
|
+
margin-left: 0;
|
294
|
+
}
|
295
|
+
}
|
296
|
+
|
297
|
+
@media screen and (max-width: 47.9em) {
|
298
|
+
.hidden-sm {
|
299
|
+
display: none !important;
|
300
|
+
}
|
301
|
+
}
|
302
|
+
|
303
|
+
@media screen and (max-width: 63.9em) {
|
304
|
+
.hidden-md {
|
305
|
+
display: none !important;
|
306
|
+
}
|
307
|
+
}
|
308
|
+
|
309
|
+
@media screen and (max-width: 79.9em) {
|
310
|
+
.hidden-lg {
|
311
|
+
display: none !important;
|
312
|
+
}
|
313
|
+
}
|
314
|
+
|
315
|
+
@media screen and (min-width: 48em) {
|
316
|
+
.show-sm {
|
317
|
+
display: none !important;
|
318
|
+
}
|
319
|
+
}
|
320
|
+
|
321
|
+
@media screen and (min-width: 64em) {
|
322
|
+
.show-md {
|
323
|
+
display: none !important;
|
324
|
+
}
|
325
|
+
}
|
326
|
+
|
327
|
+
@media screen and (min-width: 80em) {
|
328
|
+
.show-lg {
|
329
|
+
display: none !important;
|
330
|
+
}
|
331
|
+
}
|
332
|
+
|
333
|
+
.text-left {
|
334
|
+
text-align: left;
|
335
|
+
}
|
336
|
+
|
337
|
+
.text-center {
|
338
|
+
text-align: center;
|
339
|
+
}
|
340
|
+
|
341
|
+
.text-right {
|
342
|
+
text-align: right;
|
343
|
+
}
|
344
|
+
|
345
|
+
::-webkit-input-placeholder {
|
346
|
+
color: #888888;
|
347
|
+
}
|
348
|
+
|
349
|
+
:-moz-placeholder {
|
350
|
+
/* Firefox 18- */
|
351
|
+
color: #888888;
|
352
|
+
}
|
353
|
+
|
354
|
+
::-moz-placeholder {
|
355
|
+
/* Firefox 19+ */
|
356
|
+
color: #888888;
|
357
|
+
}
|
358
|
+
|
359
|
+
:-ms-input-placeholder {
|
360
|
+
color: #888888;
|
361
|
+
}
|
metadata
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pure-css-reset-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Grant Colegate
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-12-10 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: pure-css-reset-rails resets some CSS and adds some useful classes that
|
14
|
+
Pure CSS lacks.
|
15
|
+
email:
|
16
|
+
- blaknite@thelanbox.com.au
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- LICENSE
|
22
|
+
- README.md
|
23
|
+
- lib/pure-css-reset-rails.rb
|
24
|
+
- lib/pure-css/reset/rails.rb
|
25
|
+
- lib/pure-css/reset/rails/version.rb
|
26
|
+
- vendor/assets/stylesheets/pure_css_reset.css
|
27
|
+
homepage: https://github.com/blaknite/pure-css-reset-rails
|
28
|
+
licenses: []
|
29
|
+
metadata: {}
|
30
|
+
post_install_message:
|
31
|
+
rdoc_options: []
|
32
|
+
require_paths:
|
33
|
+
- lib
|
34
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
35
|
+
requirements:
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: '0'
|
39
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
40
|
+
requirements:
|
41
|
+
- - ">="
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
requirements: []
|
45
|
+
rubyforge_project:
|
46
|
+
rubygems_version: 2.2.2
|
47
|
+
signing_key:
|
48
|
+
specification_version: 4
|
49
|
+
summary: Resets some CSS and adds some useful classes that Pure CSS lacks.
|
50
|
+
test_files: []
|
51
|
+
has_rdoc:
|