drink_up_doctor 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +32 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +74 -0
- data/Rakefile +11 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/bootstrap-boilerplate/.gitignore +8 -0
- data/bootstrap-boilerplate/404.html +25 -0
- data/bootstrap-boilerplate/README.md.tt +88 -0
- data/bootstrap-boilerplate/_includes/footer.html +18 -0
- data/bootstrap-boilerplate/_includes/google_analytics.html +10 -0
- data/bootstrap-boilerplate/_includes/head.html +11 -0
- data/bootstrap-boilerplate/_includes/header.html +27 -0
- data/bootstrap-boilerplate/_includes/index_item.html +5 -0
- data/bootstrap-boilerplate/_includes/page_js.html +4 -0
- data/bootstrap-boilerplate/_layouts/category_index.html +12 -0
- data/bootstrap-boilerplate/_layouts/default.html +22 -0
- data/bootstrap-boilerplate/_layouts/page.html +13 -0
- data/bootstrap-boilerplate/_layouts/post.html +13 -0
- data/bootstrap-boilerplate/_layouts/tag_index.html +14 -0
- data/bootstrap-boilerplate/_plugins/category_index.rb +42 -0
- data/bootstrap-boilerplate/_plugins/slug_sort.rb +13 -0
- data/bootstrap-boilerplate/_plugins/tag_index.rb +41 -0
- data/bootstrap-boilerplate/_posts/2015-10-18-post-four.md +17 -0
- data/bootstrap-boilerplate/_posts/2015-10-18-post-one.md +12 -0
- data/bootstrap-boilerplate/_posts/2015-10-18-post-three.md +20 -0
- data/bootstrap-boilerplate/_posts/2015-10-18-post-two.md +16 -0
- data/bootstrap-boilerplate/_posts/2015-10-18-welcome.md +8 -0
- data/bootstrap-boilerplate/_sass/_bootstrap-compass.scss +9 -0
- data/bootstrap-boilerplate/_sass/_bootstrap-mincer.scss +19 -0
- data/bootstrap-boilerplate/_sass/_bootstrap-sprockets.scss +9 -0
- data/bootstrap-boilerplate/_sass/_bootstrap.scss +56 -0
- data/bootstrap-boilerplate/_sass/_my_variables.scss +874 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_alerts.scss +73 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_badges.scss +68 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_breadcrumbs.scss +26 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_button-groups.scss +244 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_buttons.scss +168 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_carousel.scss +269 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_close.scss +36 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_code.scss +69 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_component-animations.scss +37 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_dropdowns.scss +216 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_forms.scss +611 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_glyphicons.scss +307 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_grid.scss +84 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_input-groups.scss +167 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_jumbotron.scss +52 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_labels.scss +66 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_list-group.scss +130 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_media.scss +66 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_mixins.scss +40 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_modals.scss +150 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_navbar.scss +662 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_navs.scss +242 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_normalize.scss +424 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_pager.scss +54 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_pagination.scss +89 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_panels.scss +271 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_popovers.scss +131 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_print.scss +101 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_progress-bars.scss +87 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_responsive-embed.scss +35 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_responsive-utilities.scss +179 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_scaffolding.scss +161 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_tables.scss +234 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_theme.scss +291 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_thumbnails.scss +38 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_tooltip.scss +101 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_type.scss +298 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_utilities.scss +55 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_variables.scss +872 -0
- data/bootstrap-boilerplate/_sass/bootstrap/_wells.scss +29 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_alerts.scss +14 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_background-variant.scss +12 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_border-radius.scss +18 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_buttons.scss +68 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_center-block.scss +7 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_clearfix.scss +22 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_forms.scss +88 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_gradients.scss +58 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_grid-framework.scss +81 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_grid.scss +122 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_hide-text.scss +21 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_image.scss +33 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_labels.scss +12 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_list-group.scss +32 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_nav-divider.scss +10 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_opacity.scss +8 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_pagination.scss +24 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_panels.scss +24 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_progress-bar.scss +10 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_reset-filter.scss +8 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_reset-text.scss +18 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_resize.scss +6 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_size.scss +10 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_tab-focus.scss +9 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_table-row.scss +28 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_text-emphasis.scss +12 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_text-overflow.scss +8 -0
- data/bootstrap-boilerplate/_sass/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- data/bootstrap-boilerplate/_sass/main.scss +20 -0
- data/bootstrap-boilerplate/about/index.md +24 -0
- data/bootstrap-boilerplate/apple-touch-icon.png +0 -0
- data/bootstrap-boilerplate/browserconfig.xml +12 -0
- data/bootstrap-boilerplate/crossdomain.xml +14 -0
- data/bootstrap-boilerplate/favicon.ico +0 -0
- data/bootstrap-boilerplate/fonts/glyphicons-halflings-regular.eot +0 -0
- data/bootstrap-boilerplate/fonts/glyphicons-halflings-regular.svg +229 -0
- data/bootstrap-boilerplate/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/bootstrap-boilerplate/fonts/glyphicons-halflings-regular.woff +0 -0
- data/bootstrap-boilerplate/humans.txt.tt +18 -0
- data/bootstrap-boilerplate/index.html +18 -0
- data/bootstrap-boilerplate/js/main.js +1 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/affix.js +162 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/alert.js +94 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/button.js +120 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/carousel.js +237 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/collapse.js +211 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/dropdown.js +165 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/modal.js +337 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/popover.js +108 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/scrollspy.js +172 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/tab.js +155 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/tooltip.js +514 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap/transition.js +59 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap-sprockets.js +12 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap.js +2363 -0
- data/bootstrap-boilerplate/js/vendor/bootstrap.min.js +7 -0
- data/bootstrap-boilerplate/js/vendor/jquery-1.11.2.js +10346 -0
- data/bootstrap-boilerplate/js/vendor/jquery-1.11.2.min.js +4 -0
- data/bootstrap-boilerplate/js/vendor/modernizr-2.8.3-respond-1.4.2.min.js +11 -0
- data/bootstrap-boilerplate/js/vendor/npm.js +13 -0
- data/bootstrap-boilerplate/robots.txt +5 -0
- data/bootstrap-boilerplate/tile-wide.png +0 -0
- data/bootstrap-boilerplate/tile.png +0 -0
- data/drink_up_doctor.gemspec +29 -0
- data/exe/drink_up_doctor +4 -0
- data/lib/drink_up_doctor/new_site.rb +178 -0
- data/lib/drink_up_doctor/new_twbs_site.rb +124 -0
- data/lib/drink_up_doctor/version.rb +3 -0
- data/lib/drink_up_doctor.rb +12 -0
- data/templates/Gemfile +11 -0
- data/templates/README.md.erb +81 -0
- data/templates/bower.json.erb +17 -0
- data/templates/gulpfile.js.erb +84 -0
- data/templates/main.scss +46 -0
- data/templates/package.json.erb +20 -0
- data/templates/setup.sh +2 -0
- data/templates/site_gitignore +7 -0
- metadata +285 -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
|
+
@include transition(.6s ease-in-out left);
|
20
|
+
|
21
|
+
// Account for jankitude on images
|
22
|
+
> img,
|
23
|
+
> a > img {
|
24
|
+
@include 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
|
+
@include transition-transform(0.6s ease-in-out);
|
31
|
+
@include backface-visibility(hidden);
|
32
|
+
@include perspective(1000px);
|
33
|
+
|
34
|
+
&.next,
|
35
|
+
&.active.right {
|
36
|
+
@include translate3d(100%, 0, 0);
|
37
|
+
left: 0;
|
38
|
+
}
|
39
|
+
&.prev,
|
40
|
+
&.active.left {
|
41
|
+
@include translate3d(-100%, 0, 0);
|
42
|
+
left: 0;
|
43
|
+
}
|
44
|
+
&.next.left,
|
45
|
+
&.prev.right,
|
46
|
+
&.active {
|
47
|
+
@include 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
|
+
@include 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
|
+
@include 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
|
+
@include 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
|
+
@include 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
|
+
margin-top: -10px;
|
134
|
+
z-index: 5;
|
135
|
+
display: inline-block;
|
136
|
+
}
|
137
|
+
.icon-prev,
|
138
|
+
.glyphicon-chevron-left {
|
139
|
+
left: 50%;
|
140
|
+
margin-left: -10px;
|
141
|
+
}
|
142
|
+
.icon-next,
|
143
|
+
.glyphicon-chevron-right {
|
144
|
+
right: 50%;
|
145
|
+
margin-right: -10px;
|
146
|
+
}
|
147
|
+
.icon-prev,
|
148
|
+
.icon-next {
|
149
|
+
width: 20px;
|
150
|
+
height: 20px;
|
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,36 @@
|
|
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
|
+
@include opacity(.2);
|
14
|
+
|
15
|
+
&:hover,
|
16
|
+
&:focus {
|
17
|
+
color: $close-color;
|
18
|
+
text-decoration: none;
|
19
|
+
cursor: pointer;
|
20
|
+
@include opacity(.5);
|
21
|
+
}
|
22
|
+
|
23
|
+
// [converter] extracted button& to button.close
|
24
|
+
}
|
25
|
+
|
26
|
+
// Additional properties for button version
|
27
|
+
// iOS requires the button element instead of an anchor tag.
|
28
|
+
// If you want the anchor version, it requires `href="#"`.
|
29
|
+
// See https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
30
|
+
button.close {
|
31
|
+
padding: 0;
|
32
|
+
cursor: pointer;
|
33
|
+
background: transparent;
|
34
|
+
border: 0;
|
35
|
+
-webkit-appearance: none;
|
36
|
+
}
|
@@ -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,37 @@
|
|
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
|
+
@include transition(opacity .15s linear);
|
13
|
+
&.in {
|
14
|
+
opacity: 1;
|
15
|
+
}
|
16
|
+
}
|
17
|
+
|
18
|
+
.collapse {
|
19
|
+
display: none;
|
20
|
+
|
21
|
+
&.in { display: block; }
|
22
|
+
// [converter] extracted tr&.in to tr.collapse.in
|
23
|
+
// [converter] extracted tbody&.in to tbody.collapse.in
|
24
|
+
}
|
25
|
+
|
26
|
+
tr.collapse.in { display: table-row; }
|
27
|
+
|
28
|
+
tbody.collapse.in { display: table-row-group; }
|
29
|
+
|
30
|
+
.collapsing {
|
31
|
+
position: relative;
|
32
|
+
height: 0;
|
33
|
+
overflow: hidden;
|
34
|
+
@include transition-property(height, visibility);
|
35
|
+
@include transition-duration(.35s);
|
36
|
+
@include transition-timing-function(ease);
|
37
|
+
}
|
@@ -0,0 +1,216 @@
|
|
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-top: $caret-width-base solid \9; // IE8
|
15
|
+
border-right: $caret-width-base solid transparent;
|
16
|
+
border-left: $caret-width-base solid transparent;
|
17
|
+
}
|
18
|
+
|
19
|
+
// The dropdown wrapper (div)
|
20
|
+
.dropup,
|
21
|
+
.dropdown {
|
22
|
+
position: relative;
|
23
|
+
}
|
24
|
+
|
25
|
+
// Prevent the focus on the dropdown toggle when closing dropdowns
|
26
|
+
.dropdown-toggle:focus {
|
27
|
+
outline: 0;
|
28
|
+
}
|
29
|
+
|
30
|
+
// The dropdown menu (ul)
|
31
|
+
.dropdown-menu {
|
32
|
+
position: absolute;
|
33
|
+
top: 100%;
|
34
|
+
left: 0;
|
35
|
+
z-index: $zindex-dropdown;
|
36
|
+
display: none; // none by default, but block on "open" of the menu
|
37
|
+
float: left;
|
38
|
+
min-width: 160px;
|
39
|
+
padding: 5px 0;
|
40
|
+
margin: 2px 0 0; // override default ul
|
41
|
+
list-style: none;
|
42
|
+
font-size: $font-size-base;
|
43
|
+
text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
|
44
|
+
background-color: $dropdown-bg;
|
45
|
+
border: 1px solid $dropdown-fallback-border; // IE8 fallback
|
46
|
+
border: 1px solid $dropdown-border;
|
47
|
+
border-radius: $border-radius-base;
|
48
|
+
@include box-shadow(0 6px 12px rgba(0,0,0,.175));
|
49
|
+
background-clip: padding-box;
|
50
|
+
|
51
|
+
// Aligns the dropdown menu to right
|
52
|
+
//
|
53
|
+
// Deprecated as of 3.1.0 in favor of `.dropdown-menu-[dir]`
|
54
|
+
&.pull-right {
|
55
|
+
right: 0;
|
56
|
+
left: auto;
|
57
|
+
}
|
58
|
+
|
59
|
+
// Dividers (basically an hr) within the dropdown
|
60
|
+
.divider {
|
61
|
+
@include nav-divider($dropdown-divider-bg);
|
62
|
+
}
|
63
|
+
|
64
|
+
// Links within the dropdown menu
|
65
|
+
> li > a {
|
66
|
+
display: block;
|
67
|
+
padding: 3px 20px;
|
68
|
+
clear: both;
|
69
|
+
font-weight: normal;
|
70
|
+
line-height: $line-height-base;
|
71
|
+
color: $dropdown-link-color;
|
72
|
+
white-space: nowrap; // prevent links from randomly breaking onto new lines
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
// Hover/Focus state
|
77
|
+
.dropdown-menu > li > a {
|
78
|
+
&:hover,
|
79
|
+
&:focus {
|
80
|
+
text-decoration: none;
|
81
|
+
color: $dropdown-link-hover-color;
|
82
|
+
background-color: $dropdown-link-hover-bg;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
86
|
+
// Active state
|
87
|
+
.dropdown-menu > .active > a {
|
88
|
+
&,
|
89
|
+
&:hover,
|
90
|
+
&:focus {
|
91
|
+
color: $dropdown-link-active-color;
|
92
|
+
text-decoration: none;
|
93
|
+
outline: 0;
|
94
|
+
background-color: $dropdown-link-active-bg;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
// Disabled state
|
99
|
+
//
|
100
|
+
// Gray out text and ensure the hover/focus state remains gray
|
101
|
+
|
102
|
+
.dropdown-menu > .disabled > a {
|
103
|
+
&,
|
104
|
+
&:hover,
|
105
|
+
&:focus {
|
106
|
+
color: $dropdown-link-disabled-color;
|
107
|
+
}
|
108
|
+
|
109
|
+
// Nuke hover/focus effects
|
110
|
+
&:hover,
|
111
|
+
&:focus {
|
112
|
+
text-decoration: none;
|
113
|
+
background-color: transparent;
|
114
|
+
background-image: none; // Remove CSS gradient
|
115
|
+
@include reset-filter;
|
116
|
+
cursor: $cursor-disabled;
|
117
|
+
}
|
118
|
+
}
|
119
|
+
|
120
|
+
// Open state for the dropdown
|
121
|
+
.open {
|
122
|
+
// Show the menu
|
123
|
+
> .dropdown-menu {
|
124
|
+
display: block;
|
125
|
+
}
|
126
|
+
|
127
|
+
// Remove the outline when :focus is triggered
|
128
|
+
> a {
|
129
|
+
outline: 0;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
// Menu positioning
|
134
|
+
//
|
135
|
+
// Add extra class to `.dropdown-menu` to flip the alignment of the dropdown
|
136
|
+
// menu with the parent.
|
137
|
+
.dropdown-menu-right {
|
138
|
+
left: auto; // Reset the default from `.dropdown-menu`
|
139
|
+
right: 0;
|
140
|
+
}
|
141
|
+
// With v3, we enabled auto-flipping if you have a dropdown within a right
|
142
|
+
// aligned nav component. To enable the undoing of that, we provide an override
|
143
|
+
// to restore the default dropdown menu alignment.
|
144
|
+
//
|
145
|
+
// This is only for left-aligning a dropdown menu within a `.navbar-right` or
|
146
|
+
// `.pull-right` nav component.
|
147
|
+
.dropdown-menu-left {
|
148
|
+
left: 0;
|
149
|
+
right: auto;
|
150
|
+
}
|
151
|
+
|
152
|
+
// Dropdown section headers
|
153
|
+
.dropdown-header {
|
154
|
+
display: block;
|
155
|
+
padding: 3px 20px;
|
156
|
+
font-size: $font-size-small;
|
157
|
+
line-height: $line-height-base;
|
158
|
+
color: $dropdown-header-color;
|
159
|
+
white-space: nowrap; // as with > li > a
|
160
|
+
}
|
161
|
+
|
162
|
+
// Backdrop to catch body clicks on mobile, etc.
|
163
|
+
.dropdown-backdrop {
|
164
|
+
position: fixed;
|
165
|
+
left: 0;
|
166
|
+
right: 0;
|
167
|
+
bottom: 0;
|
168
|
+
top: 0;
|
169
|
+
z-index: ($zindex-dropdown - 10);
|
170
|
+
}
|
171
|
+
|
172
|
+
// Right aligned dropdowns
|
173
|
+
.pull-right > .dropdown-menu {
|
174
|
+
right: 0;
|
175
|
+
left: auto;
|
176
|
+
}
|
177
|
+
|
178
|
+
// Allow for dropdowns to go bottom up (aka, dropup-menu)
|
179
|
+
//
|
180
|
+
// Just add .dropup after the standard .dropdown class and you're set, bro.
|
181
|
+
// TODO: abstract this so that the navbar fixed styles are not placed here?
|
182
|
+
|
183
|
+
.dropup,
|
184
|
+
.navbar-fixed-bottom .dropdown {
|
185
|
+
// Reverse the caret
|
186
|
+
.caret {
|
187
|
+
border-top: 0;
|
188
|
+
border-bottom: $caret-width-base dashed;
|
189
|
+
border-bottom: $caret-width-base solid \9; // IE8
|
190
|
+
content: "";
|
191
|
+
}
|
192
|
+
// Different positioning for bottom up menu
|
193
|
+
.dropdown-menu {
|
194
|
+
top: auto;
|
195
|
+
bottom: 100%;
|
196
|
+
margin-bottom: 2px;
|
197
|
+
}
|
198
|
+
}
|
199
|
+
|
200
|
+
|
201
|
+
// Component alignment
|
202
|
+
//
|
203
|
+
// Reiterate per navbar.less and the modified component alignment there.
|
204
|
+
|
205
|
+
@media (min-width: $grid-float-breakpoint) {
|
206
|
+
.navbar-right {
|
207
|
+
.dropdown-menu {
|
208
|
+
right: 0; left: auto;
|
209
|
+
}
|
210
|
+
// Necessary for overrides of the default right aligned menu.
|
211
|
+
// Will remove come v4 in all likelihood.
|
212
|
+
.dropdown-menu-left {
|
213
|
+
left: 0; right: auto;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
}
|