twitter-bootswatch-rails 3.0.0.2 → 3.0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +200 -199
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/twitter/bootstrap/affix.js +2 -2
- data/app/assets/javascripts/twitter/bootstrap/alert.js +1 -1
- data/app/assets/javascripts/twitter/bootstrap/button.js +1 -1
- data/app/assets/javascripts/twitter/bootstrap/carousel.js +2 -2
- data/app/assets/javascripts/twitter/bootstrap/collapse.js +2 -2
- data/app/assets/javascripts/twitter/bootstrap/dropdown.js +2 -2
- data/app/assets/javascripts/twitter/bootstrap/modal.js +2 -2
- data/app/assets/javascripts/twitter/bootstrap/popover.js +2 -2
- data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +2 -2
- data/app/assets/javascripts/twitter/bootstrap/tab.js +3 -3
- data/app/assets/javascripts/twitter/bootstrap/tooltip.js +2 -2
- data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -1
- data/lib/generators/bootswatch/install/templates/bootstrap.less +0 -10
- data/lib/generators/bootswatch/install/templates/mixins.less.tt +164 -29
- data/lib/generators/bootswatch/install/templates/variables.less.tt +56 -39
- data/lib/twitter/bootswatch/rails/version.rb +1 -1
- data/vendor/toolkit/twitter/bootstrap/alerts.less +1 -1
- data/vendor/toolkit/twitter/bootstrap/bootstrap.less +0 -10
- data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +2 -2
- data/vendor/toolkit/twitter/bootstrap/button-groups.less +6 -1
- data/vendor/toolkit/twitter/bootstrap/buttons.less +2 -4
- data/vendor/toolkit/twitter/bootstrap/carousel.less +32 -10
- data/vendor/toolkit/twitter/bootstrap/code.less +5 -8
- data/vendor/toolkit/twitter/bootstrap/dropdowns.less +1 -2
- data/vendor/toolkit/twitter/bootstrap/forms.less +16 -3
- data/vendor/toolkit/twitter/bootstrap/glyphicons.less +16 -11
- data/vendor/toolkit/twitter/bootstrap/grid.less +32 -285
- data/vendor/toolkit/twitter/bootstrap/input-groups.less +9 -0
- data/vendor/toolkit/twitter/bootstrap/jumbotron.less +2 -2
- data/vendor/toolkit/twitter/bootstrap/list-group.less +12 -12
- data/vendor/toolkit/twitter/bootstrap/mixins.less +164 -29
- data/vendor/toolkit/twitter/bootstrap/modals.less +2 -11
- data/vendor/toolkit/twitter/bootstrap/navbar.less +10 -7
- data/vendor/toolkit/twitter/bootstrap/navs.less +53 -20
- data/vendor/toolkit/twitter/bootstrap/normalize.less +16 -6
- data/vendor/toolkit/twitter/bootstrap/pagination.less +2 -0
- data/vendor/toolkit/twitter/bootstrap/panels.less +31 -7
- data/vendor/toolkit/twitter/bootstrap/print.less +6 -1
- data/vendor/toolkit/twitter/bootstrap/progress-bars.less +4 -7
- data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +57 -68
- data/vendor/toolkit/twitter/bootstrap/scaffolding.less +1 -12
- data/vendor/toolkit/twitter/bootstrap/tables.less +40 -40
- data/vendor/toolkit/twitter/bootstrap/theme.less +32 -17
- data/vendor/toolkit/twitter/bootstrap/thumbnails.less +6 -6
- data/vendor/toolkit/twitter/bootstrap/tooltip.less +8 -8
- data/vendor/toolkit/twitter/bootstrap/type.less +71 -30
- data/vendor/toolkit/twitter/bootstrap/utilities.less +15 -1
- data/vendor/toolkit/twitter/bootstrap/variables.less +56 -39
- metadata +3 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ========================================================================
|
2
2
|
* Bootstrap: button.js v3.0.0
|
3
|
-
* http://
|
3
|
+
* http://getbootstrap.com/javascript/#buttons
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2013 Twitter, Inc.
|
6
6
|
*
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
2
|
* Bootstrap: carousel.js v3.0.0
|
3
|
-
* http://
|
3
|
+
* http://getbootstrap.com/javascript/#carousel
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2013 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
2
|
* Bootstrap: collapse.js v3.0.0
|
3
|
-
* http://
|
3
|
+
* http://getbootstrap.com/javascript/#collapse
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2013 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
2
|
* Bootstrap: dropdown.js v3.0.0
|
3
|
-
* http://
|
3
|
+
* http://getbootstrap.com/javascript/#dropdowns
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2013 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
2
|
* Bootstrap: modal.js v3.0.0
|
3
|
-
* http://
|
3
|
+
* http://getbootstrap.com/javascript/#modals
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2013 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
2
|
* Bootstrap: popover.js v3.0.0
|
3
|
-
* http://
|
3
|
+
* http://getbootstrap.com/javascript/#popovers
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2013 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
2
|
* Bootstrap: scrollspy.js v3.0.0
|
3
|
-
* http://
|
3
|
+
* http://getbootstrap.com/javascript/#scrollspy
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2013 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/* ========================================================================
|
2
2
|
* Bootstrap: tab.js v3.0.0
|
3
|
-
* http://
|
3
|
+
* http://getbootstrap.com/javascript/#tabs
|
4
4
|
* ========================================================================
|
5
|
-
* Copyright
|
5
|
+
* Copyright 2013 Twitter, Inc.
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
8
|
* you may not use this file except in compliance with the License.
|
@@ -30,7 +30,7 @@
|
|
30
30
|
Tab.prototype.show = function () {
|
31
31
|
var $this = this.element
|
32
32
|
var $ul = $this.closest('ul:not(.dropdown-menu)')
|
33
|
-
var selector = $this.
|
33
|
+
var selector = $this.data('target')
|
34
34
|
|
35
35
|
if (!selector) {
|
36
36
|
selector = $this.attr('href')
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/* ========================================================================
|
2
2
|
* Bootstrap: tooltip.js v3.0.0
|
3
|
-
* http://
|
3
|
+
* http://getbootstrap.com/javascript/#tooltip
|
4
4
|
* Inspired by the original jQuery.tipsy by Jason Frame
|
5
5
|
* ========================================================================
|
6
|
-
* Copyright
|
6
|
+
* Copyright 2013 Twitter, Inc.
|
7
7
|
*
|
8
8
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
9
9
|
* you may not use this file except in compliance with the License.
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ========================================================================
|
2
2
|
* Bootstrap: transition.js v3.0.0
|
3
|
-
* http://
|
3
|
+
* http://getbootstrap.com/javascript/#transitions
|
4
4
|
* ========================================================================
|
5
5
|
* Copyright 2013 Twitter, Inc.
|
6
6
|
*
|
@@ -1,13 +1,3 @@
|
|
1
|
-
/*!
|
2
|
-
* Bootstrap v3.0.0
|
3
|
-
*
|
4
|
-
* Copyright 2013 Twitter, Inc
|
5
|
-
* Licensed under the Apache License v2.0
|
6
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
7
|
-
*
|
8
|
-
* Designed and built with all the love in the world by @mdo and @fat.
|
9
|
-
*/
|
10
|
-
|
11
1
|
// Core variables and mixins
|
12
2
|
@import "variables.less";
|
13
3
|
@import "mixins.less";
|
@@ -30,11 +30,11 @@
|
|
30
30
|
}
|
31
31
|
}
|
32
32
|
|
33
|
-
//
|
33
|
+
// WebKit-style focus
|
34
34
|
.tab-focus() {
|
35
35
|
// Default
|
36
36
|
outline: thin dotted #333;
|
37
|
-
//
|
37
|
+
// WebKit
|
38
38
|
outline: 5px auto -webkit-focus-ring-color;
|
39
39
|
outline-offset: -2px;
|
40
40
|
}
|
@@ -72,7 +72,15 @@
|
|
72
72
|
}
|
73
73
|
|
74
74
|
// CSS image replacement
|
75
|
+
//
|
76
|
+
// Heads up! v3 launched with with only `.hide-text()`, but per our pattern for
|
77
|
+
// mixins being reused as classes with the same name, this doesn't hold up. As
|
78
|
+
// of v3.0.1 we have added `.text-hide()` and deprecated `.hide-text()`. Note
|
79
|
+
// that we cannot chain the mixins together in Less, so they are repeated.
|
80
|
+
//
|
75
81
|
// Source: https://github.com/h5bp/html5-boilerplate/commit/aa0396eae757
|
82
|
+
|
83
|
+
// Deprecated as of v3.0.1 (will be removed in v4)
|
76
84
|
.hide-text() {
|
77
85
|
font: ~"0/0" a;
|
78
86
|
color: transparent;
|
@@ -80,6 +88,14 @@
|
|
80
88
|
background-color: transparent;
|
81
89
|
border: 0;
|
82
90
|
}
|
91
|
+
// New mixin to use as of v3.0.1
|
92
|
+
.text-hide() {
|
93
|
+
font: ~"0/0" a;
|
94
|
+
color: transparent;
|
95
|
+
text-shadow: none;
|
96
|
+
background-color: transparent;
|
97
|
+
border: 0;
|
98
|
+
}
|
83
99
|
|
84
100
|
|
85
101
|
|
@@ -115,6 +131,10 @@
|
|
115
131
|
-webkit-transition: @transition;
|
116
132
|
transition: @transition;
|
117
133
|
}
|
134
|
+
.transition-property(@transition-property) {
|
135
|
+
-webkit-transition-property: @transition-property;
|
136
|
+
transition-property: @transition-property;
|
137
|
+
}
|
118
138
|
.transition-delay(@transition-delay) {
|
119
139
|
-webkit-transition-delay: @transition-delay;
|
120
140
|
transition-delay: @transition-delay;
|
@@ -156,10 +176,41 @@
|
|
156
176
|
transform: translate3d(@x, @y, @z);
|
157
177
|
}
|
158
178
|
|
179
|
+
.rotateX(@degrees) {
|
180
|
+
-webkit-transform: rotateX(@degrees);
|
181
|
+
-ms-transform: rotateX(@degrees); // IE9+
|
182
|
+
transform: rotateX(@degrees);
|
183
|
+
}
|
184
|
+
.rotateY(@degrees) {
|
185
|
+
-webkit-transform: rotateY(@degrees);
|
186
|
+
-ms-transform: rotateY(@degrees); // IE9+
|
187
|
+
transform: rotateY(@degrees);
|
188
|
+
}
|
189
|
+
.perspective(@perspective) {
|
190
|
+
-webkit-perspective: @perspective;
|
191
|
+
-moz-perspective: @perspective;
|
192
|
+
perspective: @perspective;
|
193
|
+
}
|
194
|
+
.perspective-origin(@perspective) {
|
195
|
+
-webkit-perspective-origin: @perspective;
|
196
|
+
-moz-perspective-origin: @perspective;
|
197
|
+
perspective-origin: @perspective;
|
198
|
+
}
|
199
|
+
.transform-origin(@origin) {
|
200
|
+
-webkit-transform-origin: @origin;
|
201
|
+
-moz-transform-origin: @origin;
|
202
|
+
transform-origin: @origin;
|
203
|
+
}
|
204
|
+
|
205
|
+
// Animations
|
206
|
+
.animation(@animation) {
|
207
|
+
-webkit-animation: @animation;
|
208
|
+
animation: @animation;
|
209
|
+
}
|
210
|
+
|
159
211
|
// Backface visibility
|
160
212
|
// Prevent browsers from flickering when using CSS 3D transforms.
|
161
213
|
// Default value is `visible`, but can be changed to `hidden`
|
162
|
-
// See git pull https://github.com/dannykeane/bootstrap.git backface-visibility for examples
|
163
214
|
.backface-visibility(@visibility){
|
164
215
|
-webkit-backface-visibility: @visibility;
|
165
216
|
-moz-backface-visibility: @visibility;
|
@@ -243,7 +294,7 @@
|
|
243
294
|
// Color stops are not available in IE9 and below.
|
244
295
|
.vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
|
245
296
|
background-image: -webkit-gradient(linear, left @start-percent, left @end-percent, from(@start-color), to(@end-color)); // Safari 4+, Chrome 2+
|
246
|
-
background-image: -webkit-linear-gradient(top, @start-color
|
297
|
+
background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1+, Chrome 10+
|
247
298
|
background-image: -moz-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // FF 3.6+
|
248
299
|
background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10
|
249
300
|
background-repeat: repeat-x;
|
@@ -279,11 +330,11 @@
|
|
279
330
|
background-image: radial-gradient(circle, @inner-color, @outer-color);
|
280
331
|
background-repeat: no-repeat;
|
281
332
|
}
|
282
|
-
.striped(@color:
|
283
|
-
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25,
|
284
|
-
background-image: -webkit-linear-gradient(@angle,
|
285
|
-
background-image: -moz-linear-gradient(@angle,
|
286
|
-
background-image: linear-gradient(@angle,
|
333
|
+
.striped(@color: rgba(255,255,255,.15); @angle: 45deg) {
|
334
|
+
background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, @color), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, @color), color-stop(.75, @color), color-stop(.75, transparent), to(transparent));
|
335
|
+
background-image: -webkit-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
336
|
+
background-image: -moz-linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
337
|
+
background-image: linear-gradient(@angle, @color 25%, transparent 25%, transparent 50%, @color 50%, @color 75%, transparent 75%, transparent);
|
287
338
|
}
|
288
339
|
}
|
289
340
|
|
@@ -345,13 +396,18 @@
|
|
345
396
|
// -------------------------
|
346
397
|
.panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border;) {
|
347
398
|
border-color: @border;
|
399
|
+
|
348
400
|
& > .panel-heading {
|
349
401
|
color: @heading-text-color;
|
350
402
|
background-color: @heading-bg-color;
|
351
403
|
border-color: @heading-border;
|
404
|
+
|
352
405
|
+ .panel-collapse .panel-body {
|
353
406
|
border-top-color: @border;
|
354
407
|
}
|
408
|
+
& > .dropdown .caret {
|
409
|
+
border-color: @heading-text-color transparent;
|
410
|
+
}
|
355
411
|
}
|
356
412
|
& > .panel-footer {
|
357
413
|
+ .panel-collapse .panel-body {
|
@@ -366,6 +422,7 @@
|
|
366
422
|
background-color: @background;
|
367
423
|
border-color: @border;
|
368
424
|
color: @text-color;
|
425
|
+
|
369
426
|
hr {
|
370
427
|
border-top-color: darken(@border, 5%);
|
371
428
|
}
|
@@ -387,7 +444,6 @@
|
|
387
444
|
&.@{state} > td,
|
388
445
|
&.@{state} > th {
|
389
446
|
background-color: @background;
|
390
|
-
border-color: @border;
|
391
447
|
}
|
392
448
|
}
|
393
449
|
|
@@ -396,9 +452,9 @@
|
|
396
452
|
.table-hover > tbody > tr {
|
397
453
|
> td.@{state}:hover,
|
398
454
|
> th.@{state}:hover,
|
399
|
-
&.@{state}:hover > td
|
455
|
+
&.@{state}:hover > td,
|
456
|
+
&.@{state}:hover > th {
|
400
457
|
background-color: darken(@background, 5%);
|
401
|
-
border-color: darken(@border, 5%);
|
402
458
|
}
|
403
459
|
}
|
404
460
|
}
|
@@ -435,7 +491,7 @@
|
|
435
491
|
&:active,
|
436
492
|
&.active {
|
437
493
|
background-color: @background;
|
438
|
-
border-color: @border
|
494
|
+
border-color: @border;
|
439
495
|
}
|
440
496
|
}
|
441
497
|
}
|
@@ -499,7 +555,7 @@
|
|
499
555
|
.progress-bar-variant(@color) {
|
500
556
|
background-color: @color;
|
501
557
|
.progress-striped & {
|
502
|
-
#gradient > .striped(
|
558
|
+
#gradient > .striped();
|
503
559
|
}
|
504
560
|
}
|
505
561
|
|
@@ -514,12 +570,13 @@
|
|
514
570
|
}
|
515
571
|
|
516
572
|
.responsive-invisibility() {
|
517
|
-
|
518
|
-
tr
|
573
|
+
&,
|
574
|
+
tr&,
|
519
575
|
th&,
|
520
576
|
td& { display: none !important; }
|
521
577
|
}
|
522
578
|
|
579
|
+
|
523
580
|
// Grid System
|
524
581
|
// -----------
|
525
582
|
|
@@ -561,7 +618,7 @@
|
|
561
618
|
padding-right: (@gutter / 2);
|
562
619
|
|
563
620
|
// Calculate width based on number of columns available
|
564
|
-
@media (min-width: @screen-sm) {
|
621
|
+
@media (min-width: @screen-sm-min) {
|
565
622
|
float: left;
|
566
623
|
width: percentage((@columns / @grid-columns));
|
567
624
|
}
|
@@ -569,17 +626,17 @@
|
|
569
626
|
|
570
627
|
// Generate the small column offsets
|
571
628
|
.make-sm-column-offset(@columns) {
|
572
|
-
@media (min-width: @screen-sm) {
|
629
|
+
@media (min-width: @screen-sm-min) {
|
573
630
|
margin-left: percentage((@columns / @grid-columns));
|
574
631
|
}
|
575
632
|
}
|
576
633
|
.make-sm-column-push(@columns) {
|
577
|
-
@media (min-width: @screen-sm) {
|
634
|
+
@media (min-width: @screen-sm-min) {
|
578
635
|
left: percentage((@columns / @grid-columns));
|
579
636
|
}
|
580
637
|
}
|
581
638
|
.make-sm-column-pull(@columns) {
|
582
|
-
@media (min-width: @screen-sm) {
|
639
|
+
@media (min-width: @screen-sm-min) {
|
583
640
|
right: percentage((@columns / @grid-columns));
|
584
641
|
}
|
585
642
|
}
|
@@ -594,15 +651,15 @@
|
|
594
651
|
padding-right: (@gutter / 2);
|
595
652
|
|
596
653
|
// Calculate width based on number of columns available
|
597
|
-
@media (min-width: @screen-md) {
|
654
|
+
@media (min-width: @screen-md-min) {
|
598
655
|
float: left;
|
599
656
|
width: percentage((@columns / @grid-columns));
|
600
657
|
}
|
601
658
|
}
|
602
659
|
|
603
|
-
// Generate the
|
660
|
+
// Generate the medium column offsets
|
604
661
|
.make-md-column-offset(@columns) {
|
605
|
-
@media (min-width: @screen-md) {
|
662
|
+
@media (min-width: @screen-md-min) {
|
606
663
|
margin-left: percentage((@columns / @grid-columns));
|
607
664
|
}
|
608
665
|
}
|
@@ -612,7 +669,7 @@
|
|
612
669
|
}
|
613
670
|
}
|
614
671
|
.make-md-column-pull(@columns) {
|
615
|
-
@media (min-width: @screen-md) {
|
672
|
+
@media (min-width: @screen-md-min) {
|
616
673
|
right: percentage((@columns / @grid-columns));
|
617
674
|
}
|
618
675
|
}
|
@@ -627,7 +684,7 @@
|
|
627
684
|
padding-right: (@gutter / 2);
|
628
685
|
|
629
686
|
// Calculate width based on number of columns available
|
630
|
-
@media (min-width: @screen-lg) {
|
687
|
+
@media (min-width: @screen-lg-min) {
|
631
688
|
float: left;
|
632
689
|
width: percentage((@columns / @grid-columns));
|
633
690
|
}
|
@@ -635,22 +692,96 @@
|
|
635
692
|
|
636
693
|
// Generate the large column offsets
|
637
694
|
.make-lg-column-offset(@columns) {
|
638
|
-
@media (min-width: @screen-lg) {
|
695
|
+
@media (min-width: @screen-lg-min) {
|
639
696
|
margin-left: percentage((@columns / @grid-columns));
|
640
697
|
}
|
641
698
|
}
|
642
699
|
.make-lg-column-push(@columns) {
|
643
|
-
@media (min-width: @screen-lg) {
|
700
|
+
@media (min-width: @screen-lg-min) {
|
644
701
|
left: percentage((@columns / @grid-columns));
|
645
702
|
}
|
646
703
|
}
|
647
704
|
.make-lg-column-pull(@columns) {
|
648
|
-
@media (min-width: @screen-lg) {
|
705
|
+
@media (min-width: @screen-lg-min) {
|
649
706
|
right: percentage((@columns / @grid-columns));
|
650
707
|
}
|
651
708
|
}
|
652
709
|
|
653
710
|
|
711
|
+
// Framework grid generation
|
712
|
+
//
|
713
|
+
// Used only by Bootstrap to generate the correct number of grid classes given
|
714
|
+
// any value of `@grid-columns`.
|
715
|
+
|
716
|
+
.make-grid-columns() {
|
717
|
+
// Common styles for all sizes of grid columns, widths 1-12
|
718
|
+
.col(@index) when (@index = 1) { // initial
|
719
|
+
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
|
720
|
+
.col(@index + 1, @item);
|
721
|
+
}
|
722
|
+
.col(@index, @list) when (@index =< @grid-columns) { // general; "=<" isn't a typo
|
723
|
+
@item: ~".col-xs-@{index}, .col-sm-@{index}, .col-md-@{index}, .col-lg-@{index}";
|
724
|
+
.col(@index + 1, ~"@{list}, @{item}");
|
725
|
+
}
|
726
|
+
.col(@index, @list) when (@index > @grid-columns) { // terminal
|
727
|
+
@{list} {
|
728
|
+
position: relative;
|
729
|
+
// Prevent columns from collapsing when empty
|
730
|
+
min-height: 1px;
|
731
|
+
// Inner gutter via padding
|
732
|
+
padding-left: (@grid-gutter-width / 2);
|
733
|
+
padding-right: (@grid-gutter-width / 2);
|
734
|
+
}
|
735
|
+
}
|
736
|
+
.col(1); // kickstart it
|
737
|
+
}
|
738
|
+
|
739
|
+
.make-grid-columns-float(@class) {
|
740
|
+
.col(@index) when (@index = 1) { // initial
|
741
|
+
@item: ~".col-@{class}-@{index}";
|
742
|
+
.col(@index + 1, @item);
|
743
|
+
}
|
744
|
+
.col(@index, @list) when (@index < @grid-columns) { // general
|
745
|
+
@item: ~".col-@{class}-@{index}";
|
746
|
+
.col(@index + 1, ~"@{list}, @{item}");
|
747
|
+
}
|
748
|
+
.col(@index, @list) when (@index = @grid-columns) { // terminal
|
749
|
+
@{list} {
|
750
|
+
float: left;
|
751
|
+
}
|
752
|
+
}
|
753
|
+
.col(1); // kickstart it
|
754
|
+
}
|
755
|
+
|
756
|
+
.calc-grid(@index, @class, @type) when (@type = width) {
|
757
|
+
.col-@{class}-@{index} {
|
758
|
+
width: percentage((@index / @grid-columns));
|
759
|
+
}
|
760
|
+
}
|
761
|
+
.calc-grid(@index, @class, @type) when (@type = push) {
|
762
|
+
.col-@{class}-push-@{index} {
|
763
|
+
left: percentage((@index / @grid-columns));
|
764
|
+
}
|
765
|
+
}
|
766
|
+
.calc-grid(@index, @class, @type) when (@type = pull) {
|
767
|
+
.col-@{class}-pull-@{index} {
|
768
|
+
right: percentage((@index / @grid-columns));
|
769
|
+
}
|
770
|
+
}
|
771
|
+
.calc-grid(@index, @class, @type) when (@type = offset) {
|
772
|
+
.col-@{class}-offset-@{index} {
|
773
|
+
margin-left: percentage((@index / @grid-columns));
|
774
|
+
}
|
775
|
+
}
|
776
|
+
|
777
|
+
// Basic looping in LESS
|
778
|
+
.make-grid(@index, @class, @type) when (@index > 0) {
|
779
|
+
.calc-grid(@index, @class, @type);
|
780
|
+
// next iteration
|
781
|
+
.make-grid(@index - 1, @class, @type);
|
782
|
+
}
|
783
|
+
|
784
|
+
|
654
785
|
// Form validation states
|
655
786
|
//
|
656
787
|
// Used in forms.less to generate the form validation CSS for warnings, errors,
|
@@ -659,7 +790,11 @@
|
|
659
790
|
.form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
|
660
791
|
// Color the label and help text
|
661
792
|
.help-block,
|
662
|
-
.control-label
|
793
|
+
.control-label,
|
794
|
+
.radio,
|
795
|
+
.checkbox,
|
796
|
+
.radio-inline,
|
797
|
+
.checkbox-inline {
|
663
798
|
color: @text-color;
|
664
799
|
}
|
665
800
|
// Set the border and box shadow on specific inputs to match
|