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.
@@ -25,25 +25,21 @@ Styleguide 9
25
25
 
26
26
  */
27
27
 
28
- $media-queries: palm, lap, portable, lap-and-up, desk;
28
+ $media-queries: (
29
+ palm: $palm,
30
+ lap: $lap,
31
+ portable: $portable,
32
+ lap-and-up: $lap-and-up,
33
+ desk: $desk
34
+ );
29
35
 
30
36
  @if $grids {
31
- @each $device in $media-queries {
32
-
33
- $i: $total-columns + 1;
34
-
35
- @include media($device) {
36
-
37
- @while $i > 0 {
38
-
39
- $nth: $total-columns / $i;
40
-
41
- .#{$device}-#{$i} {
37
+ @each $media-query, $device in $media-queries {
38
+ @include breakpoint($device) {
39
+ @for $i from 1 through $total-columns {
40
+ .#{$media-query}-#{$i} {
42
41
  @include span($i);
43
- @include nth-omega(#{$i}n);
44
42
  }
45
-
46
- $i: $i - 1;
47
43
  }
48
44
  }
49
45
  }
@@ -73,11 +69,11 @@ Styleguide 9.1
73
69
  */
74
70
 
75
71
  @if $grids-helpers {
76
- @each $device in $media-queries {
77
- @include media($device) {
78
- .#{$device}-hide { display: none !important; }
79
- .#{$device}-show { display: block !important; }
80
- .#{$device}-omega { @include omega(); }
72
+ @each $media-query, $device in $media-queries {
73
+ @include breakpoint($device) {
74
+ .#{$media-query}-hide { display: none !important; }
75
+ .#{$media-query}-show { display: block !important; }
76
+ .#{$media-query}-omega { @include omega(); }
81
77
  }
82
78
  }
83
79
  }
@@ -17,7 +17,7 @@ Styleguide 10
17
17
  .badge,
18
18
  .pill {
19
19
  @extend %pill !optional;
20
- @include inline-block;
20
+ @extend %display-inline-block;
21
21
  padding: $pills-padding;
22
22
  vertical-align: baseline;
23
23
  white-space: nowrap;
@@ -27,7 +27,7 @@ Styleguide 10
27
27
  .pill { @include border-radius(500em); }
28
28
 
29
29
  .badge, .pill {
30
- &:empty { display: none; }
30
+ &:empty { @extend %display-none; }
31
31
  }
32
32
 
33
33
  a {
@@ -36,8 +36,8 @@ Styleguide 10
36
36
  &.badge:hover,
37
37
  &.badge:focus {
38
38
  color: $white;
39
- text-decoration: none;
40
- cursor: pointer;
39
+ @extend %text-decoration-none;
40
+ @extend %cursor-pointer;
41
41
  }
42
42
  }
43
43
 
@@ -26,16 +26,16 @@ Styleguide 11
26
26
 
27
27
  */
28
28
 
29
- .modal { display: none; }
29
+ .modal { @extend %display-none; }
30
30
 
31
31
  @if $modal {
32
32
 
33
33
  // Resets
34
34
 
35
35
  %modal-reset {
36
- padding: 0;
37
- margin: 0;
38
- border: 0;
36
+ @extend %no-padding;
37
+ @extend %no-margin;
38
+ @extend %no-border;
39
39
  vertical-align: top;
40
40
  list-style-type: none;
41
41
  }
@@ -58,7 +58,7 @@ Styleguide 11
58
58
  .fancybox-overlay {
59
59
  @extend %modal__overlay !optional;
60
60
  @include position(absolute, 0px 0 0 0px);
61
- display: none;
61
+ @extend %display-none;
62
62
  overflow: hidden;
63
63
  z-index: ($zindex-modal - 1);
64
64
 
@@ -133,14 +133,14 @@ Styleguide 11
133
133
  // Content
134
134
 
135
135
  .fancybox-error {
136
- margin: 0;
136
+ @extend %no-margin;
137
137
  padding: $modals-error-padding;
138
138
  white-space: nowrap;
139
139
  }
140
140
 
141
141
  .fancybox-image,
142
142
  .fancybox-iframe {
143
- display: block;
143
+ @extend %display-block;
144
144
  @include square(100%);
145
145
  }
146
146
 
@@ -156,7 +156,7 @@ Styleguide 11
156
156
  #fancybox-loading {
157
157
  @include position(fixed, 50% 0 0 50%);
158
158
  @extend %modal__loading !optional;
159
- cursor: pointer;
159
+ @extend %cursor-pointer;
160
160
  z-index: ($zindex-modal + 4);
161
161
  }
162
162
 
@@ -214,17 +214,17 @@ Styleguide 11
214
214
  .fancybox-title-float-wrap {
215
215
  @include position(absolute, 0 50% 0px 0);
216
216
  margin-bottom: em(-35px);
217
- text-align: center;
217
+ @extend %text-align-center;
218
218
  z-index: ($zindex-modal + 3);
219
219
 
220
220
  .child {
221
221
  @include alpha-color(#000, .8, background);
222
222
  @include border-radius($base-border-radius);
223
- @include inline-block;
223
+ @extend %display-inline-block;
224
224
  margin-right: -100%;
225
225
  padding: em(2px) em($input-padding-side);
226
226
  color: #FFF;
227
- font-weight: bold;
227
+ @extend %font-weight-bold;
228
228
  white-space: nowrap;
229
229
  }
230
230
  }
@@ -290,12 +290,12 @@ Styleguide 11.1
290
290
 
291
291
  ul {
292
292
  @extend %modal__btnbar-size !optional;
293
- display: block;
293
+ @extend %display-block;
294
294
  list-style: none;
295
295
  margin: 0 auto;
296
296
  li {
297
- float: left;
298
- margin: 0;
297
+ @extend %float-left;
298
+ @extend %no-margin;
299
299
  a {
300
300
  @extend %modal__btn !optional;
301
301
  position: relative;
@@ -364,7 +364,7 @@ Styleguide 11.2
364
364
  position: relative;
365
365
 
366
366
  li {
367
- float: left;
367
+ @extend %float-left;
368
368
  margin-right: em(4px);
369
369
  @include opacity(.5);
370
370
 
@@ -372,9 +372,9 @@ Styleguide 11.2
372
372
  &.active { @include opacity(1); }
373
373
 
374
374
  a {
375
- display: block;
375
+ @extend %display-block;
376
376
  overflow: hidden;
377
- text-align: center;
377
+ @extend %text-align-center;
378
378
  }
379
379
 
380
380
  }
@@ -36,14 +36,14 @@ Styleguide 12
36
36
  @if $navs {
37
37
 
38
38
  .nav {
39
- @extend .clearfix;
40
- @include inline-block;
39
+ @extend %clearfix;
40
+ @extend %display-inline-block;
41
41
  margin-bottom: rhythm();
42
42
  position: relative;
43
43
 
44
44
  &, ul {
45
- @extend .clearfix;
46
- @extend .list-style-none;
45
+ @extend %clearfix;
46
+ @extend %list-style-none;
47
47
  margin-bottom: 0;
48
48
  }
49
49
 
@@ -52,11 +52,11 @@ Styleguide 12
52
52
 
53
53
  > a {
54
54
  @extend .transition;
55
- @include inline-block;
55
+ @extend %display-inline-block;
56
56
  line-height: 1em;
57
57
 
58
58
  &:hover, &:focus {
59
- text-decoration: none;
59
+ @extend %text-decoration-none;
60
60
  }
61
61
 
62
62
  img { max-width: none; }
@@ -64,9 +64,9 @@ Styleguide 12
64
64
 
65
65
  &.disabled > a:hover,
66
66
  &.disabled > a:focus {
67
- text-decoration: none;
67
+ @extend %text-decoration-none;
68
68
  background-color: transparent;
69
- cursor: default;
69
+ @extend %cursor-default;
70
70
  }
71
71
 
72
72
  // Disabled
@@ -99,18 +99,18 @@ Styleguide 12
99
99
  .nav__title {
100
100
  @include adjust-font-size-to($small-size);
101
101
  color: $gray;
102
- display: block;
103
- font-weight: bold;
102
+ @extend %display-block;
103
+ @extend %font-weight-bold;
104
104
  padding: $navs-padding;
105
105
  padding-left: 0;
106
- text-transform: uppercase;
106
+ @extend %text-transform-uppercase;
107
107
  }
108
108
 
109
109
  // Horizontal nav
110
110
 
111
111
  .nav--inline {
112
112
  & > li,
113
- > ul > li { float: left;}
113
+ > ul > li { @extend %float-left;}
114
114
 
115
115
  li ul {
116
116
  @include position(absolute, 100% 0 0 0px);
@@ -124,7 +124,7 @@ Styleguide 12
124
124
  width: 100%;
125
125
 
126
126
  li > a {
127
- display: block;
127
+ @extend %display-block;
128
128
  }
129
129
  }
130
130
 
@@ -142,7 +142,7 @@ Styleguide 12
142
142
  }
143
143
  }
144
144
 
145
- ul a { display: block; }
145
+ ul a { @extend %display-block; }
146
146
 
147
147
  &.current > a,
148
148
  &.current > a:hover,
@@ -162,7 +162,7 @@ Styleguide 15.2
162
162
  visibility: visible;
163
163
 
164
164
  &::after {
165
- display: none;
165
+ @extend %display-none;
166
166
  }
167
167
  }
168
168
 
@@ -198,7 +198,7 @@ Styleguide 15.2
198
198
  z-index: 1;
199
199
 
200
200
  &::after {
201
- display: none;
201
+ @extend %display-none;
202
202
  }
203
203
  }
204
204
  }
@@ -227,7 +227,7 @@ Styleguide 15.2
227
227
  @include translate3d($if-3d, 0, 0);
228
228
 
229
229
  &::after {
230
- display: none;
230
+ @extend %display-none;
231
231
  }
232
232
  }
233
233
  }
@@ -257,7 +257,7 @@ Styleguide 15.2
257
257
  @include translate3d($if-3d/2, 0, 0);
258
258
 
259
259
  &::after {
260
- display: none;
260
+ @extend %display-none;
261
261
  }
262
262
  }
263
263
  }
@@ -76,8 +76,8 @@ Styleguide 18
76
76
 
77
77
  .overlay-close {
78
78
  @extend %overlay__close !optional;
79
- cursor: pointer;
80
- display: block;
79
+ @extend %cursor-pointer;
80
+ @extend %display-block;
81
81
  }
82
82
 
83
83
  }
@@ -20,20 +20,20 @@ Styleguide 13
20
20
 
21
21
 
22
22
  .pager {
23
- @include clearfix();
23
+ @extend %clearfix;
24
24
  list-style: none;
25
25
  margin: rhythm() 0;
26
- text-align: center;
26
+ @extend %text-align-center;
27
27
 
28
28
  li {
29
- display: inline;
29
+ @extend %display-inline;
30
30
 
31
31
  a,
32
32
  span {
33
33
  @include border-radius($base-border-radius);
34
34
  border-style: solid;
35
35
  border-width: 1px;
36
- @include inline-block;
36
+ @extend %display-inline-block;
37
37
  line-height: 1em;
38
38
  padding: $pager-padding;
39
39
  @extend %pager--btn !optional;
@@ -67,13 +67,13 @@ Styleguide 13.1
67
67
  [rel="next"],
68
68
  .next > a,
69
69
  .next > span {
70
- float: right;
70
+ @extend %float-right;
71
71
  }
72
72
 
73
73
  [rel="prev"],
74
74
  .previous > a,
75
75
  .previous > span {
76
- float: left;
76
+ @extend %float-left;
77
77
  }
78
78
 
79
79
  /*
@@ -96,7 +96,7 @@ Styleguide 13.2
96
96
  .disabled > a:hover,
97
97
  .disabled > a:focus,
98
98
  .disabled > span {
99
- cursor: default;
99
+ @extend %cursor-default;
100
100
  @extend %pager--btn__disabled !optional;
101
101
  }
102
102
 
@@ -32,22 +32,22 @@ Styleguide 14
32
32
  clear: both;
33
33
 
34
34
  > * {
35
- @extend .clearfix;
35
+ @extend %clearfix;
36
36
  @include border-radius($base-border-radius);
37
- @include inline-block;
37
+ @extend %display-inline-block;
38
38
  margin-bottom: 0;
39
39
  margin-left: $input-border;
40
40
 
41
41
  li {
42
- float: left;
42
+ @extend %float-left;
43
43
  list-style-type: none;
44
44
 
45
45
  a,
46
46
  span {
47
- @include inline-block;
47
+ @extend %display-inline-block;
48
48
  padding: $pagination-padding;
49
49
  line-height: 1em;
50
- text-decoration: none;
50
+ @extend %text-decoration-none;
51
51
  border-width: $input-border;
52
52
  border-style: solid;
53
53
  margin-left: -$input-border;
@@ -90,15 +90,15 @@ Styleguide 14
90
90
  .disabled > a,
91
91
  .disabled > a:hover,
92
92
  .disabled > a:focus {
93
- cursor: default;
93
+ @extend %cursor-default;
94
94
  }
95
95
  }
96
96
  }
97
97
 
98
98
  // Alternative alignments
99
99
 
100
- .pagination--center {text-align: center; }
101
- .pagination--right {text-align: right; }
100
+ .pagination--center {@extend %text-align-center; }
101
+ .pagination--right {@extend %text-align-right; }
102
102
 
103
103
  // Rounded sides
104
104
 
@@ -25,7 +25,7 @@ Styleguide 8.7
25
25
  z-index: $zindex-dropdown;
26
26
  }
27
27
 
28
- .picker__input { cursor: default; }
28
+ .picker__input { @extend %cursor-default; }
29
29
 
30
30
  .picker__holder {
31
31
  -webkit-overflow-scrolling: touch;
@@ -57,25 +57,25 @@ Styleguide 8.7
57
57
 
58
58
  .picker__header {
59
59
  position: relative;
60
- text-align: center;
60
+ @extend %text-align-center;
61
61
  }
62
62
 
63
63
  .picker__year,
64
64
  .picker__month,
65
65
  .picker__select--year
66
66
  .picker__select--month {
67
- display: inline-block;
67
+ @extend %display-inline-block;
68
68
  margin: 0 .25em;
69
69
  }
70
70
 
71
71
  .picker__month {
72
- font-weight: bold;
72
+ @extend %font-weight-bold;
73
73
  @include adjust-font-size-to($h5-size);
74
74
  }
75
75
 
76
76
  .picker__year {
77
77
  color: $gray;
78
- font-style: italic;
78
+ @extend %font-style-italic;
79
79
  @include adjust-font-size-to($small-size);
80
80
  }
81
81
 
@@ -109,7 +109,7 @@ Styleguide 8.7
109
109
  .picker__nav--disabled:hover,
110
110
  .picker__nav--disabled:before,
111
111
  .picker__nav--disabled:before:hover {
112
- cursor: default;
112
+ @extend %cursor-default;
113
113
  background: none;
114
114
  }
115
115
 
@@ -119,12 +119,12 @@ Styleguide 8.7
119
119
  margin: nth($picker-padding, 1) 0;
120
120
  width: 100%;
121
121
  table-layout: fixed;
122
- text-align: center;
122
+ @extend %text-align-center;
123
123
  border-collapse: collapse;
124
124
  border-spacing: 0;
125
125
  td {
126
- margin: 0;
127
- padding: 0;
126
+ @extend %no-margin;
127
+ @extend %no-padding;
128
128
  }
129
129
  }
130
130
 
@@ -142,7 +142,7 @@ Styleguide 8.7
142
142
  &:before {
143
143
  @include position(absolute, 2px 2px 0 0);
144
144
  @include triangle(8px, rgba(0,0,0,.3), up-right);
145
- display: block;
145
+ @extend %display-block;
146
146
  content: "";
147
147
  }
148
148
  }
@@ -155,7 +155,7 @@ Styleguide 8.7
155
155
  .picker__day--infocus:hover,
156
156
  .picker__day--outfocus:hover {
157
157
  @extend %form__picker--hover;
158
- cursor: pointer;
158
+ @extend %cursor-pointer;
159
159
  }
160
160
 
161
161
  .picker__day--highlighted:hover,
@@ -166,7 +166,7 @@ Styleguide 8.7
166
166
  .picker__day--disabled,
167
167
  .picker__day--disabled:hover {
168
168
  @extend %form__picker--disabled;
169
- cursor: default;
169
+ @extend %cursor-default;
170
170
  }
171
171
 
172
172
  .picker__day--highlighted.picker__day--disabled,
@@ -183,7 +183,7 @@ Styleguide 8.7
183
183
  @extend .btn;
184
184
  @extend .btn--link;
185
185
  color: $text-color;
186
- font-weight: bold;
186
+ @extend %font-weight-bold;
187
187
  width: 50%;
188
188
 
189
189
  &:hover { @extend %form__picker--hover }