toronto 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +21 -0
- data/.travis.yml +8 -0
- data/Gemfile +28 -0
- data/MIT-LICENSE +20 -0
- data/README.md +179 -0
- data/Rakefile +147 -0
- data/lib/generators/toronto/install/install_generator.rb +68 -0
- data/lib/generators/toronto/install/templates/assets/stylesheets/bootstrap-variables.less +861 -0
- data/lib/generators/toronto/install/templates/assets/stylesheets/bootstrap-variables.scss +866 -0
- data/lib/generators/toronto/install/templates/assets/stylesheets/starter.css +22 -0
- data/lib/generators/toronto/install/templates/assets/stylesheets/starter.less +23 -0
- data/lib/generators/toronto/install/templates/assets/stylesheets/starter.scss +23 -0
- data/lib/generators/toronto/install/templates/config/initializers/locales.rb +4 -0
- data/lib/generators/toronto/install/templates/form_builders/form_builder/_form.html.erb +39 -0
- data/lib/generators/toronto/install/templates/form_builders/form_builder/_form.html.haml +26 -0
- data/lib/generators/toronto/install/templates/form_builders/form_builder/_form.html.slim +21 -0
- data/lib/generators/toronto/install/templates/helpers/menu_helper.rb +7 -0
- data/lib/generators/toronto/install/templates/layouts/starter.html.erb +57 -0
- data/lib/generators/toronto/install/templates/layouts/starter.html.haml +48 -0
- data/lib/generators/toronto/install/templates/layouts/starter.html.slim +53 -0
- data/lib/generators/toronto/install/templates/lib/rails/generators/haml/scaffold/scaffold_generator.rb +51 -0
- data/lib/generators/toronto/install/templates/lib/templates/erb/controller/view.html.erb +4 -0
- data/lib/generators/toronto/install/templates/lib/templates/erb/scaffold/edit.html.erb +13 -0
- data/lib/generators/toronto/install/templates/lib/templates/erb/scaffold/index.html.erb +33 -0
- data/lib/generators/toronto/install/templates/lib/templates/erb/scaffold/new.html.erb +9 -0
- data/lib/generators/toronto/install/templates/lib/templates/erb/scaffold/show.html.erb +19 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/controller/view.html.haml +3 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/edit.html.haml +10 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/en.yml +23 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/fr.yml +23 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/index.html.haml +30 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/new.html.haml +7 -0
- data/lib/generators/toronto/install/templates/lib/templates/haml/scaffold/show.html.haml +18 -0
- data/lib/generators/toronto/install/templates/lib/templates/slim/controller/view.html.slim +5 -0
- data/lib/generators/toronto/install/templates/lib/templates/slim/scaffold/edit.html.slim +12 -0
- data/lib/generators/toronto/install/templates/lib/templates/slim/scaffold/index.html.slim +31 -0
- data/lib/generators/toronto/install/templates/lib/templates/slim/scaffold/new.html.slim +9 -0
- data/lib/generators/toronto/install/templates/lib/templates/slim/scaffold/show.html.slim +16 -0
- data/lib/toronto/version.rb +3 -0
- data/lib/toronto.rb +22 -0
- data/readme-template.md.erb +163 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/config/application.rb +68 -0
- data/test/dummy/config/boot.rb +6 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config.ru +4 -0
- data/test/generators/bootstrap/install_generator_test.rb +104 -0
- data/test/test_helper.rb +7 -0
- data/toronto.gemspec +30 -0
- data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
- data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/vendor/assets/javascripts/bootstrap/affix.js +162 -0
- data/vendor/assets/javascripts/bootstrap/alert.js +94 -0
- data/vendor/assets/javascripts/bootstrap/button.js +116 -0
- data/vendor/assets/javascripts/bootstrap/carousel.js +237 -0
- data/vendor/assets/javascripts/bootstrap/collapse.js +211 -0
- data/vendor/assets/javascripts/bootstrap/dropdown.js +161 -0
- data/vendor/assets/javascripts/bootstrap/modal.js +339 -0
- data/vendor/assets/javascripts/bootstrap/popover.js +108 -0
- data/vendor/assets/javascripts/bootstrap/scrollspy.js +172 -0
- data/vendor/assets/javascripts/bootstrap/tab.js +153 -0
- data/vendor/assets/javascripts/bootstrap/tooltip.js +476 -0
- data/vendor/assets/javascripts/bootstrap/transition.js +59 -0
- data/vendor/assets/javascripts/bootstrap.js +12 -0
- data/vendor/assets/stylesheets/bootstrap.css.erb +6584 -0
- data/vendor/assets/stylesheets/bootstrap.css.map +1 -0
- data/vendor/twitter/bootstrap/less/alerts.less +73 -0
- data/vendor/twitter/bootstrap/less/badges.less +66 -0
- data/vendor/twitter/bootstrap/less/bootstrap.less +50 -0
- data/vendor/twitter/bootstrap/less/breadcrumbs.less +26 -0
- data/vendor/twitter/bootstrap/less/button-groups.less +243 -0
- data/vendor/twitter/bootstrap/less/buttons.less +160 -0
- data/vendor/twitter/bootstrap/less/carousel.less +269 -0
- data/vendor/twitter/bootstrap/less/close.less +34 -0
- data/vendor/twitter/bootstrap/less/code.less +69 -0
- data/vendor/twitter/bootstrap/less/component-animations.less +33 -0
- data/vendor/twitter/bootstrap/less/dropdowns.less +214 -0
- data/vendor/twitter/bootstrap/less/forms.less +574 -0
- data/vendor/twitter/bootstrap/less/glyphicons.less +305 -0
- data/vendor/twitter/bootstrap/less/grid.less +84 -0
- data/vendor/twitter/bootstrap/less/input-groups.less +166 -0
- data/vendor/twitter/bootstrap/less/jumbotron.less +50 -0
- data/vendor/twitter/bootstrap/less/labels.less +64 -0
- data/vendor/twitter/bootstrap/less/list-group.less +124 -0
- data/vendor/twitter/bootstrap/less/media.less +61 -0
- data/vendor/twitter/bootstrap/less/mixins/alerts.less +14 -0
- data/vendor/twitter/bootstrap/less/mixins/background-variant.less +8 -0
- data/vendor/twitter/bootstrap/less/mixins/border-radius.less +18 -0
- data/vendor/twitter/bootstrap/less/mixins/buttons.less +52 -0
- data/vendor/twitter/bootstrap/less/mixins/center-block.less +7 -0
- data/vendor/twitter/bootstrap/less/mixins/clearfix.less +22 -0
- data/vendor/twitter/bootstrap/less/mixins/forms.less +85 -0
- data/vendor/twitter/bootstrap/less/mixins/gradients.less +59 -0
- data/vendor/twitter/bootstrap/less/mixins/grid-framework.less +91 -0
- data/vendor/twitter/bootstrap/less/mixins/grid.less +122 -0
- data/vendor/twitter/bootstrap/less/mixins/hide-text.less +21 -0
- data/vendor/twitter/bootstrap/less/mixins/image.less +33 -0
- data/vendor/twitter/bootstrap/less/mixins/labels.less +12 -0
- data/vendor/twitter/bootstrap/less/mixins/list-group.less +29 -0
- data/vendor/twitter/bootstrap/less/mixins/nav-divider.less +10 -0
- data/vendor/twitter/bootstrap/less/mixins/nav-vertical-align.less +9 -0
- data/vendor/twitter/bootstrap/less/mixins/opacity.less +8 -0
- data/vendor/twitter/bootstrap/less/mixins/pagination.less +23 -0
- data/vendor/twitter/bootstrap/less/mixins/panels.less +24 -0
- data/vendor/twitter/bootstrap/less/mixins/progress-bar.less +10 -0
- data/vendor/twitter/bootstrap/less/mixins/reset-filter.less +8 -0
- data/vendor/twitter/bootstrap/less/mixins/resize.less +6 -0
- data/vendor/twitter/bootstrap/less/mixins/responsive-visibility.less +15 -0
- data/vendor/twitter/bootstrap/less/mixins/size.less +10 -0
- data/vendor/twitter/bootstrap/less/mixins/tab-focus.less +9 -0
- data/vendor/twitter/bootstrap/less/mixins/table-row.less +28 -0
- data/vendor/twitter/bootstrap/less/mixins/text-emphasis.less +8 -0
- data/vendor/twitter/bootstrap/less/mixins/text-overflow.less +8 -0
- data/vendor/twitter/bootstrap/less/mixins/vendor-prefixes.less +227 -0
- data/vendor/twitter/bootstrap/less/mixins.less +39 -0
- data/vendor/twitter/bootstrap/less/modals.less +150 -0
- data/vendor/twitter/bootstrap/less/navbar.less +660 -0
- data/vendor/twitter/bootstrap/less/navs.less +242 -0
- data/vendor/twitter/bootstrap/less/normalize.less +427 -0
- data/vendor/twitter/bootstrap/less/pager.less +54 -0
- data/vendor/twitter/bootstrap/less/pagination.less +88 -0
- data/vendor/twitter/bootstrap/less/panels.less +265 -0
- data/vendor/twitter/bootstrap/less/popovers.less +135 -0
- data/vendor/twitter/bootstrap/less/print.less +107 -0
- data/vendor/twitter/bootstrap/less/progress-bars.less +87 -0
- data/vendor/twitter/bootstrap/less/responsive-embed.less +35 -0
- data/vendor/twitter/bootstrap/less/responsive-utilities.less +194 -0
- data/vendor/twitter/bootstrap/less/scaffolding.less +162 -0
- data/vendor/twitter/bootstrap/less/tables.less +234 -0
- data/vendor/twitter/bootstrap/less/theme.less +273 -0
- data/vendor/twitter/bootstrap/less/thumbnails.less +36 -0
- data/vendor/twitter/bootstrap/less/tooltip.less +102 -0
- data/vendor/twitter/bootstrap/less/type.less +302 -0
- data/vendor/twitter/bootstrap/less/utilities.less +55 -0
- data/vendor/twitter/bootstrap/less/variables.less +861 -0
- data/vendor/twitter/bootstrap/less/wells.less +29 -0
- data/vendor/twitter/bootstrap/sass/_bootstrap-compass.scss +9 -0
- data/vendor/twitter/bootstrap/sass/_bootstrap-mincer.scss +19 -0
- data/vendor/twitter/bootstrap/sass/_bootstrap-sprockets.scss +9 -0
- data/vendor/twitter/bootstrap/sass/_bootstrap.scss +50 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_alerts.scss +73 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_badges.scss +68 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_breadcrumbs.scss +26 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_button-groups.scss +243 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_buttons.scss +160 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_carousel.scss +269 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_close.scss +36 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_code.scss +69 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_component-animations.scss +37 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_dropdowns.scss +214 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_forms.scss +578 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_glyphicons.scss +305 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_grid.scss +84 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_input-groups.scss +166 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_jumbotron.scss +50 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_labels.scss +66 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_list-group.scss +124 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_media.scss +61 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_mixins.scss +39 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_modals.scss +150 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_navbar.scss +662 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_navs.scss +242 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_normalize.scss +427 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_pager.scss +54 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_pagination.scss +88 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_panels.scss +265 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_popovers.scss +135 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_print.scss +107 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_progress-bars.scss +87 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_responsive-embed.scss +35 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_responsive-utilities.scss +177 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_scaffolding.scss +162 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_tables.scss +234 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_theme.scss +273 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_thumbnails.scss +38 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_tooltip.scss +102 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_type.scss +298 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_utilities.scss +55 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_variables.scss +866 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/_wells.scss +29 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_alerts.scss +14 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_background-variant.scss +11 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_border-radius.scss +18 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_buttons.scss +52 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_center-block.scss +7 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_clearfix.scss +22 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_forms.scss +88 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_gradients.scss +58 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_grid-framework.scss +81 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_grid.scss +122 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_hide-text.scss +21 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_image.scss +33 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_labels.scss +12 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_list-group.scss +31 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_nav-divider.scss +10 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_opacity.scss +8 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_pagination.scss +23 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_panels.scss +24 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_progress-bar.scss +10 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_reset-filter.scss +8 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_resize.scss +6 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_size.scss +10 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_tab-focus.scss +9 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_table-row.scss +28 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_text-emphasis.scss +11 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_text-overflow.scss +8 -0
- data/vendor/twitter/bootstrap/sass/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- metadata +312 -0
@@ -0,0 +1,269 @@
|
|
1
|
+
//
|
2
|
+
// Carousel
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Wrapper for the slide container and indicators
|
7
|
+
.carousel {
|
8
|
+
position: relative;
|
9
|
+
}
|
10
|
+
|
11
|
+
.carousel-inner {
|
12
|
+
position: relative;
|
13
|
+
overflow: hidden;
|
14
|
+
width: 100%;
|
15
|
+
|
16
|
+
> .item {
|
17
|
+
display: none;
|
18
|
+
position: relative;
|
19
|
+
.transition(.6s ease-in-out left);
|
20
|
+
|
21
|
+
// Account for jankitude on images
|
22
|
+
> img,
|
23
|
+
> a > img {
|
24
|
+
&:extend(.img-responsive);
|
25
|
+
line-height: 1;
|
26
|
+
}
|
27
|
+
|
28
|
+
// WebKit CSS3 transforms for supported devices
|
29
|
+
@media all and (transform-3d), (-webkit-transform-3d) {
|
30
|
+
.transition-transform(~'0.6s ease-in-out');
|
31
|
+
.backface-visibility(~'hidden');
|
32
|
+
.perspective(1000);
|
33
|
+
|
34
|
+
&.next,
|
35
|
+
&.active.right {
|
36
|
+
.translate3d(100%, 0, 0);
|
37
|
+
left: 0;
|
38
|
+
}
|
39
|
+
&.prev,
|
40
|
+
&.active.left {
|
41
|
+
.translate3d(-100%, 0, 0);
|
42
|
+
left: 0;
|
43
|
+
}
|
44
|
+
&.next.left,
|
45
|
+
&.prev.right,
|
46
|
+
&.active {
|
47
|
+
.translate3d(0, 0, 0);
|
48
|
+
left: 0;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
> .active,
|
54
|
+
> .next,
|
55
|
+
> .prev {
|
56
|
+
display: block;
|
57
|
+
}
|
58
|
+
|
59
|
+
> .active {
|
60
|
+
left: 0;
|
61
|
+
}
|
62
|
+
|
63
|
+
> .next,
|
64
|
+
> .prev {
|
65
|
+
position: absolute;
|
66
|
+
top: 0;
|
67
|
+
width: 100%;
|
68
|
+
}
|
69
|
+
|
70
|
+
> .next {
|
71
|
+
left: 100%;
|
72
|
+
}
|
73
|
+
> .prev {
|
74
|
+
left: -100%;
|
75
|
+
}
|
76
|
+
> .next.left,
|
77
|
+
> .prev.right {
|
78
|
+
left: 0;
|
79
|
+
}
|
80
|
+
|
81
|
+
> .active.left {
|
82
|
+
left: -100%;
|
83
|
+
}
|
84
|
+
> .active.right {
|
85
|
+
left: 100%;
|
86
|
+
}
|
87
|
+
|
88
|
+
}
|
89
|
+
|
90
|
+
// Left/right controls for nav
|
91
|
+
// ---------------------------
|
92
|
+
|
93
|
+
.carousel-control {
|
94
|
+
position: absolute;
|
95
|
+
top: 0;
|
96
|
+
left: 0;
|
97
|
+
bottom: 0;
|
98
|
+
width: @carousel-control-width;
|
99
|
+
.opacity(@carousel-control-opacity);
|
100
|
+
font-size: @carousel-control-font-size;
|
101
|
+
color: @carousel-control-color;
|
102
|
+
text-align: center;
|
103
|
+
text-shadow: @carousel-text-shadow;
|
104
|
+
// We can't have this transition here because WebKit cancels the carousel
|
105
|
+
// animation if you trip this while in the middle of another animation.
|
106
|
+
|
107
|
+
// Set gradients for backgrounds
|
108
|
+
&.left {
|
109
|
+
#gradient > .horizontal(@start-color: rgba(0,0,0,.5); @end-color: rgba(0,0,0,.0001));
|
110
|
+
}
|
111
|
+
&.right {
|
112
|
+
left: auto;
|
113
|
+
right: 0;
|
114
|
+
#gradient > .horizontal(@start-color: rgba(0,0,0,.0001); @end-color: rgba(0,0,0,.5));
|
115
|
+
}
|
116
|
+
|
117
|
+
// Hover/focus state
|
118
|
+
&:hover,
|
119
|
+
&:focus {
|
120
|
+
outline: 0;
|
121
|
+
color: @carousel-control-color;
|
122
|
+
text-decoration: none;
|
123
|
+
.opacity(.9);
|
124
|
+
}
|
125
|
+
|
126
|
+
// Toggles
|
127
|
+
.icon-prev,
|
128
|
+
.icon-next,
|
129
|
+
.glyphicon-chevron-left,
|
130
|
+
.glyphicon-chevron-right {
|
131
|
+
position: absolute;
|
132
|
+
top: 50%;
|
133
|
+
z-index: 5;
|
134
|
+
display: inline-block;
|
135
|
+
}
|
136
|
+
.icon-prev,
|
137
|
+
.glyphicon-chevron-left {
|
138
|
+
left: 50%;
|
139
|
+
margin-left: -10px;
|
140
|
+
}
|
141
|
+
.icon-next,
|
142
|
+
.glyphicon-chevron-right {
|
143
|
+
right: 50%;
|
144
|
+
margin-right: -10px;
|
145
|
+
}
|
146
|
+
.icon-prev,
|
147
|
+
.icon-next {
|
148
|
+
width: 20px;
|
149
|
+
height: 20px;
|
150
|
+
margin-top: -10px;
|
151
|
+
line-height: 1;
|
152
|
+
font-family: serif;
|
153
|
+
}
|
154
|
+
|
155
|
+
|
156
|
+
.icon-prev {
|
157
|
+
&:before {
|
158
|
+
content: '\2039';// SINGLE LEFT-POINTING ANGLE QUOTATION MARK (U+2039)
|
159
|
+
}
|
160
|
+
}
|
161
|
+
.icon-next {
|
162
|
+
&:before {
|
163
|
+
content: '\203a';// SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (U+203A)
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
// Optional indicator pips
|
169
|
+
//
|
170
|
+
// Add an unordered list with the following class and add a list item for each
|
171
|
+
// slide your carousel holds.
|
172
|
+
|
173
|
+
.carousel-indicators {
|
174
|
+
position: absolute;
|
175
|
+
bottom: 10px;
|
176
|
+
left: 50%;
|
177
|
+
z-index: 15;
|
178
|
+
width: 60%;
|
179
|
+
margin-left: -30%;
|
180
|
+
padding-left: 0;
|
181
|
+
list-style: none;
|
182
|
+
text-align: center;
|
183
|
+
|
184
|
+
li {
|
185
|
+
display: inline-block;
|
186
|
+
width: 10px;
|
187
|
+
height: 10px;
|
188
|
+
margin: 1px;
|
189
|
+
text-indent: -999px;
|
190
|
+
border: 1px solid @carousel-indicator-border-color;
|
191
|
+
border-radius: 10px;
|
192
|
+
cursor: pointer;
|
193
|
+
|
194
|
+
// IE8-9 hack for event handling
|
195
|
+
//
|
196
|
+
// Internet Explorer 8-9 does not support clicks on elements without a set
|
197
|
+
// `background-color`. We cannot use `filter` since that's not viewed as a
|
198
|
+
// background color by the browser. Thus, a hack is needed.
|
199
|
+
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Internet_Explorer
|
200
|
+
//
|
201
|
+
// For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
|
202
|
+
// set alpha transparency for the best results possible.
|
203
|
+
background-color: #000 \9; // IE8
|
204
|
+
background-color: rgba(0,0,0,0); // IE9
|
205
|
+
}
|
206
|
+
.active {
|
207
|
+
margin: 0;
|
208
|
+
width: 12px;
|
209
|
+
height: 12px;
|
210
|
+
background-color: @carousel-indicator-active-bg;
|
211
|
+
}
|
212
|
+
}
|
213
|
+
|
214
|
+
// Optional captions
|
215
|
+
// -----------------------------
|
216
|
+
// Hidden by default for smaller viewports
|
217
|
+
.carousel-caption {
|
218
|
+
position: absolute;
|
219
|
+
left: 15%;
|
220
|
+
right: 15%;
|
221
|
+
bottom: 20px;
|
222
|
+
z-index: 10;
|
223
|
+
padding-top: 20px;
|
224
|
+
padding-bottom: 20px;
|
225
|
+
color: @carousel-caption-color;
|
226
|
+
text-align: center;
|
227
|
+
text-shadow: @carousel-text-shadow;
|
228
|
+
& .btn {
|
229
|
+
text-shadow: none; // No shadow for button elements in carousel-caption
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
|
234
|
+
// Scale up controls for tablets and up
|
235
|
+
@media screen and (min-width: @screen-sm-min) {
|
236
|
+
|
237
|
+
// Scale up the controls a smidge
|
238
|
+
.carousel-control {
|
239
|
+
.glyphicon-chevron-left,
|
240
|
+
.glyphicon-chevron-right,
|
241
|
+
.icon-prev,
|
242
|
+
.icon-next {
|
243
|
+
width: 30px;
|
244
|
+
height: 30px;
|
245
|
+
margin-top: -15px;
|
246
|
+
font-size: 30px;
|
247
|
+
}
|
248
|
+
.glyphicon-chevron-left,
|
249
|
+
.icon-prev {
|
250
|
+
margin-left: -15px;
|
251
|
+
}
|
252
|
+
.glyphicon-chevron-right,
|
253
|
+
.icon-next {
|
254
|
+
margin-right: -15px;
|
255
|
+
}
|
256
|
+
}
|
257
|
+
|
258
|
+
// Show and left align the captions
|
259
|
+
.carousel-caption {
|
260
|
+
left: 20%;
|
261
|
+
right: 20%;
|
262
|
+
padding-bottom: 30px;
|
263
|
+
}
|
264
|
+
|
265
|
+
// Move up the indicators
|
266
|
+
.carousel-indicators {
|
267
|
+
bottom: 20px;
|
268
|
+
}
|
269
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
//
|
2
|
+
// Close icons
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.close {
|
7
|
+
float: right;
|
8
|
+
font-size: (@font-size-base * 1.5);
|
9
|
+
font-weight: @close-font-weight;
|
10
|
+
line-height: 1;
|
11
|
+
color: @close-color;
|
12
|
+
text-shadow: @close-text-shadow;
|
13
|
+
.opacity(.2);
|
14
|
+
|
15
|
+
&:hover,
|
16
|
+
&:focus {
|
17
|
+
color: @close-color;
|
18
|
+
text-decoration: none;
|
19
|
+
cursor: pointer;
|
20
|
+
.opacity(.5);
|
21
|
+
}
|
22
|
+
|
23
|
+
// Additional properties for button version
|
24
|
+
// iOS requires the button element instead of an anchor tag.
|
25
|
+
// If you want the anchor version, it requires `href="#"`.
|
26
|
+
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
27
|
+
button& {
|
28
|
+
padding: 0;
|
29
|
+
cursor: pointer;
|
30
|
+
background: transparent;
|
31
|
+
border: 0;
|
32
|
+
-webkit-appearance: none;
|
33
|
+
}
|
34
|
+
}
|
@@ -0,0 +1,69 @@
|
|
1
|
+
//
|
2
|
+
// Code (inline and block)
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Inline and block code styles
|
7
|
+
code,
|
8
|
+
kbd,
|
9
|
+
pre,
|
10
|
+
samp {
|
11
|
+
font-family: @font-family-monospace;
|
12
|
+
}
|
13
|
+
|
14
|
+
// Inline code
|
15
|
+
code {
|
16
|
+
padding: 2px 4px;
|
17
|
+
font-size: 90%;
|
18
|
+
color: @code-color;
|
19
|
+
background-color: @code-bg;
|
20
|
+
border-radius: @border-radius-base;
|
21
|
+
}
|
22
|
+
|
23
|
+
// User input typically entered via keyboard
|
24
|
+
kbd {
|
25
|
+
padding: 2px 4px;
|
26
|
+
font-size: 90%;
|
27
|
+
color: @kbd-color;
|
28
|
+
background-color: @kbd-bg;
|
29
|
+
border-radius: @border-radius-small;
|
30
|
+
box-shadow: inset 0 -1px 0 rgba(0,0,0,.25);
|
31
|
+
|
32
|
+
kbd {
|
33
|
+
padding: 0;
|
34
|
+
font-size: 100%;
|
35
|
+
font-weight: bold;
|
36
|
+
box-shadow: none;
|
37
|
+
}
|
38
|
+
}
|
39
|
+
|
40
|
+
// Blocks of code
|
41
|
+
pre {
|
42
|
+
display: block;
|
43
|
+
padding: ((@line-height-computed - 1) / 2);
|
44
|
+
margin: 0 0 (@line-height-computed / 2);
|
45
|
+
font-size: (@font-size-base - 1); // 14px to 13px
|
46
|
+
line-height: @line-height-base;
|
47
|
+
word-break: break-all;
|
48
|
+
word-wrap: break-word;
|
49
|
+
color: @pre-color;
|
50
|
+
background-color: @pre-bg;
|
51
|
+
border: 1px solid @pre-border-color;
|
52
|
+
border-radius: @border-radius-base;
|
53
|
+
|
54
|
+
// Account for some code outputs that place code tags in pre tags
|
55
|
+
code {
|
56
|
+
padding: 0;
|
57
|
+
font-size: inherit;
|
58
|
+
color: inherit;
|
59
|
+
white-space: pre-wrap;
|
60
|
+
background-color: transparent;
|
61
|
+
border-radius: 0;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
// Enable scrollable blocks of code
|
66
|
+
.pre-scrollable {
|
67
|
+
max-height: @pre-scrollable-max-height;
|
68
|
+
overflow-y: scroll;
|
69
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
//
|
2
|
+
// Component animations
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Heads up!
|
6
|
+
//
|
7
|
+
// We don't use the `.opacity()` mixin here since it causes a bug with text
|
8
|
+
// fields in IE7-8. Source: https://github.com/twbs/bootstrap/pull/3552.
|
9
|
+
|
10
|
+
.fade {
|
11
|
+
opacity: 0;
|
12
|
+
.transition(opacity .15s linear);
|
13
|
+
&.in {
|
14
|
+
opacity: 1;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.collapse {
|
19
|
+
display: none;
|
20
|
+
|
21
|
+
&.in { display: block; }
|
22
|
+
tr&.in { display: table-row; }
|
23
|
+
tbody&.in { display: table-row-group; }
|
24
|
+
}
|
25
|
+
|
26
|
+
.collapsing {
|
27
|
+
position: relative;
|
28
|
+
height: 0;
|
29
|
+
overflow: hidden;
|
30
|
+
.transition-property(~"height, visibility");
|
31
|
+
.transition-duration(.35s);
|
32
|
+
.transition-timing-function(ease);
|
33
|
+
}
|
@@ -0,0 +1,214 @@
|
|
1
|
+
//
|
2
|
+
// Dropdown menus
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Dropdown arrow/caret
|
7
|
+
.caret {
|
8
|
+
display: inline-block;
|
9
|
+
width: 0;
|
10
|
+
height: 0;
|
11
|
+
margin-left: 2px;
|
12
|
+
vertical-align: middle;
|
13
|
+
border-top: @caret-width-base dashed;
|
14
|
+
border-right: @caret-width-base solid transparent;
|
15
|
+
border-left: @caret-width-base solid transparent;
|
16
|
+
}
|
17
|
+
|
18
|
+
// The dropdown wrapper (div)
|
19
|
+
.dropup,
|
20
|
+
.dropdown {
|
21
|
+
position: relative;
|
22
|
+
}
|
23
|
+
|
24
|
+
// Prevent the focus on the dropdown toggle when closing dropdowns
|
25
|
+
.dropdown-toggle:focus {
|
26
|
+
outline: 0;
|
27
|
+
}
|
28
|
+
|
29
|
+
// The dropdown menu (ul)
|
30
|
+
.dropdown-menu {
|
31
|
+
position: absolute;
|
32
|
+
top: 100%;
|
33
|
+
left: 0;
|
34
|
+
z-index: @zindex-dropdown;
|
35
|
+
display: none; // none by default, but block on "open" of the menu
|
36
|
+
float: left;
|
37
|
+
min-width: 160px;
|
38
|
+
padding: 5px 0;
|
39
|
+
margin: 2px 0 0; // override default ul
|
40
|
+
list-style: none;
|
41
|
+
font-size: @font-size-base;
|
42
|
+
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
43
|
+
background-color: @dropdown-bg;
|
44
|
+
border: 1px solid @dropdown-fallback-border; // IE8 fallback
|
45
|
+
border: 1px solid @dropdown-border;
|
46
|
+
border-radius: @border-radius-base;
|
47
|
+
.box-shadow(0 6px 12px rgba(0,0,0,.175));
|
48
|
+
background-clip: padding-box;
|
49
|
+
|
50
|
+
// Aligns the dropdown menu to right
|
51
|
+
//
|
52
|
+
// Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
|
53
|
+
&.pull-right {
|
54
|
+
right: 0;
|
55
|
+
left: auto;
|
56
|
+
}
|
57
|
+
|
58
|
+
// Dividers (basically an hr) within the dropdown
|
59
|
+
.divider {
|
60
|
+
.nav-divider(@dropdown-divider-bg);
|
61
|
+
}
|
62
|
+
|
63
|
+
// Links within the dropdown menu
|
64
|
+
> li > a {
|
65
|
+
display: block;
|
66
|
+
padding: 3px 20px;
|
67
|
+
clear: both;
|
68
|
+
font-weight: normal;
|
69
|
+
line-height: @line-height-base;
|
70
|
+
color: @dropdown-link-color;
|
71
|
+
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
// Hover/Focus state
|
76
|
+
.dropdown-menu > li > a {
|
77
|
+
&:hover,
|
78
|
+
&:focus {
|
79
|
+
text-decoration: none;
|
80
|
+
color: @dropdown-link-hover-color;
|
81
|
+
background-color: @dropdown-link-hover-bg;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
// Active state
|
86
|
+
.dropdown-menu > .active > a {
|
87
|
+
&,
|
88
|
+
&:hover,
|
89
|
+
&:focus {
|
90
|
+
color: @dropdown-link-active-color;
|
91
|
+
text-decoration: none;
|
92
|
+
outline: 0;
|
93
|
+
background-color: @dropdown-link-active-bg;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
// Disabled state
|
98
|
+
//
|
99
|
+
// Gray out text and ensure the hover/focus state remains gray
|
100
|
+
|
101
|
+
.dropdown-menu > .disabled > a {
|
102
|
+
&,
|
103
|
+
&:hover,
|
104
|
+
&:focus {
|
105
|
+
color: @dropdown-link-disabled-color;
|
106
|
+
}
|
107
|
+
|
108
|
+
// Nuke hover/focus effects
|
109
|
+
&:hover,
|
110
|
+
&:focus {
|
111
|
+
text-decoration: none;
|
112
|
+
background-color: transparent;
|
113
|
+
background-image: none; // Remove CSS gradient
|
114
|
+
.reset-filter();
|
115
|
+
cursor: @cursor-disabled;
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
// Open state for the dropdown
|
120
|
+
.open {
|
121
|
+
// Show the menu
|
122
|
+
> .dropdown-menu {
|
123
|
+
display: block;
|
124
|
+
}
|
125
|
+
|
126
|
+
// Remove the outline when :focus is triggered
|
127
|
+
> a {
|
128
|
+
outline: 0;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
// Menu positioning
|
133
|
+
//
|
134
|
+
// Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
|
135
|
+
// menu with the parent.
|
136
|
+
.dropdown-menu-right {
|
137
|
+
left: auto; // Reset the default from `.dropdown-menu`
|
138
|
+
right: 0;
|
139
|
+
}
|
140
|
+
// With v3, we enabled auto-flipping if you have a dropdown within a right
|
141
|
+
// aligned nav component. To enable the undoing of that, we provide an override
|
142
|
+
// to restore the default dropdown menu alignment.
|
143
|
+
//
|
144
|
+
// This is only for left-aligning a dropdown menu within a `.navbar-right` or
|
145
|
+
// `.pull-right` nav component.
|
146
|
+
.dropdown-menu-left {
|
147
|
+
left: 0;
|
148
|
+
right: auto;
|
149
|
+
}
|
150
|
+
|
151
|
+
// Dropdown section headers
|
152
|
+
.dropdown-header {
|
153
|
+
display: block;
|
154
|
+
padding: 3px 20px;
|
155
|
+
font-size: @font-size-small;
|
156
|
+
line-height: @line-height-base;
|
157
|
+
color: @dropdown-header-color;
|
158
|
+
white-space: nowrap; // as with > li > a
|
159
|
+
}
|
160
|
+
|
161
|
+
// Backdrop to catch body clicks on mobile, etc.
|
162
|
+
.dropdown-backdrop {
|
163
|
+
position: fixed;
|
164
|
+
left: 0;
|
165
|
+
right: 0;
|
166
|
+
bottom: 0;
|
167
|
+
top: 0;
|
168
|
+
z-index: (@zindex-dropdown - 10);
|
169
|
+
}
|
170
|
+
|
171
|
+
// Right aligned dropdowns
|
172
|
+
.pull-right > .dropdown-menu {
|
173
|
+
right: 0;
|
174
|
+
left: auto;
|
175
|
+
}
|
176
|
+
|
177
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
178
|
+
//
|
179
|
+
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
180
|
+
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
181
|
+
|
182
|
+
.dropup,
|
183
|
+
.navbar-fixed-bottom .dropdown {
|
184
|
+
// Reverse the caret
|
185
|
+
.caret {
|
186
|
+
border-top: 0;
|
187
|
+
border-bottom: @caret-width-base solid;
|
188
|
+
content: "";
|
189
|
+
}
|
190
|
+
// Different positioning for bottom up menu
|
191
|
+
.dropdown-menu {
|
192
|
+
top: auto;
|
193
|
+
bottom: 100%;
|
194
|
+
margin-bottom: 2px;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
|
198
|
+
|
199
|
+
// Component alignment
|
200
|
+
//
|
201
|
+
// Reiterate per navbar.less and the modified component alignment there.
|
202
|
+
|
203
|
+
@media (min-width: @grid-float-breakpoint) {
|
204
|
+
.navbar-right {
|
205
|
+
.dropdown-menu {
|
206
|
+
.dropdown-menu-right();
|
207
|
+
}
|
208
|
+
// Necessary for overrides of the default right aligned menu.
|
209
|
+
// Will remove come v4 in all likelihood.
|
210
|
+
.dropdown-menu-left {
|
211
|
+
.dropdown-menu-left();
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|