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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +6 -1
  3. data/CONTRIBUTING.md +1 -1
  4. data/Gemfile.lock +2 -2
  5. data/Rakefile +3 -6
  6. data/app/assets/fonts/fontawesome-webfont.eot +0 -0
  7. data/app/assets/fonts/fontawesome-webfont.svg +21 -6
  8. data/app/assets/fonts/fontawesome-webfont.ttf +0 -0
  9. data/app/assets/fonts/fontawesome-webfont.woff +0 -0
  10. data/lib/twbs_less_rails/version.rb +1 -1
  11. data/vendor/assets/javascripts/twbs/bootstrap/affix.js +1 -1
  12. data/vendor/assets/javascripts/twbs/bootstrap/carousel.js +1 -1
  13. data/vendor/assets/javascripts/twbs/bootstrap/collapse.js +1 -1
  14. data/vendor/assets/javascripts/twbs/bootstrap/dropdown.js +1 -1
  15. data/vendor/assets/javascripts/twbs/bootstrap/modal.js +1 -1
  16. data/vendor/assets/javascripts/twbs/bootstrap/popover.js +1 -1
  17. data/vendor/assets/javascripts/twbs/bootstrap/scrollspy.js +1 -1
  18. data/vendor/assets/javascripts/twbs/bootstrap/tab.js +1 -1
  19. data/vendor/assets/javascripts/twbs/bootstrap/tooltip.js +1 -1
  20. data/vendor/assets/stylesheets/fontawesome/bordered-pulled.less +16 -0
  21. data/vendor/assets/stylesheets/fontawesome/core.less +9 -126
  22. data/vendor/assets/stylesheets/fontawesome/extras.less +2 -93
  23. data/vendor/assets/stylesheets/fontawesome/fixed-width.less +6 -0
  24. data/vendor/assets/stylesheets/fontawesome/font-awesome.less +13 -8
  25. data/vendor/assets/stylesheets/fontawesome/icons.less +409 -378
  26. data/vendor/assets/stylesheets/fontawesome/larger.less +13 -0
  27. data/vendor/assets/stylesheets/fontawesome/list.less +19 -0
  28. data/vendor/assets/stylesheets/fontawesome/mixins.less +14 -42
  29. data/vendor/assets/stylesheets/fontawesome/rotated-flipped.less +9 -0
  30. data/vendor/assets/stylesheets/fontawesome/spinning.less +30 -0
  31. data/vendor/assets/stylesheets/fontawesome/stacked.less +19 -0
  32. data/vendor/assets/stylesheets/fontawesome/variables.less +378 -731
  33. data/vendor/assets/stylesheets/twbs/bootstrap/button-groups.less +5 -0
  34. data/vendor/assets/stylesheets/twbs/bootstrap/carousel.less +11 -0
  35. data/vendor/assets/stylesheets/twbs/bootstrap/code.less +1 -1
  36. data/vendor/assets/stylesheets/twbs/bootstrap/glyphicons.less +1 -1
  37. data/vendor/assets/stylesheets/twbs/bootstrap/mixins.less +12 -2
  38. data/vendor/assets/stylesheets/twbs/bootstrap/modals.less +1 -0
  39. data/vendor/assets/stylesheets/twbs/bootstrap/navbar.less +7 -4
  40. data/vendor/assets/stylesheets/twbs/bootstrap/panels.less +4 -0
  41. data/vendor/assets/stylesheets/twbs/bootstrap/print.less +0 -1
  42. data/vendor/assets/stylesheets/twbs/bootstrap/theme.less +1 -0
  43. metadata +9 -3
  44. 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;
@@ -1,5 +1,5 @@
1
1
  //
2
- // Code (inline and blocK)
2
+ // Code (inline and block)
3
3
  // --------------------------------------------------
4
4
 
5
5
 
@@ -28,7 +28,7 @@
28
28
  line-height: 1;
29
29
  -webkit-font-smoothing: antialiased;
30
30
 
31
- &:empty{
31
+ &:empty {
32
32
  width: 1em;
33
33
  }
34
34
  }
@@ -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, @start-percent, @end-color, @end-percent); // Safari 5.1+, Chrome 10+
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
@@ -34,6 +34,7 @@
34
34
 
35
35
  // Shell div to position the modal with bottom padding
36
36
  .modal-dialog {
37
+ position: relative;
37
38
  margin-left: auto;
38
39
  margin-right: auto;
39
40
  width: auto;
@@ -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: visible;
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
- border-width: 0 0 1px;
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.
@@ -26,7 +26,6 @@
26
26
  }
27
27
 
28
28
  // Don't show links for images, or javascript/internal links
29
- .ir a:after,
30
29
  a[href^="javascript:"]:after,
31
30
  a[href^="#"]:after {
32
31
  content: "";
@@ -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: 1.0.2
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-19 00:00:00.000000000 Z
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/bootstrap.less
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
- }