twbs_less_rails 1.0.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/CONTRIBUTING.md +1 -1
- data/Gemfile.lock +2 -2
- data/Rakefile +3 -6
- data/app/assets/fonts/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/fontawesome-webfont.svg +21 -6
- data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/fontawesome-webfont.woff +0 -0
- data/lib/twbs_less_rails/version.rb +1 -1
- data/vendor/assets/javascripts/twbs/bootstrap/affix.js +1 -1
- data/vendor/assets/javascripts/twbs/bootstrap/carousel.js +1 -1
- data/vendor/assets/javascripts/twbs/bootstrap/collapse.js +1 -1
- data/vendor/assets/javascripts/twbs/bootstrap/dropdown.js +1 -1
- data/vendor/assets/javascripts/twbs/bootstrap/modal.js +1 -1
- data/vendor/assets/javascripts/twbs/bootstrap/popover.js +1 -1
- data/vendor/assets/javascripts/twbs/bootstrap/scrollspy.js +1 -1
- data/vendor/assets/javascripts/twbs/bootstrap/tab.js +1 -1
- data/vendor/assets/javascripts/twbs/bootstrap/tooltip.js +1 -1
- data/vendor/assets/stylesheets/fontawesome/bordered-pulled.less +16 -0
- data/vendor/assets/stylesheets/fontawesome/core.less +9 -126
- data/vendor/assets/stylesheets/fontawesome/extras.less +2 -93
- data/vendor/assets/stylesheets/fontawesome/fixed-width.less +6 -0
- data/vendor/assets/stylesheets/fontawesome/font-awesome.less +13 -8
- data/vendor/assets/stylesheets/fontawesome/icons.less +409 -378
- data/vendor/assets/stylesheets/fontawesome/larger.less +13 -0
- data/vendor/assets/stylesheets/fontawesome/list.less +19 -0
- data/vendor/assets/stylesheets/fontawesome/mixins.less +14 -42
- data/vendor/assets/stylesheets/fontawesome/rotated-flipped.less +9 -0
- data/vendor/assets/stylesheets/fontawesome/spinning.less +30 -0
- data/vendor/assets/stylesheets/fontawesome/stacked.less +19 -0
- data/vendor/assets/stylesheets/fontawesome/variables.less +378 -731
- data/vendor/assets/stylesheets/twbs/bootstrap/button-groups.less +5 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/carousel.less +11 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/code.less +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/glyphicons.less +1 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/mixins.less +12 -2
- data/vendor/assets/stylesheets/twbs/bootstrap/modals.less +1 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/navbar.less +7 -4
- data/vendor/assets/stylesheets/twbs/bootstrap/panels.less +4 -0
- data/vendor/assets/stylesheets/twbs/bootstrap/print.less +0 -1
- data/vendor/assets/stylesheets/twbs/bootstrap/theme.less +1 -0
- metadata +9 -3
- data/vendor/assets/stylesheets/fontawesome/bootstrap.less +0 -84
@@ -150,6 +150,11 @@
|
|
150
150
|
// Remove the gradient and set the same inset shadow as the :active state
|
151
151
|
.btn-group.open .dropdown-toggle {
|
152
152
|
.box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
|
153
|
+
|
154
|
+
// Show no shadow for `.btn-link` since it has no other button styles.
|
155
|
+
&.btn-link {
|
156
|
+
.box-shadow(none);
|
157
|
+
}
|
153
158
|
}
|
154
159
|
|
155
160
|
|
@@ -160,6 +160,17 @@
|
|
160
160
|
border: 1px solid @carousel-indicator-border-color;
|
161
161
|
border-radius: 10px;
|
162
162
|
cursor: pointer;
|
163
|
+
|
164
|
+
// IE8-9 hack for event handling
|
165
|
+
//
|
166
|
+
// Internet Explorer 8-9 does not support clicks on elements without a set
|
167
|
+
// `background-color`. We cannot use `filter` since that's not viewed as a
|
168
|
+
// background color by the browser. Thus, a hack is needed.
|
169
|
+
//
|
170
|
+
// For IE8, we set solid black as it doesn't support `rgba()`. For IE9, we
|
171
|
+
// set alpha transparency for the best results possible.
|
172
|
+
background-color: #000 \9; // IE8
|
173
|
+
background-color: rgba(0,0,0,0); // IE9
|
163
174
|
}
|
164
175
|
.active {
|
165
176
|
margin: 0;
|
@@ -287,7 +287,7 @@
|
|
287
287
|
// Color stops are not available in IE9 and below.
|
288
288
|
.vertical(@start-color: #555; @end-color: #333; @start-percent: 0%; @end-percent: 100%) {
|
289
289
|
background-image: -webkit-gradient(linear, left @start-percent, left @end-percent, from(@start-color), to(@end-color)); // Safari 4+, Chrome 2+
|
290
|
-
background-image: -webkit-linear-gradient(top, @start-color
|
290
|
+
background-image: -webkit-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // Safari 5.1+, Chrome 10+
|
291
291
|
background-image: -moz-linear-gradient(top, @start-color @start-percent, @end-color @end-percent); // FF 3.6+
|
292
292
|
background-image: linear-gradient(to bottom, @start-color @start-percent, @end-color @end-percent); // Standard, IE10
|
293
293
|
background-repeat: repeat-x;
|
@@ -389,13 +389,18 @@
|
|
389
389
|
// -------------------------
|
390
390
|
.panel-variant(@border; @heading-text-color; @heading-bg-color; @heading-border;) {
|
391
391
|
border-color: @border;
|
392
|
+
|
392
393
|
& > .panel-heading {
|
393
394
|
color: @heading-text-color;
|
394
395
|
background-color: @heading-bg-color;
|
395
396
|
border-color: @heading-border;
|
397
|
+
|
396
398
|
+ .panel-collapse .panel-body {
|
397
399
|
border-top-color: @border;
|
398
400
|
}
|
401
|
+
& > .dropdown .caret {
|
402
|
+
border-color: @heading-text-color transparent;
|
403
|
+
}
|
399
404
|
}
|
400
405
|
& > .panel-footer {
|
401
406
|
+ .panel-collapse .panel-body {
|
@@ -410,6 +415,7 @@
|
|
410
415
|
background-color: @background;
|
411
416
|
border-color: @border;
|
412
417
|
color: @text-color;
|
418
|
+
|
413
419
|
hr {
|
414
420
|
border-top-color: darken(@border, 5%);
|
415
421
|
}
|
@@ -779,7 +785,11 @@
|
|
779
785
|
.form-control-validation(@text-color: #555; @border-color: #ccc; @background-color: #f5f5f5) {
|
780
786
|
// Color the label and help text
|
781
787
|
.help-block,
|
782
|
-
.control-label
|
788
|
+
.control-label,
|
789
|
+
.radio,
|
790
|
+
.checkbox,
|
791
|
+
.radio-inline,
|
792
|
+
.checkbox-inline {
|
783
793
|
color: @text-color;
|
784
794
|
}
|
785
795
|
// Set the border and box shadow on specific inputs to match
|
@@ -10,7 +10,6 @@
|
|
10
10
|
|
11
11
|
.navbar {
|
12
12
|
position: relative;
|
13
|
-
z-index: @zindex-navbar;
|
14
13
|
min-height: @navbar-height; // Ensure a navbar always shows (e.g., without a .navbar-brand in collapsed mode)
|
15
14
|
margin-bottom: @navbar-margin-bottom;
|
16
15
|
border: 1px solid transparent;
|
@@ -75,7 +74,7 @@
|
|
75
74
|
}
|
76
75
|
|
77
76
|
&.in {
|
78
|
-
overflow-y:
|
77
|
+
overflow-y: auto;
|
79
78
|
}
|
80
79
|
|
81
80
|
// Account for first and last children spacing
|
@@ -116,7 +115,9 @@
|
|
116
115
|
|
117
116
|
// Static top (unfixed, but 100% wide) navbar
|
118
117
|
.navbar-static-top {
|
118
|
+
z-index: @zindex-navbar;
|
119
119
|
border-width: 0 0 1px;
|
120
|
+
|
120
121
|
@media (min-width: @grid-float-breakpoint) {
|
121
122
|
border-radius: 0;
|
122
123
|
}
|
@@ -128,7 +129,7 @@
|
|
128
129
|
position: fixed;
|
129
130
|
right: 0;
|
130
131
|
left: 0;
|
131
|
-
|
132
|
+
z-index: @zindex-navbar-fixed;
|
132
133
|
|
133
134
|
// Undo the rounded corners
|
134
135
|
@media (min-width: @grid-float-breakpoint) {
|
@@ -136,12 +137,13 @@
|
|
136
137
|
}
|
137
138
|
}
|
138
139
|
.navbar-fixed-top {
|
139
|
-
z-index: @zindex-navbar-fixed;
|
140
140
|
top: 0;
|
141
|
+
border-width: 0 0 1px;
|
141
142
|
}
|
142
143
|
.navbar-fixed-bottom {
|
143
144
|
bottom: 0;
|
144
145
|
margin-bottom: 0; // override .navbar defaults
|
146
|
+
border-width: 1px 0 0;
|
145
147
|
}
|
146
148
|
|
147
149
|
|
@@ -152,6 +154,7 @@
|
|
152
154
|
padding: @navbar-padding-vertical @navbar-padding-horizontal;
|
153
155
|
font-size: @font-size-large;
|
154
156
|
line-height: @line-height-computed;
|
157
|
+
|
155
158
|
&:hover,
|
156
159
|
&:focus {
|
157
160
|
text-decoration: none;
|
@@ -95,6 +95,10 @@
|
|
95
95
|
padding: 10px 15px;
|
96
96
|
border-bottom: 1px solid transparent;
|
97
97
|
.border-top-radius(@panel-border-radius - 1);
|
98
|
+
|
99
|
+
& > .dropdown .dropdown-toggle {
|
100
|
+
color: inherit;
|
101
|
+
}
|
98
102
|
}
|
99
103
|
|
100
104
|
// Within heading, strip any `h*` tag of it's default margins for spacing.
|
@@ -33,6 +33,7 @@
|
|
33
33
|
// Mixin for generating new styles
|
34
34
|
.btn-styles(@btn-color: #555) {
|
35
35
|
#gradient > .vertical(@start-color: @btn-color; @end-color: darken(@btn-color, 12%));
|
36
|
+
.reset-filter(); // Disable gradients for IE9 because filter bleeds through rounded corners
|
36
37
|
background-repeat: repeat-x;
|
37
38
|
border-color: darken(@btn-color, 14%);
|
38
39
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twbs_less_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- diowa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-10-
|
11
|
+
date: 2013-10-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -262,13 +262,19 @@ files:
|
|
262
262
|
- vendor/assets/javascripts/twbs/bootstrap/tab.js
|
263
263
|
- vendor/assets/javascripts/twbs/bootstrap/tooltip.js
|
264
264
|
- vendor/assets/javascripts/twbs/bootstrap/transition.js
|
265
|
-
- vendor/assets/stylesheets/fontawesome/
|
265
|
+
- vendor/assets/stylesheets/fontawesome/bordered-pulled.less
|
266
266
|
- vendor/assets/stylesheets/fontawesome/core.less
|
267
267
|
- vendor/assets/stylesheets/fontawesome/extras.less
|
268
|
+
- vendor/assets/stylesheets/fontawesome/fixed-width.less
|
268
269
|
- vendor/assets/stylesheets/fontawesome/font-awesome.less
|
269
270
|
- vendor/assets/stylesheets/fontawesome/icons.less
|
271
|
+
- vendor/assets/stylesheets/fontawesome/larger.less
|
272
|
+
- vendor/assets/stylesheets/fontawesome/list.less
|
270
273
|
- vendor/assets/stylesheets/fontawesome/mixins.less
|
271
274
|
- vendor/assets/stylesheets/fontawesome/path.less
|
275
|
+
- vendor/assets/stylesheets/fontawesome/rotated-flipped.less
|
276
|
+
- vendor/assets/stylesheets/fontawesome/spinning.less
|
277
|
+
- vendor/assets/stylesheets/fontawesome/stacked.less
|
272
278
|
- vendor/assets/stylesheets/fontawesome/variables.less
|
273
279
|
- vendor/assets/stylesheets/twbs/bootstrap.less
|
274
280
|
- vendor/assets/stylesheets/twbs/bootstrap/alerts.less
|
@@ -1,84 +0,0 @@
|
|
1
|
-
/* BOOTSTRAP SPECIFIC CLASSES
|
2
|
-
* -------------------------- */
|
3
|
-
|
4
|
-
/* Bootstrap 2.0 sprites.less reset */
|
5
|
-
[class^="icon-"],
|
6
|
-
[class*=" icon-"] {
|
7
|
-
display: inline;
|
8
|
-
width: auto;
|
9
|
-
height: auto;
|
10
|
-
line-height: normal;
|
11
|
-
vertical-align: baseline;
|
12
|
-
background-image: none;
|
13
|
-
background-position: 0% 0%;
|
14
|
-
background-repeat: repeat;
|
15
|
-
margin-top: 0;
|
16
|
-
}
|
17
|
-
|
18
|
-
/* more sprites.less reset */
|
19
|
-
.icon-white,
|
20
|
-
.nav-pills > .active > a > [class^="icon-"],
|
21
|
-
.nav-pills > .active > a > [class*=" icon-"],
|
22
|
-
.nav-list > .active > a > [class^="icon-"],
|
23
|
-
.nav-list > .active > a > [class*=" icon-"],
|
24
|
-
.navbar-inverse .nav > .active > a > [class^="icon-"],
|
25
|
-
.navbar-inverse .nav > .active > a > [class*=" icon-"],
|
26
|
-
.dropdown-menu > li > a:hover > [class^="icon-"],
|
27
|
-
.dropdown-menu > li > a:hover > [class*=" icon-"],
|
28
|
-
.dropdown-menu > .active > a > [class^="icon-"],
|
29
|
-
.dropdown-menu > .active > a > [class*=" icon-"],
|
30
|
-
.dropdown-submenu:hover > a > [class^="icon-"],
|
31
|
-
.dropdown-submenu:hover > a > [class*=" icon-"] {
|
32
|
-
background-image: none;
|
33
|
-
}
|
34
|
-
|
35
|
-
|
36
|
-
/* keeps Bootstrap styles with and without icons the same */
|
37
|
-
.btn, .nav {
|
38
|
-
[class^="icon-"],
|
39
|
-
[class*=" icon-"] {
|
40
|
-
// display: inline;
|
41
|
-
&.icon-large { line-height: .9em; }
|
42
|
-
&.icon-spin { display: inline-block; }
|
43
|
-
}
|
44
|
-
}
|
45
|
-
.nav-tabs, .nav-pills {
|
46
|
-
[class^="icon-"],
|
47
|
-
[class*=" icon-"] {
|
48
|
-
&, &.icon-large { line-height: .9em; }
|
49
|
-
}
|
50
|
-
}
|
51
|
-
.btn {
|
52
|
-
[class^="icon-"],
|
53
|
-
[class*=" icon-"] {
|
54
|
-
&.pull-left, &.pull-right {
|
55
|
-
&.icon-2x { margin-top: .18em; }
|
56
|
-
}
|
57
|
-
&.icon-spin.icon-large { line-height: .8em; }
|
58
|
-
}
|
59
|
-
}
|
60
|
-
.btn.btn-small {
|
61
|
-
[class^="icon-"],
|
62
|
-
[class*=" icon-"] {
|
63
|
-
&.pull-left, &.pull-right {
|
64
|
-
&.icon-2x { margin-top: .25em; }
|
65
|
-
}
|
66
|
-
}
|
67
|
-
}
|
68
|
-
.btn.btn-large {
|
69
|
-
[class^="icon-"],
|
70
|
-
[class*=" icon-"] {
|
71
|
-
margin-top: 0; // overrides bootstrap default
|
72
|
-
&.pull-left, &.pull-right {
|
73
|
-
&.icon-2x { margin-top: .05em; }
|
74
|
-
}
|
75
|
-
&.pull-left.icon-2x { margin-right: .2em; }
|
76
|
-
&.pull-right.icon-2x { margin-left: .2em; }
|
77
|
-
}
|
78
|
-
}
|
79
|
-
|
80
|
-
/* Fixes alignment in nav lists */
|
81
|
-
.nav-list [class^="icon-"],
|
82
|
-
.nav-list [class*=" icon-"] {
|
83
|
-
line-height: inherit;
|
84
|
-
}
|