compass_twitter_bootstrap 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/build/convert.rb +13 -0
  3. data/lib/compass_twitter_bootstrap/version.rb +1 -1
  4. data/stylesheets/_compass_twitter_bootstrap_responsive.scss +11 -6
  5. data/stylesheets/compass_twitter_bootstrap/_breadcrumbs.scss +1 -1
  6. data/stylesheets/compass_twitter_bootstrap/_button-groups.scss +2 -1
  7. data/stylesheets/compass_twitter_bootstrap/_buttons.scss +25 -7
  8. data/stylesheets/compass_twitter_bootstrap/_code.scss +13 -0
  9. data/stylesheets/compass_twitter_bootstrap/_dropdowns.scss +1 -2
  10. data/stylesheets/compass_twitter_bootstrap/_forms.scss +48 -41
  11. data/stylesheets/compass_twitter_bootstrap/_labels.scss +23 -7
  12. data/stylesheets/compass_twitter_bootstrap/_mixins.scss +73 -21
  13. data/stylesheets/compass_twitter_bootstrap/_modals.scss +11 -0
  14. data/stylesheets/compass_twitter_bootstrap/_navbar.scss +11 -4
  15. data/stylesheets/compass_twitter_bootstrap/_navs.scss +20 -11
  16. data/stylesheets/compass_twitter_bootstrap/_reset.scss +1 -1
  17. data/stylesheets/compass_twitter_bootstrap/_sprites.scss +7 -5
  18. data/stylesheets/compass_twitter_bootstrap/_tables.scss +14 -3
  19. data/stylesheets/compass_twitter_bootstrap/_thumbnails.scss +2 -2
  20. data/stylesheets/compass_twitter_bootstrap/_type.scss +3 -2
  21. data/stylesheets/compass_twitter_bootstrap/_variables.scss +61 -53
  22. data/stylesheets_sass/_compass_twitter_bootstrap_responsive.sass +11 -8
  23. data/stylesheets_sass/compass_twitter_bootstrap/_breadcrumbs.sass +1 -1
  24. data/stylesheets_sass/compass_twitter_bootstrap/_button-groups.sass +2 -1
  25. data/stylesheets_sass/compass_twitter_bootstrap/_buttons.sass +23 -7
  26. data/stylesheets_sass/compass_twitter_bootstrap/_code.sass +10 -0
  27. data/stylesheets_sass/compass_twitter_bootstrap/_dropdowns.sass +1 -2
  28. data/stylesheets_sass/compass_twitter_bootstrap/_forms.sass +48 -37
  29. data/stylesheets_sass/compass_twitter_bootstrap/_labels.sass +22 -3
  30. data/stylesheets_sass/compass_twitter_bootstrap/_modals.sass +9 -0
  31. data/stylesheets_sass/compass_twitter_bootstrap/_navbar.sass +12 -3
  32. data/stylesheets_sass/compass_twitter_bootstrap/_navs.sass +21 -11
  33. data/stylesheets_sass/compass_twitter_bootstrap/_reset.sass +1 -1
  34. data/stylesheets_sass/compass_twitter_bootstrap/_sprites.sass +7 -5
  35. data/stylesheets_sass/compass_twitter_bootstrap/_tables.sass +11 -2
  36. data/stylesheets_sass/compass_twitter_bootstrap/_thumbnails.sass +2 -2
  37. data/stylesheets_sass/compass_twitter_bootstrap/_type.sass +3 -2
  38. data/stylesheets_sass/compass_twitter_bootstrap/_variables.sass +61 -53
  39. metadata +10 -4
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.0.0
2
+ * Bootstrap Responsive v2.0.1
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -7,7 +7,7 @@
7
7
  *
8
8
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
9
9
 
10
- // RESPONSIVE
10
+ // Responsive
11
11
  // For phone and tablet devices
12
12
  // -------------------------------------------------------------
13
13
 
@@ -15,10 +15,10 @@
15
15
  // -------------------------
16
16
  // Required since we compile the responsive stuff separately
17
17
 
18
- @import variables
18
+ @import compass_twitter_bootstrap/variables
19
19
 
20
20
  // Modify this for custom colors, font-sizes, etc
21
- @import mixins
21
+ @import compass_twitter_bootstrap/mixins
22
22
 
23
23
  // RESPONSIVE CLASSES
24
24
  // ------------------
@@ -48,7 +48,7 @@
48
48
  .uneditable-input
49
49
  display: block
50
50
  width: 100%
51
- height: 28px
51
+ min-height: 28px
52
52
  /* Make inputs at least the height of their button counterpart
53
53
  /* Makes inputs behave like true block-level elements
54
54
  -webkit-box-sizing: border-box
@@ -104,7 +104,7 @@
104
104
  // LANDSCAPE PHONE TO SMALL DESKTOP & PORTRAIT TABLET
105
105
  // --------------------------------------------------
106
106
 
107
- @media (max-width: 768px)
107
+ @media (max-width: 767px)
108
108
  // GRID & CONTAINERS
109
109
  // -----------------
110
110
  // Remove width from containers
@@ -128,7 +128,7 @@
128
128
  // PORTRAIT TABLET TO DEFAULT DESKTOP
129
129
  // ----------------------------------
130
130
 
131
- @media (min-width: 768px) and (max-width: 980px)
131
+ @media (min-width: 768px) and (max-width: 979px)
132
132
  // Fixed grid
133
133
  +gridSystem-generate(12, 42px, 20px)
134
134
  // Fluid grid
@@ -138,7 +138,7 @@
138
138
 
139
139
  // TABLETS AND BELOW
140
140
  // -----------------
141
- @media (max-width: 980px)
141
+ @media (max-width: 979px)
142
142
  // UNFIX THE TOPBAR
143
143
  // ----------------
144
144
  // Remove any padding from the body
@@ -171,6 +171,9 @@
171
171
  margin-bottom: 2px
172
172
  .navbar .nav > .divider-vertical
173
173
  display: none
174
+ .navbar .nav .nav-header
175
+ color: $navbarText
176
+ text-shadow: none
174
177
  // Nav and dropdown links in navbar
175
178
  .navbar .nav > li > a,
176
179
  .navbar .dropdown-menu a
@@ -9,7 +9,7 @@
9
9
  +border-radius(3px)
10
10
  +box-shadow(inset 0 1px 0 $white)
11
11
  li
12
- display: inline
12
+ display: inline-block
13
13
  text-shadow: 0 1px 0 $white
14
14
  .divider
15
15
  padding: 0 5px
@@ -119,7 +119,8 @@
119
119
  .btn-primary,
120
120
  .btn-danger,
121
121
  .btn-info,
122
- .btn-success
122
+ .btn-success,
123
+ .btn-inverse
123
124
  .caret
124
125
  border-top-color: $white
125
126
  +opacity(0.75)
@@ -8,13 +8,15 @@
8
8
  .btn
9
9
  display: inline-block
10
10
  padding: 4px 10px 4px
11
+ margin-bottom: 0
12
+ // For input.btn
11
13
  font-size: $baseFontSize
12
14
  line-height: $baseLineHeight
13
15
  color: $grayDark
14
16
  text-align: center
15
17
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75)
16
- +gradient-vertical-three-colors($white, $white, 25%, darken($white, 10%))
17
- // Don't use @include gradientbar(); here since it does a three-color gradient
18
+ vertical-align: middle
19
+ +buttonBackground($white, darken($white, 10%))
18
20
  border: 1px solid #ccc
19
21
  border-bottom-color: #bbb
20
22
  +border-radius(4px)
@@ -22,6 +24,7 @@
22
24
  +box-shadow($shadow)
23
25
  cursor: pointer
24
26
  // Give IE7 some love
27
+ +reset-filter
25
28
  +ie7-restore-left-whitespace
26
29
 
27
30
  // Hover state
@@ -47,7 +50,6 @@
47
50
  +box-shadow($shadow)
48
51
  background-color: darken($white, 10%)
49
52
  background-color: darken($white, 15%) e("\9")
50
- color: rgba(0, 0, 0, 0.5)
51
53
  outline: 0
52
54
 
53
55
  // Disabled state
@@ -70,7 +72,7 @@
70
72
  line-height: normal
71
73
  +border-radius(5px)
72
74
 
73
- .btn-large .icon
75
+ .btn-large [class^="icon-"]
74
76
  margin-top: 1px
75
77
 
76
78
  // Small
@@ -79,9 +81,15 @@
79
81
  font-size: $baseFontSize - 2px
80
82
  line-height: $baseLineHeight - 2px
81
83
 
82
- .btn-small .icon
84
+ .btn-small [class^="icon-"]
83
85
  margin-top: -1px
84
86
 
87
+ // Mini
88
+ .btn-mini
89
+ padding: 2px 6px
90
+ font-size: $baseFontSize - 2px
91
+ line-height: $baseLineHeight - 4px
92
+
85
93
  // Alternate buttons
86
94
  // --------------------------------------------------
87
95
 
@@ -97,7 +105,9 @@
97
105
  .btn-success,
98
106
  .btn-success:hover,
99
107
  .btn-info,
100
- .btn-info:hover
108
+ .btn-info:hover,
109
+ .btn-inverse,
110
+ .btn-inverse:hover
101
111
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
102
112
  color: $white
103
113
 
@@ -107,7 +117,8 @@
107
117
  .btn-warning.active,
108
118
  .btn-danger.active,
109
119
  .btn-success.active,
110
- .btn-info.active
120
+ .btn-info.active,
121
+ .btn-dark.active
111
122
  color: rgba(255, 255, 255, 0.75)
112
123
 
113
124
  // Set the backgrounds
@@ -131,11 +142,16 @@
131
142
  .btn-info
132
143
  +buttonBackground(#5bc0de, #2f96b4)
133
144
 
145
+ // Inverse appears as dark gray
146
+ .btn-inverse
147
+ +buttonBackground(#454545, #262626)
148
+
134
149
  // Cross-browser Jank
135
150
  // --------------------------------------------------
136
151
 
137
152
  button.btn,
138
153
  input[type="submit"].btn
154
+ // Firefox 3.6 only I believe
139
155
  &::-moz-focus-inner
140
156
  padding: 0
141
157
  border: 0
@@ -12,12 +12,14 @@ pre
12
12
  color: $grayDark
13
13
  +border-radius(3px)
14
14
 
15
+ // Inline code
15
16
  code
16
17
  padding: 3px 4px
17
18
  color: #d14
18
19
  background-color: #f7f7f9
19
20
  border: 1px solid #e1e1e8
20
21
 
22
+ // Blocks of code
21
23
  pre
22
24
  display: block
23
25
  padding: ($baseLineHeight - 1) / 2
@@ -32,10 +34,18 @@ pre
32
34
  white-space: pre
33
35
  white-space: pre-wrap
34
36
  word-break: break-all
37
+ word-wrap: break-word
35
38
  // Make prettyprint styles more spaced out for readability
36
39
  &.prettyprint
37
40
  margin-bottom: $baseLineHeight
38
41
  // Account for some code outputs that place code tags in pre tags
39
42
  code
40
43
  padding: 0
44
+ color: inherit
41
45
  background-color: transparent
46
+ border: 0
47
+
48
+ // Enable scrollable blocks of code
49
+ .pre-scrollable
50
+ max-height: 340px
51
+ overflow-y: scroll
@@ -47,7 +47,6 @@
47
47
  display: none
48
48
  // none by default, but block on "open" of the menu
49
49
  min-width: 160px
50
- max-width: 220px
51
50
  _width: 160px
52
51
  padding: 4px 0
53
52
  margin: 0
@@ -89,7 +88,7 @@
89
88
  padding: 3px 15px
90
89
  clear: both
91
90
  font-weight: normal
92
- line-height: 18px
91
+ line-height: $baseLineHeight
93
92
  color: $gray
94
93
  white-space: nowrap
95
94
 
@@ -25,6 +25,10 @@ legend
25
25
  color: $grayDark
26
26
  border: 0
27
27
  border-bottom: 1px solid #eee
28
+ // Small
29
+ small
30
+ font-size: $baseLineHeight * 0.75
31
+ color: $grayLight
28
32
 
29
33
  // Set font for forms
30
34
 
@@ -33,7 +37,15 @@ input,
33
37
  button,
34
38
  select,
35
39
  textarea
36
- +font-sans-serif($baseFontSize, normal, $baseLineHeight)
40
+ +font-shorthand($baseFontSize, normal, $baseLineHeight)
41
+ // Set size, weight, line-height here
42
+
43
+ input,
44
+ button,
45
+ select,
46
+ textarea
47
+ +font-family-sans-serif
48
+ // And only set font-family here for those that need it (note the missing label element)
37
49
 
38
50
  // Identify controls by their labels
39
51
  label
@@ -81,12 +93,17 @@ input[type="radio"]
81
93
  *margin-top: 0
82
94
  /* IE7
83
95
  line-height: normal
84
- border: 0
85
96
  cursor: pointer
86
97
  +border-radius(0)
98
+ border: 0 \9
99
+ /* IE9 and down
100
+
101
+ input[type="image"]
102
+ border: 0
87
103
 
88
104
  // Reset the file input to browser defaults
89
105
  input[type="file"]
106
+ width: auto
90
107
  padding: initial
91
108
  line-height: initial
92
109
  border: initial
@@ -112,6 +129,10 @@ input[type="file"]
112
129
  /* For IE7, add top margin to align select with labels
113
130
  line-height: 28px
114
131
 
132
+ // Reset line-height for IE
133
+ input[type="file"]
134
+ line-height: 18px \9
135
+
115
136
  // Chrome on Linux and Mobile Safari need background-color
116
137
  select
117
138
  width: 220px
@@ -158,10 +179,12 @@ input[type="hidden"]
158
179
  // has to be padding because margin collaspes
159
180
 
160
181
  // Radios and checkboxes on same line
182
+ // TODO v3: Convert .inline to .control-inline
161
183
 
162
184
  .radio.inline,
163
185
  .checkbox.inline
164
186
  display: inline-block
187
+ padding-top: 5px
165
188
  margin-bottom: 0
166
189
  vertical-align: middle
167
190
 
@@ -170,12 +193,6 @@ input[type="hidden"]
170
193
  margin-left: 10px
171
194
  // space out consecutive inline controls
172
195
 
173
- // But don't forget to remove their padding on first-child
174
-
175
- .controls > .radio.inline:first-child,
176
- .controls > .checkbox.inline:first-child
177
- padding-top: 0
178
-
179
196
  // FOCUS STATE
180
197
  // -----------
181
198
 
@@ -192,9 +209,10 @@ textarea:focus
192
209
  +box-shadow($shadow)
193
210
  outline: 0
194
211
  outline: thin dotted \9
195
- /* IE6-8
212
+ /* IE6-9
196
213
 
197
214
  input[type="file"]:focus,
215
+ input[type="radio"]:focus,
198
216
  input[type="checkbox"]:focus,
199
217
  select:focus
200
218
  +box-shadow(none)
@@ -255,29 +273,6 @@ textarea[readonly]
255
273
  // FORM FIELD FEEDBACK STATES
256
274
  // --------------------------
257
275
 
258
- // Mixin for form field states
259
- =formFieldState($textColor: #555555, $borderColor: #cccccc, $backgroundColor: #f5f5f5)
260
- // Set the text color
261
- > label,
262
- .help-block,
263
- .help-inline
264
- color: $textColor
265
- // Style inputs accordingly
266
- input,
267
- select,
268
- textarea
269
- color: $textColor
270
- border-color: $borderColor
271
- &:focus
272
- border-color: darken($borderColor, 10%)
273
- +box-shadow(0 0 6px lighten($borderColor, 20%))
274
- // Give a small background color for input-prepend/-append
275
- .input-prepend .add-on,
276
- .input-append .add-on
277
- color: $textColor
278
- background-color: $backgroundColor
279
- border-color: $textColor
280
-
281
276
  // Warning
282
277
  .control-group.warning
283
278
  +formFieldState($warningText, $warningText, $warningBackground)
@@ -327,6 +322,8 @@ select:focus:required:invalid
327
322
  // ---------
328
323
 
329
324
  .help-block
325
+ display: block
326
+ // account for any element using help-block
330
327
  margin-top: 5px
331
328
  margin-bottom: 0
332
329
  color: $grayLight
@@ -387,6 +384,7 @@ select:focus:required:invalid
387
384
  float: left
388
385
  +border-radius(3px 0 0 3px)
389
386
  .uneditable-input
387
+ border-left-color: #eee
390
388
  border-right-color: #ccc
391
389
  .add-on
392
390
  margin-right: 0
@@ -425,6 +423,9 @@ select:focus:required:invalid
425
423
  .uneditable-input
426
424
  display: inline-block
427
425
  margin-bottom: 0
426
+ // Re-hide hidden elements due to specifity
427
+ .hide
428
+ display: none
428
429
 
429
430
  .form-search label,
430
431
  .form-inline label,
@@ -442,24 +443,34 @@ select:focus:required:invalid
442
443
  .form-inline .input-prepend .add-on
443
444
  vertical-align: middle
444
445
 
446
+ // Inline checkbox/radio labels
447
+
448
+ .form-search .radio,
449
+ .form-inline .radio,
450
+ .form-search .checkbox,
451
+ .form-inline .checkbox
452
+ margin-bottom: 0
453
+ vertical-align: middle
454
+
445
455
  // Margin to space out fieldsets
446
456
  .control-group
447
457
  margin-bottom: $baseLineHeight / 2
448
458
 
459
+ // Legend collapses margin, so next element is responsible for spacing
460
+ legend + .control-group
461
+ margin-top: $baseLineHeight
462
+ -webkit-margin-top-collapse: separate
463
+
449
464
  // Horizontal-specific styles
450
465
  // --------------------------
451
466
 
452
467
  .form-horizontal
453
- // Legend collapses margin, so we're relegated to padding
454
- legend + .control-group
455
- margin-top: $baseLineHeight
456
- -webkit-margin-top-collapse: separate
457
468
  // Increase spacing between groups
458
469
  .control-group
459
470
  margin-bottom: $baseLineHeight
460
471
  +clearfix
461
472
  // Float the labels left
462
- .control-group > label
473
+ .control-label
463
474
  float: left
464
475
  width: 140px
465
476
  padding-top: 5px
@@ -1,23 +1,42 @@
1
1
  // LABELS
2
2
  // ------
3
3
 
4
+ // Base
4
5
  .label
5
- padding: 1px 3px 2px
6
- font-size: $baseFontSize * 0.75
6
+ padding: 2px 4px 3px
7
+ font-size: $baseFontSize * 0.85
7
8
  font-weight: bold
8
9
  color: $white
9
- text-transform: uppercase
10
+ text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25)
10
11
  background-color: $grayLight
11
12
  +border-radius(3px)
12
13
 
14
+ // Hover state
15
+ .label:hover
16
+ color: $white
17
+ text-decoration: none
18
+
19
+ // Colors
13
20
  .label-important
14
21
  background-color: $errorText
15
22
 
23
+ .label-important:hover
24
+ background-color: darken($errorText, 10%)
25
+
16
26
  .label-warning
17
27
  background-color: $orange
18
28
 
29
+ .label-warning:hover
30
+ background-color: darken($orange, 10%)
31
+
19
32
  .label-success
20
33
  background-color: $successText
21
34
 
35
+ .label-success:hover
36
+ background-color: darken($successText, 10%)
37
+
22
38
  .label-info
23
39
  background-color: $infoText
40
+
41
+ .label-info:hover
42
+ background-color: darken($infoText, 10%)