rapido-css 0.0.3 → 0.0.4
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 +15 -0
- data/README.md +44 -9
- data/stylesheets/_default-styles.scss +309 -138
- data/stylesheets/_functions.scss +67 -4
- data/stylesheets/_normalize.scss +39 -513
- data/stylesheets/_rapido.scss +17 -8
- data/stylesheets/_susy.scss +2 -5
- data/stylesheets/components/_alerts.scss +39 -5
- data/stylesheets/components/_breadcrumbs.scss +21 -4
- data/stylesheets/components/_button-groups.scss +42 -17
- data/stylesheets/components/_buttons.scss +69 -29
- data/stylesheets/components/_captions.scss +38 -19
- data/stylesheets/components/_close.scss +14 -3
- data/stylesheets/components/_dropdowns.scss +76 -28
- data/stylesheets/components/_forms.scss +477 -350
- data/stylesheets/components/_grids.scss +86 -0
- data/stylesheets/components/_labels.scss +26 -4
- data/stylesheets/components/_modals.scss +122 -38
- data/stylesheets/components/_navs.scss +51 -21
- data/stylesheets/components/_pager.scss +55 -10
- data/stylesheets/components/_pagination.scss +40 -25
- data/stylesheets/components/_responsive-navs.scss +141 -28
- data/stylesheets/components/_sliders.scss +45 -26
- data/stylesheets/components/_tables.scss +43 -16
- data/stylesheets/components/_tabs.scss +47 -9
- data/stylesheets/components/_type.scss +139 -73
- data/stylesheets/settings/_base.scss +73 -27
- data/stylesheets/settings/_colors.scss +43 -16
- data/stylesheets/settings/_components.scss +102 -43
- data/stylesheets/settings/_dimensions.scss +273 -92
- data/stylesheets/settings/_effects.scss +20 -12
- data/stylesheets/styleguide.md +33 -0
- data/stylesheets/utilities/_animations.scss +150 -129
- data/stylesheets/utilities/_debug.scss +29 -3
- data/stylesheets/utilities/_helper-classes.scss +135 -18
- data/stylesheets/utilities/_icon-fonts.scss +77 -80
- data/stylesheets/utilities/_mixins.scss +385 -63
- metadata +6 -13
- data/stylesheets/components/config.rb +0 -8
- data/stylesheets/settings/config.rb +0 -8
- data/stylesheets/utilities/_media-queries.scss +0 -50
- data/stylesheets/utilities/_sprites.scss +0 -22
- data/stylesheets/utilities/config.rb +0 -8
@@ -0,0 +1,86 @@
|
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Grids
|
4
|
+
|
5
|
+
Grids usually are defined directly in the scss/sass files using the `columns` mixin.
|
6
|
+
This is the best solution and keep the html free of classes that one day may be changed requiring more work
|
7
|
+
that editing the stylesheet file and recompiling.
|
8
|
+
|
9
|
+
Sometimes is easier to add a class to the html for quick prototiping, in this case there are available several classes
|
10
|
+
just for that.
|
11
|
+
|
12
|
+
In this example the columns width is 3 on desktop, 6 on tablet and 12 on smartphone.
|
13
|
+
|
14
|
+
Markup:
|
15
|
+
<div class="desk-3 lap-6 palm-12">1</div>
|
16
|
+
<div class="desk-3 lap-6 palm-12">2</div>
|
17
|
+
<div class="desk-3 lap-6 palm-12">3</div>
|
18
|
+
<div class="desk-3 lap-6 palm-12">4</div>
|
19
|
+
<div class="desk-3 lap-6 palm-12">5</div>
|
20
|
+
<div class="desk-3 lap-6 palm-12">6</div>
|
21
|
+
<div class="desk-3 lap-6 palm-12">7</div>
|
22
|
+
<div class="desk-3 lap-6 palm-12">8</div>
|
23
|
+
|
24
|
+
Styleguide 9
|
25
|
+
|
26
|
+
==================================================================================================================== */
|
27
|
+
|
28
|
+
$media-queries: palm, lap, portable, lap-and-up, desk;
|
29
|
+
|
30
|
+
@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} {
|
42
|
+
@include span-columns($i);
|
43
|
+
}
|
44
|
+
|
45
|
+
[class*="#{$device}-#{$i}"]:nth-child(#{$nth}n) {
|
46
|
+
@include omega()
|
47
|
+
}
|
48
|
+
|
49
|
+
$i: $i - 1;
|
50
|
+
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
57
|
+
|
58
|
+
Show and Hide
|
59
|
+
|
60
|
+
There're also available some helper classes:
|
61
|
+
|
62
|
+
* **Hide element**: Used to hide an element at a breackpoint
|
63
|
+
* `.palm-hide`
|
64
|
+
* `.lap-hide`
|
65
|
+
* `.portable-hide`
|
66
|
+
* `.lap-and-up-hide`
|
67
|
+
* `.desk-hide`
|
68
|
+
* **Show element**: Used to show an element at a breackpoint
|
69
|
+
* `.palm-show`
|
70
|
+
* `.lap-show`
|
71
|
+
* `.portable-show`
|
72
|
+
* `.lap-and-up-show`
|
73
|
+
* `.desk-show`
|
74
|
+
|
75
|
+
Styleguide 9.1
|
76
|
+
|
77
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
78
|
+
|
79
|
+
@if $grids-helpers {
|
80
|
+
@each $device in $media-queries {
|
81
|
+
@include media($device) {
|
82
|
+
.#{$device}-hide { display: none !important; }
|
83
|
+
.#{$device}-show { display: block !important; }
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
@@ -1,6 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Badge & Pills
|
4
|
+
|
5
|
+
Lables are used to highlight a text; `badge` have small rounded corners and `pill` have full rounded corners.
|
6
|
+
|
7
|
+
Markup:
|
8
|
+
<span class="badge">Badge Label</span>
|
9
|
+
<span class="pill">Pill label</span>
|
10
|
+
|
11
|
+
Styleguide 10.
|
12
|
+
|
13
|
+
==================================================================================================================== */
|
4
14
|
|
5
15
|
@if $labels {
|
6
16
|
|
@@ -14,7 +24,7 @@
|
|
14
24
|
}
|
15
25
|
|
16
26
|
.badge { @include border-radius($base-border-radius); }
|
17
|
-
.pill { @include border-radius(
|
27
|
+
.pill { @include border-radius(500em); }
|
18
28
|
|
19
29
|
.badge, .pill {
|
20
30
|
&:empty { display: none; }
|
@@ -31,6 +41,18 @@
|
|
31
41
|
}
|
32
42
|
}
|
33
43
|
|
44
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
45
|
+
|
46
|
+
Labels used in buttons.
|
47
|
+
|
48
|
+
Markup:
|
49
|
+
<button class="btn btn--default">Action <span class="badge">2</span></button>
|
50
|
+
<button class="btn btn--default btn--pill">Action <span class="pill">2</span></button>
|
51
|
+
|
52
|
+
Styleguide 10.1
|
53
|
+
|
54
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
55
|
+
|
34
56
|
.btn {
|
35
57
|
.badge,
|
36
58
|
.pill {
|
@@ -1,14 +1,32 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Modals
|
4
|
+
|
5
|
+
For modals is used the excellent [**fancyBox**](http://fancyapps.com/fancybox/) jQuery plugin, see full documentation for more in depth examples.
|
6
|
+
|
7
|
+
Markup:
|
8
|
+
<a class="open__modal btn btn--default" href="#modal">Open modal</a>
|
9
|
+
<div id="modal" class="modal">
|
10
|
+
<h2>Lorem ipsum dolor sit amet</h2>
|
11
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
12
|
+
</div>
|
13
|
+
<script type="text/javascript">
|
14
|
+
$(document).ready(function() {
|
15
|
+
$(".open__modal").fancybox();
|
16
|
+
});
|
17
|
+
</script>
|
18
|
+
|
19
|
+
Styleguide 11.
|
20
|
+
|
21
|
+
==================================================================================================================== */
|
4
22
|
|
5
23
|
.modal { display: none; }
|
6
24
|
|
7
25
|
@if $modal {
|
8
26
|
|
9
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
10
27
|
// Resets
|
11
28
|
// --------------------------------------------------------------------------------------------------------------------
|
29
|
+
|
12
30
|
%modal-reset {
|
13
31
|
padding: 0;
|
14
32
|
margin: 0;
|
@@ -29,13 +47,12 @@
|
|
29
47
|
@extend %modal-reset;
|
30
48
|
}
|
31
49
|
|
32
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
33
50
|
// Container
|
34
51
|
// --------------------------------------------------------------------------------------------------------------------
|
35
52
|
|
36
53
|
// Overlay | 1st level
|
37
54
|
.fancybox-overlay {
|
38
|
-
@extend %
|
55
|
+
@extend %modal__overlay !optional;
|
39
56
|
@include position(absolute, 0px 0 0 0px);
|
40
57
|
display: none;
|
41
58
|
overflow: hidden;
|
@@ -53,20 +70,23 @@
|
|
53
70
|
&.fancybox-opened { z-index: ($zindex-modal + 1); }
|
54
71
|
|
55
72
|
// for Iframes
|
56
|
-
&.fancybox-type-iframe .fancybox-inner {
|
73
|
+
&.fancybox-type-iframe .fancybox-inner {
|
74
|
+
-webkit-overflow-scrolling: touch;
|
75
|
+
}
|
57
76
|
|
58
77
|
// for Iframes, Inline and Ajax
|
59
78
|
&.fancybox-type-inline,
|
60
79
|
&.fancybox-type-iframe,
|
61
80
|
&.fancybox-type-ajax {
|
81
|
+
|
62
82
|
.fancybox-close {
|
63
|
-
@extend %
|
83
|
+
@extend %modal__close--alt !optional;
|
64
84
|
}
|
65
85
|
}
|
66
86
|
|
67
87
|
// Skin | 3rd Level
|
68
88
|
.fancybox-skin {
|
69
|
-
@extend %
|
89
|
+
@extend %modal__skin !optional;
|
70
90
|
position: relative;
|
71
91
|
padding: 0 !important;
|
72
92
|
|
@@ -79,13 +99,15 @@
|
|
79
99
|
position: relative;
|
80
100
|
overflow: hidden;
|
81
101
|
|
102
|
+
> div { padding: rhythm(1); }
|
103
|
+
|
82
104
|
} // 5thst
|
83
105
|
} // 4th
|
84
106
|
} // 3rd
|
85
107
|
} // 2nd
|
86
108
|
} // 1st
|
87
109
|
|
88
|
-
|
110
|
+
|
89
111
|
// Backtground temp
|
90
112
|
// --------------------------------------------------------------------------------------------------------------------
|
91
113
|
|
@@ -97,7 +119,6 @@
|
|
97
119
|
overflow: visible !important;
|
98
120
|
}
|
99
121
|
|
100
|
-
|
101
122
|
.fancybox-lock { overflow: hidden; }
|
102
123
|
|
103
124
|
.fancybox-lock .fancybox-overlay {
|
@@ -105,7 +126,7 @@
|
|
105
126
|
overflow-y: scroll;
|
106
127
|
}
|
107
128
|
|
108
|
-
|
129
|
+
|
109
130
|
// Content
|
110
131
|
// --------------------------------------------------------------------------------------------------------------------
|
111
132
|
|
@@ -124,25 +145,25 @@
|
|
124
145
|
.fancybox-image {
|
125
146
|
max-width: 100%;
|
126
147
|
max-height: 100%;
|
127
|
-
@include border-radius($base-border-radius);
|
148
|
+
// @include border-radius($base-border-radius);
|
128
149
|
}
|
129
150
|
|
130
151
|
|
131
152
|
#fancybox-loading {
|
132
153
|
@include position(fixed, 50% 0 0 50%);
|
133
|
-
@extend %
|
154
|
+
@extend %modal__loading !optional;
|
134
155
|
cursor: pointer;
|
135
156
|
z-index: $zindex-modal +4;
|
136
157
|
}
|
137
158
|
|
138
|
-
|
159
|
+
|
139
160
|
// Buttons and Navigation
|
140
161
|
// --------------------------------------------------------------------------------------------------------------------
|
141
162
|
|
142
163
|
.fancybox-close {
|
143
|
-
@extend %
|
144
|
-
@extend %
|
145
|
-
@include border-radius($base-border-radius);
|
164
|
+
@extend %modal__btn !optional;
|
165
|
+
@extend %modal__close !optional;
|
166
|
+
// @include border-radius($base-border-radius);
|
146
167
|
z-index: ($zindex-modal + 3);
|
147
168
|
}
|
148
169
|
|
@@ -153,14 +174,14 @@
|
|
153
174
|
z-index: ($zindex-modal + 2);
|
154
175
|
|
155
176
|
span {
|
156
|
-
@extend %
|
157
|
-
@extend %
|
177
|
+
@extend %modal__btn !optional;
|
178
|
+
@extend %modal__nav !optional;
|
158
179
|
@include position(absolute, 50% 0 0 0);
|
159
|
-
|
180
|
+
@include opacity(0);
|
160
181
|
z-index: ($zindex-modal + 2);
|
161
182
|
}
|
162
183
|
|
163
|
-
&:hover span {
|
184
|
+
&:hover span { @include opacity(1); }
|
164
185
|
|
165
186
|
&.fancybox-prev {
|
166
187
|
left: 0;
|
@@ -171,10 +192,9 @@
|
|
171
192
|
right: 0;
|
172
193
|
span { right: 0; }
|
173
194
|
}
|
174
|
-
|
175
195
|
}
|
176
196
|
|
177
|
-
|
197
|
+
|
178
198
|
// Titles
|
179
199
|
// --------------------------------------------------------------------------------------------------------------------
|
180
200
|
|
@@ -215,15 +235,45 @@
|
|
215
235
|
|
216
236
|
.fancybox-title-over-wrap {
|
217
237
|
@include position(absolute, 0 0 0px 0px);
|
218
|
-
@extend %
|
238
|
+
@extend %modal__caption !optional;
|
219
239
|
}
|
220
240
|
|
221
|
-
}
|
241
|
+
}
|
242
|
+
|
243
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
244
|
+
|
245
|
+
Modal Buttons
|
246
|
+
|
247
|
+
Markup:
|
248
|
+
<a class="fancybox-button" rel="fancybox-button" href="http://placehold.it/600x400/c7e843/fff.jpg">
|
249
|
+
<img src="http://placehold.it/60x60/c7e843/fff.jpg"/>
|
250
|
+
</a>
|
251
|
+
<a class="fancybox-button" rel="fancybox-button" href="http://placehold.it/600x400/f6ab48/fff.jpg">
|
252
|
+
<img src="http://placehold.it/60x60/f6ab48/fff.jpg"/>
|
253
|
+
</a>
|
254
|
+
<a class="fancybox-button" rel="fancybox-button" href="http://placehold.it/600x400/3dced4/fff.jpg">
|
255
|
+
<img src="http://placehold.it/60x60/3dced4/fff.jpg"/>
|
256
|
+
</a>
|
257
|
+
<script type="text/javascript">
|
258
|
+
$(document).ready(function() {
|
259
|
+
$(".fancybox-button").fancybox({
|
260
|
+
prevEffect : 'none',
|
261
|
+
nextEffect : 'none',
|
262
|
+
closeBtn : false,
|
263
|
+
helpers : {
|
264
|
+
title : { type : 'inside' },
|
265
|
+
buttons : {}
|
266
|
+
}
|
267
|
+
});
|
268
|
+
});
|
269
|
+
</script>
|
270
|
+
|
271
|
+
Styleguide 11.1
|
272
|
+
|
273
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
222
274
|
|
223
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
224
|
-
// Modal Buttons
|
225
|
-
// --------------------------------------------------------------------------------------------------------------------
|
226
275
|
@if $modal-buttons {
|
276
|
+
|
227
277
|
#fancybox-buttons {
|
228
278
|
@include position(fixed, 0 0 0 0px);
|
229
279
|
width: 100%;
|
@@ -232,7 +282,7 @@
|
|
232
282
|
&.bottom { bottom: em(10px); }
|
233
283
|
|
234
284
|
ul {
|
235
|
-
@extend %
|
285
|
+
@extend %modal__btnbar-size !optional;
|
236
286
|
display: block;
|
237
287
|
list-style: none;
|
238
288
|
margin: 0 auto;
|
@@ -240,9 +290,9 @@
|
|
240
290
|
float: left;
|
241
291
|
margin: 0;
|
242
292
|
a {
|
243
|
-
@extend %
|
293
|
+
@extend %modal__btn !optional;
|
244
294
|
position: relative;
|
245
|
-
&:hover { opacity
|
295
|
+
&:hover { @include opacity(1); }
|
246
296
|
&:after { @include position(absolute, 0px 0px 0 0px); }
|
247
297
|
}
|
248
298
|
}
|
@@ -250,10 +300,44 @@
|
|
250
300
|
}
|
251
301
|
}
|
252
302
|
|
253
|
-
|
254
|
-
|
255
|
-
|
303
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
304
|
+
|
305
|
+
Modal Thumbs
|
306
|
+
|
307
|
+
Markup:
|
308
|
+
<a class="fancybox-thumb" rel="fancybox-thumb" href="http://placehold.it/600x400/c7e843/fff.jpg">
|
309
|
+
<img src="http://placehold.it/60x60/c7e843/fff.jpg"/>
|
310
|
+
</a>
|
311
|
+
<a class="fancybox-thumb" rel="fancybox-thumb" href="http://placehold.it/600x400/f6ab48/fff.jpg">
|
312
|
+
<img src="http://placehold.it/60x60/f6ab48/fff.jpg"/>
|
313
|
+
</a>
|
314
|
+
<a class="fancybox-thumb" rel="fancybox-thumb" href="http://placehold.it/600x400/3dced4/fff.jpg">
|
315
|
+
<img src="http://placehold.it/60x60/3dced4/fff.jpg"/>
|
316
|
+
</a>
|
317
|
+
<script type="text/javascript">
|
318
|
+
$(document).ready(function() {
|
319
|
+
$(".fancybox-thumb").fancybox({
|
320
|
+
prevEffect : 'none',
|
321
|
+
nextEffect : 'none',
|
322
|
+
helpers : {
|
323
|
+
title : {
|
324
|
+
type: 'outside'
|
325
|
+
},
|
326
|
+
thumbs : {
|
327
|
+
width : 60,
|
328
|
+
height : 60
|
329
|
+
}
|
330
|
+
}
|
331
|
+
});
|
332
|
+
});
|
333
|
+
</script>
|
334
|
+
|
335
|
+
Styleguide 11.2
|
336
|
+
|
337
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
338
|
+
|
256
339
|
@if $modal-thumbs {
|
340
|
+
|
257
341
|
#fancybox-thumbs {
|
258
342
|
@include position(fixed, 0 0 0 0px);
|
259
343
|
overflow: hidden;
|
@@ -270,10 +354,10 @@
|
|
270
354
|
li {
|
271
355
|
float: left;
|
272
356
|
margin-right: em(4px);
|
273
|
-
opacity
|
357
|
+
@include opacity(.5);
|
274
358
|
|
275
|
-
&:hover { opacity
|
276
|
-
&.active { opacity
|
359
|
+
&:hover { @include opacity(.75); }
|
360
|
+
&.active { @include opacity(1); }
|
277
361
|
|
278
362
|
a {
|
279
363
|
display: block;
|
@@ -1,12 +1,32 @@
|
|
1
|
-
|
2
|
-
// NAVS
|
3
|
-
// ====================================================================================================================
|
1
|
+
/* ====================================================================================================================
|
4
2
|
|
5
|
-
|
3
|
+
Navs
|
6
4
|
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
All nav components here share the same base markup and styles through the `.nav` class.
|
6
|
+
|
7
|
+
* `.nav__title`: Nav titles
|
8
|
+
* `.current`: Button for current page
|
9
|
+
* `.disabled`: Disabled state style
|
10
|
+
* `.divider`: Add horizontal line as a divider
|
11
|
+
|
12
|
+
Markup:
|
13
|
+
<ul class="nav {$modifiers}">
|
14
|
+
<li class="nav__title">Nav header</li>
|
15
|
+
<li class="current"><a href="#">Home</a></li>
|
16
|
+
<li><a href="#">Messages</a></li>
|
17
|
+
<li><a href="#">Friends</a></li>
|
18
|
+
<li class="disabled"><a href="#">Profile</a></li>
|
19
|
+
</ul>
|
20
|
+
|
21
|
+
.nav--inline.nav--btn - Horizontal and blocky links.
|
22
|
+
.nav--inline.nav--btn.nav--pills - Horizontal and blocky links with rounded corners.
|
23
|
+
.nav--vertical.nav--btn - Vertical nav layout and blocky links
|
24
|
+
|
25
|
+
Styleguide 12
|
26
|
+
|
27
|
+
==================================================================================================================== */
|
28
|
+
|
29
|
+
@if $navs {
|
10
30
|
|
11
31
|
.nav {
|
12
32
|
@extend .clearfix;
|
@@ -18,11 +38,13 @@
|
|
18
38
|
margin-bottom: rhythm();
|
19
39
|
margin-left: 0;
|
20
40
|
padding-left: 0;
|
41
|
+
@extend .clearfix;
|
21
42
|
}
|
22
43
|
|
23
44
|
li {
|
45
|
+
|
24
46
|
> a {
|
25
|
-
display: block;
|
47
|
+
display: inline-block;
|
26
48
|
line-height: 1em;
|
27
49
|
|
28
50
|
&:hover, &:focus {
|
@@ -41,6 +63,9 @@
|
|
41
63
|
}
|
42
64
|
}
|
43
65
|
|
66
|
+
// Nav Title
|
67
|
+
// --------------------------------------------------------------------------------------------------------------------
|
68
|
+
|
44
69
|
.nav__title {
|
45
70
|
@include adjust-font-size-to($milli-size);
|
46
71
|
color: $gray;
|
@@ -51,50 +76,55 @@
|
|
51
76
|
text-transform: uppercase;
|
52
77
|
}
|
53
78
|
|
54
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
55
79
|
// Horizontal nav
|
56
80
|
// --------------------------------------------------------------------------------------------------------------------
|
81
|
+
|
57
82
|
.nav--inline {
|
58
83
|
& > li,
|
59
|
-
ul > li { float: left;}
|
84
|
+
> ul > li { float: left;}
|
60
85
|
}
|
61
86
|
|
62
|
-
|
63
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
64
87
|
// Vertical nav
|
65
88
|
// --------------------------------------------------------------------------------------------------------------------
|
89
|
+
|
66
90
|
.nav--vertical {
|
67
91
|
width: 100%;
|
92
|
+
|
93
|
+
li > a {
|
94
|
+
display: block;
|
95
|
+
}
|
68
96
|
}
|
69
97
|
|
70
|
-
|
98
|
+
|
71
99
|
// Nav with blocky links
|
72
100
|
// --------------------------------------------------------------------------------------------------------------------
|
101
|
+
|
73
102
|
.nav--btn {
|
74
103
|
li {
|
75
104
|
> a {
|
76
105
|
padding: $navs-padding;
|
77
|
-
@extend %nav
|
106
|
+
@extend %nav--btn;
|
78
107
|
|
79
108
|
&:hover, &:focus {
|
80
|
-
@extend %nav
|
109
|
+
@extend %nav--btn__hover;
|
81
110
|
}
|
82
111
|
}
|
83
112
|
|
84
|
-
&.
|
85
|
-
&.
|
86
|
-
&.
|
87
|
-
@extend %nav
|
113
|
+
&.current > a,
|
114
|
+
&.current > a:hover,
|
115
|
+
&.current > a:focus {
|
116
|
+
@extend %nav--btn__current;
|
88
117
|
}
|
89
118
|
|
90
119
|
// Disabled
|
91
|
-
&.disabled > a { @extend %nav
|
120
|
+
&.disabled > a { @extend %nav--btn__disabled; }
|
92
121
|
}
|
93
122
|
}
|
94
123
|
|
95
|
-
|
124
|
+
|
96
125
|
// Nav with pills as links
|
97
126
|
// --------------------------------------------------------------------------------------------------------------------
|
127
|
+
|
98
128
|
.nav--pills {
|
99
129
|
> li > a {
|
100
130
|
@include border-radius($base-border-radius);
|
@@ -1,12 +1,23 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Pager
|
4
|
+
|
5
|
+
Quick previous and next links for simple pagination implementations with light markup and styles. It's great for simple sites like blogs or magazines.
|
6
|
+
|
7
|
+
By default, the pager centers links.
|
8
|
+
|
9
|
+
Markup:
|
10
|
+
<ul class="pager">
|
11
|
+
<li><a href="#">Previous</a></li>
|
12
|
+
<li><a href="#">Next</a></li>
|
13
|
+
</ul>
|
14
|
+
|
15
|
+
Styleguide 13
|
16
|
+
|
17
|
+
==================================================================================================================== */
|
4
18
|
|
5
19
|
@if $pager {
|
6
20
|
|
7
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
8
|
-
// Base
|
9
|
-
// --------------------------------------------------------------------------------------------------------------------
|
10
21
|
|
11
22
|
.pager {
|
12
23
|
@include clearfix();
|
@@ -25,18 +36,34 @@
|
|
25
36
|
display: inline-block;
|
26
37
|
line-height: 1em;
|
27
38
|
padding: $pager-padding;
|
28
|
-
@extend %pager
|
39
|
+
@extend %pager--btn !optional;
|
29
40
|
}
|
30
41
|
|
31
42
|
a:hover,
|
32
43
|
a:focus {
|
33
|
-
@extend %pager
|
44
|
+
@extend %pager--btn__hover !optional;
|
34
45
|
}
|
35
46
|
a:active {
|
36
|
-
@extend %pager
|
47
|
+
@extend %pager--btn__active !optional;
|
37
48
|
}
|
38
49
|
}
|
39
50
|
|
51
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
52
|
+
|
53
|
+
Alignment
|
54
|
+
|
55
|
+
Alternatively, you can align each link to the sides:
|
56
|
+
|
57
|
+
Markup:
|
58
|
+
<ul class="pager">
|
59
|
+
<li class="previous"><a href="#">Previous</a></li>
|
60
|
+
<li class="next"><a href="#">Next</a></li>
|
61
|
+
</ul>
|
62
|
+
|
63
|
+
Styleguide 13.1
|
64
|
+
|
65
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
66
|
+
|
40
67
|
[rel="next"],
|
41
68
|
.next > a,
|
42
69
|
.next > span {
|
@@ -49,13 +76,31 @@
|
|
49
76
|
float: left;
|
50
77
|
}
|
51
78
|
|
79
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
80
|
+
|
81
|
+
Disabled state
|
82
|
+
|
83
|
+
Pager links also use the general `.disabled` utility class from the pagination.
|
84
|
+
|
85
|
+
Markup:
|
86
|
+
<ul class="pager">
|
87
|
+
<li class="previous disabled"><a href="#">← Older</a></li>
|
88
|
+
<li class="next"><a href="#">Newer →</a></li>
|
89
|
+
</ul>
|
90
|
+
|
91
|
+
Styleguide 13.2
|
92
|
+
|
93
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
94
|
+
|
52
95
|
.disabled > a,
|
53
96
|
.disabled > a:hover,
|
54
97
|
.disabled > a:focus,
|
55
98
|
.disabled > span {
|
56
99
|
cursor: default;
|
57
|
-
@extend %pager
|
100
|
+
@extend %pager--btn__disabled !optional;
|
58
101
|
}
|
59
102
|
|
60
103
|
}
|
104
|
+
|
105
|
+
|
61
106
|
}
|