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
@@ -1,12 +1,31 @@
|
|
1
|
-
|
2
|
-
// PAGINATION (multiple pages)
|
3
|
-
// ====================================================================================================================
|
1
|
+
/* ====================================================================================================================
|
4
2
|
|
5
|
-
|
3
|
+
Pagination
|
6
4
|
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
Simple pagination inspired by Rdio, great for apps and search results. The large block is hard to miss, easily scalable, and provides large click areas.
|
6
|
+
|
7
|
+
Default pagination with `.pagination`, it also support [WP-Paginate](http://wordpress.org/plugins/wp-paginate/).
|
8
|
+
|
9
|
+
Markup:
|
10
|
+
<div class="pagination {$modifiers}">
|
11
|
+
<ul>
|
12
|
+
<li><a href="#">Prev</a></li>
|
13
|
+
<li><a href="#">1</a></li>
|
14
|
+
<li class="current"><a href="#">2</a></li>
|
15
|
+
<li><a href="#">3</a></li>
|
16
|
+
<li><a href="#">Next</a></li>
|
17
|
+
</ul>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
.pagination--center - Center aligned pagination.
|
21
|
+
.pagination--right - Right aligned pagination.
|
22
|
+
.pagination--rounded - Rounded sides.
|
23
|
+
|
24
|
+
Styleguide 14.
|
25
|
+
|
26
|
+
==================================================================================================================== */
|
27
|
+
|
28
|
+
@if $pagination {
|
10
29
|
|
11
30
|
.pagination {
|
12
31
|
margin: rhythm() 0;
|
@@ -31,7 +50,7 @@
|
|
31
50
|
border-width: $input-border;
|
32
51
|
border-style: solid;
|
33
52
|
margin-left: -$input-border;
|
34
|
-
@extend %pagination
|
53
|
+
@extend %pagination--btn !optional;
|
35
54
|
}
|
36
55
|
}
|
37
56
|
|
@@ -40,32 +59,28 @@
|
|
40
59
|
border-left-width: 1px;
|
41
60
|
}
|
42
61
|
|
43
|
-
li > a:hover
|
44
|
-
|
45
|
-
@extend %pagination-btn_hover !optional;
|
62
|
+
li > a:hover {
|
63
|
+
@extend %pagination--btn__hover !optional;
|
46
64
|
}
|
47
65
|
|
48
66
|
li > a:active {
|
49
|
-
@extend %pagination
|
67
|
+
@extend %pagination--btn__active !optional;
|
50
68
|
}
|
51
69
|
|
52
|
-
|
53
|
-
.
|
54
|
-
.active > a:hover,
|
55
|
-
.active > span,
|
56
|
-
.active > span:hover,
|
70
|
+
li.current a,
|
71
|
+
li.current a:hover,
|
57
72
|
|
58
73
|
// WP Paginate
|
59
|
-
.current,
|
60
|
-
.current:hover {
|
61
|
-
@extend %pagination
|
74
|
+
a.current,
|
75
|
+
a.current:hover {
|
76
|
+
@extend %pagination--btn__current !optional;
|
62
77
|
}
|
63
78
|
|
64
79
|
.disabled > span,
|
65
80
|
.disabled > a,
|
66
81
|
.disabled > a:hover,
|
67
82
|
.disabled > a:focus {
|
68
|
-
@extend %pagination
|
83
|
+
@extend %pagination--btn__disabled !optional;
|
69
84
|
}
|
70
85
|
|
71
86
|
.active > a,
|
@@ -79,15 +94,15 @@
|
|
79
94
|
}
|
80
95
|
}
|
81
96
|
|
82
|
-
//
|
83
|
-
// Alignment
|
97
|
+
// Alternative alignments
|
84
98
|
// --------------------------------------------------------------------------------------------------------------------
|
99
|
+
|
85
100
|
.pagination--center {text-align: center; }
|
86
|
-
.pagination--right
|
101
|
+
.pagination--right {text-align: right; }
|
87
102
|
|
88
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
89
103
|
// Rounded sides
|
90
104
|
// --------------------------------------------------------------------------------------------------------------------
|
105
|
+
|
91
106
|
.pagination--rounded {
|
92
107
|
li:first-child > a,
|
93
108
|
li:first-child > span {
|
@@ -1,53 +1,135 @@
|
|
1
|
-
|
2
|
-
// RESPONSIVE NAVS w/ responsive-nav.js (https://github.com/raffone/responsive-nav.js)
|
3
|
-
// ====================================================================================================================
|
1
|
+
/* ====================================================================================================================
|
4
2
|
|
3
|
+
Responsive Navs
|
4
|
+
|
5
|
+
The main nav can be made fully responsive (with two layouts available) with js and some extra elements for better styling.
|
6
|
+
|
7
|
+
Styleguide 15
|
8
|
+
|
9
|
+
==================================================================================================================== */
|
5
10
|
|
6
11
|
@if $navs-responsive {
|
7
12
|
|
13
|
+
.nav--responsive.active { @extend %nav--responsive !optional; }
|
14
|
+
.nav--responsive.close { max-height: none; }
|
15
|
+
|
8
16
|
#nav-toggle {
|
9
|
-
@extend %
|
17
|
+
@extend %nav__toggle !optional;
|
10
18
|
display: none;
|
11
19
|
float: $navs-responsive-dropdown-pos;
|
12
20
|
}
|
13
21
|
|
14
|
-
|
15
|
-
.nav--responsive {}
|
16
|
-
.nav--responsive.notactive { @extend %nav-big !optional; }
|
17
|
-
.nav--responsive.active { @extend %nav-small !optional; }
|
18
|
-
.nav--responsive.close { max-height: none; }
|
19
|
-
|
20
|
-
|
21
22
|
@include media($navs-responsive-breakpoint) {
|
22
23
|
|
23
24
|
#nav-toggle { display: block; }
|
24
25
|
|
25
|
-
|
26
|
+
|
27
|
+
// Reset styling of normal nav
|
28
|
+
.nav.nav--responsive {
|
29
|
+
|
26
30
|
display: block;
|
27
31
|
margin: 0;
|
28
|
-
zoom: 1;
|
29
32
|
overflow: hidden;
|
33
|
+
zoom: 1;
|
30
34
|
|
31
|
-
|
32
|
-
padding: $wrapper-padding;
|
33
|
-
}
|
34
|
-
|
35
|
-
ul, ul * {
|
35
|
+
* {
|
36
36
|
@include border-radius(0);
|
37
37
|
background: transparent;
|
38
38
|
border: 0;
|
39
39
|
display: block;
|
40
40
|
float: none;
|
41
41
|
margin: 0;
|
42
|
+
padding: 0;
|
42
43
|
position: static;
|
43
44
|
text-align: left;
|
44
45
|
width: 100%;
|
46
|
+
max-height: $dropdowns-height;
|
47
|
+
opacity: 1;
|
45
48
|
}
|
46
|
-
|
47
49
|
}
|
48
50
|
|
49
|
-
|
50
|
-
|
51
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
52
|
+
|
53
|
+
SlideIn Layout
|
54
|
+
|
55
|
+
Start by adding `.nav--responsive` to the nav and a container with `#nav-origin`.
|
56
|
+
|
57
|
+
Example: a simple inline nav with 3 dropdowns:
|
58
|
+
|
59
|
+
<div id="nav-origin">
|
60
|
+
<nav class="nav nav--inline nav--btn nav--responsive" id="nav">
|
61
|
+
<ul>
|
62
|
+
<li class="dropdown">
|
63
|
+
<a href="#" class="dropdown__toggle " data-toggle="dropdown">
|
64
|
+
Dropdown 1
|
65
|
+
</a>
|
66
|
+
<ul class="dropdown__menu ">
|
67
|
+
<li><a href="#">Dropdown 1 - Sub 1</a></li>
|
68
|
+
<li><a href="#">Dropdown 1 - Sub 2</a></li>
|
69
|
+
<li><a href="#">Dropdown 1 - Sub 2</a></li>
|
70
|
+
</ul>
|
71
|
+
</li>
|
72
|
+
<li class="dropdown">
|
73
|
+
<a href="#" class="dropdown__toggle" data-toggle="dropdown">
|
74
|
+
Dropdown 2
|
75
|
+
</a>
|
76
|
+
<ul class="dropdown__menu">
|
77
|
+
<li><a href="#">Dropdown 2 - Sub 1</a></li>
|
78
|
+
<li><a href="#">Dropdown 2 - Sub 2</a></li>
|
79
|
+
<li class="divider"></li>
|
80
|
+
<li><a href="#">Dropdown 2 - Sub 4</a></li>
|
81
|
+
</ul>
|
82
|
+
</li>
|
83
|
+
<li class="dropdown">
|
84
|
+
<a href="#" class="dropdown__toggle " data-toggle="dropdown">
|
85
|
+
Dropdown 3
|
86
|
+
</a>
|
87
|
+
<ul class="dropdown__menu ">
|
88
|
+
<li><a href="#">Dropdown 3 - Sub 1</a></li>
|
89
|
+
<li><a href="#">Dropdown 3 - Sub 2</a></li>
|
90
|
+
<li><a href="#">Dropdown 3 - Sub 3</a></li>
|
91
|
+
<li><a href="#">Dropdown 3 - Sub 4</a></li>
|
92
|
+
</ul>
|
93
|
+
</li>
|
94
|
+
</ul>
|
95
|
+
</nav>
|
96
|
+
</div>
|
97
|
+
|
98
|
+
Then add and empty div with `#nav-destination` for where the nav html will be moved when the media query kick in.
|
99
|
+
|
100
|
+
<div id="nav-destination"></div>
|
101
|
+
|
102
|
+
At the bottom of the page add `responsive-nav.js`. This is a modified version of
|
103
|
+
[Responsive Nav](http://responsive-nav.com/) with extra options.
|
104
|
+
|
105
|
+
<script src="//rawgithub.com/raffone/responsive-nav.js/master/responsive-nav.js"></script>
|
106
|
+
|
107
|
+
And finally in your js file add:
|
108
|
+
|
109
|
+
// Enable responsive nav
|
110
|
+
var navigation = responsiveNav("#nav");
|
111
|
+
|
112
|
+
// Move html on breakpoint
|
113
|
+
function moveNavbar() {
|
114
|
+
if ( $(".nav--responsive").css("overflow") == 'hidden' ) {
|
115
|
+
$("#nav-destination").append($("#nav-origin .nav"));
|
116
|
+
} else {
|
117
|
+
$("#nav-origin").append($("#nav-destination .nav"));
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
moveNavbar();
|
122
|
+
$(window).resize(function() { moveNavbar(); });
|
123
|
+
|
124
|
+
|
125
|
+
That's it, when the with of the page reace the breakpoint for the nav defined with
|
126
|
+
`$navs-responsive-breakpoint` the html will be moved to the destination.
|
127
|
+
|
128
|
+
Styleguide 15.1
|
129
|
+
|
130
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
131
|
+
|
132
|
+
|
51
133
|
@if $navs-responsive-type == 'slide' {
|
52
134
|
|
53
135
|
.nav--responsive {
|
@@ -63,12 +145,47 @@
|
|
63
145
|
|
64
146
|
}
|
65
147
|
|
66
|
-
|
67
|
-
|
148
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
149
|
+
|
150
|
+
Offset Layout
|
151
|
+
|
152
|
+
First enable the layout:
|
153
|
+
|
154
|
+
$navs-responsive-type: 'off-canvas';
|
155
|
+
|
156
|
+
The offset layout require two more wrappers `.external-wrapper` and `.internal-wrapper`, example below:
|
157
|
+
|
158
|
+
<div class="external-wrapper">
|
159
|
+
<div id="nav-destination"></div>
|
160
|
+
<div class="internal-wrapper">
|
161
|
+
<div id="nav-origin">
|
162
|
+
…
|
163
|
+
</div>
|
164
|
+
[rest of the page…]
|
165
|
+
</div>
|
166
|
+
</div>
|
167
|
+
|
168
|
+
Add this js instead of `var navigation = responsiveNav("#nav");`:
|
169
|
+
|
170
|
+
var navigation = responsiveNav("#nav", {
|
171
|
+
animate: false,
|
172
|
+
offcanvas: true,
|
173
|
+
open: function(){
|
174
|
+
$("body").addClass("nav-open");
|
175
|
+
},
|
176
|
+
close: function(){
|
177
|
+
$("body").removeClass("nav-open");
|
178
|
+
}
|
179
|
+
});
|
180
|
+
|
181
|
+
Styleguide 15.2
|
182
|
+
|
183
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
184
|
+
|
185
|
+
|
68
186
|
@if $navs-responsive-type == 'off-canvas' {
|
69
187
|
|
70
188
|
// Wrappers
|
71
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
72
189
|
#{$navs-responsive-outside-wrapper},
|
73
190
|
#{$navs-responsive-inside-wrapper} {
|
74
191
|
position: relative;
|
@@ -80,7 +197,6 @@
|
|
80
197
|
}
|
81
198
|
|
82
199
|
// Transitions
|
83
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
84
200
|
#{$navs-responsive-inside-wrapper},
|
85
201
|
.nav--responsive {
|
86
202
|
@include transition();
|
@@ -89,7 +205,6 @@
|
|
89
205
|
|
90
206
|
|
91
207
|
// Animations
|
92
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
93
208
|
#{$navs-responsive-inside-wrapper} {
|
94
209
|
@include transform(translate3d(0,0,0));
|
95
210
|
left: 0;
|
@@ -113,8 +228,6 @@
|
|
113
228
|
}
|
114
229
|
}
|
115
230
|
|
116
|
-
|
117
231
|
}
|
118
|
-
|
119
232
|
}
|
120
233
|
}
|
@@ -1,12 +1,32 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Sliders
|
4
|
+
|
5
|
+
For modals is used the excellent [**BxSlider**](http://bxslider.com/) jQuery plugin,
|
6
|
+
see full documentation for more in depth examples.
|
7
|
+
|
8
|
+
Markup:
|
9
|
+
<ul class="slider">
|
10
|
+
<li><img src="http://placehold.it/800x300/c7e843/fff.jpg" /></li>
|
11
|
+
<li><img src="http://placehold.it/800x300/f6ab48/fff.jpg" /></li>
|
12
|
+
<li><img src="http://placehold.it/800x300/3dced4/fff.jpg" /></li>
|
13
|
+
</ul>
|
14
|
+
<script type="text/javascript">
|
15
|
+
$(document).ready(function() {
|
16
|
+
$('.slider').bxSlider({
|
17
|
+
nextText: '<i></i><span>Next</span>', // replace text with icon-font
|
18
|
+
prevText: '<i></i><span>Prev</span>', // replace text with icon-font
|
19
|
+
});
|
20
|
+
});
|
21
|
+
</script>
|
22
|
+
|
23
|
+
Styleguide 16.
|
24
|
+
|
25
|
+
==================================================================================================================== */
|
26
|
+
|
4
27
|
|
5
28
|
@if $slider {
|
6
29
|
|
7
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
8
|
-
// Base
|
9
|
-
// --------------------------------------------------------------------------------------------------------------------
|
10
30
|
.bx-wrapper {
|
11
31
|
position: relative;
|
12
32
|
padding: 0;
|
@@ -24,67 +44,66 @@
|
|
24
44
|
|
25
45
|
.bx-viewport { }
|
26
46
|
|
27
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
28
47
|
// Directions
|
29
48
|
// --------------------------------------------------------------------------------------------------------------------
|
30
|
-
.bx-controls-direction {
|
31
49
|
|
50
|
+
.bx-controls-direction {
|
32
51
|
a {
|
33
|
-
@extend %
|
52
|
+
@extend %slider__btn !optional;
|
34
53
|
@include position(absolute, 50% 0 0 0);
|
35
54
|
|
36
55
|
z-index: 200;
|
37
56
|
|
38
57
|
i {font-style: normal;}
|
39
58
|
span {@include hide-text;}
|
40
|
-
|
41
|
-
&.disabled { display: none; }
|
42
|
-
|
43
|
-
&.bx-prev { left: 0; }
|
44
|
-
&.bx-next { right: 0; }
|
45
59
|
}
|
46
60
|
|
61
|
+
.disabled { display: none; }
|
47
62
|
|
48
63
|
}
|
49
64
|
|
50
|
-
|
65
|
+
.bx-prev { left: 0; }
|
66
|
+
.bx-next { right: 0; }
|
67
|
+
|
51
68
|
// Pager
|
52
69
|
// --------------------------------------------------------------------------------------------------------------------
|
70
|
+
|
53
71
|
.bx-pager {
|
54
72
|
width: 100%;
|
55
73
|
text-align: center;
|
56
|
-
@extend %
|
74
|
+
@extend %slider__pager !optional;
|
75
|
+
|
76
|
+
}
|
57
77
|
|
58
|
-
|
78
|
+
.bx-pager-item {
|
79
|
+
display: inline-block;
|
80
|
+
a {
|
59
81
|
display: inline-block;
|
60
|
-
|
61
|
-
display: inline-block;
|
62
|
-
// @include hide-text;
|
63
|
-
}
|
82
|
+
// @include hide-text;
|
64
83
|
}
|
65
84
|
}
|
66
85
|
|
67
|
-
|
68
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
69
86
|
// Loading
|
70
87
|
// --------------------------------------------------------------------------------------------------------------------
|
88
|
+
|
71
89
|
.bx-loading {
|
72
90
|
@include square(100%);
|
73
91
|
@include position(absolute, 0px 0 0 0px);
|
74
|
-
@extend %
|
92
|
+
@extend %slider__loading-style;
|
75
93
|
z-index: 2000;
|
76
94
|
}
|
77
95
|
|
78
|
-
|
96
|
+
|
79
97
|
// Captions
|
80
98
|
// --------------------------------------------------------------------------------------------------------------------
|
99
|
+
|
81
100
|
.bx-caption {
|
82
101
|
@include position(absolute, 0 0 0px 0px);
|
83
102
|
width: 100%;
|
84
103
|
|
85
104
|
span {
|
86
105
|
display: inline-block;
|
87
|
-
@extend %
|
106
|
+
@extend %slider__caption !optional;
|
88
107
|
}
|
89
108
|
}
|
90
109
|
|
@@ -1,12 +1,40 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Tables
|
4
|
+
|
5
|
+
For basic styling—light padding and only horizontal dividers—add the base class `.table` to any `<table>`.
|
6
|
+
|
7
|
+
Markup:
|
8
|
+
<table class="table {$modifiers}">
|
9
|
+
<thead>
|
10
|
+
<tr>
|
11
|
+
<th>Test</th>
|
12
|
+
<th>Test</th>
|
13
|
+
</tr>
|
14
|
+
</thead>
|
15
|
+
<tbody>
|
16
|
+
<tr>
|
17
|
+
<td>test</td>
|
18
|
+
<td>test</td>
|
19
|
+
</tr>
|
20
|
+
<tr>
|
21
|
+
<td>test</td>
|
22
|
+
<td>test</td>
|
23
|
+
</tr>
|
24
|
+
</tbody>
|
25
|
+
</table>
|
26
|
+
|
27
|
+
.table--striped - Adds zebra-striping to any table row within the `<tbody>` via the :nth-child CSS selector *(not available in IE8)*
|
28
|
+
.table--bordered - Add borders and rounded corners to the table.
|
29
|
+
.table--hover - Enable a hover state on table rows within a `<tbody>`.
|
30
|
+
.table--condensed - Makes tables more compact by cutting cell padding in half.
|
31
|
+
|
32
|
+
Styleguide 17.
|
33
|
+
|
34
|
+
==================================================================================================================== */
|
4
35
|
|
5
36
|
@if $tables {
|
6
37
|
|
7
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
8
|
-
// Base
|
9
|
-
// --------------------------------------------------------------------------------------------------------------------
|
10
38
|
table {
|
11
39
|
max-width: 100%;
|
12
40
|
border-collapse: collapse;
|
@@ -43,9 +71,9 @@
|
|
43
71
|
|
44
72
|
}
|
45
73
|
|
46
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
47
74
|
// Condensed Table w/ Half Padding
|
48
75
|
// --------------------------------------------------------------------------------------------------------------------
|
76
|
+
|
49
77
|
.table--condensed {
|
50
78
|
$half-top: nth($tables-padding, 1) / 2;
|
51
79
|
$half-side: nth($tables-padding, 2) / 2;
|
@@ -53,26 +81,25 @@
|
|
53
81
|
th, td { padding: $half-top $half-side; }
|
54
82
|
}
|
55
83
|
|
56
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
57
84
|
// Zebra-striping
|
58
85
|
// --------------------------------------------------------------------------------------------------------------------
|
86
|
+
|
59
87
|
.table--striped {
|
60
88
|
tbody {
|
61
89
|
> tr:nth-child(odd) > td,
|
62
90
|
> tr:nth-child(odd) > th {
|
63
|
-
@extend %table
|
91
|
+
@extend %table--striped !optional;
|
64
92
|
}
|
65
93
|
}
|
66
94
|
}
|
67
95
|
|
68
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
69
96
|
// Bordered Version
|
70
97
|
// --------------------------------------------------------------------------------------------------------------------
|
98
|
+
|
71
99
|
.table--bordered {
|
72
|
-
@extend %table
|
100
|
+
@extend %table--bordered !optional;
|
73
101
|
}
|
74
102
|
|
75
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
76
103
|
// Hover effect
|
77
104
|
// --------------------------------------------------------------------------------------------------------------------
|
78
105
|
|
@@ -80,16 +107,16 @@
|
|
80
107
|
tbody {
|
81
108
|
tr:hover > td,
|
82
109
|
tr:hover > th {
|
83
|
-
@extend %table
|
110
|
+
@extend %table--hover !optional;
|
84
111
|
}
|
85
112
|
}
|
86
113
|
}
|
87
114
|
|
88
|
-
//
|
89
|
-
// Sortable w/ StupidTable (https://github.com/joequery/Stupid-Table-Plugin)
|
115
|
+
// Sortable
|
90
116
|
// --------------------------------------------------------------------------------------------------------------------
|
117
|
+
|
91
118
|
.table--sortable {
|
92
|
-
@extend %table
|
119
|
+
@extend %table--sortable !optional;
|
93
120
|
|
94
121
|
thead {
|
95
122
|
th {
|
@@ -1,16 +1,54 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Tabs
|
4
|
+
|
5
|
+
For tabs is used the excellent [**EasyTabs**](http://os.alfajango.com/easytabs/) jQuery plugin,
|
6
|
+
see full documentation for more in depth examples.
|
7
|
+
|
8
|
+
Markup:
|
9
|
+
<div id="tabs" class="tabs">
|
10
|
+
<ul class='etabs'>
|
11
|
+
<li class='tab'><a href="#tabs1-html">HTML Markup</a></li>
|
12
|
+
<li class='tab'><a href="#tabs1-js">Required JS</a></li>
|
13
|
+
<li class='tab'><a href="#tabs1-css">Example CSS</a></li>
|
14
|
+
</ul>
|
15
|
+
<div class='panel-container'>
|
16
|
+
<div id="tabs1-html">
|
17
|
+
<h5>HTML Markup for these tabs</h5>
|
18
|
+
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
|
19
|
+
</div>
|
20
|
+
<div id="tabs1-js">
|
21
|
+
<h5>JS for these tabs</h5>
|
22
|
+
<p>Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.</p>
|
23
|
+
</div>
|
24
|
+
<div id="tabs1-css">
|
25
|
+
<h5>CSS Styles for these tabs</h5>
|
26
|
+
<p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.</p>
|
27
|
+
</div>
|
28
|
+
</div>
|
29
|
+
<script type="text/javascript">
|
30
|
+
$(document).ready(function() {
|
31
|
+
$('#tabs').easytabs({
|
32
|
+
animate: false
|
33
|
+
});
|
34
|
+
});
|
35
|
+
</script>
|
36
|
+
|
37
|
+
Styleguide 18.
|
38
|
+
|
39
|
+
==================================================================================================================== */
|
40
|
+
|
41
|
+
|
4
42
|
|
5
43
|
@if $tabs {
|
6
44
|
|
7
|
-
.
|
45
|
+
.tabs {
|
8
46
|
margin-bottom: rhythm();
|
9
47
|
|
10
48
|
.etabs {
|
11
49
|
margin: 0;
|
12
50
|
padding: 0;
|
13
|
-
@extend %
|
51
|
+
@extend %tab__nav !optional;
|
14
52
|
|
15
53
|
li {
|
16
54
|
display: inline-block;
|
@@ -22,10 +60,10 @@
|
|
22
60
|
padding: $tabs-tab-padding;
|
23
61
|
outline: none;
|
24
62
|
@include border-radius($base-border-radius $base-border-radius 0 0);
|
25
|
-
@extend %
|
63
|
+
@extend %tab__btn !optional;
|
26
64
|
|
27
65
|
&:hover {
|
28
|
-
@extend %
|
66
|
+
@extend %tab__btn__hover !optional;
|
29
67
|
}
|
30
68
|
}
|
31
69
|
|
@@ -33,7 +71,7 @@
|
|
33
71
|
a {
|
34
72
|
position: relative;
|
35
73
|
font-weight: bold;
|
36
|
-
@extend %
|
74
|
+
@extend %tab__btn__current !optional;
|
37
75
|
|
38
76
|
&:after {
|
39
77
|
@include position(absolute, 0 0px -1px 0px);
|
@@ -49,7 +87,7 @@
|
|
49
87
|
}
|
50
88
|
|
51
89
|
.panel-container {
|
52
|
-
@extend %
|
90
|
+
@extend %tab__container !optional;
|
53
91
|
@include border-radius(0 $base-border-radius $base-border-radius );
|
54
92
|
> div {padding: $tabs-content-padding;}
|
55
93
|
}
|