compass_twitter_bootstrap 2.0.3 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. data/CHANGELOG.md +6 -0
  2. data/README.md +41 -7
  3. data/build/convert.rb +27 -11
  4. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  5. data/stylesheets/_compass_twitter_bootstrap.scss +2 -1
  6. data/stylesheets/_compass_twitter_bootstrap_awesome.scss +1 -1
  7. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +1 -1
  8. data/stylesheets/compass_twitter_bootstrap/_accordion.scss +4 -3
  9. data/stylesheets/compass_twitter_bootstrap/_alerts.scss +31 -10
  10. data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +14 -14
  11. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +91 -55
  12. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +126 -84
  13. data/stylesheets/compass_twitter_bootstrap/_carousel.scss +33 -23
  14. data/stylesheets/compass_twitter_bootstrap/_close.scss +7 -5
  15. data/stylesheets/compass_twitter_bootstrap/_code.scss +12 -8
  16. data/stylesheets/compass_twitter_bootstrap/_component-animations.scss +9 -7
  17. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +112 -22
  18. data/stylesheets/compass_twitter_bootstrap/_font-awesome.scss +258 -196
  19. data/stylesheets/compass_twitter_bootstrap/_forms.scss +262 -161
  20. data/stylesheets/compass_twitter_bootstrap/_grid.scss +18 -2
  21. data/stylesheets/compass_twitter_bootstrap/_hero-unit.scss +11 -8
  22. data/stylesheets/compass_twitter_bootstrap/_labels-badges.scss +42 -26
  23. data/stylesheets/compass_twitter_bootstrap/_layouts.scss +3 -4
  24. data/stylesheets/compass_twitter_bootstrap/_media.scss +55 -0
  25. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +243 -189
  26. data/stylesheets/compass_twitter_bootstrap/_modals.scss +28 -23
  27. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +269 -143
  28. data/stylesheets/compass_twitter_bootstrap/_navs.scss +59 -46
  29. data/stylesheets/compass_twitter_bootstrap/_pager.scss +17 -12
  30. data/stylesheets/compass_twitter_bootstrap/_pagination.scss +92 -27
  31. data/stylesheets/compass_twitter_bootstrap/_popovers.scss +116 -36
  32. data/stylesheets/compass_twitter_bootstrap/_progress-bars.scss +35 -30
  33. data/stylesheets/compass_twitter_bootstrap/_reset.scss +101 -11
  34. data/stylesheets/compass_twitter_bootstrap/_responsive-1200px-min.scss +9 -7
  35. data/stylesheets/compass_twitter_bootstrap/_responsive-767px-max.scss +115 -71
  36. data/stylesheets/compass_twitter_bootstrap/_responsive-768px-979px.scss +8 -6
  37. data/stylesheets/compass_twitter_bootstrap/_responsive-navbar.scss +53 -14
  38. data/stylesheets/compass_twitter_bootstrap/_responsive-utilities.scss +17 -15
  39. data/stylesheets/compass_twitter_bootstrap/_responsive.scss +48 -0
  40. data/stylesheets/compass_twitter_bootstrap/_scaffolding.scss +27 -4
  41. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +24 -22
  42. data/stylesheets/compass_twitter_bootstrap/_tables.scss +122 -61
  43. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +12 -7
  44. data/stylesheets/compass_twitter_bootstrap/_tooltip.scss +50 -15
  45. data/stylesheets/compass_twitter_bootstrap/_type.scss +93 -93
  46. data/stylesheets/compass_twitter_bootstrap/_utilities.scss +9 -2
  47. data/stylesheets/compass_twitter_bootstrap/_variables.scss +134 -38
  48. data/stylesheets/compass_twitter_bootstrap/_wells.scss +11 -10
  49. data/stylesheets_sass/_compass_twitter_bootstrap.sass +2 -1
  50. data/stylesheets_sass/_compass_twitter_bootstrap_awesome.sass +1 -1
  51. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +1 -1
  52. data/stylesheets_sass/compass_twitter_bootstrap/_accordion.sass +4 -3
  53. data/stylesheets_sass/compass_twitter_bootstrap/_alerts.sass +27 -9
  54. data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +12 -13
  55. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +93 -55
  56. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +113 -88
  57. data/stylesheets_sass/compass_twitter_bootstrap/_carousel.sass +31 -23
  58. data/stylesheets_sass/compass_twitter_bootstrap/_close.sass +5 -4
  59. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +12 -9
  60. data/stylesheets_sass/compass_twitter_bootstrap/_component-animations.sass +7 -6
  61. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +105 -21
  62. data/stylesheets_sass/compass_twitter_bootstrap/_font-awesome.sass +228 -31
  63. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +255 -155
  64. data/stylesheets_sass/compass_twitter_bootstrap/_grid.sass +16 -2
  65. data/stylesheets_sass/compass_twitter_bootstrap/_hero-unit.sass +10 -7
  66. data/stylesheets_sass/compass_twitter_bootstrap/_labels-badges.sass +38 -31
  67. data/stylesheets_sass/compass_twitter_bootstrap/_layouts.sass +3 -4
  68. data/stylesheets_sass/compass_twitter_bootstrap/_media.sass +48 -0
  69. data/stylesheets_sass/compass_twitter_bootstrap/_mixins.sass +215 -174
  70. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +25 -26
  71. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +229 -134
  72. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +53 -46
  73. data/stylesheets_sass/compass_twitter_bootstrap/_pager.sass +16 -12
  74. data/stylesheets_sass/compass_twitter_bootstrap/_pagination.sass +78 -23
  75. data/stylesheets_sass/compass_twitter_bootstrap/_popovers.sass +106 -40
  76. data/stylesheets_sass/compass_twitter_bootstrap/_progress-bars.sass +35 -30
  77. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +80 -12
  78. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-1200px-min.sass +8 -7
  79. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-767px-max.sass +89 -54
  80. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-768px-979px.sass +7 -6
  81. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-navbar.sass +38 -13
  82. data/stylesheets_sass/compass_twitter_bootstrap/_responsive-utilities.sass +18 -17
  83. data/stylesheets_sass/compass_twitter_bootstrap/_responsive.sass +44 -0
  84. data/stylesheets_sass/compass_twitter_bootstrap/_scaffolding.sass +24 -4
  85. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +25 -8
  86. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +110 -83
  87. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +11 -7
  88. data/stylesheets_sass/compass_twitter_bootstrap/_tooltip.sass +43 -19
  89. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +123 -75
  90. data/stylesheets_sass/compass_twitter_bootstrap/_utilities.sass +7 -2
  91. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +141 -37
  92. data/stylesheets_sass/compass_twitter_bootstrap/_wells.sass +10 -9
  93. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  94. data/vendor/assets/fonts/fontawesome-webfont.svg +247 -167
  95. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  96. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  97. data/vendor/assets/images/glyphicons-halflings-white.png +0 -0
  98. data/vendor/assets/images/glyphicons-halflings.png +0 -0
  99. data/vendor/assets/javascripts/bootstrap-affix.js +117 -0
  100. data/vendor/assets/javascripts/bootstrap-alert.js +13 -4
  101. data/vendor/assets/javascripts/bootstrap-all.js +2 -1
  102. data/vendor/assets/javascripts/bootstrap-button.js +17 -8
  103. data/vendor/assets/javascripts/bootstrap-carousel.js +30 -14
  104. data/vendor/assets/javascripts/bootstrap-collapse.js +24 -14
  105. data/vendor/assets/javascripts/bootstrap-dropdown.js +80 -19
  106. data/vendor/assets/javascripts/bootstrap-modal.js +111 -84
  107. data/vendor/assets/javascripts/bootstrap-popover.js +21 -5
  108. data/vendor/assets/javascripts/bootstrap-scrollspy.js +21 -10
  109. data/vendor/assets/javascripts/bootstrap-tab.js +17 -8
  110. data/vendor/assets/javascripts/bootstrap-tooltip.js +36 -24
  111. data/vendor/assets/javascripts/bootstrap-transition.js +6 -7
  112. data/vendor/assets/javascripts/bootstrap-typeahead.js +87 -49
  113. metadata +17 -7
@@ -1,12 +1,15 @@
1
- // THUMBNAILS
2
- // ----------
1
+ //
2
+ // Thumbnails
3
+ // --------------------------------------------------
4
+
5
+
3
6
  // Note: `.thumbnails` and `.thumbnails > li` are overriden in responsive files
4
7
 
5
8
  // Make wrapper ul behave like the grid
6
9
  .thumbnails {
7
10
  margin-left: -$gridGutterWidth;
8
11
  list-style: none;
9
- @include bootstrap-clearfix();
12
+ @include ctb-clearfix();
10
13
  }
11
14
  // Fluid rows have no left margin
12
15
  .row-fluid .thumbnails {
@@ -24,15 +27,16 @@
24
27
  .thumbnail {
25
28
  display: block;
26
29
  padding: 4px;
27
- line-height: 1;
30
+ line-height: $baseLineHeight;
28
31
  border: 1px solid #ddd;
29
- @include bootstrap-border-radius(4px);
30
- @include bootstrap-box-shadow(0 1px 1px rgba(0,0,0,.075));
32
+ @include ctb-border-radius($baseBorderRadius);
33
+ @include ctb-box-shadow(0 1px 3px rgba(0,0,0,.055));
34
+ @include ctb-transition(all .2s ease-in-out);
31
35
  }
32
36
  // Add a hover state for linked versions only
33
37
  a.thumbnail:hover {
34
38
  border-color: $linkColor;
35
- @include bootstrap-box-shadow(0 1px 4px rgba(0,105,214,.25));
39
+ @include ctb-box-shadow(0 1px 4px rgba(0,105,214,.25));
36
40
  }
37
41
 
38
42
  // Images and captions
@@ -44,4 +48,5 @@ a.thumbnail:hover {
44
48
  }
45
49
  .thumbnail .caption {
46
50
  padding: 9px;
51
+ color: $gray;
47
52
  }
@@ -1,6 +1,9 @@
1
- // TOOLTIP
2
- // ------=
1
+ //
2
+ // Tooltips
3
+ // --------------------------------------------------
3
4
 
5
+
6
+ // Base class
4
7
  .tooltip {
5
8
  position: absolute;
6
9
  z-index: $zindexTooltip;
@@ -8,28 +11,60 @@
8
11
  visibility: visible;
9
12
  padding: 5px;
10
13
  font-size: 11px;
11
- @include bootstrap-opacity(0);
12
- &.in { @include bootstrap-opacity(80); }
13
- &.top { margin-top: -2px; }
14
- &.right { margin-left: 2px; }
15
- &.bottom { margin-top: 2px; }
16
- &.left { margin-left: -2px; }
17
- &.top .tooltip-arrow { @include bootstrap-popoverArrow-top(); }
18
- &.left .tooltip-arrow { @include bootstrap-popoverArrow-left(); }
19
- &.bottom .tooltip-arrow { @include bootstrap-popoverArrow-bottom(); }
20
- &.right .tooltip-arrow { @include bootstrap-popoverArrow-right(); }
14
+ @include ctb-opacity(0);
15
+ &.in { @include ctb-opacity(80); }
16
+ &.top { margin-top: -3px; }
17
+ &.right { margin-left: 3px; }
18
+ &.bottom { margin-top: 3px; }
19
+ &.left { margin-left: -3px; }
21
20
  }
21
+
22
+ // Wrapper for the tooltip content
22
23
  .tooltip-inner {
23
24
  max-width: 200px;
24
25
  padding: 3px 8px;
25
- color: $white;
26
+ color: $tooltipColor;
26
27
  text-align: center;
27
28
  text-decoration: none;
28
- background-color: $black;
29
- @include bootstrap-border-radius(4px);
29
+ background-color: $tooltipBackground;
30
+ @include ctb-border-radius($baseBorderRadius);
30
31
  }
32
+
33
+ // Arrows
31
34
  .tooltip-arrow {
32
35
  position: absolute;
33
36
  width: 0;
34
37
  height: 0;
38
+ border-color: transparent;
39
+ border-style: solid;
40
+ }
41
+ .tooltip {
42
+ &.top .tooltip-arrow {
43
+ bottom: 0;
44
+ left: 50%;
45
+ margin-left: -$tooltipArrowWidth;
46
+ border-width: $tooltipArrowWidth $tooltipArrowWidth 0;
47
+ border-top-color: $tooltipArrowColor;
48
+ }
49
+ &.right .tooltip-arrow {
50
+ top: 50%;
51
+ left: 0;
52
+ margin-top: -$tooltipArrowWidth;
53
+ border-width: $tooltipArrowWidth $tooltipArrowWidth $tooltipArrowWidth 0;
54
+ border-right-color: $tooltipArrowColor;
55
+ }
56
+ &.left .tooltip-arrow {
57
+ top: 50%;
58
+ right: 0;
59
+ margin-top: -$tooltipArrowWidth;
60
+ border-width: $tooltipArrowWidth 0 $tooltipArrowWidth $tooltipArrowWidth;
61
+ border-left-color: $tooltipArrowColor;
62
+ }
63
+ &.bottom .tooltip-arrow {
64
+ top: 0;
65
+ left: 50%;
66
+ margin-left: -$tooltipArrowWidth;
67
+ border-width: 0 $tooltipArrowWidth $tooltipArrowWidth;
68
+ border-bottom-color: $tooltipArrowColor;
69
+ }
35
70
  }
@@ -1,95 +1,96 @@
1
- // Typography.less
2
- // Headings, body text, lists, code, and more for a versatile and durable typography system
3
- // ----------------------------------------------------------------------------------------
1
+ //
2
+ // Typography
3
+ // --------------------------------------------------
4
4
 
5
5
 
6
- // BODY TEXT
7
- // ---------
6
+ // Body text
7
+ // -------------------------
8
8
 
9
9
  p {
10
10
  margin: 0 0 $baseLineHeight / 2;
11
- font-family: $baseFontFamily;
12
- font-size: $baseFontSize;
13
- line-height: $baseLineHeight;
14
- small {
15
- font-size: $baseFontSize - 2;
16
- color: $grayLight;
17
- }
18
11
  }
19
12
  .lead {
20
13
  margin-bottom: $baseLineHeight;
21
- font-size: 20px;
14
+ font-size: $baseFontSize * 1.5;
22
15
  font-weight: 200;
23
16
  line-height: $baseLineHeight * 1.5;
24
17
  }
25
18
 
26
- // HEADINGS
27
- // --------
19
+
20
+ // Emphasis & misc
21
+ // -------------------------
22
+
23
+ // Ex: 14px base font * 85% = about 12px
24
+ small { font-size: 85%; }
25
+
26
+ strong { font-weight: bold; }
27
+ em { font-style: italic; }
28
+ cite { font-style: normal; }
29
+
30
+ // Utility classes
31
+ .muted { color: $grayLight; }
32
+ a.muted:hover { color: darken($grayLight, 10%); }
33
+
34
+ .text-warning { color: $warningText; }
35
+ a.text-warning:hover { color: darken($warningText, 10%); }
36
+
37
+ .text-error { color: $errorText; }
38
+ a.text-error:hover { color: darken($errorText, 10%); }
39
+
40
+ .text-info { color: $infoText; }
41
+ a.text-info:hover { color: darken($infoText, 10%); }
42
+
43
+ .text-success { color: $successText; }
44
+ a.text-success:hover { color: darken($successText, 10%); }
45
+
46
+
47
+ // Headings
48
+ // -------------------------
28
49
 
29
50
  h1, h2, h3, h4, h5, h6 {
30
- margin: 0;
51
+ margin: ($baseLineHeight / 2) 0;
31
52
  font-family: $headingsFontFamily;
32
53
  font-weight: $headingsFontWeight;
54
+ line-height: $baseLineHeight;
33
55
  color: $headingsColor;
34
56
  text-rendering: optimizelegibility; // Fix the character spacing for headings
35
57
  small {
36
58
  font-weight: normal;
59
+ line-height: 1;
37
60
  color: $grayLight;
38
61
  }
39
62
  }
40
- h1 {
41
- font-size: 30px;
42
- line-height: $baseLineHeight * 2;
43
- small {
44
- font-size: 18px;
45
- }
46
- }
47
- h2 {
48
- font-size: 24px;
49
- line-height: $baseLineHeight * 2;
50
- small {
51
- font-size: 18px;
52
- }
53
- }
54
- h3 {
55
- font-size: 18px;
56
- line-height: $baseLineHeight * 1.5;
57
- small {
58
- font-size: 14px;
59
- }
60
- }
61
- h4, h5, h6 {
62
- line-height: $baseLineHeight;
63
- }
64
- h4 {
65
- font-size: 14px;
66
- small {
67
- font-size: 12px;
68
- }
69
- }
70
- h5 {
71
- font-size: 12px;
72
- }
73
- h6 {
74
- font-size: 11px;
75
- color: $grayLight;
76
- text-transform: uppercase;
77
- }
63
+
64
+ h1,
65
+ h2,
66
+ h3 { line-height: $baseLineHeight * 2; }
67
+
68
+ h1 { font-size: $baseFontSize * 2.75; } // ~38px
69
+ h2 { font-size: $baseFontSize * 2.25; } // ~32px
70
+ h3 { font-size: $baseFontSize * 1.75; } // ~24px
71
+ h4 { font-size: $baseFontSize * 1.25; } // ~18px
72
+ h5 { font-size: $baseFontSize; }
73
+ h6 { font-size: $baseFontSize * 0.85; } // ~12px
74
+
75
+ h1 small { font-size: $baseFontSize * 1.75; } // ~24px
76
+ h2 small { font-size: $baseFontSize * 1.25; } // ~18px
77
+ h3 small { font-size: $baseFontSize; }
78
+ h4 small { font-size: $baseFontSize; }
79
+
78
80
 
79
81
  // Page header
82
+ // -------------------------
83
+
80
84
  .page-header {
81
- padding-bottom: $baseLineHeight - 1;
82
- margin: $baseLineHeight 0;
85
+ padding-bottom: ($baseLineHeight / 2) - 1;
86
+ margin: $baseLineHeight 0 ($baseLineHeight * 1.5);
83
87
  border-bottom: 1px solid $grayLighter;
84
88
  }
85
- .page-header h1 {
86
- line-height: 1;
87
- }
88
89
 
89
90
 
90
91
 
91
- // LISTS
92
- // -----
92
+ // Lists
93
+ // --------------------------------------------------
93
94
 
94
95
  // Unordered and Ordered lists
95
96
  ul, ol {
@@ -102,21 +103,29 @@ ol ol,
102
103
  ol ul {
103
104
  margin-bottom: 0;
104
105
  }
105
- ul {
106
- list-style: disc;
107
- }
108
- ol {
109
- list-style: decimal;
110
- }
111
106
  li {
112
107
  line-height: $baseLineHeight;
113
108
  }
109
+
110
+ // Remove default list styles
114
111
  ul.unstyled,
115
112
  ol.unstyled {
116
113
  margin-left: 0;
117
114
  list-style: none;
118
115
  }
119
116
 
117
+ // Single-line list items
118
+ ul.inline,
119
+ ol.inline {
120
+ margin-left: 0;
121
+ list-style: none;
122
+ & > li {
123
+ display: inline-block;
124
+ padding-left: 5px;
125
+ padding-right: 5px;
126
+ }
127
+ }
128
+
120
129
  // Description Lists
121
130
  dl {
122
131
  margin-bottom: $baseLineHeight;
@@ -127,22 +136,22 @@ dd {
127
136
  }
128
137
  dt {
129
138
  font-weight: bold;
130
- line-height: $baseLineHeight - 1; // fix jank Helvetica Neue font bug
131
139
  }
132
140
  dd {
133
141
  margin-left: $baseLineHeight / 2;
134
142
  }
135
143
  // Horizontal layout (like forms)
136
144
  .dl-horizontal {
145
+ @include ctb-clearfix(); // Ensure dl clears floats if empty dd elements present
137
146
  dt {
138
147
  float: left;
139
- width: 120px;
148
+ width: $horizontalComponentOffset - 20;
140
149
  clear: left;
141
150
  text-align: right;
142
- @include bootstrap-text-overflow();
151
+ @include ctb-text-overflow();
143
152
  }
144
153
  dd {
145
- margin-left: 130px;
154
+ margin-left: $horizontalComponentOffset;
146
155
  }
147
156
  }
148
157
 
@@ -157,21 +166,12 @@ hr {
157
166
  border-bottom: 1px solid $white;
158
167
  }
159
168
 
160
- // Emphasis
161
- strong {
162
- font-weight: bold;
163
- }
164
- em {
165
- font-style: italic;
166
- }
167
- .muted {
168
- color: $grayLight;
169
- }
170
-
171
169
  // Abbreviations and acronyms
172
- abbr[title] {
170
+ abbr[title],
171
+ // Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257
172
+ abbr[data-original-title] {
173
173
  cursor: help;
174
- border-bottom: 1px dotted #ddd;
174
+ border-bottom: 1px dotted $grayLight;
175
175
  }
176
176
  abbr.initialism {
177
177
  font-size: 90%;
@@ -185,7 +185,7 @@ blockquote {
185
185
  border-left: 5px solid $grayLighter;
186
186
  p {
187
187
  margin-bottom: 0;
188
- @include bootstrap-font-shorthand(16px,300,$baseLineHeight * 1.25);
188
+ @include ctb-font-shorthand(16px,300,$baseLineHeight * 1.25);
189
189
  }
190
190
  small {
191
191
  display: block;
@@ -207,6 +207,14 @@ blockquote {
207
207
  small {
208
208
  text-align: right;
209
209
  }
210
+ small {
211
+ &:before {
212
+ content: '';
213
+ }
214
+ &:after {
215
+ content: '\00A0 \2014';
216
+ }
217
+ }
210
218
  }
211
219
  }
212
220
 
@@ -225,11 +233,3 @@ address {
225
233
  font-style: normal;
226
234
  line-height: $baseLineHeight;
227
235
  }
228
-
229
- // Misc
230
- small {
231
- font-size: 100%;
232
- }
233
- cite {
234
- font-style: normal;
235
- }
@@ -1,5 +1,7 @@
1
- // UTILITY CLASSES
2
- // ---------------
1
+ //
2
+ // Utility classes
3
+ // --------------------------------------------------
4
+
3
5
 
4
6
  // Quick floats
5
7
  .pull-right {
@@ -21,3 +23,8 @@
21
23
  .invisible {
22
24
  visibility: hidden;
23
25
  }
26
+
27
+ // For Affix plugin
28
+ .affix {
29
+ position: fixed;
30
+ }
@@ -1,10 +1,9 @@
1
- // Variables.less
2
- // Variables to customize the look and feel of Bootstrap
3
- // -----------------------------------------------------
4
-
1
+ //
2
+ // Variables
3
+ // --------------------------------------------------
5
4
 
6
5
 
7
- // GLOBAL VALUES
6
+ // Global values
8
7
  // --------------------------------------------------
9
8
 
10
9
 
@@ -47,34 +46,50 @@ $linkColorHover: darken($linkColor, 15%) !default;
47
46
  // -------------------------
48
47
  $sansFontFamily: "Helvetica Neue", Helvetica, Arial, sans-serif !default;
49
48
  $serifFontFamily: Georgia, "Times New Roman", Times, serif !default;
50
- $monoFontFamily: Menlo, Monaco, Consolas, "Courier New", monospace !default;
49
+ $monoFontFamily: Monaco, Menlo, Consolas, "Courier New", monospace !default;
51
50
 
52
- $baseFontSize: 13px !default;
51
+ $baseFontSize: 14px !default;
53
52
  $baseFontFamily: $sansFontFamily !default;
54
- $baseLineHeight: 18px !default;
53
+ $baseLineHeight: 20px !default;
55
54
  $altFontFamily: $serifFontFamily !default;
56
55
 
57
- $headingsFontFamily: inherit !default; // empty to use BS default, $baseFontFamily
58
- $headingsFontWeight: bold !default; // instead of browser default, bold
59
- $headingsColor: inherit !default; // empty to use BS default, $textColor
56
+ $headingsFontFamily: inherit; // empty to use BS default, $baseFontFamily
57
+ $headingsFontWeight: bold; // instead of browser default, bold
58
+ $headingsColor: inherit; // empty to use BS default, $textColor
60
59
 
61
60
 
62
- // Tables
61
+ // Component sizing
63
62
  // -------------------------
64
- $tableBackground: transparent !default; // overall background-color
65
- $tableBackgroundAccent: #f9f9f9 !default; // for striping
66
- $tableBackgroundHover: #f5f5f5 !default; // for hover
67
- $tableBorder: #ddd !default; // table and cell border
63
+ // Based on 14px font-size and 20px line-height
64
+
65
+ $fontSizeLarge: $baseFontSize * 1.25; // ~18px
66
+ $fontSizeSmall: $baseFontSize * 0.85; // ~12px
67
+ $fontSizeMini: $baseFontSize * 0.75; // ~11px
68
+
69
+ $paddingLarge: 11px 19px; // 44px
70
+ $paddingSmall: 2px 10px; // 26px
71
+ $paddingMini: 0 6px; // 22px
68
72
 
73
+ $baseBorderRadius: 4px !default;
74
+ $borderRadiusLarge: 6px !default;
75
+ $borderRadiusSmall: 3px !default;
76
+
77
+
78
+ // Tables
79
+ // -------------------------
80
+ $tableBackground: transparent; // overall background-color
81
+ $tableBackgroundAccent: #f9f9f9; // for striping
82
+ $tableBackgroundHover: #f5f5f5; // for hover
83
+ $tableBorder: #ddd; // table and cell border
69
84
 
70
85
  // Buttons
71
86
  // -------------------------
72
87
  $btnBackground: $white !default;
73
88
  $btnBackgroundHighlight: darken($white, 10%) !default;
74
- $btnBorder: #ccc !default;
89
+ $btnBorder: #bbb !default;
75
90
 
76
91
  $btnPrimaryBackground: $linkColor !default;
77
- $btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 15%) !default;
92
+ $btnPrimaryBackgroundHighlight: adjust-hue($btnPrimaryBackground, 20%) !default;
78
93
 
79
94
  $btnInfoBackground: #5bc0de !default;
80
95
  $btnInfoBackgroundHighlight: #2f96b4 !default;
@@ -88,7 +103,7 @@ $btnWarningBackgroundHighlight: $orange !default;
88
103
  $btnDangerBackground: #ee5f5b !default;
89
104
  $btnDangerBackgroundHighlight: #bd362f !default;
90
105
 
91
- $btnInverseBackground: $gray !default;
106
+ $btnInverseBackground: #444 !default;
92
107
  $btnInverseBackgroundHighlight: $grayDarker !default;
93
108
 
94
109
 
@@ -96,31 +111,39 @@ $btnInverseBackgroundHighlight: $grayDarker !default;
96
111
  // -------------------------
97
112
  $inputBackground: $white !default;
98
113
  $inputBorder: #ccc !default;
99
- $inputBorderRadius: 3px !default;
114
+ $inputBorderRadius: $baseBorderRadius !default;
100
115
  $inputDisabledBackground: $grayLighter !default;
101
116
  $formActionsBackground: #f5f5f5 !default;
117
+ $inputHeight: $baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
118
+
102
119
 
103
120
  // Dropdowns
104
121
  // -------------------------
105
122
  $dropdownBackground: $white !default;
106
123
  $dropdownBorder: rgba(0,0,0,.2) !default;
124
+ $dropdownDividerTop: #e5e5e5 !default;
125
+ $dropdownDividerBottom: $white !default;
126
+
107
127
  $dropdownLinkColor: $grayDark !default;
108
128
  $dropdownLinkColorHover: $white !default;
109
- $dropdownLinkBackgroundHover: $linkColor !default;
129
+ $dropdownLinkColorActive: $white !default;
110
130
 
131
+ $dropdownLinkBackgroundActive: $linkColor !default;
132
+ $dropdownLinkBackgroundHover: $dropdownLinkBackgroundActive !default;
111
133
 
112
134
 
113
135
 
114
136
  // COMPONENT VARIABLES
115
137
  // --------------------------------------------------
116
138
 
139
+
117
140
  // Z-index master list
118
141
  // -------------------------
119
142
  // Used for a bird's eye view of components dependent on the z-axis
120
143
  // Try to avoid customizing these :)
121
144
  $zindexDropdown: 1000 !default;
122
145
  $zindexPopover: 1010 !default;
123
- $zindexTooltip: 1020 !default;
146
+ $zindexTooltip: 1030 !default;
124
147
  $zindexFixedNavbar: 1030 !default;
125
148
  $zindexModalBackdrop: 1040 !default;
126
149
  $zindexModal: 1050 !default;
@@ -128,8 +151,8 @@ $zindexModal: 1050 !default;
128
151
 
129
152
  // Sprite icons path
130
153
  // -------------------------
131
- $iconSpritePath: "../img/glyphicons-halflings.png" !default;
132
- $iconWhiteSpritePath: "../img/glyphicons-halflings-white.png" !default;
154
+ $iconSpritePath: "glyphicons-halflings.png" !default;
155
+ $iconWhiteSpritePath: "glyphicons-halflings-white.png" !default;
133
156
 
134
157
 
135
158
  // Input placeholder text color
@@ -142,25 +165,61 @@ $placeholderText: $grayLight !default;
142
165
  $hrBorder: $grayLighter !default;
143
166
 
144
167
 
168
+ // Horizontal forms & lists
169
+ // -------------------------
170
+ $horizontalComponentOffset: 180px !default;
171
+
172
+
173
+ // Wells
174
+ // -------------------------
175
+ $wellBackground: #f5f5f5 !default;
176
+
177
+
145
178
  // Navbar
146
179
  // -------------------------
147
- $navbarHeight: 40px !default;
148
- $navbarBackground: $grayDarker !default;
149
- $navbarBackgroundHighlight: $grayDark !default;
180
+ $navbarCollapseWidth: 979px !default;
181
+ $navbarCollapseDesktopWidth: $navbarCollapseWidth + 1 !default;
150
182
 
151
- $navbarText: $grayLight !default;
152
- $navbarLinkColor: $grayLight !default;
153
- $navbarLinkColorHover: $white !default;
154
- $navbarLinkColorActive: $navbarLinkColorHover !default;
183
+ $navbarHeight: 40px !default;
184
+ $navbarBackgroundHighlight: #ffffff !default;
185
+ $navbarBackground: darken($navbarBackgroundHighlight, 5%) !default;
186
+ $navbarBorder: darken($navbarBackground, 12%) !default;
187
+
188
+ $navbarText: #777 !default;
189
+ $navbarLinkColor: #777 !default;
190
+ $navbarLinkColorHover: $grayDark !default;
191
+ $navbarLinkColorActive: $gray !default;
155
192
  $navbarLinkBackgroundHover: transparent !default;
156
- $navbarLinkBackgroundActive: $navbarBackground !default;
193
+ $navbarLinkBackgroundActive: darken($navbarBackground, 5%) !default;
157
194
 
158
- $navbarSearchBackground: lighten($navbarBackground, 25%) !default;
159
- $navbarSearchBackgroundFocus: $white !default;
160
- $navbarSearchBorder: darken($navbarSearchBackground, 30%) !default;
161
- $navbarSearchPlaceholderColor: #ccc !default;
162
195
  $navbarBrandColor: $navbarLinkColor !default;
163
196
 
197
+ // Inverted navbar
198
+ $navbarInverseBackground: #111111 !default;
199
+ $navbarInverseBackgroundHighlight: #222222 !default;
200
+ $navbarInverseBorder: #252525 !default;
201
+
202
+ $navbarInverseText: $grayLight !default;
203
+ $navbarInverseLinkColor: $grayLight !default;
204
+ $navbarInverseLinkColorHover: $white !default;
205
+ $navbarInverseLinkColorActive: $navbarInverseLinkColorHover !default;
206
+ $navbarInverseLinkBackgroundHover: transparent !default;
207
+ $navbarInverseLinkBackgroundActive: $navbarInverseBackground !default;
208
+
209
+ $navbarInverseSearchBackground: lighten($navbarInverseBackground, 25%) !default;
210
+ $navbarInverseSearchBackgroundFocus: $white !default;
211
+ $navbarInverseSearchBorder: $navbarInverseBackground !default;
212
+ $navbarInverseSearchPlaceholderColor: #ccc !default;
213
+
214
+ $navbarInverseBrandColor: $navbarInverseLinkColor !default;
215
+
216
+
217
+ // Pagination
218
+ // -------------------------
219
+ $paginationBackground: #fff !default;
220
+ $paginationBorder: #ddd !default;
221
+ $paginationActiveBackground: #f5f5f5 !default;
222
+
164
223
 
165
224
  // Hero unit
166
225
  // -------------------------
@@ -188,10 +247,28 @@ $infoBackground: #d9edf7 !default;
188
247
  $infoBorder: darken(adjust-hue($infoBackground, -10), 7%) !default;
189
248
 
190
249
 
250
+ // Tooltips and popovers
251
+ // -------------------------
252
+ $tooltipColor: #fff !default;
253
+ $tooltipBackground: #000 !default;
254
+ $tooltipArrowWidth: 5px !default;
255
+ $tooltipArrowColor: $tooltipBackground !default;
256
+
257
+ $popoverBackground: #fff !default;
258
+ $popoverArrowWidth: 10px !default;
259
+ $popoverArrowColor: #fff !default;
260
+ $popoverTitleBackground: darken($popoverBackground, 3%) !default;
261
+
262
+ // Special enhancement for popovers
263
+ $popoverArrowOuterWidth: $popoverArrowWidth + 1 !default;
264
+ $popoverArrowOuterColor: rgba(0,0,0,.25) !default;
265
+
266
+
191
267
 
192
268
  // GRID
193
269
  // --------------------------------------------------
194
270
 
271
+
195
272
  // Default 940px grid
196
273
  // -------------------------
197
274
  $gridColumns: 12 !default;
@@ -199,7 +276,26 @@ $gridColumnWidth: 60px !default;
199
276
  $gridGutterWidth: 20px !default;
200
277
  $gridRowWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1)) !default;
201
278
 
279
+ // 1200px min
280
+ $gridColumnWidth1200: 70px !default;
281
+ $gridGutterWidth1200: 30px !default;
282
+ $gridRowWidth1200: ($gridColumns * $gridColumnWidth1200) + ($gridGutterWidth1200 * ($gridColumns - 1)) !default;
283
+
284
+ // 768px-979px
285
+ $gridColumnWidth768: 42px !default;
286
+ $gridGutterWidth768: 20px !default;
287
+ $gridRowWidth768: ($gridColumns * $gridColumnWidth768) + ($gridGutterWidth768 * ($gridColumns - 1)) !default;
288
+
289
+
202
290
  // Fluid grid
203
291
  // -------------------------
204
- $fluidGridColumnWidth: 6.382978723% !default;
205
- $fluidGridGutterWidth: 2.127659574% !default;
292
+ $fluidGridColumnWidth: percentage($gridColumnWidth/$gridRowWidth) !default;
293
+ $fluidGridGutterWidth: percentage($gridGutterWidth/$gridRowWidth) !default;
294
+
295
+ // 1200px min
296
+ $fluidGridColumnWidth1200: percentage($gridColumnWidth1200/$gridRowWidth1200) !default;
297
+ $fluidGridGutterWidth1200: percentage($gridGutterWidth1200/$gridRowWidth1200) !default;
298
+
299
+ // 768px-979px
300
+ $fluidGridColumnWidth768: percentage($gridColumnWidth768/$gridRowWidth768) !default;
301
+ $fluidGridGutterWidth768: percentage($gridGutterWidth768/$gridRowWidth768) !default;