compass_twitter_bootstrap 2.2.2.2 → 2.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +7 -0
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +5 -4
  4. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  5. data/stylesheets/_compass_twitter_bootstrap.scss +15 -5
  6. data/stylesheets/_compass_twitter_bootstrap_awesome.scss +17 -6
  7. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +17 -5
  8. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +4 -2
  9. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +9 -11
  10. data/stylesheets/compass_twitter_bootstrap/_carousel.scss +34 -7
  11. data/stylesheets/compass_twitter_bootstrap/_close.scss +2 -1
  12. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +16 -12
  13. data/stylesheets/compass_twitter_bootstrap/_forms.scss +5 -2
  14. data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +4 -2
  15. data/stylesheets/compass_twitter_bootstrap/_media.scss +2 -2
  16. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +39 -8
  17. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +20 -13
  18. data/stylesheets/compass_twitter_bootstrap/_navs.scss +39 -21
  19. data/stylesheets/compass_twitter_bootstrap/_pager.scss +3 -1
  20. data/stylesheets/compass_twitter_bootstrap/_pagination.scss +3 -1
  21. data/stylesheets/compass_twitter_bootstrap/_popovers.scss +5 -1
  22. data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +2 -2
  23. data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +6 -2
  24. data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +16 -0
  25. data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +2 -1
  26. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +7 -3
  27. data/stylesheets/compass_twitter_bootstrap/_tables.scss +24 -17
  28. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +3 -2
  29. data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +6 -6
  30. data/stylesheets/compass_twitter_bootstrap/_type.scss +19 -7
  31. data/stylesheets/compass_twitter_bootstrap/_utilities.scss +1 -3
  32. data/stylesheets/compass_twitter_bootstrap/_variables.scss +4 -4
  33. data/stylesheets_sass/_compass_twitter_bootstrap.sass +14 -6
  34. data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +16 -7
  35. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +14 -5
  36. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +4 -3
  37. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +9 -11
  38. data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +30 -6
  39. data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +2 -1
  40. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +1 -1
  41. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +18 -13
  42. data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +339 -46
  43. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +12 -15
  44. data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +4 -2
  45. data/stylesheets_sass/compass_twitter_bootstrap/_media.sass +2 -2
  46. data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +41 -7
  47. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +4 -4
  48. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +23 -14
  49. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +51 -30
  50. data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +4 -2
  51. data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +3 -1
  52. data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +4 -2
  53. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +2 -2
  54. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +1 -1
  55. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +6 -2
  56. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +19 -0
  57. data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +3 -2
  58. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +8 -3
  59. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +24 -16
  60. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +5 -3
  61. data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +6 -2
  62. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +24 -7
  63. data/stylesheets_sass/compass_twitter_bootstrap/_utilities.sass +0 -3
  64. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +4 -4
  65. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  66. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  67. data/vendor/assets/javascripts/bootstrap-affix.js +1 -1
  68. data/vendor/assets/javascripts/bootstrap-alert.js +1 -1
  69. data/vendor/assets/javascripts/bootstrap-all.js +0 -1
  70. data/vendor/assets/javascripts/bootstrap-button.js +1 -1
  71. data/vendor/assets/javascripts/bootstrap-carousel.js +32 -10
  72. data/vendor/assets/javascripts/bootstrap-collapse.js +4 -4
  73. data/vendor/assets/javascripts/bootstrap-dropdown.js +14 -10
  74. data/vendor/assets/javascripts/bootstrap-modal.js +14 -12
  75. data/vendor/assets/javascripts/bootstrap-popover.js +5 -5
  76. data/vendor/assets/javascripts/bootstrap-scrollspy.js +2 -2
  77. data/vendor/assets/javascripts/bootstrap-tab.js +1 -1
  78. data/vendor/assets/javascripts/bootstrap-tooltip.js +104 -30
  79. data/vendor/assets/javascripts/bootstrap-transition.js +1 -1
  80. data/vendor/assets/javascripts/bootstrap-typeahead.js +16 -4
  81. metadata +10 -22
  82. data/stylesheets/compass_twitter_bootstrap/_responsive.scss +0 -48
  83. data/stylesheets_sass/compass_twitter_bootstrap/_responsive.sass +0 -44
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 56d45b4741f66c2252235a7542edaacc2aaca9cb
4
+ data.tar.gz: 50baf78a0965f4d8d5550eb111041f7ec0fb7c5e
5
+ SHA512:
6
+ metadata.gz: e03ab05de06c1a8f4ced872b5556ed82e243e94b60b4ddf8f20fb559c3ce3351aa748818e8eed838909714d38c40b87f467d5739554d3803ca93359bb1c9cf83
7
+ data.tar.gz: 28190d17cc07cfff5303df73f19e4622a5c5ea1f5705686bbfbe66a2a307e15312de57bb0f4ebe54905bf89909604ea1d32a186a2c7a527d80d57944894333bc
@@ -1,5 +1,8 @@
1
1
  # Overview
2
2
 
3
+ ## 2.3.1
4
+ * Upgrade Twitter Bootstrap to 2.3.1 (@szinya)
5
+
3
6
  ## 2.2.2.2
4
7
  Fix cb-opacity mixin to correctly calculate opacity (@mindmelting)
5
8
  Added in clearfix utils class as per bootstrap docs (@mindmelting)
data/README.md CHANGED
@@ -115,14 +115,15 @@ There is a Rake-task that will help you to fetch all recent changes from the Twi
115
115
  When that is done
116
116
 
117
117
  * update the assets
118
- * replace `$media ` with @media `, `$page ` with @page `, `$-ms-keyframes ` with @-ms-keyframes `, `$-o-keyframes ` with @-o-keyframes `, see https://github.com/vwall/compass-twitter-bootstrap/issues/100.
119
- * replace `ctb-reset-filter(` with `ctb-gradient-reset-filter(`
118
+ * replace `$media` with `@media` , `$page` with `@page` , `$-ms-keyframes` with `@-ms-keyframes` , `$-o-keyframes` with `@-o-keyframes` , `$-ms-viewport` with `@-ms-viewport`, see https://github.com/vwall/compass-twitter-bootstrap/issues/100.
119
+ * replace `ctb-reset-filter` with `ctb-gradient-reset-filter`
120
120
  * replace `ctb-span(` with `ctb-core-span(`
121
121
  * replace `@include ctb-opacity(100)` with `@include ctb-opacity(1)` as seen in https://github.com/vwall/compass-twitter-bootstrap/commit/b80ea1bc20f031a4abad7906ba14590bccadc74e
122
122
  * search for `(e(` and fix it
123
123
  * search for `&-` and fix it, see https://github.com/vwall/compass-twitter-bootstrap/issues/101
124
- * search fo `.navbar-fixed-bottom .container {` and fix it
124
+ * search for `.navbar-fixed-bottom .container {` and fix it
125
125
  * readd the imports into _buttons.scss as seen in https://github.com/vwall/compass-twitter-bootstrap/commit/18d2d061235d5477c3a30beab9f02c7e9387f0c4
126
+ * add utility classes defined in mixins.scss to stylesheets/_compass_twitter_bootstrap*.scss (right after importing mixins)
126
127
 
127
128
  @remark: if some Ruby-genius wants to automate this feel free
128
129
 
@@ -148,7 +149,7 @@ To get started -- checkout http://twitter.github.com/bootstrap!
148
149
 
149
150
  ##Copyright and License
150
151
 
151
- Copyright 2011 Twitter, Inc.
152
+ Copyright 2012 Twitter, Inc.
152
153
 
153
154
  Licensed under the Apache License, Version 2.0 (the "License");
154
155
  you may not use this work except in compliance with the License.
@@ -1,3 +1,3 @@
1
1
  module CompassTwitterBootstrap
2
- VERSION = "2.2.2.2"
2
+ VERSION = '2.3.1'
3
3
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v2.2.2
2
+ * Bootstrap v2.3.1
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -10,14 +10,24 @@
10
10
 
11
11
  @import "compass";
12
12
 
13
+ // Core variables and mixins
14
+ @import "compass_twitter_bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
13
15
  @import "compass_twitter_bootstrap/mixins";
14
16
 
15
- // CSS Reset
16
- @import "compass_twitter_bootstrap/reset";
17
+ .clearfix {
18
+ @include ctb-clearfix();
19
+ }
17
20
 
18
- // Core variables and mixins
19
- @import "compass_twitter_bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
21
+ .hide-text {
22
+ @include ctb-hide-text();
23
+ }
24
+
25
+ .input-block-level {
26
+ @include ctb-input-block-level();
27
+ }
20
28
 
29
+ // CSS Reset
30
+ @import "compass_twitter_bootstrap/reset";
21
31
 
22
32
  // Grid system and page structure
23
33
  @import "compass_twitter_bootstrap/scaffolding";
@@ -1,5 +1,5 @@
1
- /*
2
- * Bootstrap v2.2.2
1
+ /*!
2
+ * Bootstrap v2.3.1
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -10,14 +10,24 @@
10
10
 
11
11
  @import "compass";
12
12
 
13
+ // Core variables and mixins
14
+ @import "compass_twitter_bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
13
15
  @import "compass_twitter_bootstrap/mixins";
14
16
 
15
- // CSS Reset
16
- @import "compass_twitter_bootstrap/reset";
17
+ .clearfix {
18
+ @include ctb-clearfix();
19
+ }
17
20
 
18
- // Core variables and mixins
19
- @import "compass_twitter_bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
21
+ .hide-text {
22
+ @include ctb-hide-text();
23
+ }
24
+
25
+ .input-block-level {
26
+ @include ctb-input-block-level();
27
+ }
20
28
 
29
+ // CSS Reset
30
+ @import "compass_twitter_bootstrap/reset";
21
31
 
22
32
  // Grid system and page structure
23
33
  @import "compass_twitter_bootstrap/scaffolding";
@@ -56,6 +66,7 @@
56
66
 
57
67
  // Components: Misc
58
68
  @import "compass_twitter_bootstrap/thumbnails";
69
+ @import "compass_twitter_bootstrap/media";
59
70
  @import "compass_twitter_bootstrap/labels-badges";
60
71
  @import "compass_twitter_bootstrap/progress-bars";
61
72
  @import "compass_twitter_bootstrap/accordion";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.1.0
2
+ * Bootstrap Responsive v2.3.1
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -21,6 +21,18 @@
21
21
  @import "compass_twitter_bootstrap/variables"; // Modify this for custom colors, font-sizes, etc
22
22
  @import "compass_twitter_bootstrap/mixins";
23
23
 
24
+ .clearfix {
25
+ @include ctb-clearfix();
26
+ }
27
+
28
+ .hide-text {
29
+ @include ctb-hide-text();
30
+ }
31
+
32
+ .input-block-level {
33
+ @include ctb-input-block-level();
34
+ }
35
+
24
36
 
25
37
  // RESPONSIVE CLASSES
26
38
  // ------------------
@@ -31,14 +43,14 @@
31
43
  // MEDIA QUERIES
32
44
  // ------------------
33
45
 
34
- // Phones to portrait tablets and narrow desktops
35
- @import "compass_twitter_bootstrap/responsive-767px-max";
46
+ // Large desktops
47
+ @import "compass_twitter_bootstrap/responsive-1200px-min";
36
48
 
37
49
  // Tablets to regular desktops
38
50
  @import "compass_twitter_bootstrap/responsive-768px-979px";
39
51
 
40
- // Large desktops
41
- @import "compass_twitter_bootstrap/responsive-1200px-min";
52
+ // Phones to portrait tablets and narrow desktops
53
+ @import "compass_twitter_bootstrap/responsive-767px-max";
42
54
 
43
55
 
44
56
  // RESPONSIVE NAVBAR
@@ -164,8 +164,6 @@
164
164
  margin-left: 0;
165
165
  }
166
166
  // Carets in other button sizes
167
- .btn-mini .caret,
168
- .btn-small .caret,
169
167
  .btn-large .caret {
170
168
  margin-top: 6px;
171
169
  }
@@ -174,6 +172,10 @@
174
172
  border-right-width: 5px;
175
173
  border-top-width: 5px;
176
174
  }
175
+ .btn-mini .caret,
176
+ .btn-small .caret {
177
+ margin-top: 8px;
178
+ }
177
179
  // Upside down carets for .dropup
178
180
  .dropup .btn-large .caret {
179
181
  border-bottom-width: 5px;
@@ -1,5 +1,5 @@
1
- @import "compass_twitter_bootstrap/mixins";
2
1
  @import "compass_twitter_bootstrap/variables";
2
+ @import "compass_twitter_bootstrap/mixins";
3
3
 
4
4
  //
5
5
  // Buttons
@@ -28,13 +28,14 @@
28
28
  @include ctb-ie7-restore-left-whitespace(); // Give IE7 some love
29
29
  @include ctb-box-shadow(#{inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05)});
30
30
 
31
- // Hover state
32
- &:hover {
31
+ // Hover/focus state
32
+ &:hover,
33
+ &:focus {
33
34
  color: $grayDark;
34
35
  text-decoration: none;
35
36
  background-position: 0 -15px;
36
37
 
37
- // transition is only when going to hover, otherwise the background
38
+ // transition is only when going to hover/focus, otherwise the background
38
39
  // behind the gradient (there for IE<=9 fallback) gets mismatched
39
40
  @include ctb-transition(background-position .1s linear);
40
41
  }
@@ -144,11 +145,6 @@ input[type="button"] {
144
145
 
145
146
  // Set the backgrounds
146
147
  // -------------------------
147
- .btn {
148
- // reset here as of 2.0.3 due to Recess property order
149
- border-color: #c5c5c5;
150
- border-color: rgba(0,0,0,.15) rgba(0,0,0,.15) rgba(0,0,0,.25);
151
- }
152
148
  .btn-primary {
153
149
  @include ctb-buttonBackground($btnPrimaryBackground, $btnPrimaryBackgroundHighlight);
154
150
  }
@@ -222,12 +218,14 @@ input[type="submit"].btn {
222
218
  color: $linkColor;
223
219
  @include ctb-border-radius(0);
224
220
  }
225
- .btn-link:hover {
221
+ .btn-link:hover,
222
+ .btn-link:focus {
226
223
  color: $linkColorHover;
227
224
  text-decoration: underline;
228
225
  background-color: transparent;
229
226
  }
230
- .btn-link[disabled]:hover {
227
+ .btn-link[disabled]:hover,
228
+ .btn-link[disabled]:focus {
231
229
  color: $grayDark;
232
230
  text-decoration: none;
233
231
  }
@@ -21,12 +21,13 @@
21
21
  display: none;
22
22
  position: relative;
23
23
  @include ctb-transition(.6s ease-in-out left);
24
- }
25
24
 
26
- // Account for jankitude on images
27
- > .item > img {
28
- display: block;
29
- line-height: 1;
25
+ // Account for jankitude on images
26
+ > img,
27
+ > a > img {
28
+ display: block;
29
+ line-height: 1;
30
+ }
30
31
  }
31
32
 
32
33
  > .active,
@@ -97,14 +98,40 @@
97
98
  right: 15px;
98
99
  }
99
100
 
100
- // Hover state
101
- &:hover {
101
+ // Hover/focus state
102
+ &:hover,
103
+ &:focus {
102
104
  color: $white;
103
105
  text-decoration: none;
104
106
  @include ctb-opacity(90);
105
107
  }
106
108
  }
107
109
 
110
+ // Carousel indicator pips
111
+ // -----------------------------
112
+ .carousel-indicators {
113
+ position: absolute;
114
+ top: 15px;
115
+ right: 15px;
116
+ z-index: 5;
117
+ margin: 0;
118
+ list-style: none;
119
+
120
+ li {
121
+ display: block;
122
+ float: left;
123
+ width: 10px;
124
+ height: 10px;
125
+ margin-left: 5px;
126
+ text-indent: -999px;
127
+ background-color: #ccc;
128
+ background-color: rgba(255,255,255,.25);
129
+ border-radius: 5px;
130
+ }
131
+ .active {
132
+ background-color: #fff;
133
+ }
134
+ }
108
135
 
109
136
  // Caption for text below images
110
137
  // -----------------------------
@@ -11,7 +11,8 @@
11
11
  color: $black;
12
12
  text-shadow: 0 1px 0 rgba(255,255,255,1);
13
13
  @include ctb-opacity(20);
14
- &:hover {
14
+ &:hover,
15
+ &:focus {
15
16
  color: $black;
16
17
  text-decoration: none;
17
18
  cursor: pointer;
@@ -72,7 +72,7 @@
72
72
  }
73
73
 
74
74
  // Links within the dropdown menu
75
- li > a {
75
+ > li > a {
76
76
  display: block;
77
77
  padding: 3px 20px;
78
78
  clear: both;
@@ -83,11 +83,12 @@
83
83
  }
84
84
  }
85
85
 
86
- // Hover state
86
+ // Hover/Focus state
87
87
  // -----------
88
- .dropdown-menu li > a:hover,
89
- .dropdown-menu li > a:focus,
90
- .dropdown-submenu:hover > a {
88
+ .dropdown-menu > li > a:hover,
89
+ .dropdown-menu > li > a:focus,
90
+ .dropdown-submenu:hover > a,
91
+ .dropdown-submenu:focus > a {
91
92
  text-decoration: none;
92
93
  color: $dropdownLinkColorHover;
93
94
  @include ctb-gradient-vertical($dropdownLinkBackgroundHover, darken($dropdownLinkBackgroundHover, 5%));
@@ -95,8 +96,9 @@
95
96
 
96
97
  // Active state
97
98
  // ------------
98
- .dropdown-menu .active > a,
99
- .dropdown-menu .active > a:hover {
99
+ .dropdown-menu > .active > a,
100
+ .dropdown-menu > .active > a:hover,
101
+ .dropdown-menu > .active > a:focus {
100
102
  color: $dropdownLinkColorActive;
101
103
  text-decoration: none;
102
104
  outline: 0;
@@ -105,13 +107,15 @@
105
107
 
106
108
  // Disabled state
107
109
  // --------------
108
- // Gray out text and ensure the hover state remains gray
109
- .dropdown-menu .disabled > a,
110
- .dropdown-menu .disabled > a:hover {
110
+ // Gray out text and ensure the hover/focus state remains gray
111
+ .dropdown-menu > .disabled > a,
112
+ .dropdown-menu > .disabled > a:hover,
113
+ .dropdown-menu > .disabled > a:focus {
111
114
  color: $grayLight;
112
115
  }
113
- // Nuke hover effects
114
- .dropdown-menu .disabled > a:hover {
116
+ // Nuke hover/focus effects
117
+ .dropdown-menu > .disabled > a:hover,
118
+ .dropdown-menu > .disabled > a:focus {
115
119
  text-decoration: none;
116
120
  background-color: transparent;
117
121
  background-image: none; // Remove CSS gradient
@@ -422,7 +422,9 @@ select:focus:invalid {
422
422
  // Allow us to put symbols and text within the input field for a cleaner look
423
423
  .input-append,
424
424
  .input-prepend {
425
- margin-bottom: 5px;
425
+ display: inline-block;
426
+ margin-bottom: $baseLineHeight / 2;
427
+ vertical-align: middle;
426
428
  font-size: 0; // white space collapse hack
427
429
  white-space: nowrap; // Prevent span and input from separating
428
430
 
@@ -430,7 +432,8 @@ select:focus:invalid {
430
432
  input,
431
433
  select,
432
434
  .uneditable-input,
433
- .dropdown-menu {
435
+ .dropdown-menu,
436
+ .popover {
434
437
  font-size: $baseFontSize;
435
438
  }
436
439
 
@@ -35,10 +35,12 @@
35
35
  }
36
36
  }
37
37
 
38
- // Hover state, but only for links
38
+ // Hover/focus state, but only for links
39
39
  a {
40
40
  &.label:hover,
41
- &.badge:hover {
41
+ &.label:focus,
42
+ &.badge:hover,
43
+ &.badge:focus {
42
44
  color: $white;
43
45
  text-decoration: none;
44
46
  cursor: pointer;
@@ -37,10 +37,10 @@
37
37
  // Media image alignment
38
38
  // -------------------------
39
39
 
40
- .media .pull-left {
40
+ .media > .pull-left {
41
41
  margin-right: 10px;
42
42
  }
43
- .media .pull-right {
43
+ .media > .pull-right {
44
44
  margin-left: 10px;
45
45
  }
46
46
 
@@ -111,6 +111,7 @@
111
111
  border: 0;
112
112
  }
113
113
 
114
+
114
115
  // FONTS
115
116
  // --------------------------------------------------
116
117
 
@@ -149,7 +150,7 @@
149
150
  @mixin ctb-input-block-level {
150
151
  display: block;
151
152
  width: 100%;
152
- min-height: 30px; // Make inputs at least the height of their button counterpart
153
+ min-height: $inputHeight; // Make inputs at least the height of their button counterpart (base line-height + padding + border)
153
154
  @include ctb-box-sizing(border-box); // Makes inputs behave like true block-level elements
154
155
  }
155
156
 
@@ -158,7 +159,7 @@
158
159
  // Mixin for form field states
159
160
  @mixin ctb-formFieldState($textColor: #555, $borderColor: #ccc, $backgroundColor: #f5f5f5) {
160
161
  // Set the text color
161
- > label,
162
+ .control-label,
162
163
  .help-block,
163
164
  .help-inline {
164
165
  color: $textColor;
@@ -170,6 +171,10 @@
170
171
  select,
171
172
  textarea {
172
173
  color: $textColor;
174
+ }
175
+ input,
176
+ select,
177
+ textarea {
173
178
  border-color: $borderColor;
174
179
  @include ctb-box-shadow(inset 0 1px 1px rgba(0,0,0,.075)); // Redeclare so transitions work
175
180
  &:focus {
@@ -255,6 +260,18 @@
255
260
  -o-transition: $transition;
256
261
  transition: $transition;
257
262
  }
263
+ @mixin ctb-transition-delay($transition-delay) {
264
+ -webkit-transition-delay: $transition-delay;
265
+ -moz-transition-delay: $transition-delay;
266
+ -o-transition-delay: $transition-delay;
267
+ transition-delay: $transition-delay;
268
+ }
269
+ @mixin ctb-transition-duration($transition-duration) {
270
+ -webkit-transition-duration: $transition-duration;
271
+ -moz-transition-duration: $transition-duration;
272
+ -o-transition-duration: $transition-duration;
273
+ transition-duration: $transition-duration;
274
+ }
258
275
 
259
276
  // Transformations
260
277
  @mixin ctb-rotate($degrees) {
@@ -278,15 +295,14 @@
278
295
  -o-transform: translate($x, $y);
279
296
  transform: translate($x, $y);
280
297
  }
281
-
282
298
  @mixin ctb-skew($x, $y) {
283
299
  -webkit-transform: skew($x, $y);
284
300
  -moz-transform: skew($x, $y);
285
- -ms-transform: skew($x, $y);
301
+ -ms-transform: skewX($x) skewY($y); // See https://github.com/twitter/bootstrap/issues/4885
286
302
  -o-transform: skew($x, $y);
287
303
  transform: skew($x, $y);
304
+ -webkit-backface-visibility: hidden; // See https://github.com/twitter/bootstrap/issues/5319
288
305
  }
289
-
290
306
  @mixin ctb-translate3d($x, $y, $z) {
291
307
  -webkit-transform: translate3d($x, $y, $z);
292
308
  -moz-transform: translate3d($x, $y, $z);
@@ -423,6 +439,16 @@
423
439
  background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
424
440
  background-image: linear-gradient($deg, $startColor, $endColor); // Standard, IE10
425
441
  }
442
+ @mixin ctb-gradient-horizontal-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
443
+ background-color: mix($midColor, $endColor, 80%);
444
+ background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
445
+ background-image: -webkit-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
446
+ background-image: -moz-linear-gradient(left, $startColor, $midColor $colorStop*100%, $endColor);
447
+ background-image: -o-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
448
+ background-image: linear-gradient(to right, $startColor, $midColor $colorStop, $endColor);
449
+ background-repeat: no-repeat;
450
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{darken($startColor, 1%)}', endColorstr='#{darken($endColor, 1%)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
451
+ }
426
452
  @mixin ctb-gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
427
453
  background-color: mix($midColor, $endColor, 80%);
428
454
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
@@ -441,7 +467,7 @@
441
467
  background-image: -o-radial-gradient(circle, $innerColor, $outerColor);
442
468
  background-repeat: no-repeat;
443
469
  }
444
- @mixin ctb-gradient-striped($color, $angle: 45deg) {
470
+ @mixin ctb-gradient-striped($color: #555, $angle: 45deg) {
445
471
  background-color: $color;
446
472
  background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(.25, rgba(255,255,255,.15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255,255,255,.15)), color-stop(.75, rgba(255,255,255,.15)), color-stop(.75, transparent), to(transparent));
447
473
  background-image: -webkit-linear-gradient($angle, rgba(255,255,255,.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.15) 50%, rgba(255,255,255,.15) 75%, transparent 75%, transparent);
@@ -486,7 +512,7 @@
486
512
  @include ctb-gradient-reset-filter();
487
513
 
488
514
  // in these cases the gradient won't cover the background, so we override
489
- &:hover, &:active, &.active, &.disabled, &[disabled] {
515
+ &:hover, &:focus, &:active, &.active, &.disabled, &[disabled] {
490
516
  color: $textColor;
491
517
  background-color: $endColor;
492
518
  *background-color: darken($endColor, 5%);
@@ -509,7 +535,6 @@
509
535
 
510
536
 
511
537
 
512
-
513
538
  // Grid System
514
539
  // -----------
515
540
 
@@ -556,6 +581,7 @@
556
581
 
557
582
  [class*="span"] {
558
583
  float: left;
584
+ min-height: 1px; // prevent collapsing columns
559
585
  margin-left: $gutterWidth;
560
586
  }
561
587
 
@@ -610,6 +636,11 @@
610
636
  margin-left: 0;
611
637
  }
612
638
 
639
+ // Space grid-sized controls properly if multiple per line
640
+ .controls-row [class*="span"] + [class*="span"] {
641
+ margin-left: $gutterWidth;
642
+ }
643
+
613
644
  // generate .spanX and .offsetX
614
645
  $i: $gridColumns;
615
646
  @while $i > 0 {