rapido-css 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- 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
data/stylesheets/_susy.scss
CHANGED
@@ -1,11 +1,8 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
// Susy
|
2
|
+
// ====================================================================================================================
|
3
3
|
|
4
|
-
// temporary
|
5
4
|
@import "susy/susy_support";
|
6
5
|
@import "susy/susy_units";
|
7
|
-
|
8
|
-
// permanent
|
9
6
|
@import "susy/susy_settings";
|
10
7
|
@import "susy/susy_functions";
|
11
8
|
@import "susy/susy_grid";
|
@@ -1,8 +1,21 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Alerts
|
4
|
+
|
5
|
+
Wrap any text and an optional dismiss button in `.alert` for a basic warning alert message.
|
6
|
+
|
7
|
+
Markup:
|
8
|
+
<div class="alert">
|
9
|
+
<button type="button" class="close" data-dismiss="alert">×</button>
|
10
|
+
<strong>Alert!</strong> Best check yourself, you're not looking too good.
|
11
|
+
</div>
|
12
|
+
|
13
|
+
Styleguide 1
|
14
|
+
|
15
|
+
==================================================================================================================== */
|
4
16
|
|
5
17
|
@if $alerts {
|
18
|
+
|
6
19
|
.alert {
|
7
20
|
padding: $alerts-padding;
|
8
21
|
margin-bottom: rhythm();
|
@@ -17,8 +30,29 @@
|
|
17
30
|
}
|
18
31
|
}
|
19
32
|
|
33
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
34
|
+
|
35
|
+
Alert Block
|
36
|
+
|
37
|
+
For longer messages, increase the padding on the top and bottom of the alert wrapper by adding `.alert-block`.
|
38
|
+
|
39
|
+
Markup:
|
40
|
+
<div class="alert alert--block">
|
41
|
+
<button type="button" class="close" data-dismiss="alert">×</button>
|
42
|
+
<strong>Error</strong>
|
43
|
+
<p>The field Number is required and must contain a value.</p>
|
44
|
+
<p>The field Product Title is required and must contain a value.</p>
|
45
|
+
<p>The field Total Expenses is required and must contain a value.</p>
|
46
|
+
</div>
|
47
|
+
|
48
|
+
Styleguide 1.2
|
49
|
+
|
50
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
51
|
+
|
52
|
+
|
20
53
|
.alert--block {
|
21
|
-
|
22
|
-
|
54
|
+
* { margin-bottom: 0; }
|
55
|
+
* + * { margin-top: 5px; }
|
23
56
|
}
|
57
|
+
|
24
58
|
}
|
@@ -1,8 +1,24 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Breadcrumbs
|
4
|
+
|
5
|
+
Add a breadcrumb with a list with class `.breadcrumb`.
|
6
|
+
|
7
|
+
<ul class="breadcrumb">
|
8
|
+
<li><a href="#">Home</a></li>
|
9
|
+
<li><a href="#">Library</a></li>
|
10
|
+
<li class="current">Data</li>
|
11
|
+
</ul>
|
12
|
+
|
13
|
+
**`.active`**: Selected element style
|
14
|
+
|
15
|
+
Styleguide 2.1
|
16
|
+
|
17
|
+
==================================================================================================================== */
|
18
|
+
|
4
19
|
|
5
20
|
@if $breadcrumbs {
|
21
|
+
|
6
22
|
.breadcrumb {
|
7
23
|
margin: 0 0 rhythm();
|
8
24
|
list-style: none;
|
@@ -10,6 +26,7 @@
|
|
10
26
|
|
11
27
|
> li { @include inline-block(); }
|
12
28
|
|
13
|
-
.
|
29
|
+
.current {@extend %breadcrumb__current;}
|
14
30
|
}
|
31
|
+
|
15
32
|
}
|
@@ -1,17 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Button Groups
|
4
|
+
|
5
|
+
Wrap a series of buttons with `.btn` in `.btn-group`.
|
6
|
+
|
7
|
+
Markup:
|
8
|
+
<ul class="btn-group">
|
9
|
+
<li><button class="btn btn--default">Left</button></li>
|
10
|
+
<li><button class="btn btn--default">Middle</button></li>
|
11
|
+
<li><button class="btn btn--default">Right</button></li>
|
12
|
+
</ul>
|
13
|
+
|
14
|
+
Styleguide 4
|
15
|
+
|
16
|
+
==================================================================================================================== */
|
17
|
+
|
4
18
|
@if $button-groups {
|
19
|
+
|
5
20
|
.btn-group {
|
6
21
|
@extend .clearfix;
|
7
22
|
@include inline-block;
|
8
23
|
margin: 0;
|
9
|
-
// position: relative;
|
10
24
|
|
11
25
|
> * {
|
12
26
|
float: left;
|
13
27
|
list-style-type: none;
|
14
|
-
// position: relative;
|
15
28
|
}
|
16
29
|
|
17
30
|
&[data-width] .btn,
|
@@ -22,27 +35,18 @@
|
|
22
35
|
}
|
23
36
|
|
24
37
|
// Space multiple inline groups
|
25
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
26
38
|
+ .btn-group { margin-left: em(5px); }
|
27
39
|
|
28
40
|
// Float button and reapply border radius
|
29
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
30
41
|
> .btn,
|
31
|
-
>
|
32
|
-
@include border-radius(0);
|
42
|
+
> li .btn {
|
33
43
|
float: left;
|
44
|
+
@include border-radius(0);
|
34
45
|
}
|
35
46
|
|
36
|
-
>
|
37
|
-
> *:first-child,
|
38
|
-
> *:first-child .btn { @include border-radius($base-border-radius 0 0 $base-border-radius); }
|
39
|
-
> *:last-child,
|
40
|
-
> *:last-child .btn { @include border-radius(0 $base-border-radius $base-border-radius 0); }
|
41
|
-
> *:last-child:first-child,
|
42
|
-
> *:last-child:first-child .btn { @include border-radius($base-border-radius); }
|
47
|
+
> li + li { margin-left: -$input-border; }
|
43
48
|
|
44
49
|
// On hover/focus/active, bring the proper btn to front
|
45
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
46
50
|
> .btn:hover,
|
47
51
|
> .btn:focus,
|
48
52
|
> .btn:active,
|
@@ -51,5 +55,26 @@
|
|
51
55
|
}
|
52
56
|
|
53
57
|
}
|
58
|
+
|
59
|
+
// Generic
|
60
|
+
// --------------------------------------------------------------------------------------------------------------------
|
61
|
+
|
62
|
+
.btn-group > li:first-child .btn { @include border-left-radius($base-border-radius); }
|
63
|
+
.btn-group > li:last-child .btn { @include border-right-radius($base-border-radius); }
|
64
|
+
div.btn-group .btn { @include border-radius($base-border-radius); }
|
65
|
+
|
66
|
+
// In Forms
|
67
|
+
// --------------------------------------------------------------------------------------------------------------------
|
68
|
+
|
69
|
+
.form__controls--multi {
|
70
|
+
.btn-group:first-child > li:first-child .btn { }
|
71
|
+
.btn-group:first-child > li:last-child .btn { @include border-right-radius(0); }
|
72
|
+
div.btn-group:first-child .btn { @include border-right-radius(0); }
|
73
|
+
|
74
|
+
.btn-group:last-child > li:first-child .btn { @include border-left-radius(0); }
|
75
|
+
.btn-group:last-child > li:last-child .btn { }
|
76
|
+
div.btn-group:last-child > .btn { @include border-left-radius(0); }
|
77
|
+
}
|
78
|
+
|
54
79
|
}
|
55
80
|
|
@@ -1,14 +1,25 @@
|
|
1
|
-
|
2
|
-
// BUTTONS
|
3
|
-
// ====================================================================================================================
|
1
|
+
/* ====================================================================================================================
|
4
2
|
|
5
|
-
|
3
|
+
Buttons
|
6
4
|
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
Button styles can be applied to anything with the `.btn` class applied. However, typically you'll want to apply these to only `<a>` and `<button>` elements for the best rendering.
|
6
|
+
|
7
|
+
Markup:
|
8
|
+
<a href="#" class="btn btn--default {$modifiers}">Link Button</a>
|
9
|
+
<button class="btn btn--default {$modifiers}">Button Element</button>
|
10
|
+
|
11
|
+
:hover - Mouse hover state style, also available with `.hover`
|
12
|
+
:active - Selected element style, also available with `.active`
|
13
|
+
.disabled - Disabled state style.
|
14
|
+
|
15
|
+
Styleguide 3
|
16
|
+
|
17
|
+
==================================================================================================================== */
|
18
|
+
|
19
|
+
@if $buttons {
|
10
20
|
|
11
21
|
.btn {
|
22
|
+
@extend %btn !optional;
|
12
23
|
@include border-radius($base-border-radius);
|
13
24
|
border-style: solid;
|
14
25
|
border-width: $input-border;
|
@@ -19,9 +30,7 @@
|
|
19
30
|
text-align: center;
|
20
31
|
vertical-align: middle;
|
21
32
|
|
22
|
-
&:hover, &:focus { text-decoration: none; }
|
23
|
-
|
24
|
-
&:focus { @include tab-focus(); }
|
33
|
+
&:hover, &.hover, &:focus { text-decoration: none; }
|
25
34
|
|
26
35
|
&.active, &:active {outline: 0; }
|
27
36
|
|
@@ -34,23 +43,37 @@
|
|
34
43
|
}
|
35
44
|
}
|
36
45
|
|
46
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
37
47
|
|
38
|
-
|
39
|
-
|
40
|
-
|
48
|
+
Colors
|
49
|
+
|
50
|
+
Markup:
|
51
|
+
<a href="#" class="btn btn--default">Link Button</a>
|
52
|
+
<a href="#" class="btn btn--primary">Link Button</a>
|
53
|
+
<a href="#" class="btn btn--secondary">Link Button</a>
|
54
|
+
|
55
|
+
Styleguide 3.1
|
56
|
+
|
57
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
58
|
+
|
59
|
+
.btn--default { @extend %btn--default !optional; }
|
60
|
+
.btn--primary { @extend %btn--primary !optional; }
|
61
|
+
.btn--secondary { @extend %btn--secondary !optional; }
|
62
|
+
|
63
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
64
|
+
|
65
|
+
Sizes
|
66
|
+
|
67
|
+
Markup:
|
68
|
+
<a href="#" class="btn btn--default btn--large">Link Button</a>
|
69
|
+
<a href="#" class="btn btn--default">Link Button</a>
|
70
|
+
<a href="#" class="btn btn--default btn--small">Link Button</a>
|
71
|
+
<a href="#" class="btn btn--default btn--mini">Link Button</a>
|
72
|
+
|
73
|
+
Styleguide 3.2
|
74
|
+
|
75
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
41
76
|
|
42
|
-
.btn { @extend %btn !optional; }
|
43
|
-
.btn--primary { @extend %btn-primary !optional; }
|
44
|
-
.btn--secondary { @extend %btn-secondary !optional; }
|
45
|
-
.btn--warning { @extend %btn-warning !optional; }
|
46
|
-
.btn--danger { @extend %btn-danger !optional; }
|
47
|
-
.btn--info { @extend %btn-info !optional; }
|
48
|
-
.btn--success { @extend %btn-success !optional; }
|
49
|
-
.btn--inverse { @extend %btn-inverse !optional; }
|
50
|
-
|
51
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
52
|
-
// Button Sizes
|
53
|
-
// --------------------------------------------------------------------------------------------------------------------
|
54
77
|
|
55
78
|
.btn {
|
56
79
|
padding: $btn-padding;
|
@@ -77,9 +100,27 @@
|
|
77
100
|
}
|
78
101
|
|
79
102
|
|
80
|
-
|
103
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
104
|
+
|
105
|
+
Modifiers
|
106
|
+
|
107
|
+
Create block level buttons—those that span the full width of a parent.
|
108
|
+
|
109
|
+
Markup:
|
110
|
+
<a href="#" class="btn btn--default {$modifiers}">Link Button</a>
|
111
|
+
<button class="btn btn--default {$modifiers}">Button Element</button>
|
112
|
+
|
113
|
+
.btn--block - Create block level buttons—those that span the full width of a parent.
|
114
|
+
.btn--pill - Button width rounded full corners.
|
115
|
+
.btn--link - Deemphasize a button by making it look like a link while maintaining button behavior.
|
116
|
+
|
117
|
+
Styleguide 3.3
|
118
|
+
|
119
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
120
|
+
|
81
121
|
// Block button
|
82
122
|
// --------------------------------------------------------------------------------------------------------------------
|
123
|
+
|
83
124
|
.btn--block {
|
84
125
|
display: block;
|
85
126
|
width: 100%;
|
@@ -92,7 +133,6 @@
|
|
92
133
|
|
93
134
|
}
|
94
135
|
|
95
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
96
136
|
// Pill button
|
97
137
|
// --------------------------------------------------------------------------------------------------------------------
|
98
138
|
|
@@ -100,13 +140,13 @@
|
|
100
140
|
@include border-radius(200px);
|
101
141
|
}
|
102
142
|
|
103
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
104
143
|
// Link buttons
|
105
144
|
// --------------------------------------------------------------------------------------------------------------------
|
106
145
|
|
107
146
|
.btn--link {
|
108
147
|
@include border-radius(0);
|
109
|
-
border
|
148
|
+
border: 0 transparent;
|
149
|
+
background: none;
|
110
150
|
color: $link-color;
|
111
151
|
cursor: pointer;
|
112
152
|
|
@@ -1,9 +1,27 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Captions
|
4
|
+
|
5
|
+
Add captions to images. The position is defined by `data-position` and the content by `data-content`.
|
6
|
+
It's possible to add an animation using `data-animation` with either `fade` or `float`.
|
7
|
+
|
8
|
+
For positioning are available: `top`, `right`, `bottom`, `left`, `top-left`, `top-right`, `bottom-right`, `bottom-left`.
|
9
|
+
|
10
|
+
Markup:
|
11
|
+
<figure class="caption" data-position="bottom" data-animation="{$modifiers}" data-content="Caption text.">
|
12
|
+
<img src="http://dummyimage.com/300x200/afe600/fff" />
|
13
|
+
</figure>
|
14
|
+
|
15
|
+
fade - Add fade-in animation for the caption
|
16
|
+
float - Add fade-in and slide-in animation for the caption
|
17
|
+
|
18
|
+
Styleguide 5
|
19
|
+
|
20
|
+
==================================================================================================================== */
|
4
21
|
|
5
22
|
@if $captions {
|
6
|
-
|
23
|
+
|
24
|
+
.caption {
|
7
25
|
position: relative;
|
8
26
|
display: inline-block;
|
9
27
|
width: auto;
|
@@ -18,41 +36,42 @@
|
|
18
36
|
line-height: rhythm();
|
19
37
|
}
|
20
38
|
|
21
|
-
&[
|
22
|
-
&[
|
23
|
-
&[
|
24
|
-
&[
|
39
|
+
&[data-position*="top"]:after { top:0; }
|
40
|
+
&[data-position*="bottom"]:after { bottom:0; }
|
41
|
+
&[data-position*="left"]:after { left:0; }
|
42
|
+
&[data-position*="right"]:after { right:0; }
|
25
43
|
|
26
|
-
&[
|
27
|
-
&[
|
44
|
+
&[data-position$="top"]:after,
|
45
|
+
&[data-position$="bottom"]:after { left: 0; right: 0; }
|
28
46
|
|
29
|
-
|
30
|
-
|
31
|
-
&[
|
32
|
-
&[class*="float"] {
|
47
|
+
// Animations
|
48
|
+
&[data-animation*="fade"],
|
49
|
+
&[data-animation*="float"] {
|
33
50
|
|
34
51
|
&:after {
|
35
52
|
@include transition();
|
36
|
-
opacity
|
53
|
+
@include opacity(0);
|
37
54
|
visibility: hidden;
|
38
55
|
}
|
39
56
|
|
40
57
|
&:hover:after {
|
41
|
-
opacity
|
58
|
+
@include opacity(1);
|
42
59
|
visibility: visible;
|
43
60
|
}
|
44
61
|
}
|
45
62
|
|
46
|
-
|
47
|
-
|
63
|
+
|
64
|
+
// Float animation
|
65
|
+
&[data-animation*="float"][data-position*="top"] {
|
48
66
|
&:after { top: -10px; }
|
49
67
|
&:hover:after { top: 0; }
|
50
68
|
}
|
51
69
|
|
52
|
-
&[
|
70
|
+
&[data-animation*="float"][data-position*="bottom"] {
|
53
71
|
&:after { bottom: -10px; }
|
54
72
|
&:hover:after { bottom: 0; }
|
55
73
|
}
|
56
74
|
|
57
75
|
}
|
76
|
+
|
58
77
|
}
|
@@ -1,7 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Close buttons
|
4
|
+
|
5
|
+
Markup:
|
6
|
+
<a href="#" class="close">×</button>
|
7
|
+
<button type="button" class="close">×</button>
|
8
|
+
|
9
|
+
Styleguide 6
|
10
|
+
|
11
|
+
==================================================================================================================== */
|
12
|
+
|
4
13
|
@if $close {
|
14
|
+
|
5
15
|
.close {
|
6
16
|
float: right;
|
7
17
|
font-size: 1em;
|
@@ -24,4 +34,5 @@
|
|
24
34
|
border: 0;
|
25
35
|
-webkit-appearance: none;
|
26
36
|
}
|
37
|
+
|
27
38
|
}
|
@@ -1,6 +1,29 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
/* ====================================================================================================================
|
2
|
+
|
3
|
+
Dropdowns
|
4
|
+
|
5
|
+
Toggleable, contextual menu for displaying lists of links. Made interactive with the [dropdown JavaScript plugin](http://twitter.github.io/bootstrap/javascript.html#dropdowns).
|
6
|
+
|
7
|
+
Looking at just the dropdown menu, here's the required HTML. You need to wrap the dropdown's trigger and the dropdown menu within `.dropdown`. Then just create the menu.
|
8
|
+
|
9
|
+
Markup:
|
10
|
+
<div class="dropdown {$modifiers}">
|
11
|
+
<a href="#" class="btn btn--default dropdown__toggle " data-toggle="dropdown">
|
12
|
+
Dropdown
|
13
|
+
<span class="dropdown__caret"></span>
|
14
|
+
</a>
|
15
|
+
<ul class="dropdown__menu ">
|
16
|
+
<li><a tabindex="-1" href="#">Action</a></li>
|
17
|
+
<li><a tabindex="-1" href="#">Another action</a></li>
|
18
|
+
<li><a tabindex="-1" href="#">Something else here</a></li>
|
19
|
+
<li class="divider"></li>
|
20
|
+
<li><a tabindex="-1" href="#">Separated link</a></li>
|
21
|
+
</ul>
|
22
|
+
</div>
|
23
|
+
|
24
|
+
Styleguide 7
|
25
|
+
|
26
|
+
==================================================================================================================== */
|
4
27
|
|
5
28
|
@if $dropdowns {
|
6
29
|
|
@@ -11,34 +34,57 @@
|
|
11
34
|
|
12
35
|
.dropdown__toggle:focus { outline: 0; }
|
13
36
|
|
14
|
-
|
15
|
-
|
37
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
38
|
+
|
39
|
+
Dropdown arrow/caret
|
40
|
+
|
41
|
+
A simple helper class is available to add an arrow for the dropdown button.
|
42
|
+
|
43
|
+
Markup: <span class="dropdown__caret"></span>
|
44
|
+
|
45
|
+
Styleguide 7.1
|
46
|
+
|
47
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
48
|
+
|
16
49
|
.dropdown__caret {
|
17
50
|
@extend %caret !optional;
|
18
51
|
}
|
19
52
|
|
20
|
-
|
21
|
-
|
53
|
+
/* --------------------------------------------------------------------------------------------------------------------
|
54
|
+
|
55
|
+
Dropdown menu
|
56
|
+
|
57
|
+
List of the links to show in the dropdown.
|
58
|
+
|
59
|
+
Markup:
|
60
|
+
<ul class="dropdown__menu ">
|
61
|
+
<li><a tabindex="-1" href="#">Action</a></li>
|
62
|
+
<li><a tabindex="-1" href="#">Another action</a></li>
|
63
|
+
<li><a tabindex="-1" href="#">Something else here</a></li>
|
64
|
+
<li class="divider"></li>
|
65
|
+
<li><a tabindex="-1" href="#">Separated link</a></li>
|
66
|
+
</ul>
|
67
|
+
|
68
|
+
Styleguide 7.2
|
69
|
+
|
70
|
+
-------------------------------------------------------------------------------------------------------------------- */
|
71
|
+
|
22
72
|
.dropdown__menu {
|
23
73
|
@extend %dropdown !optional;
|
24
74
|
@include border-bottom-radius($base-border-radius);
|
25
|
-
@include
|
75
|
+
@include transition();
|
26
76
|
border-style: solid;
|
27
77
|
border-width: $input-border;
|
28
78
|
float: left;
|
29
79
|
list-style: none;
|
30
80
|
margin: -$input-border 0 0 0;
|
81
|
+
min-width: 10em;
|
82
|
+
overflow: hidden;
|
31
83
|
z-index: $zindex-dropdown;
|
32
|
-
|
33
|
-
display: none;
|
34
|
-
// @include transition();
|
35
|
-
// max-height: 0;
|
36
|
-
// opacity: 0;
|
84
|
+
display/*\**/: none\9; // Ugly IE8 Hack
|
37
85
|
|
38
86
|
&[data-content] { min-width: em(600px); }
|
39
87
|
|
40
|
-
|
41
|
-
// Aligns the dropdown menu to right
|
42
88
|
&.pull-right {
|
43
89
|
right: 0;
|
44
90
|
left: auto;
|
@@ -63,15 +109,11 @@
|
|
63
109
|
|
64
110
|
}
|
65
111
|
|
66
|
-
// Hover/Focus state
|
67
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
68
112
|
.dropdown__menu > li > a:hover,
|
69
113
|
.dropdown__menu > li > a:focus {
|
70
114
|
text-decoration: none;
|
71
115
|
}
|
72
116
|
|
73
|
-
// Active state
|
74
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
75
117
|
.dropdown__menu > .active > a,
|
76
118
|
.dropdown__menu > .active > a:hover,
|
77
119
|
.dropdown__menu > .active > a:focus {
|
@@ -79,14 +121,12 @@
|
|
79
121
|
outline: 0;
|
80
122
|
}
|
81
123
|
|
82
|
-
// Disabled state
|
83
|
-
// ––––––––––––––––––––––––––––––––––––––––––––––––––––––––––––
|
84
124
|
.dropdown__menu > .disabled > a,
|
85
125
|
.dropdown__menu > .disabled > a:hover,
|
86
126
|
.dropdown__menu > .disabled > a:focus {
|
87
127
|
color: $grayLight;
|
88
128
|
}
|
89
|
-
|
129
|
+
|
90
130
|
.dropdown__menu > .disabled > a:hover,
|
91
131
|
.dropdown__menu > .disabled > a:focus {
|
92
132
|
text-decoration: none;
|
@@ -95,21 +135,29 @@
|
|
95
135
|
cursor: default;
|
96
136
|
}
|
97
137
|
|
98
|
-
|
99
|
-
//
|
138
|
+
|
139
|
+
// Hide .dropdown__menu when .dropdown is closed
|
140
|
+
.dropdown .dropdown__menu {
|
141
|
+
@include opacity(0);
|
142
|
+
@include position(absolute, 100% 0 0 0px);
|
143
|
+
max-height: 0;
|
144
|
+
}
|
145
|
+
|
146
|
+
// Dropdown open
|
147
|
+
// --------------------------------------------------------------------------------------------------------------------
|
100
148
|
.dropdown.open {
|
101
149
|
z-index: $zindex-dropdown ;
|
102
150
|
|
103
151
|
.dropdown__toggle {
|
104
|
-
@extend %dropdown
|
152
|
+
@extend %dropdown--open !optional;
|
105
153
|
@include border-bottom-radius(0 !important);
|
106
154
|
z-index: $zindex-dropdown + 1;
|
107
155
|
}
|
108
156
|
|
109
157
|
.dropdown__menu {
|
110
|
-
|
111
|
-
//
|
112
|
-
|
158
|
+
@include opacity(1);
|
159
|
+
display/*\**/: block\9; // Ugly IE8 Hack
|
160
|
+
max-height: $dropdowns-height;
|
113
161
|
}
|
114
162
|
|
115
163
|
}
|