bootstrap-sass-rails-rtl 2.0.4.12
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.
- data/LICENSE +14 -0
- data/README.md +115 -0
- data/Rakefile +37 -0
- data/lib/bootstrap-sass-rails-rtl.rb +9 -0
- data/lib/bootstrap/sass/extensions.rb +5 -0
- data/lib/bootstrap/sass/extensions/functions.rb +15 -0
- data/lib/bootstrap/sass/rails.rb +2 -0
- data/lib/bootstrap/sass/rails/engine.rb +9 -0
- data/lib/bootstrap/sass/rails/version.rb +7 -0
- data/test/cases/usage_css_spec.rb +216 -0
- data/test/cases/usage_js_spec.rb +40 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +3 -0
- data/test/dummy/app/assets/javascripts/individual.js +1 -0
- data/test/dummy/app/assets/stylesheets/application-rtl.css.scss +3 -0
- data/test/dummy/app/assets/stylesheets/application.css.scss +3 -0
- data/test/dummy/app/assets/stylesheets/individual-rtl.css.scss +11 -0
- data/test/dummy/app/assets/stylesheets/individual.css.scss +11 -0
- data/test/dummy/app/assets/stylesheets/sprockets-rtl.css +3 -0
- data/test/dummy/app/assets/stylesheets/sprockets.css +3 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +49 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +39 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/spec_helper.rb +13 -0
- data/test/support/helpers.rb +35 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/images/twitter/bootstrap/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/twitter/bootstrap.js +12 -0
- data/vendor/assets/javascripts/twitter/bootstrap/alert.js +90 -0
- data/vendor/assets/javascripts/twitter/bootstrap/button.js +96 -0
- data/vendor/assets/javascripts/twitter/bootstrap/carousel.js +169 -0
- data/vendor/assets/javascripts/twitter/bootstrap/collapse.js +157 -0
- data/vendor/assets/javascripts/twitter/bootstrap/dropdown.js +100 -0
- data/vendor/assets/javascripts/twitter/bootstrap/modal.js +218 -0
- data/vendor/assets/javascripts/twitter/bootstrap/popover.js +98 -0
- data/vendor/assets/javascripts/twitter/bootstrap/scrollspy.js +151 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tab.js +135 -0
- data/vendor/assets/javascripts/twitter/bootstrap/tooltip.js +275 -0
- data/vendor/assets/javascripts/twitter/bootstrap/transition.js +61 -0
- data/vendor/assets/javascripts/twitter/bootstrap/typeahead.js +285 -0
- data/vendor/assets/stylesheets/twitter/bootstrap.css.scss +62 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_accordion.scss +33 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_alerts.scss +59 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_breadcrumbs.scss +24 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_button-groups.scss +190 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_buttons.scss +193 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_carousel.scss +121 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_close.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_code.scss +57 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_component-animations.scss +20 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_dropdowns.scss +142 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_forms.scss +589 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_grid.scss +8 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_hero-unit.scss +22 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_labels-badges.scss +54 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_layouts.scss +17 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_mixins.scss +612 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_modals.scss +90 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navbar.scss +358 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_navs.scss +364 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pager.scss +36 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_pagination.scss +56 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_popovers.scss +49 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_progress-bars.scss +118 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_reset.scss +131 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-1200px-min.scss +26 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-767px-max.scss +150 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-768px-979px.scss +19 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-navbar.scss +153 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive-utilities.scss +41 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_responsive.scss +48 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_scaffolding.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_sprites.scss +178 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tables.scss +175 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_thumbnails.scss +47 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_tooltip.scss +35 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_type.scss +232 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_utilities.scss +23 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_variables.scss +206 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/_wells.scss +27 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_accordion.scss +33 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_alerts.scss +59 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_breadcrumbs.scss +24 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_button-groups.scss +190 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_buttons.scss +193 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_carousel.scss +121 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_close.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_code.scss +57 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_component-animations.scss +20 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_dropdowns.scss +142 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_forms.scss +589 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_grid.scss +8 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_hero-unit.scss +22 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_labels-badges.scss +54 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_layouts.scss +17 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_mixins.scss +612 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_modals.scss +90 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_navbar.scss +358 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_navs.scss +364 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_pager.scss +36 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_pagination.scss +56 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_popovers.scss +49 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_progress-bars.scss +118 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_reset.scss +131 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-1200px-min.scss +26 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-767px-max.scss +150 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-768px-979px.scss +19 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-navbar.scss +153 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive-utilities.scss +41 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_responsive.scss +48 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_scaffolding.scss +29 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_sprites.scss +178 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_tables.scss +175 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_thumbnails.scss +47 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_tooltip.scss +35 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_type.scss +232 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_utilities.scss +23 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_variables.scss +206 -0
- data/vendor/assets/stylesheets/twitter/bootstrap/rtl/_wells.scss +27 -0
- data/vendor/assets/stylesheets/twitter/bootstrap_rtl.css.scss +62 -0
- metadata +276 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Tables.less
|
|
3
|
+
// Tables for, you guessed it, tabular data
|
|
4
|
+
// ----------------------------------------
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
// BASE TABLES
|
|
8
|
+
// -----------------
|
|
9
|
+
|
|
10
|
+
table {
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
background-color: $tableBackground;
|
|
13
|
+
border-collapse: collapse;
|
|
14
|
+
border-spacing: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// BASELINE STYLES
|
|
18
|
+
// ---------------
|
|
19
|
+
|
|
20
|
+
.table {
|
|
21
|
+
width: 100%;
|
|
22
|
+
margin-bottom: $baseLineHeight;
|
|
23
|
+
// Cells
|
|
24
|
+
th,
|
|
25
|
+
td {
|
|
26
|
+
padding: 8px;
|
|
27
|
+
line-height: $baseLineHeight;
|
|
28
|
+
text-align: left;
|
|
29
|
+
vertical-align: top;
|
|
30
|
+
border-top: 1px solid $tableBorder;
|
|
31
|
+
}
|
|
32
|
+
th {
|
|
33
|
+
font-weight: bold;
|
|
34
|
+
}
|
|
35
|
+
// Bottom align for column headings
|
|
36
|
+
thead th {
|
|
37
|
+
vertical-align: bottom;
|
|
38
|
+
}
|
|
39
|
+
// Remove top border from thead by default
|
|
40
|
+
caption + thead tr:first-child th,
|
|
41
|
+
caption + thead tr:first-child td,
|
|
42
|
+
colgroup + thead tr:first-child th,
|
|
43
|
+
colgroup + thead tr:first-child td,
|
|
44
|
+
thead:first-child tr:first-child th,
|
|
45
|
+
thead:first-child tr:first-child td {
|
|
46
|
+
border-top: 0;
|
|
47
|
+
}
|
|
48
|
+
// Account for multiple tbody instances
|
|
49
|
+
tbody + tbody {
|
|
50
|
+
border-top: 2px solid $tableBorder;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
// CONDENSED TABLE W/ HALF PADDING
|
|
57
|
+
// -------------------------------
|
|
58
|
+
|
|
59
|
+
.table-condensed {
|
|
60
|
+
th,
|
|
61
|
+
td {
|
|
62
|
+
padding: 4px 5px;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
// BORDERED VERSION
|
|
68
|
+
// ----------------
|
|
69
|
+
|
|
70
|
+
.table-bordered {
|
|
71
|
+
border: 1px solid $tableBorder;
|
|
72
|
+
border-collapse: separate; // Done so we can round those corners!
|
|
73
|
+
*border-collapse: collapsed; // IE7 can't round corners anyway
|
|
74
|
+
border-left: 0;
|
|
75
|
+
@include border-radius(4px);
|
|
76
|
+
th,
|
|
77
|
+
td {
|
|
78
|
+
border-left: 1px solid $tableBorder;
|
|
79
|
+
}
|
|
80
|
+
// Prevent a double border
|
|
81
|
+
caption + thead tr:first-child th,
|
|
82
|
+
caption + tbody tr:first-child th,
|
|
83
|
+
caption + tbody tr:first-child td,
|
|
84
|
+
colgroup + thead tr:first-child th,
|
|
85
|
+
colgroup + tbody tr:first-child th,
|
|
86
|
+
colgroup + tbody tr:first-child td,
|
|
87
|
+
thead:first-child tr:first-child th,
|
|
88
|
+
tbody:first-child tr:first-child th,
|
|
89
|
+
tbody:first-child tr:first-child td {
|
|
90
|
+
border-top: 0;
|
|
91
|
+
}
|
|
92
|
+
// For first th or td in the first row in the first thead or tbody
|
|
93
|
+
thead:first-child tr:first-child th:first-child,
|
|
94
|
+
tbody:first-child tr:first-child td:first-child {
|
|
95
|
+
-webkit-border-top-left-radius: 4px;
|
|
96
|
+
border-top-left-radius: 4px;
|
|
97
|
+
-moz-border-radius-topleft: 4px;
|
|
98
|
+
}
|
|
99
|
+
thead:first-child tr:first-child th:last-child,
|
|
100
|
+
tbody:first-child tr:first-child td:last-child {
|
|
101
|
+
-webkit-border-top-right-radius: 4px;
|
|
102
|
+
border-top-right-radius: 4px;
|
|
103
|
+
-moz-border-radius-topright: 4px;
|
|
104
|
+
}
|
|
105
|
+
// For first th or td in the first row in the first thead or tbody
|
|
106
|
+
thead:last-child tr:last-child th:first-child,
|
|
107
|
+
tbody:last-child tr:last-child td:first-child {
|
|
108
|
+
-webkit-border-bottom-left-radius: 4px;
|
|
109
|
+
border-bottom-left-radius: 4px;
|
|
110
|
+
-moz-border-radius-bottomleft: 4px;
|
|
111
|
+
}
|
|
112
|
+
thead:last-child tr:last-child th:last-child,
|
|
113
|
+
tbody:last-child tr:last-child td:last-child {
|
|
114
|
+
-webkit-border-bottom-right-radius: 4px;
|
|
115
|
+
border-bottom-right-radius: 4px;
|
|
116
|
+
-moz-border-radius-bottomright: 4px;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
// ZEBRA-STRIPING
|
|
122
|
+
// --------------
|
|
123
|
+
|
|
124
|
+
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
|
125
|
+
.table-striped {
|
|
126
|
+
tbody {
|
|
127
|
+
tr:nth-child(odd) td,
|
|
128
|
+
tr:nth-child(odd) th {
|
|
129
|
+
background-color: $tableBackgroundAccent;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
// HOVER EFFECT
|
|
136
|
+
// ------------
|
|
137
|
+
// Placed here since it has to come after the potential zebra striping
|
|
138
|
+
.table {
|
|
139
|
+
tbody tr:hover td,
|
|
140
|
+
tbody tr:hover th {
|
|
141
|
+
background-color: $tableBackgroundHover;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
// TABLE CELL SIZING
|
|
147
|
+
// -----------------
|
|
148
|
+
|
|
149
|
+
// Change the columns
|
|
150
|
+
table {
|
|
151
|
+
.span1 { @include tableColumns(1); }
|
|
152
|
+
.span2 { @include tableColumns(2); }
|
|
153
|
+
.span3 { @include tableColumns(3); }
|
|
154
|
+
.span4 { @include tableColumns(4); }
|
|
155
|
+
.span5 { @include tableColumns(5); }
|
|
156
|
+
.span6 { @include tableColumns(6); }
|
|
157
|
+
.span7 { @include tableColumns(7); }
|
|
158
|
+
.span8 { @include tableColumns(8); }
|
|
159
|
+
.span9 { @include tableColumns(9); }
|
|
160
|
+
.span10 { @include tableColumns(10); }
|
|
161
|
+
.span11 { @include tableColumns(11); }
|
|
162
|
+
.span12 { @include tableColumns(12); }
|
|
163
|
+
.span13 { @include tableColumns(13); }
|
|
164
|
+
.span14 { @include tableColumns(14); }
|
|
165
|
+
.span15 { @include tableColumns(15); }
|
|
166
|
+
.span16 { @include tableColumns(16); }
|
|
167
|
+
.span17 { @include tableColumns(17); }
|
|
168
|
+
.span18 { @include tableColumns(18); }
|
|
169
|
+
.span19 { @include tableColumns(19); }
|
|
170
|
+
.span20 { @include tableColumns(20); }
|
|
171
|
+
.span21 { @include tableColumns(21); }
|
|
172
|
+
.span22 { @include tableColumns(22); }
|
|
173
|
+
.span23 { @include tableColumns(23); }
|
|
174
|
+
.span24 { @include tableColumns(24); }
|
|
175
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// THUMBNAILS
|
|
2
|
+
// ----------
|
|
3
|
+
// Note: `.thumbnails` and `.thumbnails > li` are overriden in responsive files
|
|
4
|
+
|
|
5
|
+
// Make wrapper ul behave like the grid
|
|
6
|
+
.thumbnails {
|
|
7
|
+
margin-left: -$gridGutterWidth;
|
|
8
|
+
list-style: none;
|
|
9
|
+
@include clearfix();
|
|
10
|
+
}
|
|
11
|
+
// Fluid rows have no left margin
|
|
12
|
+
.row-fluid .thumbnails {
|
|
13
|
+
margin-left: 0;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// Float li to make thumbnails appear in a row
|
|
17
|
+
.thumbnails > li {
|
|
18
|
+
float: left; // Explicity set the float since we don't require .span* classes
|
|
19
|
+
margin-bottom: $baseLineHeight;
|
|
20
|
+
margin-left: $gridGutterWidth;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// The actual thumbnail (can be `a` or `div`)
|
|
24
|
+
.thumbnail {
|
|
25
|
+
display: block;
|
|
26
|
+
padding: 4px;
|
|
27
|
+
line-height: 1;
|
|
28
|
+
border: 1px solid #ddd;
|
|
29
|
+
@include border-radius(4px);
|
|
30
|
+
@include box-shadow(0 1px 1px rgba(0,0,0,.075));
|
|
31
|
+
}
|
|
32
|
+
// Add a hover state for linked versions only
|
|
33
|
+
a.thumbnail:hover {
|
|
34
|
+
border-color: $linkColor;
|
|
35
|
+
@include box-shadow(0 1px 4px rgba(0,105,214,.25));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Images and captions
|
|
39
|
+
.thumbnail > img {
|
|
40
|
+
display: block;
|
|
41
|
+
max-width: 100%;
|
|
42
|
+
margin-left: auto;
|
|
43
|
+
margin-right: auto;
|
|
44
|
+
}
|
|
45
|
+
.thumbnail .caption {
|
|
46
|
+
padding: 9px;
|
|
47
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// TOOLTIP
|
|
2
|
+
// ------=
|
|
3
|
+
|
|
4
|
+
.tooltip {
|
|
5
|
+
position: absolute;
|
|
6
|
+
z-index: $zindexTooltip;
|
|
7
|
+
display: block;
|
|
8
|
+
visibility: visible;
|
|
9
|
+
padding: 5px;
|
|
10
|
+
font-size: 11px;
|
|
11
|
+
@include opacity(0);
|
|
12
|
+
&.in { @include 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 popoverArrow-top(); }
|
|
18
|
+
&.left .tooltip-arrow { @include popoverArrow-left(); }
|
|
19
|
+
&.bottom .tooltip-arrow { @include popoverArrow-bottom(); }
|
|
20
|
+
&.right .tooltip-arrow { @include popoverArrow-right(); }
|
|
21
|
+
}
|
|
22
|
+
.tooltip-inner {
|
|
23
|
+
max-width: 200px;
|
|
24
|
+
padding: 3px 8px;
|
|
25
|
+
color: $white;
|
|
26
|
+
text-align: center;
|
|
27
|
+
text-decoration: none;
|
|
28
|
+
background-color: $black;
|
|
29
|
+
@include border-radius(4px);
|
|
30
|
+
}
|
|
31
|
+
.tooltip-arrow {
|
|
32
|
+
position: absolute;
|
|
33
|
+
width: 0;
|
|
34
|
+
height: 0;
|
|
35
|
+
}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
// Typography.less
|
|
2
|
+
// Headings, body text, lists, code, and more for a versatile and durable typography system
|
|
3
|
+
// ----------------------------------------------------------------------------------------
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
// BODY TEXT
|
|
7
|
+
// ---------
|
|
8
|
+
|
|
9
|
+
p {
|
|
10
|
+
margin: 0 0 $baseLineHeight / 2;
|
|
11
|
+
small {
|
|
12
|
+
font-size: $baseFontSize - 2;
|
|
13
|
+
color: $grayLight;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
.lead {
|
|
17
|
+
margin-bottom: $baseLineHeight;
|
|
18
|
+
font-size: 20px;
|
|
19
|
+
font-weight: 200;
|
|
20
|
+
line-height: $baseLineHeight * 1.5;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// HEADINGS
|
|
24
|
+
// --------
|
|
25
|
+
|
|
26
|
+
h1, h2, h3, h4, h5, h6 {
|
|
27
|
+
margin: 0;
|
|
28
|
+
font-family: $headingsFontFamily;
|
|
29
|
+
font-weight: $headingsFontWeight;
|
|
30
|
+
color: $headingsColor;
|
|
31
|
+
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
|
32
|
+
small {
|
|
33
|
+
font-weight: normal;
|
|
34
|
+
color: $grayLight;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
h1 {
|
|
38
|
+
font-size: 30px;
|
|
39
|
+
line-height: $baseLineHeight * 2;
|
|
40
|
+
small {
|
|
41
|
+
font-size: 18px;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
h2 {
|
|
45
|
+
font-size: 24px;
|
|
46
|
+
line-height: $baseLineHeight * 2;
|
|
47
|
+
small {
|
|
48
|
+
font-size: 18px;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
h3 {
|
|
52
|
+
font-size: 18px;
|
|
53
|
+
line-height: $baseLineHeight * 1.5;
|
|
54
|
+
small {
|
|
55
|
+
font-size: 14px;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
h4, h5, h6 {
|
|
59
|
+
line-height: $baseLineHeight;
|
|
60
|
+
}
|
|
61
|
+
h4 {
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
small {
|
|
64
|
+
font-size: 12px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
h5 {
|
|
68
|
+
font-size: 12px;
|
|
69
|
+
}
|
|
70
|
+
h6 {
|
|
71
|
+
font-size: 11px;
|
|
72
|
+
color: $grayLight;
|
|
73
|
+
text-transform: uppercase;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Page header
|
|
77
|
+
.page-header {
|
|
78
|
+
padding-bottom: $baseLineHeight - 1;
|
|
79
|
+
margin: $baseLineHeight 0;
|
|
80
|
+
border-bottom: 1px solid $grayLighter;
|
|
81
|
+
}
|
|
82
|
+
.page-header h1 {
|
|
83
|
+
line-height: 1;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
// LISTS
|
|
89
|
+
// -----
|
|
90
|
+
|
|
91
|
+
// Unordered and Ordered lists
|
|
92
|
+
ul, ol {
|
|
93
|
+
padding: 0;
|
|
94
|
+
margin: 0 0 $baseLineHeight / 2 25px;
|
|
95
|
+
}
|
|
96
|
+
ul ul,
|
|
97
|
+
ul ol,
|
|
98
|
+
ol ol,
|
|
99
|
+
ol ul {
|
|
100
|
+
margin-bottom: 0;
|
|
101
|
+
}
|
|
102
|
+
ul {
|
|
103
|
+
list-style: disc;
|
|
104
|
+
}
|
|
105
|
+
ol {
|
|
106
|
+
list-style: decimal;
|
|
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
|
+
line-height: $baseLineHeight - 1; // fix jank Helvetica Neue font bug
|
|
128
|
+
}
|
|
129
|
+
dd {
|
|
130
|
+
margin-left: $baseLineHeight / 2;
|
|
131
|
+
}
|
|
132
|
+
// Horizontal layout (like forms)
|
|
133
|
+
.dl-horizontal {
|
|
134
|
+
dt {
|
|
135
|
+
float: left;
|
|
136
|
+
width: 120px;
|
|
137
|
+
clear: left;
|
|
138
|
+
text-align: right;
|
|
139
|
+
@include text-overflow();
|
|
140
|
+
}
|
|
141
|
+
dd {
|
|
142
|
+
margin-left: 130px;
|
|
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
|
+
// Emphasis
|
|
158
|
+
strong {
|
|
159
|
+
font-weight: bold;
|
|
160
|
+
}
|
|
161
|
+
em {
|
|
162
|
+
font-style: italic;
|
|
163
|
+
}
|
|
164
|
+
.muted {
|
|
165
|
+
color: $grayLight;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
// Abbreviations and acronyms
|
|
169
|
+
abbr[title] {
|
|
170
|
+
cursor: help;
|
|
171
|
+
border-bottom: 1px dotted $grayLight;
|
|
172
|
+
}
|
|
173
|
+
abbr.initialism {
|
|
174
|
+
font-size: 90%;
|
|
175
|
+
text-transform: uppercase;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
// Blockquotes
|
|
179
|
+
blockquote {
|
|
180
|
+
padding: 0 0 0 15px;
|
|
181
|
+
margin: 0 0 $baseLineHeight;
|
|
182
|
+
border-left: 5px solid $grayLighter;
|
|
183
|
+
p {
|
|
184
|
+
margin-bottom: 0;
|
|
185
|
+
@include font-shorthand(16px,300,$baseLineHeight * 1.25);
|
|
186
|
+
}
|
|
187
|
+
small {
|
|
188
|
+
display: block;
|
|
189
|
+
line-height: $baseLineHeight;
|
|
190
|
+
color: $grayLight;
|
|
191
|
+
&:before {
|
|
192
|
+
content: '\2014 \00A0';
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
// Float right with text-align: right
|
|
197
|
+
&.pull-right {
|
|
198
|
+
float: right;
|
|
199
|
+
padding-right: 15px;
|
|
200
|
+
padding-left: 0;
|
|
201
|
+
border-right: 5px solid $grayLighter;
|
|
202
|
+
border-left: 0;
|
|
203
|
+
p,
|
|
204
|
+
small {
|
|
205
|
+
text-align: right;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
// Quotes
|
|
211
|
+
q:before,
|
|
212
|
+
q:after,
|
|
213
|
+
blockquote:before,
|
|
214
|
+
blockquote:after {
|
|
215
|
+
content: "";
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// Addresses
|
|
219
|
+
address {
|
|
220
|
+
display: block;
|
|
221
|
+
margin-bottom: $baseLineHeight;
|
|
222
|
+
font-style: normal;
|
|
223
|
+
line-height: $baseLineHeight;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
// Misc
|
|
227
|
+
small {
|
|
228
|
+
font-size: 100%;
|
|
229
|
+
}
|
|
230
|
+
cite {
|
|
231
|
+
font-style: normal;
|
|
232
|
+
}
|