rapido-css 0.2.2 → 0.2.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7007fd03a575bbb9b5e82919b24e2f1f11eff809
4
- data.tar.gz: 31f94c41ee91621e0db52daf4a5f4d6a1cdcc934
3
+ metadata.gz: 8ca2389a157a912440570a43680e100fa7a7cb98
4
+ data.tar.gz: fb3783dd6c8717229504c173b68f68fea364bfb5
5
5
  SHA512:
6
- metadata.gz: 6e0bf28308533fbf87b65d8f03314ffe8c1d32199a11cb2a4c463a4eb6c515b047288c09bd359b2cbaae3c36d0b8cb922a1bf42bde669d114b652d3889d2fc70
7
- data.tar.gz: 162bd05bfd2f1b164d489c7a8b1a8c6a77f55f0f54810ff7b8d493d4d0027975d87982fd5eb1e691333d000c60ef2e41becf355fdafe13882faa2ab6d5edab44
6
+ metadata.gz: 612a73530d6381ad65f7d295b411e16445bda20e420c212cb9d09f7d86e943f73641d0205cba5041f378417f8e3a002fa7a7be40d965e81cbe3ca6d16757ae49
7
+ data.tar.gz: 2f7ce89591e5f114ffcf057d95b052e6658c73a8b50b7c28eef51812e31cbe0958ca5295dd48c0ff231df98754d403e0d70570267b80ba2477b9d0d70aefa0e6
@@ -1,7 +1,9 @@
1
1
  require 'compass'
2
+ require 'breakpoint'
2
3
  require 'susy'
3
4
  require 'sass-media_query_combiner'
4
5
  require 'sass-globbing'
6
+ require 'compass-placeholders'
5
7
 
6
8
  extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
7
9
  Compass::Frameworks.register('rapido-css', :path => extension_path)
@@ -215,10 +215,10 @@ Styleguide 32.3
215
215
  %btn--scripts {
216
216
  @include alpha-color(#000, .6, background);
217
217
  color: #fff;
218
- cursor: pointer;
219
- display: block;
220
- text-align: center;
221
- text-decoration: none;
218
+ @extend %cursor-pointer;
219
+ @extend %display-block;
220
+ @extend %text-align-center;
221
+ @extend %text-decoration-none;
222
222
 
223
223
  &:hover {
224
224
  color: #fff;
@@ -282,7 +282,7 @@ Styleguide 32.6
282
282
 
283
283
  > li > a:hover,
284
284
  > li > a:focus {
285
- text-decoration: none;
285
+ @extend %text-decoration-none;
286
286
  background-color: $grayLight;
287
287
  }
288
288
  }
@@ -21,7 +21,7 @@ Styleguide 1
21
21
  margin-bottom: rhythm();
22
22
  @extend %alert;
23
23
 
24
- p { margin: 0; }
24
+ p { @extend %no-margin; }
25
25
 
26
26
  .close {
27
27
  position: relative;
@@ -25,7 +25,7 @@ Styleguide 2
25
25
  list-style: none;
26
26
  @extend %breadcrumbs !optional;
27
27
 
28
- > li { @include inline-block(); }
28
+ > li { @extend %display-inline-block; }
29
29
 
30
30
  .current {@extend %breadcrumbs__current !optional;}
31
31
  }
@@ -18,12 +18,12 @@ Styleguide 4
18
18
  @if $button-groups {
19
19
 
20
20
  .btn-group {
21
- @extend .clearfix;
22
- @include inline-block;
23
- margin: 0;
21
+ @extend %clearfix;
22
+ @extend %display-inline-block;
23
+ @extend %no-margin;
24
24
 
25
25
  > * {
26
- float: left;
26
+ @extend %float-left;
27
27
  list-style-type: none;
28
28
  }
29
29
 
@@ -40,7 +40,7 @@ Styleguide 4
40
40
  // Float button and reapply border radius
41
41
  > .btn,
42
42
  > li .btn {
43
- float: left;
43
+ @extend %float-left;
44
44
  @include border-radius(0);
45
45
  }
46
46
 
@@ -25,13 +25,13 @@ Styleguide 3
25
25
  @include border-radius($base-border-radius);
26
26
  border-style: solid;
27
27
  border-width: $input-border;
28
- cursor: pointer;
29
- @include inline-block;
28
+ @extend %cursor-pointer;
29
+ @extend %display-inline-block;
30
30
  line-height: 1em;
31
31
  margin-bottom: 0;
32
- text-align: center;
32
+ @extend %text-align-center;
33
33
 
34
- &:hover, &.hover, &:focus { text-decoration: none; }
34
+ &:hover, &.hover, &:focus { @extend %text-decoration-none; }
35
35
 
36
36
  &.active, &:active {outline: 0; }
37
37
 
@@ -40,7 +40,7 @@ Styleguide 3
40
40
  @include box-shadow(none);
41
41
  @include opacity(65);
42
42
  background-image: none;
43
- cursor: default;
43
+ @extend %cursor-default;
44
44
  }
45
45
  }
46
46
 
@@ -147,7 +147,7 @@ Styleguide 3.4
147
147
  // Block button
148
148
 
149
149
  .btn--block {
150
- display: block;
150
+ @extend %display-block;
151
151
  width: 100%;
152
152
  padding-left: 0;
153
153
  padding-right: 0;
@@ -185,7 +185,7 @@ Styleguide 3.5
185
185
  border-color: transparent;
186
186
  background: none;
187
187
  color: $link-color;
188
- cursor: pointer;
188
+ @extend %cursor-pointer;
189
189
 
190
190
  &:hover, &:focus {
191
191
  color: $link-color-hover;
@@ -200,7 +200,7 @@ Styleguide 3.5
200
200
 
201
201
  &[disabled]:hover, &[disabled]:focus {
202
202
  color: $grayDark;
203
- text-decoration: none;
203
+ @extend %text-decoration-none;
204
204
  }
205
205
  }
206
206
 
@@ -44,14 +44,14 @@ Styleguide 5
44
44
  position: relative;
45
45
  overflow: hidden;
46
46
  @include perspective(1000);
47
- @include inline-block;
47
+ @extend %display-inline-block;
48
48
 
49
49
 
50
50
  &:nth-child(2n) {
51
51
  margin-right: 0;
52
52
  }
53
53
  img {
54
- display: block;
54
+ @extend %display-block;
55
55
  transition: $caption-animations-duration;
56
56
  }
57
57
  figcaption {
@@ -225,7 +225,7 @@ Styleguide 5
225
225
  top: 0;
226
226
  left: 0;
227
227
  @include scale(2);
228
- text-align: center;
228
+ @extend %text-align-center;
229
229
  @include opacity(0);
230
230
  }
231
231
  img {
@@ -343,7 +343,7 @@ Styleguide 5
343
343
  figcaption {
344
344
  top: 0;
345
345
  left: 0;
346
- text-align: center;
346
+ @extend %text-align-center;
347
347
  @include opacity(0);
348
348
  height: 100%;
349
349
  }
@@ -365,11 +365,11 @@ Styleguide 5
365
365
  figcaption {
366
366
  top: 0;
367
367
  left: 0;
368
- text-align: center;
368
+ @extend %text-align-center;
369
369
  height: 100%;
370
370
  }
371
371
  img {
372
- display: block;
372
+ @extend %display-block;
373
373
  position:relative;
374
374
  z-index:10;
375
375
  transition: $caption-animations-duration;
@@ -385,12 +385,12 @@ Styleguide 5
385
385
  figcaption {
386
386
  top: 0;
387
387
  left: 0;
388
- text-align: center;
388
+ @extend %text-align-center;
389
389
  height: 100%;
390
390
  @include translateY(100%);
391
391
  }
392
392
  img {
393
- display: block;
393
+ @extend %display-block;
394
394
  position:relative;
395
395
  transition: $caption-animations-duration;
396
396
  }
@@ -13,26 +13,26 @@ Styleguide 6
13
13
  @if $close {
14
14
 
15
15
  .close {
16
- float: right;
16
+ @extend %float-right;
17
17
  font-size: 1em;
18
- font-weight: bold;
18
+ @extend %font-weight-bold;
19
19
  color: $black;
20
20
  @include opacity(20);
21
21
  &:hover,
22
22
  &:focus {
23
23
  color: $black;
24
- text-decoration: none;
25
- cursor: pointer;
24
+ @extend %text-decoration-none;
25
+ @extend %cursor-pointer;
26
26
  @include opacity(40);
27
27
  }
28
28
  }
29
29
 
30
30
  button.close {
31
- padding: 0;
32
- cursor: pointer;
33
- background: transparent;
34
- border: 0;
35
- -webkit-appearance: none;
31
+ @extend %no-padding;
32
+ @extend %cursor-pointer;
33
+ @extend %no-background;
34
+ @extend %no-border;
35
+ @extend %appearance-none;
36
36
  }
37
37
 
38
38
  }
@@ -56,7 +56,7 @@ Styleguide 7
56
56
  .dropdown,
57
57
  .dropdown__toggle {
58
58
  position: relative;
59
- @include inline-block;
59
+ @extend %display-inline-block;
60
60
  }
61
61
 
62
62
  .dropdown__toggle:focus { outline: 0; }
@@ -105,7 +105,7 @@ Styleguide 7.2
105
105
  border-style: solid;
106
106
  border-width: $input-border;
107
107
  display/*\**/: none\9; // Ugly IE8 Hack
108
- float: left;
108
+ @extend %float-left;
109
109
  list-style: none;
110
110
  margin: -$input-border 0 0 0;
111
111
  max-height: 0;
@@ -126,8 +126,8 @@ Styleguide 7.2
126
126
  > li > a,
127
127
  > li > label {
128
128
  clear: both;
129
- display: block;
130
- font-weight: normal;
129
+ @extend %display-block;
130
+ @extend %font-weight-normal;
131
131
  white-space: nowrap;
132
132
  }
133
133
 
@@ -143,13 +143,13 @@ Styleguide 7.2
143
143
 
144
144
  .dropdown__menu > li > a:hover,
145
145
  .dropdown__menu > li > a:focus {
146
- text-decoration: none;
146
+ @extend %text-decoration-none;
147
147
  }
148
148
 
149
149
  .dropdown__menu > .active > a,
150
150
  .dropdown__menu > .active > a:hover,
151
151
  .dropdown__menu > .active > a:focus {
152
- text-decoration: none;
152
+ @extend %text-decoration-none;
153
153
  outline: 0;
154
154
  }
155
155
 
@@ -161,10 +161,10 @@ Styleguide 7.2
161
161
 
162
162
  .dropdown__menu > .disabled > a:hover,
163
163
  .dropdown__menu > .disabled > a:focus {
164
- text-decoration: none;
164
+ @extend %text-decoration-none;
165
165
  background-color: transparent;
166
166
  background-image: none;
167
- cursor: default;
167
+ @extend %cursor-default;
168
168
  }
169
169
 
170
170
  // Dropdown open
@@ -34,23 +34,23 @@ Styleguide 8
34
34
  @if $forms {
35
35
 
36
36
  form {
37
- @extend .clearfix;
37
+ @extend %clearfix;
38
38
  margin: 0 0 rhythm();
39
39
  }
40
40
 
41
41
  fieldset {
42
- padding: 0;
43
- margin: 0;
44
- border: 0;
42
+ @extend %no-padding;
43
+ @extend %no-margin;
44
+ @extend %no-border;
45
45
  }
46
46
 
47
47
  legend {
48
48
  @include adjust-font-size-to($h5-size);
49
- display: block;
50
- padding: 0;
49
+ @extend %display-block;
50
+ @extend %no-padding;
51
51
  width: 100%;
52
- font-weight: bold;
53
- border: 0;
52
+ @extend %font-weight-bold;
53
+ @extend %no-border;
54
54
  padding-bottom: rhythm(.5);
55
55
  margin-bottom: rhythm(.5);
56
56
  border-bottom: 1px solid #e5e5e5;
@@ -70,7 +70,7 @@ textarea {
70
70
 
71
71
  label {
72
72
  line-height: $input-height/2;
73
- display: block;
73
+ @extend %display-block;
74
74
  }
75
75
 
76
76
  .input-text,
@@ -90,12 +90,12 @@ input[type="url"],
90
90
  input[type="search"],
91
91
  input[type="tel"],
92
92
  input[type="color"] {
93
- @include inline-block;
93
+ @extend %display-inline-block;
94
94
  padding: 0 $input-padding-side;
95
95
  height: $input-height;
96
96
  border-width: $input-border;
97
97
  border-style: solid;
98
- @media \0screen { line-height: $input-height; } // Ugly IE8 Hack
98
+ line-height/*\**/: #{$input-height}\9; // Ugly IE8 Hack
99
99
  @extend %input !optional; // Backward compatibility
100
100
  @extend %form__input !optional;
101
101
 
@@ -103,7 +103,7 @@ input[type="color"] {
103
103
  }
104
104
 
105
105
  select {
106
- @include inline-block;
106
+ @extend %display-inline-block;
107
107
  }
108
108
 
109
109
  input,
@@ -148,7 +148,7 @@ select[size] {
148
148
  input[readonly],
149
149
  select[readonly],
150
150
  textarea[readonly] {
151
- cursor: default;
151
+ @extend %cursor-default;
152
152
  }
153
153
 
154
154
  input[disabled],
@@ -179,9 +179,9 @@ select:focus:invalid {
179
179
  .form__group + .form__group { margin-top: em($control-margin-bottom); }
180
180
 
181
181
  .form__controls {
182
- @extend .clearfix;
182
+ @extend %clearfix;
183
183
  position: relative;
184
- @include inline-block;
184
+ @extend %display-inline-block;
185
185
  }
186
186
 
187
187
 
@@ -198,7 +198,7 @@ Styleguide 8.1
198
198
  */
199
199
 
200
200
  .form__label {
201
- font-weight: bold;
201
+ @extend %font-weight-bold;
202
202
  margin-bottom: em($label-margin-bottom);
203
203
  cursor: auto;
204
204
  @extend %form__label !optional;
@@ -229,21 +229,21 @@ Styleguide 8.2
229
229
  .form__checkbox,
230
230
  .form__select {
231
231
  padding-left: em($checkbox-padding-left);
232
- font-weight: normal;
233
- cursor: pointer;
234
- display: block;
232
+ @extend %font-weight-normal;
233
+ @extend %cursor-pointer;
234
+ @extend %display-block;
235
235
  }
236
236
 
237
237
  .form__select {padding-left: 0;}
238
238
 
239
239
  .form__radio input[type="radio"],
240
240
  .form__checkbox input[type="checkbox"] {
241
- float: left;
241
+ @extend %float-left;
242
242
  margin-left: -20px;
243
243
  }
244
244
  .form__radio.inline,
245
245
  .form__checkbox.inline {
246
- @include inline-block;
246
+ @extend %display-inline-block;
247
247
  }
248
248
  .form__radio.inline + .form__radio.inline,
249
249
  .form__checkbox.inline + .form__checkbox.inline {
@@ -289,10 +289,10 @@ Styleguide 8.3
289
289
  @extend %select !optional; // Backward compatibility
290
290
  @extend %form__select !optional;
291
291
  @include border-radius($base-border-radius);
292
- @include inline-block;
292
+ @extend %display-inline-block;
293
293
  border-style: solid;
294
294
  border-width: $input-border;
295
- cursor: pointer;
295
+ @extend %cursor-pointer;
296
296
  height: $input-height;
297
297
  line-height: 1em;
298
298
  margin-bottom: 0;
@@ -301,12 +301,12 @@ Styleguide 8.3
301
301
  width: 240px;
302
302
 
303
303
  select {
304
- @include appearance(none);
304
+ @extend %appearance-none;
305
305
  background-color:transparent;
306
306
  background-image:none;
307
307
  border:none;
308
308
  box-shadow:none;
309
- cursor: pointer;
309
+ @extend %cursor-pointer;
310
310
  position: relative;
311
311
  width:100%;
312
312
  z-index: 3;
@@ -317,7 +317,7 @@ Styleguide 8.3
317
317
  &:after {
318
318
  /*@include position(absolute, em($input-padding-top) em($input-padding-side) 0 0);*/
319
319
  @include position(absolute, 0em 0em 0em 0);
320
- display: block;
320
+ @extend %display-block;
321
321
  line-height: $input-height;
322
322
  padding-right: $input-padding-side;
323
323
  }
@@ -387,11 +387,11 @@ Styleguide 8.5
387
387
  color: lighten($text-color, 15%);
388
388
  }
389
389
  .form__help--block {
390
- display: block;
390
+ @extend %display-block;
391
391
  padding: rhythm(.5) 0 0;
392
392
  }
393
393
  .form__help--inline {
394
- @include inline-block();
394
+ @extend %display-inline-block;
395
395
  vertical-align: middle;
396
396
  padding-left: 5px;
397
397
  }
@@ -451,12 +451,12 @@ Styleguide 8.6
451
451
  }
452
452
 
453
453
  a {
454
- display: block;
454
+ @extend %display-block;
455
455
  }
456
456
 
457
457
  > * {
458
458
  padding: $input-padding;
459
- display: block;
459
+ @extend %display-block;
460
460
  }
461
461
 
462
462
  > * + * {
@@ -464,7 +464,7 @@ Styleguide 8.6
464
464
  }
465
465
 
466
466
  ul {
467
- margin: 0;
467
+ @extend %no-margin;
468
468
  list-style: none;
469
469
  }
470
470
  }
@@ -498,15 +498,15 @@ Styleguide 8.8
498
498
  */
499
499
 
500
500
  .form__addon {
501
- @include inline-block;
501
+ @extend %display-inline-block;
502
502
  width: auto;
503
503
  min-width: em(16px);
504
504
  padding: $input-padding;
505
505
  line-height: 1em;
506
- font-weight: normal;
507
- float: left;
506
+ @extend %font-weight-normal;
507
+ @extend %float-left;
508
508
  height: $input-height;
509
- text-align: center;
509
+ @extend %text-align-center;
510
510
  border-width: $input-border;
511
511
  border-style: solid;
512
512
  @extend %input-addon !optional; // Backward compatibility
@@ -519,7 +519,7 @@ Styleguide 8.8
519
519
  > [type],
520
520
  > [class] {
521
521
  @include border-radius(0);
522
- float: left;
522
+ @extend %float-left;
523
523
  margin-left: -$input-border;
524
524
 
525
525
  &:first-child { @include border-radius($base-border-radius 0 0 $base-border-radius); }
@@ -561,11 +561,11 @@ Styleguide 8.9
561
561
  margin-bottom: rhythm(1);
562
562
  border-top: 1px solid #e5e5e5;
563
563
  clear: both;
564
- @extend .clearfix;
564
+ @extend %clearfix;
565
565
  }
566
566
 
567
567
  .form__group.form__actions {
568
- border: 0;
568
+ @extend %no-border;
569
569
  clear: none;
570
570
  margin-bottom: 0;
571
571
  margin-top: 0;
@@ -666,10 +666,10 @@ Styleguide 8.10
666
666
  .form--aligned {
667
667
 
668
668
  .form__label {
669
- float: left;
669
+ @extend %float-left;
670
670
  width: em($horizontal-offset) - em(20px);
671
671
  padding-top: em($input-padding-top);
672
- text-align: right;
672
+ @extend %text-align-right;
673
673
  }
674
674
 
675
675
  .form__controls { margin-left: em(20px); }
@@ -690,7 +690,7 @@ Styleguide 8.10
690
690
  padding-left: em($horizontal-offset);
691
691
  }
692
692
 
693
- @include media(palm) {
693
+ @include breakpoint($palm) {
694
694
  .form__label {
695
695
  width: 100%;
696
696
  float: none;
@@ -751,7 +751,7 @@ Styleguide 8.10.1
751
751
  }
752
752
 
753
753
  .form__label {
754
- @include inline-block;
754
+ @extend %display-inline-block;
755
755
  padding-right: 1em;
756
756
  margin-bottom: 0;
757
757
  }
@@ -781,8 +781,8 @@ Styleguide 8.10.1
781
781
  }
782
782
 
783
783
  .form__group {
784
- padding: 0;
785
- @include inline-block;
784
+ @extend %no-padding;
785
+ @extend %display-inline-block;
786
786
  }
787
787
 
788
788
  .form__group + .form__group {
@@ -790,10 +790,10 @@ Styleguide 8.10.1
790
790
  }
791
791
 
792
792
  .form__actions {
793
- border: 0;
794
- padding: 0;
795
- margin: 0;
796
- @include inline-block;
793
+ @extend %no-border;
794
+ @extend %no-padding;
795
+ @extend %no-margin;
796
+ @extend %display-inline-block;
797
797
  }
798
798
 
799
799
  }