twitter-bootstrap-turbo 2.1.3

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 (109) hide show
  1. data/README.md +266 -0
  2. data/Rakefile +14 -0
  3. data/app/helpers/bootstrap_flash_helper.rb +14 -0
  4. data/app/helpers/flash_block_helper.rb +17 -0
  5. data/app/helpers/glyph_helper.rb +12 -0
  6. data/app/helpers/modal_helper.rb +42 -0
  7. data/app/helpers/twitter_breadcrumbs_helper.rb +5 -0
  8. data/app/views/twitter-bootstrap/_breadcrumbs.html.erb +14 -0
  9. data/lib/generators/bootstrap/install/install_generator.rb +53 -0
  10. data/lib/generators/bootstrap/install/templates/application.css +7 -0
  11. data/lib/generators/bootstrap/install/templates/application.js +10 -0
  12. data/lib/generators/bootstrap/install/templates/bootstrap.coffee +9 -0
  13. data/lib/generators/bootstrap/install/templates/bootstrap_and_overrides.less +28 -0
  14. data/lib/generators/bootstrap/layout/layout_generator.rb +23 -0
  15. data/lib/generators/bootstrap/layout/templates/layout.html.erb +108 -0
  16. data/lib/generators/bootstrap/layout/templates/layout.html.haml +68 -0
  17. data/lib/generators/bootstrap/layout/templates/layout.html.slim +68 -0
  18. data/lib/generators/bootstrap/partial/partial_generator.rb +20 -0
  19. data/lib/generators/bootstrap/partial/templates/_login.html.erb +29 -0
  20. data/lib/generators/bootstrap/partial/templates/_navbar.html.erb +13 -0
  21. data/lib/generators/bootstrap/themed/templates/_form.html.erb +16 -0
  22. data/lib/generators/bootstrap/themed/templates/_form.html.haml +10 -0
  23. data/lib/generators/bootstrap/themed/templates/_form.html.slim +11 -0
  24. data/lib/generators/bootstrap/themed/templates/edit.html.erb +6 -0
  25. data/lib/generators/bootstrap/themed/templates/edit.html.haml +4 -0
  26. data/lib/generators/bootstrap/themed/templates/edit.html.slim +4 -0
  27. data/lib/generators/bootstrap/themed/templates/index.html.erb +40 -0
  28. data/lib/generators/bootstrap/themed/templates/index.html.haml +25 -0
  29. data/lib/generators/bootstrap/themed/templates/index.html.slim +27 -0
  30. data/lib/generators/bootstrap/themed/templates/new.html.erb +6 -0
  31. data/lib/generators/bootstrap/themed/templates/new.html.haml +4 -0
  32. data/lib/generators/bootstrap/themed/templates/new.html.slim +4 -0
  33. data/lib/generators/bootstrap/themed/templates/show.html.erb +23 -0
  34. data/lib/generators/bootstrap/themed/templates/show.html.haml +15 -0
  35. data/lib/generators/bootstrap/themed/templates/show.html.slim +17 -0
  36. data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.erb +14 -0
  37. data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.haml +11 -0
  38. data/lib/generators/bootstrap/themed/templates/simple_form/_form.html.slim +12 -0
  39. data/lib/generators/bootstrap/themed/themed_generator.rb +99 -0
  40. data/lib/twitter-bootstrap-turbo.rb +10 -0
  41. data/lib/twitter/bootstrap/rails/bootstrap.rb +2 -0
  42. data/lib/twitter/bootstrap/rails/engine.rb +29 -0
  43. data/lib/twitter/bootstrap/rails/twitter-bootstrap-breadcrumbs.rb +30 -0
  44. data/lib/twitter/bootstrap/rails/version.rb +7 -0
  45. data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
  46. data/vendor/assets/fonts/fontawesome-webfont.svg +255 -0
  47. data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
  48. data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
  49. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
  50. data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
  51. data/vendor/assets/javascripts/twitter/bootstrap.js +13 -0
  52. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-affix.js +105 -0
  53. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-alert.js +92 -0
  54. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-button.js +98 -0
  55. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-carousel.js +178 -0
  56. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-collapse.js +159 -0
  57. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-dropdown.js +151 -0
  58. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-modal.js +241 -0
  59. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-popover.js +103 -0
  60. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-scrollspy.js +152 -0
  61. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tab.js +137 -0
  62. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-tooltip.js +275 -0
  63. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-transition.js +60 -0
  64. data/vendor/assets/javascripts/twitter/bootstrap/bootstrap-typeahead.js +302 -0
  65. data/vendor/assets/javascripts/twitter/bootstrap_ujs.js +11 -0
  66. data/vendor/toolkit/font-awesome-ie7.less +245 -0
  67. data/vendor/toolkit/fontawesome.less +327 -0
  68. data/vendor/toolkit/twitter/bootstrap/accordion.less +34 -0
  69. data/vendor/toolkit/twitter/bootstrap/alerts.less +65 -0
  70. data/vendor/toolkit/twitter/bootstrap/bootstrap.less +62 -0
  71. data/vendor/toolkit/twitter/bootstrap/breadcrumbs.less +24 -0
  72. data/vendor/toolkit/twitter/bootstrap/button-groups.less +245 -0
  73. data/vendor/toolkit/twitter/bootstrap/buttons.less +231 -0
  74. data/vendor/toolkit/twitter/bootstrap/carousel.less +131 -0
  75. data/vendor/toolkit/twitter/bootstrap/close.less +31 -0
  76. data/vendor/toolkit/twitter/bootstrap/code.less +58 -0
  77. data/vendor/toolkit/twitter/bootstrap/component-animations.less +22 -0
  78. data/vendor/toolkit/twitter/bootstrap/dropdowns.less +210 -0
  79. data/vendor/toolkit/twitter/bootstrap/forms.less +650 -0
  80. data/vendor/toolkit/twitter/bootstrap/grid.less +21 -0
  81. data/vendor/toolkit/twitter/bootstrap/hero-unit.less +24 -0
  82. data/vendor/toolkit/twitter/bootstrap/labels-badges.less +72 -0
  83. data/vendor/toolkit/twitter/bootstrap/layouts.less +16 -0
  84. data/vendor/toolkit/twitter/bootstrap/mixins.less +681 -0
  85. data/vendor/toolkit/twitter/bootstrap/modals.less +98 -0
  86. data/vendor/toolkit/twitter/bootstrap/navbar.less +475 -0
  87. data/vendor/toolkit/twitter/bootstrap/navs.less +384 -0
  88. data/vendor/toolkit/twitter/bootstrap/pager.less +40 -0
  89. data/vendor/toolkit/twitter/bootstrap/pagination.less +64 -0
  90. data/vendor/toolkit/twitter/bootstrap/popovers.less +117 -0
  91. data/vendor/toolkit/twitter/bootstrap/progress-bars.less +122 -0
  92. data/vendor/toolkit/twitter/bootstrap/reset.less +137 -0
  93. data/vendor/toolkit/twitter/bootstrap/responsive-1200px-min.less +28 -0
  94. data/vendor/toolkit/twitter/bootstrap/responsive-767px-max.less +174 -0
  95. data/vendor/toolkit/twitter/bootstrap/responsive-768px-979px.less +19 -0
  96. data/vendor/toolkit/twitter/bootstrap/responsive-navbar.less +177 -0
  97. data/vendor/toolkit/twitter/bootstrap/responsive-utilities.less +43 -0
  98. data/vendor/toolkit/twitter/bootstrap/responsive.less +48 -0
  99. data/vendor/toolkit/twitter/bootstrap/scaffolding.less +52 -0
  100. data/vendor/toolkit/twitter/bootstrap/sprites.less +193 -0
  101. data/vendor/toolkit/twitter/bootstrap/tables.less +245 -0
  102. data/vendor/toolkit/twitter/bootstrap/thumbnails.less +52 -0
  103. data/vendor/toolkit/twitter/bootstrap/tooltip.less +70 -0
  104. data/vendor/toolkit/twitter/bootstrap/type.less +221 -0
  105. data/vendor/toolkit/twitter/bootstrap/utilities.less +30 -0
  106. data/vendor/toolkit/twitter/bootstrap/variables.less +279 -0
  107. data/vendor/toolkit/twitter/bootstrap/wells.less +29 -0
  108. data/vendor/toolkit/twitter/bootstrap_base.less +2 -0
  109. metadata +235 -0
@@ -0,0 +1,245 @@
1
+ //
2
+ // Tables
3
+ // --------------------------------------------------
4
+
5
+
6
+ // BASE TABLES
7
+ // -----------------
8
+
9
+ table {
10
+ max-width: 100%;
11
+ background-color: @tableBackground;
12
+ border-collapse: collapse;
13
+ border-spacing: 0;
14
+ }
15
+
16
+ // BASELINE STYLES
17
+ // ---------------
18
+
19
+ .table {
20
+ width: 100%;
21
+ margin-bottom: @baseLineHeight;
22
+ // Cells
23
+ th,
24
+ td {
25
+ padding: 8px;
26
+ line-height: @baseLineHeight;
27
+ text-align: left;
28
+ vertical-align: top;
29
+ border-top: 1px solid @tableBorder;
30
+ }
31
+ th {
32
+ font-weight: bold;
33
+ }
34
+ // Bottom align for column headings
35
+ thead th {
36
+ vertical-align: bottom;
37
+ }
38
+ // Remove top border from thead by default
39
+ caption + thead tr:first-child th,
40
+ caption + thead tr:first-child td,
41
+ colgroup + thead tr:first-child th,
42
+ colgroup + thead tr:first-child td,
43
+ thead:first-child tr:first-child th,
44
+ thead:first-child tr:first-child td {
45
+ border-top: 0;
46
+ }
47
+ // Account for multiple tbody instances
48
+ tbody + tbody {
49
+ border-top: 2px solid @tableBorder;
50
+ }
51
+ }
52
+
53
+
54
+
55
+ // CONDENSED TABLE W/ HALF PADDING
56
+ // -------------------------------
57
+
58
+ .table-condensed {
59
+ th,
60
+ td {
61
+ padding: 4px 5px;
62
+ }
63
+ }
64
+
65
+
66
+ // BORDERED VERSION
67
+ // ----------------
68
+
69
+ .table-bordered {
70
+ border: 1px solid @tableBorder;
71
+ border-collapse: separate; // Done so we can round those corners!
72
+ *border-collapse: collapse; // IE7 can't round corners anyway
73
+ border-left: 0;
74
+ .border-radius(4px);
75
+ th,
76
+ td {
77
+ border-left: 1px solid @tableBorder;
78
+ }
79
+ // Prevent a double border
80
+ caption + thead tr:first-child th,
81
+ caption + tbody tr:first-child th,
82
+ caption + tbody tr:first-child td,
83
+ colgroup + thead tr:first-child th,
84
+ colgroup + tbody tr:first-child th,
85
+ colgroup + tbody tr:first-child td,
86
+ thead:first-child tr:first-child th,
87
+ tbody:first-child tr:first-child th,
88
+ tbody:first-child tr:first-child td {
89
+ border-top: 0;
90
+ }
91
+ // For first th or td in the first row in the first thead or tbody
92
+ thead:first-child tr:first-child th:first-child,
93
+ tbody:first-child tr:first-child td:first-child {
94
+ -webkit-border-top-left-radius: 4px;
95
+ border-top-left-radius: 4px;
96
+ -moz-border-radius-topleft: 4px;
97
+ }
98
+ thead:first-child tr:first-child th:last-child,
99
+ tbody:first-child tr:first-child td:last-child {
100
+ -webkit-border-top-right-radius: 4px;
101
+ border-top-right-radius: 4px;
102
+ -moz-border-radius-topright: 4px;
103
+ }
104
+ // For first th or td in the first row in the first thead or tbody
105
+ thead:last-child tr:last-child th:first-child,
106
+ tbody:last-child tr:last-child td:first-child,
107
+ tfoot:last-child tr:last-child td:first-child {
108
+ .border-radius(0 0 0 4px);
109
+ -webkit-border-bottom-left-radius: 4px;
110
+ border-bottom-left-radius: 4px;
111
+ -moz-border-radius-bottomleft: 4px;
112
+ }
113
+ thead:last-child tr:last-child th:last-child,
114
+ tbody:last-child tr:last-child td:last-child,
115
+ tfoot:last-child tr:last-child td:last-child {
116
+ -webkit-border-bottom-right-radius: 4px;
117
+ border-bottom-right-radius: 4px;
118
+ -moz-border-radius-bottomright: 4px;
119
+ }
120
+
121
+ // Special fixes to round the left border on the first td/th
122
+ caption + thead tr:first-child th:first-child,
123
+ caption + tbody tr:first-child td:first-child,
124
+ colgroup + thead tr:first-child th:first-child,
125
+ colgroup + tbody tr:first-child td:first-child {
126
+ -webkit-border-top-left-radius: 4px;
127
+ border-top-left-radius: 4px;
128
+ -moz-border-radius-topleft: 4px;
129
+ }
130
+ caption + thead tr:first-child th:last-child,
131
+ caption + tbody tr:first-child td:last-child,
132
+ colgroup + thead tr:first-child th:last-child,
133
+ colgroup + tbody tr:first-child td:last-child {
134
+ -webkit-border-top-right-radius: 4px;
135
+ border-top-right-radius: 4px;
136
+ -moz-border-radius-topleft: 4px;
137
+ }
138
+
139
+ }
140
+
141
+
142
+
143
+
144
+ // ZEBRA-STRIPING
145
+ // --------------
146
+
147
+ // Default zebra-stripe styles (alternating gray and transparent backgrounds)
148
+ .table-striped {
149
+ tbody {
150
+ tr:nth-child(odd) td,
151
+ tr:nth-child(odd) th {
152
+ background-color: @tableBackgroundAccent;
153
+ }
154
+ }
155
+ }
156
+
157
+
158
+ // HOVER EFFECT
159
+ // ------------
160
+ // Placed here since it has to come after the potential zebra striping
161
+ .table-hover {
162
+ tbody {
163
+ tr:hover td,
164
+ tr:hover th {
165
+ background-color: @tableBackgroundHover;
166
+ }
167
+ }
168
+ }
169
+
170
+
171
+ // TABLE CELL SIZING
172
+ // -----------------
173
+
174
+ // Reset default grid behavior
175
+ table [class*=span],
176
+ .row-fluid table [class*=span] {
177
+ display: table-cell;
178
+ float: none; // undo default grid column styles
179
+ margin-left: 0; // undo default grid column styles
180
+ }
181
+
182
+ // Change the column widths to account for td/th padding
183
+ .table {
184
+ .span1 { .tableColumns(1); }
185
+ .span2 { .tableColumns(2); }
186
+ .span3 { .tableColumns(3); }
187
+ .span4 { .tableColumns(4); }
188
+ .span5 { .tableColumns(5); }
189
+ .span6 { .tableColumns(6); }
190
+ .span7 { .tableColumns(7); }
191
+ .span8 { .tableColumns(8); }
192
+ .span9 { .tableColumns(9); }
193
+ .span10 { .tableColumns(10); }
194
+ .span11 { .tableColumns(11); }
195
+ .span12 { .tableColumns(12); }
196
+ .span13 { .tableColumns(13); }
197
+ .span14 { .tableColumns(14); }
198
+ .span15 { .tableColumns(15); }
199
+ .span16 { .tableColumns(16); }
200
+ .span17 { .tableColumns(17); }
201
+ .span18 { .tableColumns(18); }
202
+ .span19 { .tableColumns(19); }
203
+ .span20 { .tableColumns(20); }
204
+ .span21 { .tableColumns(21); }
205
+ .span22 { .tableColumns(22); }
206
+ .span23 { .tableColumns(23); }
207
+ .span24 { .tableColumns(24); }
208
+ }
209
+
210
+
211
+
212
+ // TABLE BACKGROUNDS
213
+ // -----------------
214
+ // Exact selectors below required to override .table-striped
215
+
216
+ .table tbody tr {
217
+ &.success td {
218
+ background-color: @successBackground;
219
+ }
220
+ &.error td {
221
+ background-color: @errorBackground;
222
+ }
223
+ &.warning td {
224
+ background-color: @warningBackground;
225
+ }
226
+ &.info td {
227
+ background-color: @infoBackground;
228
+ }
229
+ }
230
+
231
+ // Hover states for .table-hover
232
+ .table-hover tbody tr {
233
+ &.success:hover td {
234
+ background-color: darken(@successBackground, 5%);
235
+ }
236
+ &.error:hover td {
237
+ background-color: darken(@errorBackground, 5%);
238
+ }
239
+ &.warning:hover td {
240
+ background-color: darken(@warningBackground, 5%);
241
+ }
242
+ &.info:hover td {
243
+ background-color: darken(@infoBackground, 5%);
244
+ }
245
+ }
@@ -0,0 +1,52 @@
1
+ //
2
+ // Thumbnails
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Note: `.thumbnails` and `.thumbnails > li` are overriden in responsive files
7
+
8
+ // Make wrapper ul behave like the grid
9
+ .thumbnails {
10
+ margin-left: -@gridGutterWidth;
11
+ list-style: none;
12
+ .clearfix();
13
+ }
14
+ // Fluid rows have no left margin
15
+ .row-fluid .thumbnails {
16
+ margin-left: 0;
17
+ }
18
+
19
+ // Float li to make thumbnails appear in a row
20
+ .thumbnails > li {
21
+ float: left; // Explicity set the float since we don't require .span* classes
22
+ margin-bottom: @baseLineHeight;
23
+ margin-left: @gridGutterWidth;
24
+ }
25
+
26
+ // The actual thumbnail (can be `a` or `div`)
27
+ .thumbnail {
28
+ display: block;
29
+ padding: 4px;
30
+ line-height: @baseLineHeight;
31
+ border: 1px solid #ddd;
32
+ .border-radius(4px);
33
+ .box-shadow(0 1px 3px rgba(0,0,0,.055));
34
+ .transition(all .2s ease-in-out);
35
+ }
36
+ // Add a hover state for linked versions only
37
+ a.thumbnail:hover {
38
+ border-color: @linkColor;
39
+ .box-shadow(0 1px 4px rgba(0,105,214,.25));
40
+ }
41
+
42
+ // Images and captions
43
+ .thumbnail > img {
44
+ display: block;
45
+ max-width: 100%;
46
+ margin-left: auto;
47
+ margin-right: auto;
48
+ }
49
+ .thumbnail .caption {
50
+ padding: 9px;
51
+ color: @gray;
52
+ }
@@ -0,0 +1,70 @@
1
+ //
2
+ // Tooltips
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Base class
7
+ .tooltip {
8
+ position: absolute;
9
+ z-index: @zindexTooltip;
10
+ display: block;
11
+ visibility: visible;
12
+ padding: 5px;
13
+ font-size: 11px;
14
+ .opacity(0);
15
+ &.in { .opacity(80); }
16
+ &.top { margin-top: -3px; }
17
+ &.right { margin-left: 3px; }
18
+ &.bottom { margin-top: 3px; }
19
+ &.left { margin-left: -3px; }
20
+ }
21
+
22
+ // Wrapper for the tooltip content
23
+ .tooltip-inner {
24
+ max-width: 200px;
25
+ padding: 3px 8px;
26
+ color: @tooltipColor;
27
+ text-align: center;
28
+ text-decoration: none;
29
+ background-color: @tooltipBackground;
30
+ .border-radius(4px);
31
+ }
32
+
33
+ // Arrows
34
+ .tooltip-arrow {
35
+ position: absolute;
36
+ width: 0;
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
+ }
70
+ }
@@ -0,0 +1,221 @@
1
+ //
2
+ // Typography
3
+ // --------------------------------------------------
4
+
5
+
6
+ // Body text
7
+ // -------------------------
8
+
9
+ p {
10
+ margin: 0 0 @baseLineHeight / 2;
11
+ }
12
+ .lead {
13
+ margin-bottom: @baseLineHeight;
14
+ font-size: @baseFontSize * 1.5;
15
+ font-weight: 200;
16
+ line-height: @baseLineHeight * 1.5;
17
+ }
18
+
19
+
20
+ // Emphasis & misc
21
+ // -------------------------
22
+
23
+ small {
24
+ font-size: 85%; // Ex: 14px base font * 85% = about 12px
25
+ }
26
+ strong {
27
+ font-weight: bold;
28
+ }
29
+ em {
30
+ font-style: italic;
31
+ }
32
+ cite {
33
+ font-style: normal;
34
+ }
35
+
36
+ // Utility classes
37
+ .muted {
38
+ color: @grayLight;
39
+ }
40
+ .text-warning {
41
+ color: @warningText;
42
+ }
43
+ .text-error {
44
+ color: @errorText;
45
+ }
46
+ .text-info {
47
+ color: @infoText;
48
+ }
49
+ .text-success {
50
+ color: @successText;
51
+ }
52
+
53
+
54
+ // Headings
55
+ // -------------------------
56
+
57
+ h1, h2, h3, h4, h5, h6 {
58
+ margin: (@baseLineHeight / 2) 0;
59
+ font-family: @headingsFontFamily;
60
+ font-weight: @headingsFontWeight;
61
+ line-height: 1;
62
+ color: @headingsColor;
63
+ text-rendering: optimizelegibility; // Fix the character spacing for headings
64
+ small {
65
+ font-weight: normal;
66
+ line-height: 1;
67
+ color: @grayLight;
68
+ }
69
+ }
70
+ h1 { font-size: 36px; line-height: 40px; }
71
+ h2 { font-size: 30px; line-height: 40px; }
72
+ h3 { font-size: 24px; line-height: 40px; }
73
+ h4 { font-size: 18px; line-height: 20px; }
74
+ h5 { font-size: 14px; line-height: 20px; }
75
+ h6 { font-size: 12px; line-height: 20px; }
76
+
77
+ h1 small { font-size: 24px; }
78
+ h2 small { font-size: 18px; }
79
+ h3 small { font-size: 14px; }
80
+ h4 small { font-size: 14px; }
81
+
82
+
83
+ // Page header
84
+ // -------------------------
85
+
86
+ .page-header {
87
+ padding-bottom: (@baseLineHeight / 2) - 1;
88
+ margin: @baseLineHeight 0 (@baseLineHeight * 1.5);
89
+ border-bottom: 1px solid @grayLighter;
90
+ }
91
+
92
+
93
+
94
+ // Lists
95
+ // --------------------------------------------------
96
+
97
+ // Unordered and Ordered lists
98
+ ul, ol {
99
+ padding: 0;
100
+ margin: 0 0 @baseLineHeight / 2 25px;
101
+ }
102
+ ul ul,
103
+ ul ol,
104
+ ol ol,
105
+ ol ul {
106
+ margin-bottom: 0;
107
+ }
108
+ li {
109
+ line-height: @baseLineHeight;
110
+ }
111
+ ul.unstyled,
112
+ ol.unstyled {
113
+ margin-left: 0;
114
+ list-style: none;
115
+ }
116
+
117
+ // Description Lists
118
+ dl {
119
+ margin-bottom: @baseLineHeight;
120
+ }
121
+ dt,
122
+ dd {
123
+ line-height: @baseLineHeight;
124
+ }
125
+ dt {
126
+ font-weight: bold;
127
+ }
128
+ dd {
129
+ margin-left: @baseLineHeight / 2;
130
+ }
131
+ // Horizontal layout (like forms)
132
+ .dl-horizontal {
133
+ .clearfix(); // Ensure dl clears floats if empty dd elements present
134
+ dt {
135
+ float: left;
136
+ width: @horizontalComponentOffset - 20;
137
+ clear: left;
138
+ text-align: right;
139
+ .text-overflow();
140
+ }
141
+ dd {
142
+ margin-left: @horizontalComponentOffset;
143
+ }
144
+ }
145
+
146
+ // MISC
147
+ // ----
148
+
149
+ // Horizontal rules
150
+ hr {
151
+ margin: @baseLineHeight 0;
152
+ border: 0;
153
+ border-top: 1px solid @hrBorder;
154
+ border-bottom: 1px solid @white;
155
+ }
156
+
157
+ // Abbreviations and acronyms
158
+ abbr[title] {
159
+ cursor: help;
160
+ border-bottom: 1px dotted @grayLight;
161
+ }
162
+ abbr.initialism {
163
+ font-size: 90%;
164
+ text-transform: uppercase;
165
+ }
166
+
167
+ // Blockquotes
168
+ blockquote {
169
+ padding: 0 0 0 15px;
170
+ margin: 0 0 @baseLineHeight;
171
+ border-left: 5px solid @grayLighter;
172
+ p {
173
+ margin-bottom: 0;
174
+ #font > .shorthand(16px,300,@baseLineHeight * 1.25);
175
+ }
176
+ small {
177
+ display: block;
178
+ line-height: @baseLineHeight;
179
+ color: @grayLight;
180
+ &:before {
181
+ content: '\2014 \00A0';
182
+ }
183
+ }
184
+
185
+ // Float right with text-align: right
186
+ &.pull-right {
187
+ float: right;
188
+ padding-right: 15px;
189
+ padding-left: 0;
190
+ border-right: 5px solid @grayLighter;
191
+ border-left: 0;
192
+ p,
193
+ small {
194
+ text-align: right;
195
+ }
196
+ small {
197
+ &:before {
198
+ content: '';
199
+ }
200
+ &:after {
201
+ content: '\00A0 \2014';
202
+ }
203
+ }
204
+ }
205
+ }
206
+
207
+ // Quotes
208
+ q:before,
209
+ q:after,
210
+ blockquote:before,
211
+ blockquote:after {
212
+ content: "";
213
+ }
214
+
215
+ // Addresses
216
+ address {
217
+ display: block;
218
+ margin-bottom: @baseLineHeight;
219
+ font-style: normal;
220
+ line-height: @baseLineHeight;
221
+ }