bootstrap-sass-rails-rtl 2.0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +14 -0
- data/README.md +115 -0
- data/Rakefile +37 -0
- data/lib/bootstrap-sass-rails-rtl.rb +9 -0
- data/lib/bootstrap/sass/extensions.rb +5 -0
- data/lib/bootstrap/sass/extensions/functions.rb +15 -0
- data/lib/bootstrap/sass/rails.rb +2 -0
- data/lib/bootstrap/sass/rails/engine.rb +9 -0
- data/lib/bootstrap/sass/rails/version.rb +7 -0
- data/test/cases/usage_css_spec.rb +216 -0
- data/test/cases/usage_js_spec.rb +40 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +3 -0
- data/test/dummy/app/assets/javascripts/individual.js +1 -0
- data/test/dummy/app/assets/stylesheets/application-rtl.css.scss +3 -0
- data/test/dummy/app/assets/stylesheets/application.css.scss +3 -0
- data/test/dummy/app/assets/stylesheets/individual-rtl.css.scss +11 -0
- data/test/dummy/app/assets/stylesheets/individual.css.scss +11 -0
- data/test/dummy/app/assets/stylesheets/sprockets-rtl.css +3 -0
- data/test/dummy/app/assets/stylesheets/sprockets.css +3 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +49 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/spec_helper.rb +13 -0
- data/test/support/helpers.rb +35 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap.js +12 -0
- data/vendor/assets/javascripts/twitter/bootstrap/alert.js +90 -0
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +96 -0
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +169 -0
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +157 -0
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +100 -0
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +218 -0
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +98 -0
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +151 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +135 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +275 -0
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +61 -0
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +285 -0
- data/vendor/assets/stylesheets/twitter/bootstrap.css.scss +62 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.scss +33 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.scss +59 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +24 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +190 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +193 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss +121 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_close.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_code.scss +57 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.scss +20 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +142 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +589 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +8 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +22 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels-badges.scss +54 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.scss +17 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +612 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +90 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +358 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +364 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pager.scss +36 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +56 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.scss +49 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +118 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_reset.scss +131 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.scss +26 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.scss +150 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.scss +19 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-navbar.scss +153 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +41 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.scss +48 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.scss +178 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +175 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +47 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.scss +35 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +232 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.scss +23 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +206 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_wells.scss +27 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_accordion.scss +33 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_alerts.scss +59 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_breadcrumbs.scss +24 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_button-groups.scss +190 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_buttons.scss +193 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_carousel.scss +121 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_close.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_code.scss +57 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_component-animations.scss +20 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_dropdowns.scss +142 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_forms.scss +589 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_grid.scss +8 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_hero-unit.scss +22 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_labels-badges.scss +54 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_layouts.scss +17 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_mixins.scss +612 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_modals.scss +90 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_navbar.scss +358 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_navs.scss +364 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_pager.scss +36 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_pagination.scss +56 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_popovers.scss +49 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_progress-bars.scss +118 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_reset.scss +131 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-1200px-min.scss +26 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-767px-max.scss +150 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-768px-979px.scss +19 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-navbar.scss +153 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-utilities.scss +41 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive.scss +48 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_scaffolding.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_sprites.scss +178 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_tables.scss +175 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_thumbnails.scss +47 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_tooltip.scss +35 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_type.scss +232 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_utilities.scss +23 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_variables.scss +206 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_wells.scss +27 -0
- data/vendor/assets/stylesheets/twitter/bootstrap_rtl.css.scss +62 -0
- metadata +276 -0
@@ -0,0 +1,193 @@
|
|
1
|
+
// BUTTON STYLES
|
2
|
+
// -------------
|
3
|
+
|
4
|
+
|
5
|
+
// Base styles
|
6
|
+
// --------------------------------------------------
|
7
|
+
|
8
|
+
// Core
|
9
|
+
.btn {
|
10
|
+
display: inline-block;
|
11
|
+
@include ie7-inline-block();
|
12
|
+
padding: 4px 10px 4px;
|
13
|
+
margin-bottom: 0; // For input.btn
|
14
|
+
font-size: $baseFontSize;
|
15
|
+
line-height: $baseLineHeight;
|
16
|
+
*line-height: 20px;
|
17
|
+
color: $grayDark;
|
18
|
+
text-align: center;
|
19
|
+
text-shadow: 0 1px 1px rgba(255,255,255,.75);
|
20
|
+
@include gradient-vertical-three-colors($white, $white, 25%, darken($white, 10%)); // Don't use .gradientbar() here since it does a three-color gradient
|
21
|
+
vertical-align: middle;
|
22
|
+
cursor: pointer;
|
23
|
+
@include buttonBackground($btnBackground, $btnBackgroundHighlight);
|
24
|
+
border: 1px solid $btnBorder;
|
25
|
+
*border: 0; // Remove the border to prevent IE7's black border on input:focus
|
26
|
+
border-bottom-color: darken($btnBorder, 10%);
|
27
|
+
@include border-radius(4px);
|
28
|
+
|
29
|
+
@include ie7-restore-left-whitespace(); // Give IE7 some love
|
30
|
+
@include box-shadow("inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)");
|
31
|
+
}
|
32
|
+
|
33
|
+
// Hover state
|
34
|
+
.btn:hover {
|
35
|
+
color: $grayDark;
|
36
|
+
text-decoration: none;
|
37
|
+
background-color: darken($white, 10%);
|
38
|
+
*background-color: darken($white, 15%); /* Buttons in IE7 don't get borders, so darken on hover */
|
39
|
+
background-position: 0 -15px;
|
40
|
+
|
41
|
+
// transition is only when going to hover, otherwise the background
|
42
|
+
// behind the gradient (there for IE<=9 fallback) gets mismatched
|
43
|
+
@include transition(background-position .1s linear);
|
44
|
+
}
|
45
|
+
|
46
|
+
// Focus state for keyboard and accessibility
|
47
|
+
.btn:focus {
|
48
|
+
@include tab-focus();
|
49
|
+
}
|
50
|
+
|
51
|
+
// Active state
|
52
|
+
.btn.active,
|
53
|
+
.btn:active {
|
54
|
+
@include box-shadow("inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05)");
|
55
|
+
background-color: darken($white, 10%);
|
56
|
+
background-color: darken($white, 15%) \9; /* IE6-9 */
|
57
|
+
background-image: none;
|
58
|
+
outline: 0;
|
59
|
+
}
|
60
|
+
|
61
|
+
// Disabled state
|
62
|
+
.btn.disabled,
|
63
|
+
.btn[disabled] {
|
64
|
+
cursor: default;
|
65
|
+
background-color: darken($white, 10%);
|
66
|
+
background-image: none;
|
67
|
+
@include opacity(65);
|
68
|
+
@include box-shadow(none);
|
69
|
+
}
|
70
|
+
|
71
|
+
|
72
|
+
// Button Sizes
|
73
|
+
// --------------------------------------------------
|
74
|
+
|
75
|
+
// Large
|
76
|
+
.btn-large {
|
77
|
+
padding: 9px 14px;
|
78
|
+
font-size: $baseFontSize + 2px;
|
79
|
+
line-height: normal;
|
80
|
+
@include border-radius(5px);
|
81
|
+
}
|
82
|
+
.btn-large [class^="icon-"] {
|
83
|
+
margin-top: 1px;
|
84
|
+
}
|
85
|
+
|
86
|
+
// Small
|
87
|
+
.btn-small {
|
88
|
+
padding: 5px 9px;
|
89
|
+
font-size: $baseFontSize - 2px;
|
90
|
+
line-height: $baseLineHeight - 2px;
|
91
|
+
}
|
92
|
+
.btn-small [class^="icon-"] {
|
93
|
+
margin-top: -1px;
|
94
|
+
}
|
95
|
+
|
96
|
+
// Mini
|
97
|
+
.btn-mini {
|
98
|
+
padding: 2px 6px;
|
99
|
+
font-size: $baseFontSize - 2px;
|
100
|
+
line-height: $baseLineHeight - 4px;
|
101
|
+
}
|
102
|
+
|
103
|
+
|
104
|
+
// Alternate buttons
|
105
|
+
// --------------------------------------------------
|
106
|
+
|
107
|
+
// Set text color
|
108
|
+
// -------------------------
|
109
|
+
.btn-primary,
|
110
|
+
.btn-primary:hover,
|
111
|
+
.btn-warning,
|
112
|
+
.btn-warning:hover,
|
113
|
+
.btn-danger,
|
114
|
+
.btn-danger:hover,
|
115
|
+
.btn-success,
|
116
|
+
.btn-success:hover,
|
117
|
+
.btn-info,
|
118
|
+
.btn-info:hover,
|
119
|
+
.btn-inverse,
|
120
|
+
.btn-inverse:hover {
|
121
|
+
color: $white;
|
122
|
+
text-shadow: 0 -1px 0 rgba(0,0,0,.25);
|
123
|
+
}
|
124
|
+
// Provide *some* extra contrast for those who can get it
|
125
|
+
.btn-primary.active,
|
126
|
+
.btn-warning.active,
|
127
|
+
.btn-danger.active,
|
128
|
+
.btn-success.active,
|
129
|
+
.btn-info.active,
|
130
|
+
.btn-inverse.active {
|
131
|
+
color: rgba(255,255,255,.75);
|
132
|
+
}
|
133
|
+
|
134
|
+
// Set the backgrounds
|
135
|
+
// -------------------------
|
136
|
+
.btn {
|
137
|
+
// reset here as of 2.0.3 due to Recess property order
|
138
|
+
border-color: #ccc;
|
139
|
+
border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);
|
140
|
+
}
|
141
|
+
.btn-primary {
|
142
|
+
@include buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight);
|
143
|
+
}
|
144
|
+
// Warning appears are orange
|
145
|
+
.btn-warning {
|
146
|
+
@include buttonBackground($btnWarningBackground, $btnWarningBackgroundHighlight);
|
147
|
+
}
|
148
|
+
// Danger and error appear as red
|
149
|
+
.btn-danger {
|
150
|
+
@include buttonBackground($btnDangerBackground, $btnDangerBackgroundHighlight);
|
151
|
+
}
|
152
|
+
// Success appears as green
|
153
|
+
.btn-success {
|
154
|
+
@include buttonBackground($btnSuccessBackground, $btnSuccessBackgroundHighlight);
|
155
|
+
}
|
156
|
+
// Info appears as a neutral blue
|
157
|
+
.btn-info {
|
158
|
+
@include buttonBackground($btnInfoBackground, $btnInfoBackgroundHighlight);
|
159
|
+
}
|
160
|
+
// Inverse appears as dark gray
|
161
|
+
.btn-inverse {
|
162
|
+
@include buttonBackground($btnInverseBackground, $btnInverseBackgroundHighlight);
|
163
|
+
}
|
164
|
+
|
165
|
+
|
166
|
+
// Cross-browser Jank
|
167
|
+
// --------------------------------------------------
|
168
|
+
|
169
|
+
button.btn,
|
170
|
+
input[type="submit"].btn {
|
171
|
+
|
172
|
+
// Firefox 3.6 only I believe
|
173
|
+
&::-moz-focus-inner {
|
174
|
+
padding: 0;
|
175
|
+
border: 0;
|
176
|
+
}
|
177
|
+
|
178
|
+
// IE7 has some default padding on button controls
|
179
|
+
*padding-top: 2px;
|
180
|
+
*padding-bottom: 2px;
|
181
|
+
&.btn-large {
|
182
|
+
*padding-top: 7px;
|
183
|
+
*padding-bottom: 7px;
|
184
|
+
}
|
185
|
+
&.btn-small {
|
186
|
+
*padding-top: 3px;
|
187
|
+
*padding-bottom: 3px;
|
188
|
+
}
|
189
|
+
&.btn-mini {
|
190
|
+
*padding-top: 1px;
|
191
|
+
*padding-bottom: 1px;
|
192
|
+
}
|
193
|
+
}
|
@@ -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
|
+
@include 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
|
+
right: 0;
|
36
|
+
}
|
37
|
+
|
38
|
+
.next,
|
39
|
+
.prev {
|
40
|
+
position: absolute;
|
41
|
+
top: 0;
|
42
|
+
width: 100%;
|
43
|
+
}
|
44
|
+
|
45
|
+
.next {
|
46
|
+
right: 100%;
|
47
|
+
}
|
48
|
+
.prev {
|
49
|
+
right: -100%;
|
50
|
+
}
|
51
|
+
.next.left,
|
52
|
+
.prev.right {
|
53
|
+
right: 0;
|
54
|
+
}
|
55
|
+
|
56
|
+
.active.left {
|
57
|
+
right: -100%;
|
58
|
+
}
|
59
|
+
.active.right {
|
60
|
+
right: 100%;
|
61
|
+
}
|
62
|
+
|
63
|
+
}
|
64
|
+
|
65
|
+
// Left/right controls for nav
|
66
|
+
// ---------------------------
|
67
|
+
|
68
|
+
.carousel-control {
|
69
|
+
position: absolute;
|
70
|
+
top: 40%;
|
71
|
+
right: 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
|
+
@include border-radius(23px);
|
83
|
+
@include 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
|
+
right: auto;
|
95
|
+
left: 15px;
|
96
|
+
}
|
97
|
+
|
98
|
+
// Hover state
|
99
|
+
&:hover {
|
100
|
+
color: $white;
|
101
|
+
text-decoration: none;
|
102
|
+
@include opacity(90);
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
// Caption for text below images
|
107
|
+
// -----------------------------
|
108
|
+
|
109
|
+
.carousel-caption {
|
110
|
+
position: absolute;
|
111
|
+
right: 0;
|
112
|
+
left: 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,29 @@
|
|
1
|
+
// CLOSE ICONS
|
2
|
+
// -----------
|
3
|
+
|
4
|
+
.close {
|
5
|
+
float: left;
|
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
|
+
@include opacity(20);
|
12
|
+
&:hover {
|
13
|
+
color: $black;
|
14
|
+
text-decoration: none;
|
15
|
+
cursor: pointer;
|
16
|
+
@include opacity(40);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
// Additional properties for button version
|
21
|
+
// iOS requires the button element instead of an anchor tag.
|
22
|
+
// If you want the anchor version, it requires `href="#"`.
|
23
|
+
button.close {
|
24
|
+
padding: 0;
|
25
|
+
cursor: pointer;
|
26
|
+
background: transparent;
|
27
|
+
border: 0;
|
28
|
+
-webkit-appearance: none;
|
29
|
+
}
|
@@ -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
|
+
@include font-family-monospace();
|
10
|
+
font-size: $baseFontSize - 1;
|
11
|
+
color: $grayDark;
|
12
|
+
@include border-radius(3px);
|
13
|
+
}
|
14
|
+
|
15
|
+
// Inline code
|
16
|
+
code {
|
17
|
+
padding: 2px 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: $baseFontSize * .925; // 13px to 12px
|
29
|
+
line-height: $baseLineHeight;
|
30
|
+
word-break: break-all;
|
31
|
+
word-wrap: break-word;
|
32
|
+
white-space: pre;
|
33
|
+
white-space: pre-wrap;
|
34
|
+
background-color: #f5f5f5;
|
35
|
+
border: 1px solid #ccc; // fallback for IE7-8
|
36
|
+
border: 1px solid rgba(0,0,0,.15);
|
37
|
+
@include border-radius(4px);
|
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,20 @@
|
|
1
|
+
// COMPONENT ANIMATIONS
|
2
|
+
// --------------------
|
3
|
+
|
4
|
+
.fade {
|
5
|
+
opacity: 0;
|
6
|
+
@include transition(opacity .15s linear);
|
7
|
+
&.in {
|
8
|
+
opacity: 1;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
.collapse {
|
13
|
+
position: relative;
|
14
|
+
height: 0;
|
15
|
+
overflow: hidden;
|
16
|
+
@include transition(height .35s ease);
|
17
|
+
&.in {
|
18
|
+
height: auto;
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,142 @@
|
|
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
|
+
.dropup,
|
6
|
+
.dropdown {
|
7
|
+
position: relative;
|
8
|
+
}
|
9
|
+
.dropdown-toggle {
|
10
|
+
// The caret makes the toggle a bit too tall in IE7
|
11
|
+
*margin-bottom: -3px;
|
12
|
+
}
|
13
|
+
.dropdown-toggle:active,
|
14
|
+
.open .dropdown-toggle {
|
15
|
+
outline: 0;
|
16
|
+
}
|
17
|
+
|
18
|
+
// Dropdown arrow/caret
|
19
|
+
// --------------------
|
20
|
+
.caret {
|
21
|
+
display: inline-block;
|
22
|
+
width: 0;
|
23
|
+
height: 0;
|
24
|
+
vertical-align: top;
|
25
|
+
border-top: 4px solid $black;
|
26
|
+
border-left: 4px solid transparent;
|
27
|
+
border-right: 4px solid transparent;
|
28
|
+
content: "";
|
29
|
+
@include opacity(30);
|
30
|
+
}
|
31
|
+
// Place the caret
|
32
|
+
.dropdown .caret {
|
33
|
+
margin-top: 8px;
|
34
|
+
margin-right: 2px;
|
35
|
+
}
|
36
|
+
.dropdown:hover .caret,
|
37
|
+
.open .caret {
|
38
|
+
@include opacity(100);
|
39
|
+
}
|
40
|
+
|
41
|
+
// The dropdown menu (ul)
|
42
|
+
// ----------------------
|
43
|
+
.dropdown-menu {
|
44
|
+
position: absolute;
|
45
|
+
top: 100%;
|
46
|
+
right: 0;
|
47
|
+
z-index: $zindexDropdown;
|
48
|
+
display: none; // none by default, but block on "open" of the menu
|
49
|
+
float: right;
|
50
|
+
min-width: 160px;
|
51
|
+
padding: 4px 0;
|
52
|
+
margin: 1px 0 0; // override default ul
|
53
|
+
list-style: none;
|
54
|
+
background-color: $dropdownBackground;
|
55
|
+
border: 1px solid #ccc;
|
56
|
+
border: 1px solid rgba(0,0,0,.2);
|
57
|
+
*border-left-width: 2px;
|
58
|
+
*border-bottom-width: 2px;
|
59
|
+
@include border-radius(5px);
|
60
|
+
@include box-shadow(0 5px 10px rgba(0,0,0,.2));
|
61
|
+
-webkit-background-clip: padding-box;
|
62
|
+
-moz-background-clip: padding;
|
63
|
+
background-clip: padding-box;
|
64
|
+
|
65
|
+
// Aligns the dropdown menu to right
|
66
|
+
&.pull-right {
|
67
|
+
left: 0;
|
68
|
+
right: auto;
|
69
|
+
}
|
70
|
+
|
71
|
+
// Dividers (basically an hr) within the dropdown
|
72
|
+
.divider {
|
73
|
+
@include nav-divider($dropdownDividerTop, $dropdownDividerBottom);
|
74
|
+
}
|
75
|
+
|
76
|
+
// Links within the dropdown menu
|
77
|
+
a {
|
78
|
+
display: block;
|
79
|
+
padding: 3px 15px;
|
80
|
+
clear: both;
|
81
|
+
font-weight: normal;
|
82
|
+
line-height: $baseLineHeight;
|
83
|
+
color: $dropdownLinkColor;
|
84
|
+
white-space: nowrap;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
// Hover state
|
89
|
+
// -----------
|
90
|
+
.dropdown-menu li > a:hover,
|
91
|
+
.dropdown-menu .active > a,
|
92
|
+
.dropdown-menu .active > a:hover {
|
93
|
+
color: $dropdownLinkColorHover;
|
94
|
+
text-decoration: none;
|
95
|
+
background-color: $dropdownLinkBackgroundHover;
|
96
|
+
}
|
97
|
+
|
98
|
+
// Open state for the dropdown
|
99
|
+
// ---------------------------
|
100
|
+
.open {
|
101
|
+
// IE7's z-index only goes to the nearest positioned ancestor, which would
|
102
|
+
// make the menu appear below buttons that appeared later on the page
|
103
|
+
*z-index: $zindexDropdown;
|
104
|
+
|
105
|
+
& > .dropdown-menu {
|
106
|
+
display: block;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
// Right aligned dropdowns
|
111
|
+
// ---------------------------
|
112
|
+
.pull-right > .dropdown-menu {
|
113
|
+
left: 0;
|
114
|
+
right: auto;
|
115
|
+
}
|
116
|
+
|
117
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
118
|
+
// ------------------------------------------------------
|
119
|
+
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
120
|
+
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
121
|
+
.dropup,
|
122
|
+
.navbar-fixed-bottom .dropdown {
|
123
|
+
// Reverse the caret
|
124
|
+
.caret {
|
125
|
+
border-top: 0;
|
126
|
+
border-bottom: 4px solid $black;
|
127
|
+
content: "\2191";
|
128
|
+
}
|
129
|
+
// Different positioning for bottom up menu
|
130
|
+
.dropdown-menu {
|
131
|
+
top: auto;
|
132
|
+
bottom: 100%;
|
133
|
+
margin-bottom: 1px;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
// Typeahead
|
138
|
+
// ---------
|
139
|
+
.typeahead {
|
140
|
+
margin-top: 2px; // give it some space to breathe
|
141
|
+
@include border-radius(4px);
|
142
|
+
}
|