style-guide 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +11 -0
- data/.gitmodules +3 -0
- data/.pairs +11 -0
- data/.rvmrc +1 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +144 -0
- data/Guardfile +14 -0
- data/LICENSE +7 -0
- data/README.md +7 -0
- data/Rakefile +27 -0
- data/app/assets/images/style_guide/.gitkeep +0 -0
- data/app/assets/images/style_guide/img/bird.png +0 -0
- data/app/assets/images/style_guide/img/bootstrap-mdo-sfmoma-01.jpg +0 -0
- data/app/assets/images/style_guide/img/bootstrap-mdo-sfmoma-02.jpg +0 -0
- data/app/assets/images/style_guide/img/bootstrap-mdo-sfmoma-03.jpg +0 -0
- data/app/assets/images/style_guide/img/browsers.png +0 -0
- data/app/assets/images/style_guide/img/bs-docs-bootstrap-features.png +0 -0
- data/app/assets/images/style_guide/img/bs-docs-masthead-pattern.png +0 -0
- data/app/assets/images/style_guide/img/bs-docs-responsive-illustrations.png +0 -0
- data/app/assets/images/style_guide/img/bs-docs-twitter-github.png +0 -0
- data/app/assets/images/style_guide/img/example-diagram-01.png +0 -0
- data/app/assets/images/style_guide/img/example-diagram-02.png +0 -0
- data/app/assets/images/style_guide/img/example-diagram-03.png +0 -0
- data/app/assets/images/style_guide/img/example-sites/8020select.png +0 -0
- data/app/assets/images/style_guide/img/example-sites/adoptahydrant.png +0 -0
- data/app/assets/images/style_guide/img/example-sites/bartop.png +0 -0
- data/app/assets/images/style_guide/img/example-sites/breakingnews.png +0 -0
- data/app/assets/images/style_guide/img/example-sites/fleetio.png +0 -0
- data/app/assets/images/style_guide/img/example-sites/gathercontent.png +0 -0
- data/app/assets/images/style_guide/img/example-sites/jshint.png +0 -0
- data/app/assets/images/style_guide/img/example-sites/kippt.png +0 -0
- data/app/assets/images/style_guide/img/example-sites/railwayjs.png +0 -0
- data/app/assets/images/style_guide/img/example-sites/soundready.png +0 -0
- data/app/assets/images/style_guide/img/example-sites/totalwireframe.png +0 -0
- data/app/assets/images/style_guide/img/examples/bootstrap-example-carousel.png +0 -0
- data/app/assets/images/style_guide/img/examples/bootstrap-example-fluid.jpg +0 -0
- data/app/assets/images/style_guide/img/examples/bootstrap-example-hero.jpg +0 -0
- data/app/assets/images/style_guide/img/examples/bootstrap-example-marketing-narrow.png +0 -0
- data/app/assets/images/style_guide/img/examples/bootstrap-example-signin.png +0 -0
- data/app/assets/images/style_guide/img/examples/bootstrap-example-starter.jpg +0 -0
- data/app/assets/images/style_guide/img/examples/bootstrap-example-sticky-footer.png +0 -0
- data/app/assets/images/style_guide/img/examples/browser-icon-chrome.png +0 -0
- data/app/assets/images/style_guide/img/examples/browser-icon-firefox.png +0 -0
- data/app/assets/images/style_guide/img/examples/browser-icon-safari.png +0 -0
- data/app/assets/images/style_guide/img/examples/slide-01.jpg +0 -0
- data/app/assets/images/style_guide/img/examples/slide-02.jpg +0 -0
- data/app/assets/images/style_guide/img/examples/slide-03.jpg +0 -0
- data/app/assets/images/style_guide/img/github-16px.png +0 -0
- data/app/assets/images/style_guide/img/glyphicons/glyphicons_009_magic.png +0 -0
- data/app/assets/images/style_guide/img/glyphicons/glyphicons_042_group.png +0 -0
- data/app/assets/images/style_guide/img/glyphicons/glyphicons_079_podium.png +0 -0
- data/app/assets/images/style_guide/img/glyphicons/glyphicons_082_roundabout.png +0 -0
- data/app/assets/images/style_guide/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
- data/app/assets/images/style_guide/img/glyphicons/glyphicons_163_iphone.png +0 -0
- data/app/assets/images/style_guide/img/glyphicons/glyphicons_214_resize_small.png +0 -0
- data/app/assets/images/style_guide/img/glyphicons/glyphicons_266_book_open.png +0 -0
- data/app/assets/images/style_guide/img/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/style_guide/img/glyphicons-halflings.png +0 -0
- data/app/assets/images/style_guide/img/grid-18px-masked.png +0 -0
- data/app/assets/images/style_guide/img/grid-baseline-20px.png +0 -0
- data/app/assets/images/style_guide/img/icon-css3.png +0 -0
- data/app/assets/images/style_guide/img/icon-github.png +0 -0
- data/app/assets/images/style_guide/img/icon-html5.png +0 -0
- data/app/assets/images/style_guide/img/icon-twitter.png +0 -0
- data/app/assets/images/style_guide/img/less-logo-large.png +0 -0
- data/app/assets/images/style_guide/img/less-small.png +0 -0
- data/app/assets/images/style_guide/img/responsive-illustrations.png +0 -0
- data/app/assets/javascripts/style_guide/application.js +13 -0
- data/app/assets/javascripts/style_guide/docs.js +154 -0
- data/app/assets/javascripts/style_guide/prettify.js +28 -0
- data/app/assets/stylesheets/style_guide/application.css +13 -0
- data/app/assets/stylesheets/style_guide/docs.css +1015 -0
- data/app/assets/stylesheets/style_guide/prettify.css +30 -0
- data/app/controllers/style_guide/application_controller.rb +4 -0
- data/app/controllers/style_guide/style_controller.rb +12 -0
- data/app/helpers/style_guide/application_helper.rb +4 -0
- data/app/views/layouts/style_guide/application.html.erb +44 -0
- data/app/views/style_guide/partials/_buttons.erb +167 -0
- data/app/views/style_guide/partials/_code.erb +31 -0
- data/app/views/style_guide/partials/_forms.erb +714 -0
- data/app/views/style_guide/partials/_images.erb +318 -0
- data/app/views/style_guide/partials/_tables.erb +409 -0
- data/app/views/style_guide/partials/_typography.erb +331 -0
- data/app/views/style_guide/style/index.html.erb +32 -0
- data/config/routes.rb +3 -0
- data/lib/style_guide/engine.rb +12 -0
- data/lib/style_guide/version.rb +3 -0
- data/lib/style_guide.rb +4 -0
- data/script/rails +8 -0
- data/spec/dummy/README.rdoc +261 -0
- data/spec/dummy/Rakefile +7 -0
- data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_009_magic.png +0 -0
- data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_042_group.png +0 -0
- data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_079_podium.png +0 -0
- data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_082_roundabout.png +0 -0
- data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
- data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_163_iphone.png +0 -0
- data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_214_resize_small.png +0 -0
- data/spec/dummy/app/assets/images/img/glyphicons/glyphicons_266_book_open.png +0 -0
- data/spec/dummy/app/assets/images/img/glyphicons-halflings-white.png +0 -0
- data/spec/dummy/app/assets/images/img/glyphicons-halflings.png +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +27 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-affix.js +106 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-alert.js +88 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-button.js +94 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-carousel.js +176 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-collapse.js +156 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-dropdown.js +148 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-modal.js +234 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-popover.js +103 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-scrollspy.js +151 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-tab.js +133 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-tooltip.js +276 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-transition.js +60 -0
- data/spec/dummy/app/assets/javascripts/bootstrap-typeahead.js +310 -0
- data/spec/dummy/app/assets/javascripts/jquery.js +2 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/accordion.less +34 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/alerts.less +65 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/bootstrap.less +63 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/breadcrumbs.less +24 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/button-groups.less +242 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/buttons.less +232 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/carousel.less +131 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/close.less +31 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/code.less +58 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/component-animations.less +22 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/dropdowns.less +237 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/forms.less +683 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/grid.less +21 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/hero-unit.less +25 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/labels-badges.less +74 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/layouts.less +16 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/media.less +55 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/mixins.less +687 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/modals.less +94 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/navbar.less +475 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/navs.less +385 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/pager.less +41 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/pagination.less +121 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/popovers.less +117 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/progress-bars.less +122 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/reset.less +138 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-1200px-min.less +28 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-767px-max.less +193 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-768px-979px.less +19 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-navbar.less +185 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/responsive-utilities.less +43 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/responsive.less +48 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/scaffolding.less +52 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/sprites.less +193 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/tables.less +236 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/thumbnails.less +52 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/tooltip.less +70 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/type.less +227 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/utilities.less +30 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/variables.less +301 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap/wells.less +29 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap-responsive.css +1088 -0
- data/spec/dummy/app/assets/stylesheets/bootstrap.css +5893 -0
- data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/_colors.scss +10 -0
- data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/ars-maquette-web.css +35 -0
- data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/button.less +5 -0
- data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/layout.css.scss +11 -0
- data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/typography.css.scss +20 -0
- data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap/variables.css.less +10 -0
- data/spec/dummy/app/assets/stylesheets/pivotal-bootstrap.css.less +3 -0
- data/spec/dummy/app/controllers/application_controller.rb +3 -0
- data/spec/dummy/app/controllers/home_controller.rb +3 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.gitkeep +0 -0
- data/spec/dummy/app/models/.gitkeep +0 -0
- data/spec/dummy/app/views/home/index.html.erb +1 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/styles/_info-header.erb +1 -0
- data/spec/dummy/config/application.rb +32 -0
- data/spec/dummy/config/boot.rb +10 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +30 -0
- data/spec/dummy/config/environments/production.rb +67 -0
- data/spec/dummy/config/environments/test.rb +34 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/inflections.rb +15 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +7 -0
- data/spec/dummy/config/initializers/session_store.rb +8 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +9 -0
- data/spec/dummy/config/locales/en.yml +5 -0
- data/spec/dummy/config/routes.rb +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/lib/assets/.gitkeep +0 -0
- data/spec/dummy/log/.gitkeep +0 -0
- data/spec/dummy/public/404.html +26 -0
- data/spec/dummy/public/422.html +26 -0
- data/spec/dummy/public/500.html +25 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/dummy/public/img/glyphicons/glyphicons_009_magic.png +0 -0
- data/spec/dummy/public/img/glyphicons/glyphicons_042_group.png +0 -0
- data/spec/dummy/public/img/glyphicons/glyphicons_079_podium.png +0 -0
- data/spec/dummy/public/img/glyphicons/glyphicons_082_roundabout.png +0 -0
- data/spec/dummy/public/img/glyphicons/glyphicons_155_show_thumbnails.png +0 -0
- data/spec/dummy/public/img/glyphicons/glyphicons_163_iphone.png +0 -0
- data/spec/dummy/public/img/glyphicons/glyphicons_214_resize_small.png +0 -0
- data/spec/dummy/public/img/glyphicons/glyphicons_266_book_open.png +0 -0
- data/spec/dummy/public/img/glyphicons-halflings-white.png +0 -0
- data/spec/dummy/public/img/glyphicons-halflings.png +0 -0
- data/spec/dummy/script/rails +6 -0
- data/style-guide.gemspec +26 -0
- metadata +500 -0
@@ -0,0 +1,236 @@
|
|
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(@baseBorderRadius);
|
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-topright: 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 td[class*="span"],
|
176
|
+
table th[class*="span"],
|
177
|
+
.row-fluid table td[class*="span"],
|
178
|
+
.row-fluid table th[class*="span"] {
|
179
|
+
display: table-cell;
|
180
|
+
float: none; // undo default grid column styles
|
181
|
+
margin-left: 0; // undo default grid column styles
|
182
|
+
}
|
183
|
+
|
184
|
+
// Change the column widths to account for td/th padding
|
185
|
+
.table td,
|
186
|
+
.table th {
|
187
|
+
&.span1 { .tableColumns(1); }
|
188
|
+
&.span2 { .tableColumns(2); }
|
189
|
+
&.span3 { .tableColumns(3); }
|
190
|
+
&.span4 { .tableColumns(4); }
|
191
|
+
&.span5 { .tableColumns(5); }
|
192
|
+
&.span6 { .tableColumns(6); }
|
193
|
+
&.span7 { .tableColumns(7); }
|
194
|
+
&.span8 { .tableColumns(8); }
|
195
|
+
&.span9 { .tableColumns(9); }
|
196
|
+
&.span10 { .tableColumns(10); }
|
197
|
+
&.span11 { .tableColumns(11); }
|
198
|
+
&.span12 { .tableColumns(12); }
|
199
|
+
}
|
200
|
+
|
201
|
+
|
202
|
+
|
203
|
+
// TABLE BACKGROUNDS
|
204
|
+
// -----------------
|
205
|
+
// Exact selectors below required to override .table-striped
|
206
|
+
|
207
|
+
.table tbody tr {
|
208
|
+
&.success td {
|
209
|
+
background-color: @successBackground;
|
210
|
+
}
|
211
|
+
&.error td {
|
212
|
+
background-color: @errorBackground;
|
213
|
+
}
|
214
|
+
&.warning td {
|
215
|
+
background-color: @warningBackground;
|
216
|
+
}
|
217
|
+
&.info td {
|
218
|
+
background-color: @infoBackground;
|
219
|
+
}
|
220
|
+
}
|
221
|
+
|
222
|
+
// Hover states for .table-hover
|
223
|
+
.table-hover tbody tr {
|
224
|
+
&.success:hover td {
|
225
|
+
background-color: darken(@successBackground, 5%);
|
226
|
+
}
|
227
|
+
&.error:hover td {
|
228
|
+
background-color: darken(@errorBackground, 5%);
|
229
|
+
}
|
230
|
+
&.warning:hover td {
|
231
|
+
background-color: darken(@warningBackground, 5%);
|
232
|
+
}
|
233
|
+
&.info:hover td {
|
234
|
+
background-color: darken(@infoBackground, 5%);
|
235
|
+
}
|
236
|
+
}
|
@@ -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(@baseBorderRadius);
|
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(@baseBorderRadius);
|
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,227 @@
|
|
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 { color: @warningText; }
|
41
|
+
a.text-warning:hover { color: darken(@warningText, 10%); }
|
42
|
+
|
43
|
+
.text-error { color: @errorText; }
|
44
|
+
a.text-error:hover { color: darken(@errorText, 10%); }
|
45
|
+
|
46
|
+
.text-info { color: @infoText; }
|
47
|
+
a.text-info:hover { color: darken(@infoText, 10%); }
|
48
|
+
|
49
|
+
.text-success { color: @successText; }
|
50
|
+
a.text-success:hover { color: darken(@successText, 10%); }
|
51
|
+
|
52
|
+
|
53
|
+
// Headings
|
54
|
+
// -------------------------
|
55
|
+
|
56
|
+
h1, h2, h3, h4, h5, h6 {
|
57
|
+
margin: (@baseLineHeight / 2) 0;
|
58
|
+
font-family: @headingsFontFamily;
|
59
|
+
font-weight: @headingsFontWeight;
|
60
|
+
line-height: @baseLineHeight;
|
61
|
+
color: @headingsColor;
|
62
|
+
text-rendering: optimizelegibility; // Fix the character spacing for headings
|
63
|
+
small {
|
64
|
+
font-weight: normal;
|
65
|
+
line-height: 1;
|
66
|
+
color: @grayLight;
|
67
|
+
}
|
68
|
+
}
|
69
|
+
|
70
|
+
h1,
|
71
|
+
h2,
|
72
|
+
h3 { line-height: @baseLineHeight * 2; }
|
73
|
+
|
74
|
+
h1 { font-size: @baseFontSize * 2.75; } // ~38px
|
75
|
+
h2 { font-size: @baseFontSize * 2.25; } // ~32px
|
76
|
+
h3 { font-size: @baseFontSize * 1.75; } // ~24px
|
77
|
+
h4 { font-size: @baseFontSize * 1.25; } // ~18px
|
78
|
+
h5 { font-size: @baseFontSize; }
|
79
|
+
h6 { font-size: @baseFontSize * 0.85; } // ~12px
|
80
|
+
|
81
|
+
h1 small { font-size: @baseFontSize * 1.75; } // ~24px
|
82
|
+
h2 small { font-size: @baseFontSize * 1.25; } // ~18px
|
83
|
+
h3 small { font-size: @baseFontSize; }
|
84
|
+
h4 small { font-size: @baseFontSize; }
|
85
|
+
|
86
|
+
|
87
|
+
// Page header
|
88
|
+
// -------------------------
|
89
|
+
|
90
|
+
.page-header {
|
91
|
+
padding-bottom: (@baseLineHeight / 2) - 1;
|
92
|
+
margin: @baseLineHeight 0 (@baseLineHeight * 1.5);
|
93
|
+
border-bottom: 1px solid @grayLighter;
|
94
|
+
}
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
// Lists
|
99
|
+
// --------------------------------------------------
|
100
|
+
|
101
|
+
// Unordered and Ordered lists
|
102
|
+
ul, ol {
|
103
|
+
padding: 0;
|
104
|
+
margin: 0 0 @baseLineHeight / 2 25px;
|
105
|
+
}
|
106
|
+
ul ul,
|
107
|
+
ul ol,
|
108
|
+
ol ol,
|
109
|
+
ol ul {
|
110
|
+
margin-bottom: 0;
|
111
|
+
}
|
112
|
+
li {
|
113
|
+
line-height: @baseLineHeight;
|
114
|
+
}
|
115
|
+
ul.unstyled,
|
116
|
+
ol.unstyled {
|
117
|
+
margin-left: 0;
|
118
|
+
list-style: none;
|
119
|
+
}
|
120
|
+
|
121
|
+
// Description Lists
|
122
|
+
dl {
|
123
|
+
margin-bottom: @baseLineHeight;
|
124
|
+
}
|
125
|
+
dt,
|
126
|
+
dd {
|
127
|
+
line-height: @baseLineHeight;
|
128
|
+
}
|
129
|
+
dt {
|
130
|
+
font-weight: bold;
|
131
|
+
}
|
132
|
+
dd {
|
133
|
+
margin-left: @baseLineHeight / 2;
|
134
|
+
}
|
135
|
+
// Horizontal layout (like forms)
|
136
|
+
.dl-horizontal {
|
137
|
+
.clearfix(); // Ensure dl clears floats if empty dd elements present
|
138
|
+
dt {
|
139
|
+
float: left;
|
140
|
+
width: @horizontalComponentOffset - 20;
|
141
|
+
clear: left;
|
142
|
+
text-align: right;
|
143
|
+
.text-overflow();
|
144
|
+
}
|
145
|
+
dd {
|
146
|
+
margin-left: @horizontalComponentOffset;
|
147
|
+
}
|
148
|
+
}
|
149
|
+
|
150
|
+
// MISC
|
151
|
+
// ----
|
152
|
+
|
153
|
+
// Horizontal rules
|
154
|
+
hr {
|
155
|
+
margin: @baseLineHeight 0;
|
156
|
+
border: 0;
|
157
|
+
border-top: 1px solid @hrBorder;
|
158
|
+
border-bottom: 1px solid @white;
|
159
|
+
}
|
160
|
+
|
161
|
+
// Abbreviations and acronyms
|
162
|
+
abbr[title],
|
163
|
+
// Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257
|
164
|
+
abbr[data-original-title] {
|
165
|
+
cursor: help;
|
166
|
+
border-bottom: 1px dotted @grayLight;
|
167
|
+
}
|
168
|
+
abbr.initialism {
|
169
|
+
font-size: 90%;
|
170
|
+
text-transform: uppercase;
|
171
|
+
}
|
172
|
+
|
173
|
+
// Blockquotes
|
174
|
+
blockquote {
|
175
|
+
padding: 0 0 0 15px;
|
176
|
+
margin: 0 0 @baseLineHeight;
|
177
|
+
border-left: 5px solid @grayLighter;
|
178
|
+
p {
|
179
|
+
margin-bottom: 0;
|
180
|
+
#font > .shorthand(16px,300,@baseLineHeight * 1.25);
|
181
|
+
}
|
182
|
+
small {
|
183
|
+
display: block;
|
184
|
+
line-height: @baseLineHeight;
|
185
|
+
color: @grayLight;
|
186
|
+
&:before {
|
187
|
+
content: '\2014 \00A0';
|
188
|
+
}
|
189
|
+
}
|
190
|
+
|
191
|
+
// Float right with text-align: right
|
192
|
+
&.pull-right {
|
193
|
+
float: right;
|
194
|
+
padding-right: 15px;
|
195
|
+
padding-left: 0;
|
196
|
+
border-right: 5px solid @grayLighter;
|
197
|
+
border-left: 0;
|
198
|
+
p,
|
199
|
+
small {
|
200
|
+
text-align: right;
|
201
|
+
}
|
202
|
+
small {
|
203
|
+
&:before {
|
204
|
+
content: '';
|
205
|
+
}
|
206
|
+
&:after {
|
207
|
+
content: '\00A0 \2014';
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
// Quotes
|
214
|
+
q:before,
|
215
|
+
q:after,
|
216
|
+
blockquote:before,
|
217
|
+
blockquote:after {
|
218
|
+
content: "";
|
219
|
+
}
|
220
|
+
|
221
|
+
// Addresses
|
222
|
+
address {
|
223
|
+
display: block;
|
224
|
+
margin-bottom: @baseLineHeight;
|
225
|
+
font-style: normal;
|
226
|
+
line-height: @baseLineHeight;
|
227
|
+
}
|