kickstrap_rails 0.9.0RC
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +165 -0
- data/README.md +23 -0
- data/Rakefile +2 -0
- data/kickstrap_rails.gemspec +20 -0
- data/lib/kickstrap_rails/version.rb +3 -0
- data/lib/kickstrap_rails.rb +6 -0
- data/vendor/assets/fonts/fontawesome/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome/fontawesome-webfont.svg +175 -0
- data/vendor/assets/fonts/fontawesome/fontawesome-webfont.svgz +0 -0
- data/vendor/assets/fonts/fontawesome/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/icomoon/full-webfont.eot +0 -0
- data/vendor/assets/fonts/icomoon/full-webfont.svg +157 -0
- data/vendor/assets/fonts/icomoon/full-webfont.ttf +0 -0
- data/vendor/assets/fonts/icomoon/full-webfont.woff +0 -0
- data/vendor/assets/images/chosen/chosen-sprite.png +0 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-alert.js +94 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-button.js +100 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-carousel.js +161 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-collapse.js +138 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-dropdown.js +92 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-modal.js +210 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-popover.js +95 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-scrollspy.js +125 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-tab.js +130 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-tooltip.js +270 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-transition.js +51 -0
- data/vendor/assets/javascripts/bootstrap/bootstrap-typeahead.js +271 -0
- data/vendor/assets/javascripts/bootstrap.js +12 -0
- data/vendor/assets/javascripts/kickstrap/chosen/chosen.jquery.js +952 -0
- data/vendor/assets/javascripts/kickstrap/jgrowl/jquery.jgrowl.js +330 -0
- data/vendor/assets/javascripts/kickstrap.js +3 -0
- data/vendor/assets/stylesheets/bootstrap/accordion.less +28 -0
- data/vendor/assets/stylesheets/bootstrap/alerts.less +70 -0
- data/vendor/assets/stylesheets/bootstrap/bootstrap.less +65 -0
- data/vendor/assets/stylesheets/bootstrap/breadcrumbs.less +22 -0
- data/vendor/assets/stylesheets/bootstrap/button-groups.less +148 -0
- data/vendor/assets/stylesheets/bootstrap/buttons.less +183 -0
- data/vendor/assets/stylesheets/bootstrap/carousel.less +121 -0
- data/vendor/assets/stylesheets/bootstrap/close.less +18 -0
- data/vendor/assets/stylesheets/bootstrap/code.less +57 -0
- data/vendor/assets/stylesheets/bootstrap/component-animations.less +18 -0
- data/vendor/assets/stylesheets/bootstrap/dropdowns.less +130 -0
- data/vendor/assets/stylesheets/bootstrap/forms.less +522 -0
- data/vendor/assets/stylesheets/bootstrap/grid.less +8 -0
- data/vendor/assets/stylesheets/bootstrap/hero-unit.less +20 -0
- data/vendor/assets/stylesheets/bootstrap/labels.less +32 -0
- data/vendor/assets/stylesheets/bootstrap/layouts.less +17 -0
- data/vendor/assets/stylesheets/bootstrap/mixins.less +590 -0
- data/vendor/assets/stylesheets/bootstrap/modals.less +83 -0
- data/vendor/assets/stylesheets/bootstrap/navbar.less +299 -0
- data/vendor/assets/stylesheets/bootstrap/navs.less +353 -0
- data/vendor/assets/stylesheets/bootstrap/pager.less +30 -0
- data/vendor/assets/stylesheets/bootstrap/pagination.less +55 -0
- data/vendor/assets/stylesheets/bootstrap/popovers.less +49 -0
- data/vendor/assets/stylesheets/bootstrap/progress-bars.less +95 -0
- data/vendor/assets/stylesheets/bootstrap/reset.less +126 -0
- data/vendor/assets/stylesheets/bootstrap/scaffolding.less +29 -0
- data/vendor/assets/stylesheets/bootstrap/sprites.less +158 -0
- data/vendor/assets/stylesheets/bootstrap/tables.less +150 -0
- data/vendor/assets/stylesheets/bootstrap/thumbnails.less +35 -0
- data/vendor/assets/stylesheets/bootstrap/tooltip.less +35 -0
- data/vendor/assets/stylesheets/bootstrap/type.less +218 -0
- data/vendor/assets/stylesheets/bootstrap/utilities.less +23 -0
- data/vendor/assets/stylesheets/bootstrap/variables.less +107 -0
- data/vendor/assets/stylesheets/bootstrap/wells.less +17 -0
- data/vendor/assets/stylesheets/kickstrap/animate/animate.css +3813 -0
- data/vendor/assets/stylesheets/kickstrap/chosen/chosen.less +392 -0
- data/vendor/assets/stylesheets/kickstrap/fontawesome/font-awesome.less +218 -0
- data/vendor/assets/stylesheets/kickstrap/icomoon/icomoon.less +123 -0
- data/vendor/assets/stylesheets/kickstrap/jgrowl/jquery.jgrowl.less +105 -0
- data/vendor/assets/stylesheets/kickstrap/overrides.less +271 -0
- data/vendor/assets/stylesheets/kickstrap/themes/amelia/amelia.less +647 -0
- data/vendor/assets/stylesheets/kickstrap/themes/amelia/variables.less +112 -0
- data/vendor/assets/stylesheets/kickstrap/themes/amelia.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap/themes/cerulean/cerulean.less +122 -0
- data/vendor/assets/stylesheets/kickstrap/themes/cerulean/variables.less +108 -0
- data/vendor/assets/stylesheets/kickstrap/themes/cerulean.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap/themes/cyborg/cyborg.less +511 -0
- data/vendor/assets/stylesheets/kickstrap/themes/cyborg/variables.less +110 -0
- data/vendor/assets/stylesheets/kickstrap/themes/cyborg.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap/themes/journal/journal.less +139 -0
- data/vendor/assets/stylesheets/kickstrap/themes/journal/variables.less +114 -0
- data/vendor/assets/stylesheets/kickstrap/themes/journal.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap/themes/readable/readable.less +454 -0
- data/vendor/assets/stylesheets/kickstrap/themes/readable/variables.less +108 -0
- data/vendor/assets/stylesheets/kickstrap/themes/readable.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap/themes/sandra/sandra.less +115 -0
- data/vendor/assets/stylesheets/kickstrap/themes/sandra/variables.less +110 -0
- data/vendor/assets/stylesheets/kickstrap/themes/sandra.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap/themes/simplex/simplex.less +107 -0
- data/vendor/assets/stylesheets/kickstrap/themes/simplex/variables.less +108 -0
- data/vendor/assets/stylesheets/kickstrap/themes/simplex.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap/themes/slate/slate.less +417 -0
- data/vendor/assets/stylesheets/kickstrap/themes/slate/variables.less +203 -0
- data/vendor/assets/stylesheets/kickstrap/themes/slate.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap/themes/spacelab/spacelab.less +174 -0
- data/vendor/assets/stylesheets/kickstrap/themes/spacelab/variables.less +107 -0
- data/vendor/assets/stylesheets/kickstrap/themes/spacelab.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap/themes/spruce/spruce.less +474 -0
- data/vendor/assets/stylesheets/kickstrap/themes/spruce/variables.less +108 -0
- data/vendor/assets/stylesheets/kickstrap/themes/spruce.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap/themes/superhero/superhero.less +634 -0
- data/vendor/assets/stylesheets/kickstrap/themes/superhero/variables.less +108 -0
- data/vendor/assets/stylesheets/kickstrap/themes/superhero.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap/themes/united/united.less +101 -0
- data/vendor/assets/stylesheets/kickstrap/themes/united/variables.less +110 -0
- data/vendor/assets/stylesheets/kickstrap/themes/united.css.less +2 -0
- data/vendor/assets/stylesheets/kickstrap.css.less +1 -0
- metadata +189 -0
@@ -0,0 +1,183 @@
|
|
1
|
+
// BUTTON STYLES
|
2
|
+
// -------------
|
3
|
+
|
4
|
+
|
5
|
+
// Base styles
|
6
|
+
// --------------------------------------------------
|
7
|
+
|
8
|
+
// Core
|
9
|
+
.btn {
|
10
|
+
display: inline-block;
|
11
|
+
padding: 4px 10px 4px;
|
12
|
+
margin-bottom: 0; // For input.btn
|
13
|
+
font-size: @baseFontSize;
|
14
|
+
line-height: @baseLineHeight;
|
15
|
+
color: @grayDark;
|
16
|
+
text-align: center;
|
17
|
+
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
18
|
+
vertical-align: middle;
|
19
|
+
.buttonBackground(@white, darken(@white, 10%));
|
20
|
+
border: 1px solid #ccc;
|
21
|
+
border-bottom-color: #bbb;
|
22
|
+
.border-radius(4px);
|
23
|
+
@shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
|
24
|
+
.box-shadow(@shadow);
|
25
|
+
cursor: pointer;
|
26
|
+
|
27
|
+
// Give IE7 some love
|
28
|
+
.reset-filter();
|
29
|
+
.ie7-restore-left-whitespace();
|
30
|
+
}
|
31
|
+
|
32
|
+
// Hover state
|
33
|
+
.btn:hover {
|
34
|
+
color: @grayDark;
|
35
|
+
text-decoration: none;
|
36
|
+
background-color: darken(@white, 10%);
|
37
|
+
background-position: 0 -15px;
|
38
|
+
|
39
|
+
// transition is only when going to hover, otherwise the background
|
40
|
+
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
41
|
+
.transition(background-position .1s linear);
|
42
|
+
}
|
43
|
+
|
44
|
+
// Focus state for keyboard and accessibility
|
45
|
+
.btn:focus {
|
46
|
+
.tab-focus();
|
47
|
+
}
|
48
|
+
|
49
|
+
// Active state
|
50
|
+
.btn.active,
|
51
|
+
.btn:active {
|
52
|
+
background-image: none;
|
53
|
+
@shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05);
|
54
|
+
.box-shadow(@shadow);
|
55
|
+
background-color: darken(@white, 10%);
|
56
|
+
background-color: darken(@white, 15%) e("\9");
|
57
|
+
outline: 0;
|
58
|
+
}
|
59
|
+
|
60
|
+
// Disabled state
|
61
|
+
.btn.disabled,
|
62
|
+
.btn[disabled] {
|
63
|
+
cursor: default;
|
64
|
+
background-image: none;
|
65
|
+
background-color: darken(@white, 10%);
|
66
|
+
.opacity(65);
|
67
|
+
.box-shadow(none);
|
68
|
+
}
|
69
|
+
|
70
|
+
|
71
|
+
// Button Sizes
|
72
|
+
// --------------------------------------------------
|
73
|
+
|
74
|
+
// Large
|
75
|
+
.btn-large {
|
76
|
+
padding: 9px 14px;
|
77
|
+
font-size: @baseFontSize + 2px;
|
78
|
+
line-height: normal;
|
79
|
+
.border-radius(5px);
|
80
|
+
}
|
81
|
+
.btn-large [class^="icon-"] {
|
82
|
+
margin-top: 1px;
|
83
|
+
}
|
84
|
+
|
85
|
+
// Small
|
86
|
+
.btn-small {
|
87
|
+
padding: 5px 9px;
|
88
|
+
font-size: @baseFontSize - 2px;
|
89
|
+
line-height: @baseLineHeight - 2px;
|
90
|
+
}
|
91
|
+
.btn-small [class^="icon-"] {
|
92
|
+
margin-top: -1px;
|
93
|
+
}
|
94
|
+
|
95
|
+
// Mini
|
96
|
+
.btn-mini {
|
97
|
+
padding: 2px 6px;
|
98
|
+
font-size: @baseFontSize - 2px;
|
99
|
+
line-height: @baseLineHeight - 4px;
|
100
|
+
}
|
101
|
+
|
102
|
+
|
103
|
+
// Alternate buttons
|
104
|
+
// --------------------------------------------------
|
105
|
+
|
106
|
+
// Set text color
|
107
|
+
// -------------------------
|
108
|
+
.btn-primary,
|
109
|
+
.btn-primary:hover,
|
110
|
+
.btn-warning,
|
111
|
+
.btn-warning:hover,
|
112
|
+
.btn-danger,
|
113
|
+
.btn-danger:hover,
|
114
|
+
.btn-success,
|
115
|
+
.btn-success:hover,
|
116
|
+
.btn-info,
|
117
|
+
.btn-info:hover,
|
118
|
+
.btn-inverse,
|
119
|
+
.btn-inverse:hover {
|
120
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
121
|
+
color: @white;
|
122
|
+
}
|
123
|
+
// Provide *some* extra contrast for those who can get it
|
124
|
+
.btn-primary.active,
|
125
|
+
.btn-warning.active,
|
126
|
+
.btn-danger.active,
|
127
|
+
.btn-success.active,
|
128
|
+
.btn-info.active,
|
129
|
+
.btn-dark.active {
|
130
|
+
color: rgba(255,255,255,.75);
|
131
|
+
}
|
132
|
+
|
133
|
+
// Set the backgrounds
|
134
|
+
// -------------------------
|
135
|
+
.btn-primary {
|
136
|
+
.buttonBackground(@primaryButtonBackground, spin(@primaryButtonBackground, 20));
|
137
|
+
}
|
138
|
+
// Warning appears are orange
|
139
|
+
.btn-warning {
|
140
|
+
.buttonBackground(lighten(@orange, 15%), @orange);
|
141
|
+
}
|
142
|
+
// Danger and error appear as red
|
143
|
+
.btn-danger {
|
144
|
+
.buttonBackground(#ee5f5b, #bd362f);
|
145
|
+
}
|
146
|
+
// Success appears as green
|
147
|
+
.btn-success {
|
148
|
+
.buttonBackground(#62c462, #51a351);
|
149
|
+
}
|
150
|
+
// Info appears as a neutral blue
|
151
|
+
.btn-info {
|
152
|
+
.buttonBackground(#5bc0de, #2f96b4);
|
153
|
+
}
|
154
|
+
// Inverse appears as dark gray
|
155
|
+
.btn-inverse {
|
156
|
+
.buttonBackground(#454545, #262626);
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
// Cross-browser Jank
|
161
|
+
// --------------------------------------------------
|
162
|
+
|
163
|
+
button.btn,
|
164
|
+
input[type="submit"].btn {
|
165
|
+
|
166
|
+
// Firefox 3.6 only I believe
|
167
|
+
&::-moz-focus-inner {
|
168
|
+
padding: 0;
|
169
|
+
border: 0;
|
170
|
+
}
|
171
|
+
|
172
|
+
// IE7 has some default padding on button controls
|
173
|
+
*padding-top: 2px;
|
174
|
+
*padding-bottom: 2px;
|
175
|
+
&.large {
|
176
|
+
*padding-top: 7px;
|
177
|
+
*padding-bottom: 7px;
|
178
|
+
}
|
179
|
+
&.small {
|
180
|
+
*padding-top: 3px;
|
181
|
+
*padding-bottom: 3px;
|
182
|
+
}
|
183
|
+
}
|
@@ -0,0 +1,121 @@
|
|
1
|
+
// CAROUSEL
|
2
|
+
// --------
|
3
|
+
|
4
|
+
.carousel {
|
5
|
+
position: relative;
|
6
|
+
margin-bottom: @baseLineHeight;
|
7
|
+
line-height: 1;
|
8
|
+
}
|
9
|
+
|
10
|
+
.carousel-inner {
|
11
|
+
overflow: hidden;
|
12
|
+
width: 100%;
|
13
|
+
position: relative;
|
14
|
+
}
|
15
|
+
|
16
|
+
.carousel {
|
17
|
+
|
18
|
+
.item {
|
19
|
+
display: none;
|
20
|
+
position: relative;
|
21
|
+
.transition(.6s ease-in-out left);
|
22
|
+
}
|
23
|
+
|
24
|
+
// Account for jankitude on images
|
25
|
+
.item > img {
|
26
|
+
display: block;
|
27
|
+
line-height: 1;
|
28
|
+
}
|
29
|
+
|
30
|
+
.active,
|
31
|
+
.next,
|
32
|
+
.prev { display: block; }
|
33
|
+
|
34
|
+
.active {
|
35
|
+
left: 0;
|
36
|
+
}
|
37
|
+
|
38
|
+
.next,
|
39
|
+
.prev {
|
40
|
+
position: absolute;
|
41
|
+
top: 0;
|
42
|
+
width: 100%;
|
43
|
+
}
|
44
|
+
|
45
|
+
.next {
|
46
|
+
left: 100%;
|
47
|
+
}
|
48
|
+
.prev {
|
49
|
+
left: -100%;
|
50
|
+
}
|
51
|
+
.next.left,
|
52
|
+
.prev.right {
|
53
|
+
left: 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
.active.left {
|
57
|
+
left: -100%;
|
58
|
+
}
|
59
|
+
.active.right {
|
60
|
+
left: 100%;
|
61
|
+
}
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
// Left/right controls for nav
|
66
|
+
// ---------------------------
|
67
|
+
|
68
|
+
.carousel-control {
|
69
|
+
position: absolute;
|
70
|
+
top: 40%;
|
71
|
+
left: 15px;
|
72
|
+
width: 40px;
|
73
|
+
height: 40px;
|
74
|
+
margin-top: -20px;
|
75
|
+
font-size: 60px;
|
76
|
+
font-weight: 100;
|
77
|
+
line-height: 30px;
|
78
|
+
color: @white;
|
79
|
+
text-align: center;
|
80
|
+
background: @grayDarker;
|
81
|
+
border: 3px solid @white;
|
82
|
+
.border-radius(23px);
|
83
|
+
.opacity(50);
|
84
|
+
|
85
|
+
// we can't have this transition here
|
86
|
+
// because webkit cancels the carousel
|
87
|
+
// animation if you trip this while
|
88
|
+
// in the middle of another animation
|
89
|
+
// ;_;
|
90
|
+
// .transition(opacity .2s linear);
|
91
|
+
|
92
|
+
// Reposition the right one
|
93
|
+
&.right {
|
94
|
+
left: auto;
|
95
|
+
right: 15px;
|
96
|
+
}
|
97
|
+
|
98
|
+
// Hover state
|
99
|
+
&:hover {
|
100
|
+
color: @white;
|
101
|
+
text-decoration: none;
|
102
|
+
.opacity(90);
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
// Caption for text below images
|
107
|
+
// -----------------------------
|
108
|
+
|
109
|
+
.carousel-caption {
|
110
|
+
position: absolute;
|
111
|
+
left: 0;
|
112
|
+
right: 0;
|
113
|
+
bottom: 0;
|
114
|
+
padding: 10px 15px 5px;
|
115
|
+
background: @grayDark;
|
116
|
+
background: rgba(0,0,0,.75);
|
117
|
+
}
|
118
|
+
.carousel-caption h4,
|
119
|
+
.carousel-caption p {
|
120
|
+
color: @white;
|
121
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// CLOSE ICONS
|
2
|
+
// -----------
|
3
|
+
|
4
|
+
.close {
|
5
|
+
float: right;
|
6
|
+
font-size: 20px;
|
7
|
+
font-weight: bold;
|
8
|
+
line-height: @baseLineHeight;
|
9
|
+
color: @black;
|
10
|
+
text-shadow: 0 1px 0 rgba(255,255,255,1);
|
11
|
+
.opacity(20);
|
12
|
+
&:hover {
|
13
|
+
color: @black;
|
14
|
+
text-decoration: none;
|
15
|
+
.opacity(40);
|
16
|
+
cursor: pointer;
|
17
|
+
}
|
18
|
+
}
|
@@ -0,0 +1,57 @@
|
|
1
|
+
// Code.less
|
2
|
+
// Code typography styles for the <code> and <pre> elements
|
3
|
+
// --------------------------------------------------------
|
4
|
+
|
5
|
+
// Inline and block code styles
|
6
|
+
code,
|
7
|
+
pre {
|
8
|
+
padding: 0 3px 2px;
|
9
|
+
#font > #family > .monospace;
|
10
|
+
font-size: @baseFontSize - 1;
|
11
|
+
color: @grayDark;
|
12
|
+
.border-radius(3px);
|
13
|
+
}
|
14
|
+
|
15
|
+
// Inline code
|
16
|
+
code {
|
17
|
+
padding: 3px 4px;
|
18
|
+
color: #d14;
|
19
|
+
background-color: #f7f7f9;
|
20
|
+
border: 1px solid #e1e1e8;
|
21
|
+
}
|
22
|
+
|
23
|
+
// Blocks of code
|
24
|
+
pre {
|
25
|
+
display: block;
|
26
|
+
padding: (@baseLineHeight - 1) / 2;
|
27
|
+
margin: 0 0 @baseLineHeight / 2;
|
28
|
+
font-size: 12px;
|
29
|
+
line-height: @baseLineHeight;
|
30
|
+
background-color: #f5f5f5;
|
31
|
+
border: 1px solid #ccc; // fallback for IE7-8
|
32
|
+
border: 1px solid rgba(0,0,0,.15);
|
33
|
+
.border-radius(4px);
|
34
|
+
white-space: pre;
|
35
|
+
white-space: pre-wrap;
|
36
|
+
word-break: break-all;
|
37
|
+
word-wrap: break-word;
|
38
|
+
|
39
|
+
// Make prettyprint styles more spaced out for readability
|
40
|
+
&.prettyprint {
|
41
|
+
margin-bottom: @baseLineHeight;
|
42
|
+
}
|
43
|
+
|
44
|
+
// Account for some code outputs that place code tags in pre tags
|
45
|
+
code {
|
46
|
+
padding: 0;
|
47
|
+
color: inherit;
|
48
|
+
background-color: transparent;
|
49
|
+
border: 0;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
// Enable scrollable blocks of code
|
54
|
+
.pre-scrollable {
|
55
|
+
max-height: 340px;
|
56
|
+
overflow-y: scroll;
|
57
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
// COMPONENT ANIMATIONS
|
2
|
+
// --------------------
|
3
|
+
|
4
|
+
.fade {
|
5
|
+
.transition(opacity .15s linear);
|
6
|
+
opacity: 0;
|
7
|
+
&.in {
|
8
|
+
opacity: 1;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
.collapse {
|
13
|
+
.transition(height .35s ease);
|
14
|
+
position:relative;
|
15
|
+
overflow:hidden;
|
16
|
+
height: 0;
|
17
|
+
&.in { height: auto; }
|
18
|
+
}
|
@@ -0,0 +1,130 @@
|
|
1
|
+
// DROPDOWN MENUS
|
2
|
+
// --------------
|
3
|
+
|
4
|
+
// Use the .menu class on any <li> element within the topbar or ul.tabs and you'll get some superfancy dropdowns
|
5
|
+
.dropdown {
|
6
|
+
position: relative;
|
7
|
+
}
|
8
|
+
.dropdown-toggle {
|
9
|
+
// The caret makes the toggle a bit too tall in IE7
|
10
|
+
*margin-bottom: -3px;
|
11
|
+
}
|
12
|
+
.dropdown-toggle:active,
|
13
|
+
.open .dropdown-toggle {
|
14
|
+
outline: 0;
|
15
|
+
}
|
16
|
+
// Dropdown arrow/caret
|
17
|
+
.caret {
|
18
|
+
display: inline-block;
|
19
|
+
width: 0;
|
20
|
+
height: 0;
|
21
|
+
text-indent: -99999px;
|
22
|
+
// IE7 won't do the border trick if there's a text indent, but it doesn't
|
23
|
+
// do the content that text-indent is hiding, either, so we're ok.
|
24
|
+
*text-indent: 0;
|
25
|
+
vertical-align: top;
|
26
|
+
border-left: 4px solid transparent;
|
27
|
+
border-right: 4px solid transparent;
|
28
|
+
border-top: 4px solid @black;
|
29
|
+
.opacity(30);
|
30
|
+
content: "\2193";
|
31
|
+
}
|
32
|
+
.dropdown .caret {
|
33
|
+
margin-top: 8px;
|
34
|
+
margin-left: 2px;
|
35
|
+
}
|
36
|
+
.dropdown:hover .caret,
|
37
|
+
.open.dropdown .caret {
|
38
|
+
.opacity(100);
|
39
|
+
}
|
40
|
+
// The dropdown menu (ul)
|
41
|
+
.dropdown-menu {
|
42
|
+
position: absolute;
|
43
|
+
top: 100%;
|
44
|
+
left: 0;
|
45
|
+
z-index: @zindexDropdown;
|
46
|
+
float: left;
|
47
|
+
display: none; // none by default, but block on "open" of the menu
|
48
|
+
min-width: 160px;
|
49
|
+
_width: 160px;
|
50
|
+
padding: 4px 0;
|
51
|
+
margin: 0; // override default ul
|
52
|
+
list-style: none;
|
53
|
+
background-color: @white;
|
54
|
+
border-color: #ccc;
|
55
|
+
border-color: rgba(0,0,0,.2);
|
56
|
+
border-style: solid;
|
57
|
+
border-width: 1px;
|
58
|
+
.border-radius(0 0 5px 5px);
|
59
|
+
.box-shadow(0 5px 10px rgba(0,0,0,.2));
|
60
|
+
-webkit-background-clip: padding-box;
|
61
|
+
-moz-background-clip: padding;
|
62
|
+
background-clip: padding-box;
|
63
|
+
*border-right-width: 2px;
|
64
|
+
*border-bottom-width: 2px;
|
65
|
+
|
66
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
67
|
+
&.bottom-up {
|
68
|
+
top: auto;
|
69
|
+
bottom: 100%;
|
70
|
+
margin-bottom: 2px;
|
71
|
+
}
|
72
|
+
|
73
|
+
// Dividers (basically an hr) within the dropdown
|
74
|
+
.divider {
|
75
|
+
height: 1px;
|
76
|
+
margin: 5px 1px;
|
77
|
+
overflow: hidden;
|
78
|
+
background-color: #e5e5e5;
|
79
|
+
border-bottom: 1px solid @white;
|
80
|
+
|
81
|
+
// IE7 needs a set width since we gave a height. Restricting just
|
82
|
+
// to IE7 to keep the 1px left/right space in other browsers.
|
83
|
+
// It is unclear where IE is getting the extra space that we need
|
84
|
+
// to negative-margin away, but so it goes.
|
85
|
+
*width: 100%;
|
86
|
+
*margin: -5px 0 5px;
|
87
|
+
}
|
88
|
+
|
89
|
+
// Links within the dropdown menu
|
90
|
+
a {
|
91
|
+
display: block;
|
92
|
+
padding: 3px 15px;
|
93
|
+
clear: both;
|
94
|
+
font-weight: normal;
|
95
|
+
line-height: @baseLineHeight;
|
96
|
+
color: @gray;
|
97
|
+
white-space: nowrap;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
|
101
|
+
// Hover state
|
102
|
+
.dropdown-menu li > a:hover,
|
103
|
+
.dropdown-menu .active > a,
|
104
|
+
.dropdown-menu .active > a:hover {
|
105
|
+
color: @white;
|
106
|
+
text-decoration: none;
|
107
|
+
background-color: @linkColor;
|
108
|
+
}
|
109
|
+
|
110
|
+
// Open state for the dropdown
|
111
|
+
.dropdown.open {
|
112
|
+
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
113
|
+
// make the menu appear below buttons that appeared later on the page
|
114
|
+
*z-index: @zindexDropdown;
|
115
|
+
|
116
|
+
.dropdown-toggle {
|
117
|
+
color: @white;
|
118
|
+
background: #ccc;
|
119
|
+
background: rgba(0,0,0,.3);
|
120
|
+
}
|
121
|
+
.dropdown-menu {
|
122
|
+
display: block;
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
126
|
+
// Typeahead
|
127
|
+
.typeahead {
|
128
|
+
margin-top: 2px; // give it some space to breathe
|
129
|
+
.border-radius(4px);
|
130
|
+
}
|