base_css-rails 1.2 → 1.5

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.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: base_css-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.2'
4
+ version: '1.5'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-24 00:00:00.000000000 Z
12
+ date: 2013-09-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties
@@ -40,7 +40,9 @@ files:
40
40
  - lib/base_css-rails.rb
41
41
  - lib/generators/base_css/install_generator.rb
42
42
  - vendor/assets/javascripts/base-script.js
43
- - vendor/assets/stylesheets/base-style.css
43
+ - vendor/assets/javascripts/shiv.js
44
+ - vendor/assets/stylesheets/base-style.scss
45
+ - vendor/assets/stylesheets/mixins.scss
44
46
  - LICENSE.txt
45
47
  - README.md
46
48
  homepage: https://github.com/rkrdo/base_css-rails
@@ -1,655 +0,0 @@
1
- /* ==========================================================================
2
-
3
- Base Stylesheet - http://matthewhartman.github.com/base/
4
- Author: Matthew Hartman - http://www.matthewhartman.com.au/
5
- Version: 1.2 - Last Updated: 16th January, 2013
6
-
7
- ========================================================================== */
8
- /* ==========================================================================
9
- /* -- Micro Clearfix, Resets and Common Classes
10
- ========================================================================== */
11
- /* Micro Clearfix */
12
- .clear:before,
13
- .clear:after {
14
- content: "";
15
- display: table;
16
- }
17
- .clear:after {
18
- clear: both;
19
- }
20
- .clear {
21
- zoom: 1;
22
- }
23
- .section:before,
24
- .section:after {
25
- content: "";
26
- display: table;
27
- }
28
- .section:after {
29
- clear: both;
30
- }
31
- .section {
32
- zoom: 1;
33
- }
34
- .checkbox:before,
35
- .checkbox:after {
36
- content: "";
37
- display: table;
38
- }
39
- .checkbox:after {
40
- clear: both;
41
- }
42
- .checkbox {
43
- zoom: 1;
44
- }
45
- /* General Resets */
46
- /* Start font size at 100% */
47
- html {
48
- font-size: 100%;
49
- }
50
- /* Make all form fonts consistent */
51
- button,
52
- input,
53
- select,
54
- textarea {
55
- font-family: sans-serif;
56
- }
57
- /* Remove default borders */
58
- form,
59
- fieldset,
60
- a img {
61
- border: 0;
62
- }
63
- /* Remove default spacing */
64
- form,
65
- fieldset {
66
- margin: 0;
67
- padding: 0;
68
- }
69
- /* Common Classes */
70
- .left {
71
- float: left;
72
- }
73
- .right {
74
- float: right;
75
- }
76
- .block {
77
- display: block;
78
- }
79
- .inline-block {
80
- display: inline-block;
81
- *zoom: 1;
82
- *display: inline;
83
- }
84
- .inline {
85
- display: inline;
86
- }
87
- .visuallyhidden {
88
- border: 0;
89
- clip: rect(0 0 0 0);
90
- height: 1px;
91
- overflow: hidden;
92
- padding: 0;
93
- position: absolute;
94
- width: 1px;
95
- left: -9999em;
96
- }
97
- .visuallyvisible {
98
- clip: auto;
99
- width: auto;
100
- height: auto;
101
- overflow: visible;
102
- left: 0;
103
- }
104
- .strong {
105
- font-weight: bold;
106
- }
107
- .alert {
108
- background-color: #ffffcc;
109
- display: block;
110
- padding: 4px 8px;
111
- -webkit-border-radius: 3px;
112
- -moz-border-radius: 3px;
113
- border-radius: 3px;
114
- -moz-background-clip: padding;
115
- -webkit-background-clip: padding-box;
116
- background-clip: padding-box;
117
- }
118
- .nolist {
119
- list-style: none;
120
- }
121
- .nopadding {
122
- padding: 0;
123
- }
124
- .nomargin {
125
- margin: 0;
126
- }
127
- .none,
128
- .nodesktop {
129
- display: none;
130
- }
131
- /* ==========================================================================
132
- /* 1.0 - Document Setup (body, links, headings, code, tables, forms etc)
133
- ========================================================================== */
134
- /* Body */
135
- body {
136
- font-family: arial, helvetica, clean, sans-serif;
137
- font-size: 14px;
138
- font-size: 0.875rem;
139
- line-height: 22px;
140
- line-height: 1.375rem;
141
- background-color: #ffffff;
142
- color: #222222;
143
- margin: 0;
144
- -webkit-text-size-adjust: 100%;
145
- -ms-text-size-adjust: 100%;
146
- }
147
- /* Links */
148
- a {
149
- color: #ff3300;
150
- text-decoration: underline;
151
- }
152
- a:visited {
153
- color: #ff3300;
154
- }
155
- a:hover {
156
- text-decoration: none;
157
- }
158
- a:active {
159
- color: #333333;
160
- }
161
- /* 1.1 Headings - h1, h2, h3, h4, h5, h6 & other (if any)
162
- ========================================================================== */
163
- h1,
164
- h2,
165
- h3,
166
- h4,
167
- h5,
168
- h6 {
169
- margin: 0;
170
- line-height: normal;
171
- }
172
- h1,
173
- .h1 {
174
- font-size: 40px;
175
- font-size: 2.5rem;
176
- margin-bottom: 10px;
177
- }
178
- h2,
179
- .h2 {
180
- font-size: 32px;
181
- font-size: 2rem;
182
- margin-bottom: 8px;
183
- }
184
- h3,
185
- .h3 {
186
- font-size: 26px;
187
- font-size: 1.625rem;
188
- margin-bottom: 6px;
189
- }
190
- h4,
191
- .h4 {
192
- font-size: 20px;
193
- font-size: 1.25rem;
194
- margin-bottom: 4px;
195
- }
196
- /* 1.2 Paragraphs, block quotes, code, pre, etc
197
- ========================================================================== */
198
- small {
199
- font-size: 12px;
200
- font-size: 0.75rem;
201
- }
202
- /* Block Quotes, Pre and Code Blocks */
203
- blockquote,
204
- q {
205
- font-size: 20px;
206
- font-size: 1.25rem;
207
- line-height: 32px;
208
- line-height: 2rem;
209
- padding: 20px 30px;
210
- margin: 20px 0;
211
- font-family: "Georgia", "Times";
212
- font-style: italic;
213
- }
214
- blockquote:before,
215
- q:before,
216
- blockquote:after,
217
- q:after {
218
- font-size: 80px;
219
- font-size: 5rem;
220
- color: #999999;
221
- }
222
- blockquote:before,
223
- q:before {
224
- content: "\201C";
225
- margin-left: -0.5em;
226
- float: left;
227
- }
228
- blockquote:after,
229
- q:after {
230
- content: "\201D";
231
- margin-right: -0.5em;
232
- float: right;
233
- }
234
- code {
235
- padding: 2px 6px;
236
- font-family: Monaco, Andale Mono, "Courier New", monospace;
237
- font-size: 12px;
238
- font-size: 0.75rem;
239
- background-color: #fee9cc;
240
- border: 1px solid #ffc9b3;
241
- line-height: normal;
242
- color: #222222;
243
- -webkit-border-radius: 3px;
244
- -moz-border-radius: 3px;
245
- border-radius: 3px;
246
- -moz-background-clip: padding;
247
- -webkit-background-clip: padding-box;
248
- background-clip: padding-box;
249
- }
250
- /* Horizontal Rule */
251
- hr {
252
- border: 0;
253
- background: none;
254
- outline: 0;
255
- height: 1px;
256
- background-color: #dddddd;
257
- margin: 2em 0;
258
- }
259
- /* 1.3 Tables
260
- ========================================================================== */
261
- table {
262
- width: 100%;
263
- border-collapse: collapse;
264
- border-left: 0;
265
- background-color: #fff;
266
- border-spacing: 0;
267
- table-layout: fixed;
268
- word-wrap: break-word;
269
- -ms-word-wrap: break-word;
270
- *white-space: normal;
271
- }
272
- table th,
273
- table td {
274
- padding: 8px;
275
- line-height: 18px;
276
- text-align: left;
277
- vertical-align: top;
278
- border-top: 1px solid #eeeeee;
279
- }
280
- table thead th {
281
- vertical-align: bottom;
282
- font-weight: bold;
283
- background-color: #ffffff;
284
- color: #222222;
285
- }
286
- table tfoot td {
287
- font-weight: bold;
288
- }
289
- table caption {
290
- padding: .5em;
291
- font-style: italic;
292
- background-color: #eeeeee;
293
- border-bottom: 0;
294
- font-weight: bold;
295
- }
296
- /* 1.4 Lists
297
- ========================================================================== */
298
- ul,
299
- ul ul {
300
- list-style: disc;
301
- margin: 4px 0 4px 25px;
302
- padding: 0;
303
- }
304
- ol,
305
- ol ol {
306
- list-style: decimal;
307
- margin: 4px 0 4px 25px;
308
- padding: 0;
309
- }
310
- /* 1.5 Forms, Labels and Inputs
311
- ========================================================================== */
312
- fieldset {
313
- margin: 1.5em 0;
314
- }
315
- legend {
316
- font-family: arial, helvetica, clean, sans-serif;
317
- font-size: 32px;
318
- font-size: 2rem;
319
- line-height: normal;
320
- font-weight: bold;
321
- width: 100%;
322
- display: block;
323
- border: 0;
324
- *margin-left: -5px;
325
- }
326
- label {
327
- font-weight: bold;
328
- cursor: pointer;
329
- }
330
- .inline-field label {
331
- display: inline-block;
332
- *zoom: 1;
333
- *display: inline;
334
- margin-right: 1em;
335
- }
336
- .field {
337
- padding: 0.2em 0;
338
- }
339
- .field label {
340
- display: block;
341
- }
342
- .checkbox {
343
- display: block;
344
- position: relative;
345
- line-height: normal;
346
- padding: 0.2em 0;
347
- }
348
- .checkbox label {
349
- display: table-cell;
350
- *zoom: 1;
351
- }
352
- .checkbox input[type=checkbox],
353
- .checkbox input[type=radio] {
354
- float: left;
355
- top: -2px;
356
- position: relative;
357
- margin-right: 1em;
358
- }
359
- /* Inputs (Text, Search, Email, etc) */
360
- input[type=text],
361
- input[type=password],
362
- input[type=email],
363
- input[type=search],
364
- input[type=tel],
365
- input[type=file] {
366
- outline: 0;
367
- padding: 2px 5px;
368
- height: 28px;
369
- -webkit-appearance: none;
370
- -moz-appearance: none;
371
- vertical-align: middle;
372
- font-size: 21px;
373
- font-size: 1.3125rem;
374
- font-weight: bold;
375
- background-color: #ffffff;
376
- color: #666666;
377
- border: 1px solid #dddddd;
378
- border-top: 1px solid #999999;
379
- -webkit-border-radius: 3px;
380
- -moz-border-radius: 3px;
381
- border-radius: 3px;
382
- -moz-background-clip: padding;
383
- -webkit-background-clip: padding-box;
384
- background-clip: padding-box;
385
- }
386
- input[type=file] {
387
- border: 0;
388
- height: 20px;
389
- }
390
- input[type=button]::-moz-focus-inner,
391
- input[type=submit]::-moz-focus-inner,
392
- input[type=reset]::-moz-focus-inner {
393
- padding: 0;
394
- border: 0;
395
- }
396
- input[type="search"]::-webkit-search-cancel-button {
397
- -webkit-appearance: none;
398
- }
399
- input[type=submit],
400
- input[type=button],
401
- input[type=reset] {
402
- line-height: normal;
403
- cursor: pointer;
404
- -webkit-appearance: none;
405
- /* Remove Default Browser Behaviour for Safari */
406
-
407
- -moz-appearance: none;
408
- /* Remove Default Browser Behaviour for Firefox */
409
-
410
- }
411
- textarea {
412
- font-size: 21px;
413
- font-size: 1.3125rem;
414
- font-weight: bold;
415
- background-color: #ffffff;
416
- color: #666666;
417
- outline: 0;
418
- padding: 2px 5px;
419
- vertical-align: top;
420
- border: 1px solid #dddddd;
421
- padding: 10px;
422
- resize: none;
423
- -webkit-border-radius: 3px;
424
- -moz-border-radius: 3px;
425
- border-radius: 3px;
426
- -moz-background-clip: padding;
427
- -webkit-background-clip: padding-box;
428
- background-clip: padding-box;
429
- }
430
- select {
431
- font-size: 14px;
432
- font-size: 0.875rem;
433
- outline: 0;
434
- border: 0;
435
- padding: 7px;
436
- height: 30px;
437
- line-height: normal;
438
- display: inline-block;
439
- *zoom: 1;
440
- *display: inline;
441
- vertical-align: middle;
442
- *border: 10px solid #ffffff;
443
- outline: 1px solid #999999;
444
- }
445
- select[multiple] {
446
- min-height: 100px;
447
- vertical-align: top;
448
- border: 1px solid #dddddd;
449
- }
450
- select,
451
- input[type=text],
452
- input[type=password],
453
- input[type=email],
454
- input[type=search],
455
- input[type=tel] {
456
- width: 280px;
457
- }
458
- textarea {
459
- width: 260px;
460
- }
461
- /* Buttons */
462
- .buttons {
463
- padding: 1em 0;
464
- }
465
- .button {
466
- font-size: 14px;
467
- font-size: 0.875rem;
468
- line-height: normal;
469
- cursor: pointer;
470
- border: 0;
471
- padding: 0.8em 3em;
472
- color: #222222;
473
- text-decoration: none;
474
- text-align: center;
475
- }
476
- .orange-button {
477
- background-color: #fee9cc;
478
- }
479
- .orange-button:hover {
480
- background-color: #ffe0b5;
481
- }
482
- .orange-button:active {
483
- background-color: #fdeed8;
484
- }
485
- .button[disabled],
486
- .button.disabled {
487
- color: #999999;
488
- background-color: #f1f1f1;
489
- }
490
- .no-style-button {
491
- font-size: 13px;
492
- font-size: 0.8125rem;
493
- color: #ff3300;
494
- text-decoration: underline;
495
- border: 0;
496
- background: transparent;
497
- height: auto;
498
- padding: 0;
499
- }
500
- .no-style-button:hover {
501
- text-decoration: none;
502
- }
503
- .no-style-button[disabled],
504
- .no-style-button.disabled {
505
- text-decoration: none;
506
- color: #999999;
507
- }
508
- /* ==========================================================================
509
- /* 2.0 - Grid Layout (Responsive)
510
- ========================================================================== */
511
- /* Sections & Content Blocks */
512
- .section {
513
- position: relative;
514
- }
515
- .row {
516
- margin-bottom: 1em;
517
- }
518
- .container {
519
- max-width: 960px;
520
- margin: 0 auto;
521
- padding-left: 10px;
522
- padding-right: 10px;
523
- }
524
- .container-full {
525
- max-width: 980px;
526
- margin: 0 auto;
527
- }
528
- /* Fluid Grid */
529
- .col {
530
- margin-left: 2%;
531
- float: left;
532
- }
533
- .col:first-child {
534
- margin-left: 0;
535
- }
536
- /* Columns */
537
- .one {
538
- width: 6.333%;
539
- }
540
- .two {
541
- width: 14.667%;
542
- }
543
- .three {
544
- width: 23.0%;
545
- }
546
- .four {
547
- width: 31.333%;
548
- }
549
- .five {
550
- width: 39.667%;
551
- }
552
- .six {
553
- width: 48.0%;
554
- }
555
- .seven {
556
- width: 56.333%;
557
- }
558
- .eight {
559
- width: 64.667%;
560
- }
561
- .nine {
562
- width: 73.0%;
563
- }
564
- .ten {
565
- width: 81.333%;
566
- }
567
- .eleven {
568
- width: 89.667%;
569
- }
570
- .twelve {
571
- width: 100%;
572
- }
573
- .half {
574
- width: 48.0%;
575
- }
576
- .one-third {
577
- width: 31.333%;
578
- }
579
- /* ==========================================================================
580
- /* -- Tablet Devices (Layout, Modifications, etc)
581
- ========================================================================== */
582
- @media only screen and (min-width: 720px) and (max-width: 959px) {
583
- html body {
584
- max-width: 959px;
585
- padding: 0;
586
- margin: 0;
587
- }
588
- .container {
589
- width: 700px;
590
- }
591
- .notablet {
592
- display: none;
593
- }
594
- .showtablet {
595
- display: block;
596
- }
597
- }
598
- /* End Tablet Media Query */
599
- /* ==========================================================================
600
- /* -- Mobile Devices (Layout, Modifications, etc)
601
- ========================================================================== */
602
- @media only screen and (max-width: 719px) {
603
- html body {
604
- max-width: 100%;
605
- padding: 0;
606
- margin: 0;
607
- }
608
- /* Mobile Grid */
609
- .one,
610
- .two,
611
- .three,
612
- .four,
613
- .five,
614
- .six,
615
- .seven,
616
- .eight,
617
- .nine,
618
- .ten,
619
- .eleven,
620
- .twelve {
621
- width: 100%;
622
- margin-left: 0;
623
- margin-right: 0;
624
- float: none;
625
- }
626
- .container {
627
- padding-left: 20px;
628
- padding-right: 20px;
629
- }
630
- /* Mobile Tables */
631
- table th,
632
- table td {
633
- padding: 4px;
634
- }
635
- /* Mobile Forms */
636
- input[type=text],
637
- input[type=password],
638
- input[type=email],
639
- input[type=search],
640
- input[type=tel],
641
- textarea {
642
- width: 90%;
643
- padding: 5%;
644
- }
645
- select {
646
- width: 100%;
647
- }
648
- .nomobile {
649
- display: none;
650
- }
651
- .showmobile {
652
- display: block;
653
- }
654
- }
655
- /* End Mobile Media Query */