compass_twitter_bootstrap 2.0.3 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
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,5 +1,6 @@
1
- // NAVIGATIONS
2
- // -----------
1
+ //
2
+ // Navs
3
+ // --------------------------------------------------
3
4
 
4
5
  // BASE CLASS
5
6
  // ----------
@@ -17,27 +18,17 @@
17
18
  text-decoration: none
18
19
  background-color: $grayLighter
19
20
 
21
+ // Prevent IE8 from misplacing imgs
22
+ // See https://github.com/h5bp/html5-boilerplate/issues/984#issuecomment-3985989
23
+ .nav > li > a > img
24
+ max-width: none
25
+
20
26
  // Redeclare pull classes because of specifity
21
27
  .nav > .pull-right
22
28
  float: right
23
29
 
24
30
  // Nav headers (for dropdowns and lists)
25
- .nav .nav-header
26
- display: block
27
- padding: 3px 15px
28
- font-size: 11px
29
- font-weight: bold
30
- line-height: $baseLineHeight
31
- color: $grayLight
32
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5)
33
- text-transform: uppercase
34
-
35
- // Space them out when they follow another list item (link)
36
- .nav li + .nav-header
37
- margin-top: 9px
38
-
39
- // Nav headers (for dropdowns and lists)
40
- .nav .nav-header
31
+ .nav-header
41
32
  display: block
42
33
  padding: 3px 15px
43
34
  font-size: 11px
@@ -74,12 +65,13 @@
74
65
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2)
75
66
  background-color: $linkColor
76
67
 
77
- .nav-list [class^="icon-"]
68
+ .nav-list [class^="icon-"],
69
+ .nav-list [class*=" icon-"]
78
70
  margin-right: 2px
79
71
 
80
72
  // Dividers (basically an hr) within the dropdown
81
73
  .nav-list .divider
82
- +bootstrap-nav-divider
74
+ +ctb-nav-divider
83
75
 
84
76
  // TABS AND PILLS
85
77
  // -------------
@@ -88,7 +80,7 @@
88
80
 
89
81
  .nav-tabs,
90
82
  .nav-pills
91
- +bootstrap-clearfix
83
+ +ctb-clearfix
92
84
 
93
85
  .nav-tabs > li,
94
86
  .nav-pills > li
@@ -115,11 +107,11 @@
115
107
 
116
108
  // Actual tabs (as links)
117
109
  .nav-tabs > li > a
118
- padding-top: 9px
119
- padding-bottom: 9px
110
+ padding-top: 8px
111
+ padding-bottom: 8px
120
112
  line-height: $baseLineHeight
121
113
  border: 1px solid transparent
122
- +bootstrap-border-radius(4px 4px 0 0)
114
+ +ctb-border-radius(4px 4px 0 0)
123
115
  &:hover
124
116
  border-color: $grayLighter $grayLighter #dddddd
125
117
 
@@ -128,7 +120,7 @@
128
120
  .nav-tabs > .active > a,
129
121
  .nav-tabs > .active > a:hover
130
122
  color: $gray
131
- background-color: $white
123
+ background-color: $bodyBackground
132
124
  border: 1px solid #ddd
133
125
  border-bottom-color: transparent
134
126
  cursor: default
@@ -142,7 +134,7 @@
142
134
  padding-bottom: 8px
143
135
  margin-top: 2px
144
136
  margin-bottom: 2px
145
- +bootstrap-border-radius(5px)
137
+ +ctb-border-radius(5px)
146
138
 
147
139
  // Active state
148
140
 
@@ -168,13 +160,13 @@
168
160
 
169
161
  .nav-tabs.nav-stacked > li > a
170
162
  border: 1px solid #ddd
171
- +bootstrap-border-radius(0)
163
+ +ctb-border-radius(0)
172
164
 
173
165
  .nav-tabs.nav-stacked > li:first-child > a
174
- +bootstrap-border-radius(4px 4px 0 0)
166
+ +ctb-border-top-radius(4px)
175
167
 
176
168
  .nav-tabs.nav-stacked > li:last-child > a
177
- +bootstrap-border-radius(0 0 4px 4px)
169
+ +ctb-border-bottom-radius(4px)
178
170
 
179
171
  .nav-tabs.nav-stacked > li > a:hover
180
172
  border-color: #ddd
@@ -192,40 +184,42 @@
192
184
  // ---------
193
185
 
194
186
  .nav-tabs .dropdown-menu
195
- +bootstrap-border-radius(0 0 5px 5px)
187
+ +ctb-border-radius(0 0 6px 6px)
196
188
  // remove the top rounded corners here since there is a hard edge above the menu
197
189
 
198
190
  .nav-pills .dropdown-menu
199
- +bootstrap-border-radius(4px)
191
+ +ctb-border-radius(6px)
200
192
  // make rounded corners match the pills
201
193
 
202
194
  // Default dropdown links
203
195
  // -------------------------
204
196
  // Make carets use linkColor to start
205
-
206
- .nav-tabs .dropdown-toggle .caret,
207
- .nav-pills .dropdown-toggle .caret
197
+ .nav .dropdown-toggle .caret
208
198
  border-top-color: $linkColor
209
199
  border-bottom-color: $linkColor
210
200
  margin-top: 6px
211
201
 
212
- .nav-tabs .dropdown-toggle:hover .caret,
213
- .nav-pills .dropdown-toggle:hover .caret
202
+ .nav .dropdown-toggle:hover .caret
214
203
  border-top-color: $linkColorHover
215
204
  border-bottom-color: $linkColorHover
216
205
 
206
+ /* move down carets for tabs
207
+ .nav-tabs .dropdown-toggle .caret
208
+ margin-top: 8px
209
+
217
210
  // Active dropdown links
218
211
  // -------------------------
212
+ .nav .active .dropdown-toggle .caret
213
+ border-top-color: #fff
214
+ border-bottom-color: #fff
219
215
 
220
- .nav-tabs .active .dropdown-toggle .caret,
221
- .nav-pills .active .dropdown-toggle .caret
222
- border-top-color: $grayDark
223
- border-bottom-color: $grayDark
216
+ .nav-tabs .active .dropdown-toggle .caret
217
+ border-top-color: $gray
218
+ border-bottom-color: $gray
224
219
 
225
220
  // Active:hover dropdown links
226
221
  // -------------------------
227
222
  .nav > .dropdown.active > a:hover
228
- color: $black
229
223
  cursor: pointer
230
224
 
231
225
  // Open dropdowns
@@ -243,7 +237,7 @@
243
237
  .nav li.dropdown.open a:hover .caret
244
238
  border-top-color: $white
245
239
  border-bottom-color: $white
246
- +bootstrap-opacity(100)
240
+ +ctb-opacity(1)
247
241
 
248
242
  // Dropdowns in stacked tabs
249
243
  .tabs-stacked .open > a:hover
@@ -257,7 +251,7 @@
257
251
 
258
252
  // Clear any floats
259
253
  .tabbable
260
- +bootstrap-clearfix
254
+ +ctb-clearfix
261
255
 
262
256
  .tab-content
263
257
  overflow: auto
@@ -291,7 +285,7 @@
291
285
  margin-bottom: 0
292
286
 
293
287
  .tabs-below > .nav-tabs > li > a
294
- +bootstrap-border-radius(0 0 4px 4px)
288
+ +ctb-border-radius(0 0 4px 4px)
295
289
  &:hover
296
290
  border-bottom-color: transparent
297
291
  border-top-color: #ddd
@@ -323,7 +317,7 @@
323
317
 
324
318
  .tabs-left > .nav-tabs > li > a
325
319
  margin-right: -1px
326
- +bootstrap-border-radius(4px 0 0 4px)
320
+ +ctb-border-radius(4px 0 0 4px)
327
321
 
328
322
  .tabs-left > .nav-tabs > li > a:hover
329
323
  border-color: $grayLighter #dddddd $grayLighter $grayLighter
@@ -341,7 +335,7 @@
341
335
 
342
336
  .tabs-right > .nav-tabs > li > a
343
337
  margin-left: -1px
344
- +bootstrap-border-radius(0 4px 4px 0)
338
+ +ctb-border-radius(0 4px 4px 0)
345
339
 
346
340
  .tabs-right > .nav-tabs > li > a:hover
347
341
  border-color: $grayLighter $grayLighter $grayLighter #dddddd
@@ -350,3 +344,16 @@
350
344
  .tabs-right > .nav-tabs .active > a:hover
351
345
  border-color: #ddd #ddd #ddd transparent
352
346
  *border-left-color: $white
347
+
348
+ // DISABLED STATES
349
+ // ---------------
350
+
351
+ // Gray out text
352
+ .nav > .disabled > a
353
+ color: $grayLight
354
+
355
+ // Nuke hover effects
356
+ .nav > .disabled > a:hover
357
+ text-decoration: none
358
+ background-color: transparent
359
+ cursor: default
@@ -1,35 +1,39 @@
1
- // PAGER
2
- // -----
1
+ //
2
+ // Pager pagination
3
+ // --------------------------------------------------
3
4
 
4
5
  .pager
5
- margin-left: 0
6
- margin-bottom: $baseLineHeight
6
+ margin: $baseLineHeight 0
7
7
  list-style: none
8
8
  text-align: center
9
- +bootstrap-clearfix
9
+ +ctb-clearfix
10
10
 
11
11
  .pager li
12
12
  display: inline
13
13
 
14
- .pager a
14
+ .pager li > a,
15
+ .pager li > span
15
16
  display: inline-block
16
17
  padding: 5px 14px
17
18
  background-color: #fff
18
19
  border: 1px solid #ddd
19
- +bootstrap-border-radius(15px)
20
+ +ctb-border-radius(15px)
20
21
 
21
- .pager a:hover
22
+ .pager li > a:hover
22
23
  text-decoration: none
23
24
  background-color: #f5f5f5
24
25
 
25
- .pager .next a
26
+ .pager .next > a,
27
+ .pager .next > span
26
28
  float: right
27
29
 
28
- .pager .previous a
30
+ .pager .previous > a,
31
+ .pager .previous > span
29
32
  float: left
30
33
 
31
- .pager .disabled a,
32
- .pager .disabled a:hover
34
+ .pager .disabled > a,
35
+ .pager .disabled > a:hover,
36
+ .pager .disabled > span
33
37
  color: $grayLight
34
38
  background-color: #fff
35
39
  cursor: default
@@ -1,54 +1,109 @@
1
- // PAGINATION
2
- // ----------
1
+ //
2
+ // Pagination (multiple pages)
3
+ // --------------------------------------------------
3
4
 
5
+ // Space out pagination from surrounding content
4
6
  .pagination
5
- height: $baseLineHeight * 2
6
7
  margin: $baseLineHeight 0
7
8
 
8
9
  .pagination ul
10
+ // Allow for text-based alignment
9
11
  display: inline-block
10
- +bootstrap-ie7-inline-block
12
+ +ctb-ie7-inline-block
13
+ // Reset default ul styles
11
14
  margin-left: 0
12
15
  margin-bottom: 0
13
- +bootstrap-border-radius(3px)
14
- +bootstrap-box-shadow(0 1px 2px rgba(0, 0, 0, 0.05))
16
+ // Visuals
17
+ +ctb-border-radius($baseBorderRadius)
18
+ +ctb-box-shadow(0 1px 2px rgba(0, 0, 0, 0.05))
15
19
 
16
- .pagination li
20
+ .pagination ul > li
17
21
  display: inline
22
+ // Remove list-style and block-level defaults
18
23
 
19
- .pagination a
24
+ .pagination ul > li > a,
25
+ .pagination ul > li > span
20
26
  float: left
21
- padding: 0 14px
22
- line-height: $baseLineHeight * 2 - 2
27
+ // Collapse white-space
28
+ padding: 4px 12px
29
+ line-height: $baseLineHeight
23
30
  text-decoration: none
24
- border: 1px solid #ddd
31
+ background-color: $paginationBackground
32
+ border: 1px solid $paginationBorder
25
33
  border-left-width: 0
26
34
 
27
- .pagination a:hover,
28
- .pagination .active a
29
- background-color: #f5f5f5
35
+ .pagination ul > li > a:hover,
36
+ .pagination ul > .active > a,
37
+ .pagination ul > .active > span
38
+ background-color: $paginationActiveBackground
30
39
 
31
- .pagination .active a
40
+ .pagination ul > .active > a,
41
+ .pagination ul > .active > span
32
42
  color: $grayLight
33
43
  cursor: default
34
44
 
35
- .pagination .disabled span,
36
- .pagination .disabled a,
37
- .pagination .disabled a:hover
45
+ .pagination ul > .disabled > span,
46
+ .pagination ul > .disabled > a,
47
+ .pagination ul > .disabled > a:hover
38
48
  color: $grayLight
39
49
  background-color: transparent
40
50
  cursor: default
41
51
 
42
- .pagination li:first-child a
52
+ .pagination ul > li:first-child > a,
53
+ .pagination ul > li:first-child > span
43
54
  border-left-width: 1px
44
- +bootstrap-border-radius(3px 0 0 3px)
55
+ +ctb-border-left-radius($baseBorderRadius)
45
56
 
46
- .pagination li:last-child a
47
- +bootstrap-border-radius(0 3px 3px 0)
57
+ .pagination ul > li:last-child > a,
58
+ .pagination ul > li:last-child > span
59
+ +ctb-border-right-radius($baseBorderRadius)
60
+
61
+ // Alignment
62
+ // --------------------------------------------------
48
63
 
49
- // Centered
50
64
  .pagination-centered
51
65
  text-align: center
52
66
 
53
67
  .pagination-right
54
68
  text-align: right
69
+
70
+ // Sizing
71
+ // --------------------------------------------------
72
+
73
+ // Large
74
+ .pagination-large
75
+ ul > li > a,
76
+ ul > li > span
77
+ padding: $paddingLarge
78
+ font-size: $fontSizeLarge
79
+ ul > li:first-child > a,
80
+ ul > li:first-child > span
81
+ +ctb-border-left-radius($borderRadiusLarge)
82
+ ul > li:last-child > a,
83
+ ul > li:last-child > span
84
+ +ctb-border-right-radius($borderRadiusLarge)
85
+
86
+ // Small and mini
87
+
88
+ .pagination-mini,
89
+ .pagination-small
90
+ ul > li:first-child > a,
91
+ ul > li:first-child > span
92
+ +ctb-border-left-radius($borderRadiusSmall)
93
+ ul > li:last-child > a,
94
+ ul > li:last-child > span
95
+ +ctb-border-right-radius($borderRadiusSmall)
96
+
97
+ // Small
98
+ .pagination-small
99
+ ul > li > a,
100
+ ul > li > span
101
+ padding: $paddingSmall
102
+ font-size: $fontSizeSmall
103
+
104
+ // Mini
105
+ .pagination-mini
106
+ ul > li > a,
107
+ ul > li > span
108
+ padding: $paddingMini
109
+ font-size: $fontSizeMini
@@ -1,5 +1,6 @@
1
- // POPOVERS
2
- // --------
1
+ //
2
+ // Popovers
3
+ // --------------------------------------------------
3
4
 
4
5
  .popover
5
6
  position: absolute
@@ -7,49 +8,114 @@
7
8
  left: 0
8
9
  z-index: $zindexPopover
9
10
  display: none
10
- padding: 5px
11
+ width: 236px
12
+ padding: 1px
13
+ text-align: left
14
+ // Reset given new insertion method
15
+ background-color: $popoverBackground
16
+ -webkit-background-clip: padding-box
17
+ -moz-background-clip: padding
18
+ background-clip: padding-box
19
+ border: 1px solid #ccc
20
+ border: 1px solid rgba(0, 0, 0, 0.2)
21
+ +ctb-border-radius(6px)
22
+ +ctb-box-shadow(0 5px 10px rgba(0, 0, 0, 0.2))
23
+ // Overrides for proper insertion
24
+ white-space: normal
25
+ // Offset the popover to account for the popover arrow
11
26
  &.top
12
- margin-top: -5px
27
+ margin-top: -10px
13
28
  &.right
14
- margin-left: 5px
29
+ margin-left: 10px
15
30
  &.bottom
16
- margin-top: 5px
31
+ margin-top: 10px
17
32
  &.left
18
- margin-left: -5px
19
- &.top .arrow
20
- +bootstrap-popoverArrow-top
21
- &.right .arrow
22
- +bootstrap-popoverArrow-right
23
- &.bottom .arrow
24
- +bootstrap-popoverArrow-bottom
25
- &.left .arrow
26
- +bootstrap-popoverArrow-left
27
- .arrow
28
- position: absolute
29
- width: 0
30
- height: 0
31
-
32
- .popover-inner
33
- padding: 3px
34
- width: 280px
35
- overflow: hidden
36
- background: $black
37
- // has to be full background declaration for IE fallback
38
- background: rgba(0, 0, 0, 0.8)
39
- +bootstrap-border-radius(6px)
40
- +bootstrap-box-shadow(0 3px 7px rgba(0, 0, 0, 0.3))
33
+ margin-left: -10px
41
34
 
42
35
  .popover-title
43
- padding: 9px 15px
44
- line-height: 1
45
- background-color: #f5f5f5
46
- border-bottom: 1px solid #eee
47
- +bootstrap-border-radius(3px 3px 0 0)
36
+ margin: 0
37
+ // reset heading margin
38
+ padding: 8px 14px
39
+ font-size: 14px
40
+ font-weight: normal
41
+ line-height: 18px
42
+ background-color: $popoverTitleBackground
43
+ border-bottom: 1px solid darken($popoverTitleBackground, 5%)
44
+ +ctb-border-radius(5px 5px 0 0)
48
45
 
49
46
  .popover-content
50
- padding: 14px
51
- background-color: $white
52
- +bootstrap-border-radius(0 0 3px 3px)
53
- +bootstrap-background-clip(padding-box)
54
- p, ul, ol
55
- margin-bottom: 0
47
+ padding: 9px 14px
48
+
49
+ // Arrows
50
+ //
51
+ // .arrow is outer, .arrow:after is inner
52
+
53
+ .popover .arrow,
54
+ .popover .arrow:after
55
+ position: absolute
56
+ display: block
57
+ width: 0
58
+ height: 0
59
+ border-color: transparent
60
+ border-style: solid
61
+
62
+ .popover .arrow
63
+ border-width: $popoverArrowOuterWidth
64
+
65
+ .popover .arrow:after
66
+ border-width: $popoverArrowWidth
67
+ content: ""
68
+
69
+ .popover
70
+ &.top .arrow
71
+ left: 50%
72
+ margin-left: -$popoverArrowOuterWidth
73
+ border-bottom-width: 0
74
+ border-top-color: #999
75
+ // IE8 fallback
76
+ border-top-color: $popoverArrowOuterColor
77
+ bottom: -$popoverArrowOuterWidth
78
+ &:after
79
+ bottom: 1px
80
+ margin-left: -$popoverArrowWidth
81
+ border-bottom-width: 0
82
+ border-top-color: $popoverArrowColor
83
+ &.right .arrow
84
+ top: 50%
85
+ left: -$popoverArrowOuterWidth
86
+ margin-top: -$popoverArrowOuterWidth
87
+ border-left-width: 0
88
+ border-right-color: #999
89
+ // IE8 fallback
90
+ border-right-color: $popoverArrowOuterColor
91
+ &:after
92
+ left: 1px
93
+ bottom: -$popoverArrowWidth
94
+ border-left-width: 0
95
+ border-right-color: $popoverArrowColor
96
+ &.bottom .arrow
97
+ left: 50%
98
+ margin-left: -$popoverArrowOuterWidth
99
+ border-top-width: 0
100
+ border-bottom-color: #999
101
+ // IE8 fallback
102
+ border-bottom-color: $popoverArrowOuterColor
103
+ top: -$popoverArrowOuterWidth
104
+ &:after
105
+ top: 1px
106
+ margin-left: -$popoverArrowWidth
107
+ border-top-width: 0
108
+ border-bottom-color: $popoverArrowColor
109
+ &.left .arrow
110
+ top: 50%
111
+ right: -$popoverArrowOuterWidth
112
+ margin-top: -$popoverArrowOuterWidth
113
+ border-right-width: 0
114
+ border-left-color: #999
115
+ // IE8 fallback
116
+ border-left-color: $popoverArrowOuterColor
117
+ &:after
118
+ right: 1px
119
+ border-right-width: 0
120
+ border-left-color: $popoverArrowColor
121
+ bottom: -$popoverArrowWidth