bootstrap-more 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +18 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +46 -0
- data/Rakefile +1 -0
- data/app/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.svg +229 -0
- data/app/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/javascripts/bootstrap/affix.js +126 -0
- data/app/assets/javascripts/bootstrap/alert.js +98 -0
- data/app/assets/javascripts/bootstrap/button.js +109 -0
- data/app/assets/javascripts/bootstrap/carousel.js +217 -0
- data/app/assets/javascripts/bootstrap/collapse.js +179 -0
- data/app/assets/javascripts/bootstrap/dropdown.js +154 -0
- data/app/assets/javascripts/bootstrap/modal.js +246 -0
- data/app/assets/javascripts/bootstrap/popover.js +117 -0
- data/app/assets/javascripts/bootstrap/scrollspy.js +158 -0
- data/app/assets/javascripts/bootstrap/tab.js +135 -0
- data/app/assets/javascripts/bootstrap/tooltip.js +386 -0
- data/app/assets/javascripts/bootstrap/transition.js +56 -0
- data/app/assets/javascripts/bootstrap.js +12 -0
- data/app/assets/stylesheets/_bootstrap-more.scss +1 -0
- data/app/assets/stylesheets/bootstrap/_alerts.scss +67 -0
- data/app/assets/stylesheets/bootstrap/_badges.scss +51 -0
- data/app/assets/stylesheets/bootstrap/_breadcrumbs.scss +23 -0
- data/app/assets/stylesheets/bootstrap/_button-groups.scss +260 -0
- data/app/assets/stylesheets/bootstrap/_buttons.scss +165 -0
- data/app/assets/stylesheets/bootstrap/_carousel.scss +231 -0
- data/app/assets/stylesheets/bootstrap/_close.scss +35 -0
- data/app/assets/stylesheets/bootstrap/_code.scss +53 -0
- data/app/assets/stylesheets/bootstrap/_component-animations.scss +29 -0
- data/app/assets/stylesheets/bootstrap/_config.scss +19 -0
- data/app/assets/stylesheets/bootstrap/_dropdowns.scss +203 -0
- data/app/assets/stylesheets/bootstrap/_forms.scss +371 -0
- data/app/assets/stylesheets/bootstrap/_glyphicons.scss +237 -0
- data/app/assets/stylesheets/bootstrap/_grid.scss +93 -0
- data/app/assets/stylesheets/bootstrap/_input-groups.scss +146 -0
- data/app/assets/stylesheets/bootstrap/_jumbotron.scss +40 -0
- data/app/assets/stylesheets/bootstrap/_labels.scss +58 -0
- data/app/assets/stylesheets/bootstrap/_list-group.scss +95 -0
- data/app/assets/stylesheets/bootstrap/_media.scss +56 -0
- data/app/assets/stylesheets/bootstrap/_mixins.scss +882 -0
- data/app/assets/stylesheets/bootstrap/_modals.scss +132 -0
- data/app/assets/stylesheets/bootstrap/_navbar.scss +628 -0
- data/app/assets/stylesheets/bootstrap/_navs.scss +262 -0
- data/app/assets/stylesheets/bootstrap/_normalize.scss +406 -0
- data/app/assets/stylesheets/bootstrap/_pager.scss +55 -0
- data/app/assets/stylesheets/bootstrap/_pagination.scss +85 -0
- data/app/assets/stylesheets/bootstrap/_panels.scss +172 -0
- data/app/assets/stylesheets/bootstrap/_popovers.scss +133 -0
- data/app/assets/stylesheets/bootstrap/_print.scss +105 -0
- data/app/assets/stylesheets/bootstrap/_progress-bars.scss +92 -0
- data/app/assets/stylesheets/bootstrap/_responsive-utilities.scss +198 -0
- data/app/assets/stylesheets/bootstrap/_scaffolding.scss +119 -0
- data/app/assets/stylesheets/bootstrap/_tables.scss +244 -0
- data/app/assets/stylesheets/bootstrap/_theme.scss +247 -0
- data/app/assets/stylesheets/bootstrap/_thumbnails.scss +32 -0
- data/app/assets/stylesheets/bootstrap/_tooltip.scss +95 -0
- data/app/assets/stylesheets/bootstrap/_type.scss +279 -0
- data/app/assets/stylesheets/bootstrap/_utilities.scss +56 -0
- data/app/assets/stylesheets/bootstrap/_variables.scss +665 -0
- data/app/assets/stylesheets/bootstrap/_wells.scss +29 -0
- data/app/assets/stylesheets/bootstrap/bootstrap.scss +50 -0
- data/bootstrap-more.gemspec +23 -0
- data/docs/.gitignore +17 -0
- data/docs/.ruby-gemset +1 -0
- data/docs/.ruby-version +1 -0
- data/docs/Gemfile +9 -0
- data/docs/README.md +8 -0
- data/docs/Rakefile +1 -0
- data/docs/config.rb +98 -0
- data/docs/index.html.erb +9 -0
- data/docs/source/about.html.erb +92 -0
- data/docs/source/assets/javascripts/application.js +103 -0
- data/docs/source/assets/javascripts/bootstrap.js +12 -0
- data/docs/source/assets/javascripts/vendor/.gitkeep +0 -0
- data/docs/source/assets/javascripts/vendor/holder.js +404 -0
- data/docs/source/assets/javascripts/vendor/ie8-responsive-file-warning.js +12 -0
- data/docs/source/assets/stylesheets/_settings.scss +656 -0
- data/docs/source/assets/stylesheets/bootstrap.scss +2 -0
- data/docs/source/assets/stylesheets/pygments-manni.css +66 -0
- data/docs/source/assets/stylesheets/styles.scss +1198 -0
- data/docs/source/components.html.erb +3607 -0
- data/docs/source/css.html.erb +2585 -0
- data/docs/source/customize.html.erb +1715 -0
- data/docs/source/getting-started.html.erb +1010 -0
- data/docs/source/includes/_ads.erb +1 -0
- data/docs/source/includes/_footer.erb +23 -0
- data/docs/source/includes/_header.erb +39 -0
- data/docs/source/includes/_nav-about.erb +12 -0
- data/docs/source/includes/_nav-components.erb +137 -0
- data/docs/source/includes/_nav-css.erb +99 -0
- data/docs/source/includes/_nav-customize.erb +40 -0
- data/docs/source/includes/_nav-getting-started.erb +44 -0
- data/docs/source/includes/_nav-javascript.erb +88 -0
- data/docs/source/includes/_nav-main.erb +34 -0
- data/docs/source/includes/_old-bs-docs.erb +8 -0
- data/docs/source/includes/_social-buttons.erb +16 -0
- data/docs/source/index.html.erb +17 -0
- data/docs/source/javascript.html.erb +1946 -0
- data/docs/source/layouts/default.html.erb +75 -0
- data/docs/source/layouts/home.html.erb +20 -0
- data/docs/source/layouts/layout.html.erb +81 -0
- data/lib/bootstrap-more/version.rb +5 -0
- data/lib/bootstrap-more.rb +7 -0
- metadata +185 -0
@@ -0,0 +1,198 @@
|
|
1
|
+
//
|
2
|
+
// Responsive: Utility classes
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// IE10 in Windows (Phone) 8
|
7
|
+
//
|
8
|
+
// Support for responsive views via media queries is kind of borked in IE10, for
|
9
|
+
// Surface/desktop in split view and for Windows Phone 8. This particular fix
|
10
|
+
// must be accompanied by a snippet of JavaScript to sniff the user agent and
|
11
|
+
// apply some conditional CSS to *only* the Surface/desktop Windows 8. Look at
|
12
|
+
// our Getting Started page for more information on this bug.
|
13
|
+
//
|
14
|
+
// For more information, see the following:
|
15
|
+
//
|
16
|
+
// Issue: https://github.com/twbs/bootstrap/issues/10497
|
17
|
+
// Docs: http://getbootstrap.com/getting-started/#browsers
|
18
|
+
// Source: http://timkadlec.com/2012/10/ie10-snap-mode-and-responsive-design/
|
19
|
+
|
20
|
+
@-ms-viewport {
|
21
|
+
width: device-width;
|
22
|
+
}
|
23
|
+
|
24
|
+
|
25
|
+
// Visibility utilities
|
26
|
+
|
27
|
+
@include responsive-invisibility('.visible-xs');
|
28
|
+
@media (max-width: $screen-xs-max) {
|
29
|
+
@include responsive-visibility('.visible-xs');
|
30
|
+
}
|
31
|
+
|
32
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
33
|
+
@include responsive-visibility('.visible-xs.visible-sm');
|
34
|
+
}
|
35
|
+
|
36
|
+
|
37
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
38
|
+
@include responsive-visibility('.visible-xs.visible-md');
|
39
|
+
}
|
40
|
+
|
41
|
+
|
42
|
+
@media (min-width: $screen-lg-min) {
|
43
|
+
@include responsive-visibility('.visible-xs.visible-lg');
|
44
|
+
}
|
45
|
+
|
46
|
+
|
47
|
+
@include responsive-invisibility('.visible-sm');
|
48
|
+
|
49
|
+
@media (max-width: $screen-xs-max) {
|
50
|
+
@include responsive-visibility('.visible-sm.visible-xs');
|
51
|
+
}
|
52
|
+
|
53
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
54
|
+
@include responsive-visibility('.visible-sm');
|
55
|
+
}
|
56
|
+
|
57
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
58
|
+
@include responsive-visibility('.visible-sm.visible-md');
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
@media (min-width: $screen-lg-min) {
|
63
|
+
@include responsive-visibility('.visible-sm.visible-lg');
|
64
|
+
}
|
65
|
+
|
66
|
+
|
67
|
+
@include responsive-invisibility('.visible-md');
|
68
|
+
|
69
|
+
@media (max-width: $screen-xs-max) {
|
70
|
+
@include responsive-visibility('.visible-md.visible-xs');
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
75
|
+
@include responsive-visibility('.visible-md.visible-sm');
|
76
|
+
}
|
77
|
+
|
78
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
79
|
+
@include responsive-visibility('.visible-md');
|
80
|
+
}
|
81
|
+
|
82
|
+
@media (min-width: $screen-lg-min) {
|
83
|
+
@include responsive-visibility('.visible-md.visible-lg');
|
84
|
+
}
|
85
|
+
|
86
|
+
|
87
|
+
@include responsive-invisibility('.visible-lg');
|
88
|
+
|
89
|
+
@media (max-width: $screen-xs-max) {
|
90
|
+
@include responsive-visibility('.visible-lg.visible-xs');
|
91
|
+
}
|
92
|
+
|
93
|
+
|
94
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
95
|
+
@include responsive-visibility('.visible-lg.visible-sm');
|
96
|
+
}
|
97
|
+
|
98
|
+
|
99
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
100
|
+
@include responsive-visibility('.visible-lg.visible-md');
|
101
|
+
}
|
102
|
+
|
103
|
+
@media (min-width: $screen-lg-min) {
|
104
|
+
@include responsive-visibility('.visible-lg');
|
105
|
+
}
|
106
|
+
|
107
|
+
@include responsive-visibility('.hidden-xs');
|
108
|
+
@media (max-width: $screen-xs-max) {
|
109
|
+
@include responsive-invisibility('.hidden-xs');
|
110
|
+
}
|
111
|
+
|
112
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
113
|
+
@include responsive-invisibility('.hidden-xs.hidden-sm');
|
114
|
+
}
|
115
|
+
|
116
|
+
|
117
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
118
|
+
@include responsive-invisibility('.hidden-xs.hidden-md');
|
119
|
+
}
|
120
|
+
|
121
|
+
|
122
|
+
@media (min-width: $screen-lg-min) {
|
123
|
+
@include responsive-invisibility('.hidden-xs.hidden-lg');
|
124
|
+
}
|
125
|
+
|
126
|
+
|
127
|
+
@include responsive-visibility('.hidden-sm');
|
128
|
+
|
129
|
+
@media (max-width: $screen-xs-max) {
|
130
|
+
@include responsive-invisibility('.hidden-sm.hidden-xs');
|
131
|
+
}
|
132
|
+
|
133
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
134
|
+
@include responsive-invisibility('.hidden-sm');
|
135
|
+
}
|
136
|
+
|
137
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
138
|
+
@include responsive-invisibility('.hidden-sm.hidden-md');
|
139
|
+
}
|
140
|
+
|
141
|
+
|
142
|
+
@media (min-width: $screen-lg-min) {
|
143
|
+
@include responsive-invisibility('.hidden-sm.hidden-lg');
|
144
|
+
}
|
145
|
+
|
146
|
+
|
147
|
+
@include responsive-visibility('.hidden-md');
|
148
|
+
|
149
|
+
@media (max-width: $screen-xs-max) {
|
150
|
+
@include responsive-invisibility('.hidden-md.hidden-xs');
|
151
|
+
}
|
152
|
+
|
153
|
+
|
154
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
155
|
+
@include responsive-invisibility('.hidden-md.hidden-sm');
|
156
|
+
}
|
157
|
+
|
158
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
159
|
+
@include responsive-invisibility('.hidden-md');
|
160
|
+
}
|
161
|
+
|
162
|
+
@media (min-width: $screen-lg-min) {
|
163
|
+
@include responsive-invisibility('.hidden-md.hidden-lg');
|
164
|
+
}
|
165
|
+
|
166
|
+
|
167
|
+
@include responsive-visibility('.hidden-lg');
|
168
|
+
|
169
|
+
@media (max-width: $screen-xs-max) {
|
170
|
+
@include responsive-invisibility('.hidden-lg.hidden-xs');
|
171
|
+
}
|
172
|
+
|
173
|
+
|
174
|
+
@media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
|
175
|
+
@include responsive-invisibility('.hidden-lg.hidden-sm');
|
176
|
+
}
|
177
|
+
|
178
|
+
|
179
|
+
@media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
|
180
|
+
@include responsive-invisibility('.hidden-lg.hidden-md');
|
181
|
+
}
|
182
|
+
|
183
|
+
@media (min-width: $screen-lg-min) {
|
184
|
+
@include responsive-invisibility('.hidden-lg');
|
185
|
+
}
|
186
|
+
|
187
|
+
// Print utilities
|
188
|
+
|
189
|
+
@include responsive-invisibility('.visible-print');
|
190
|
+
|
191
|
+
@media print {
|
192
|
+
|
193
|
+
@include responsive-visibility('.visible-print');
|
194
|
+
|
195
|
+
|
196
|
+
@include responsive-invisibility('.hidden-print');
|
197
|
+
|
198
|
+
}
|
@@ -0,0 +1,119 @@
|
|
1
|
+
//
|
2
|
+
// Scaffolding
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Reset the box-sizing
|
7
|
+
|
8
|
+
*,
|
9
|
+
*:before,
|
10
|
+
*:after {
|
11
|
+
@include box-sizing(border-box);
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
// Body reset
|
16
|
+
|
17
|
+
html {
|
18
|
+
font-size: 62.5%;
|
19
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
20
|
+
}
|
21
|
+
|
22
|
+
body {
|
23
|
+
font-family: $font-family-base;
|
24
|
+
font-size: $font-size-base;
|
25
|
+
line-height: $line-height-base;
|
26
|
+
color: $text-color;
|
27
|
+
background-color: $body-bg;
|
28
|
+
}
|
29
|
+
|
30
|
+
// Reset fonts for relevant elements
|
31
|
+
input,
|
32
|
+
button,
|
33
|
+
select,
|
34
|
+
textarea {
|
35
|
+
font-family: inherit;
|
36
|
+
font-size: inherit;
|
37
|
+
line-height: inherit;
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
// Links
|
42
|
+
|
43
|
+
a {
|
44
|
+
color: $link-color;
|
45
|
+
text-decoration: none;
|
46
|
+
|
47
|
+
&:hover,
|
48
|
+
&:focus {
|
49
|
+
color: $link-hover-color;
|
50
|
+
text-decoration: underline;
|
51
|
+
}
|
52
|
+
|
53
|
+
&:focus {
|
54
|
+
@include tab-focus();
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
|
59
|
+
// Images
|
60
|
+
|
61
|
+
img {
|
62
|
+
vertical-align: middle;
|
63
|
+
}
|
64
|
+
|
65
|
+
// Responsive images (ensure images don't scale beyond their parents)
|
66
|
+
.img-responsive {
|
67
|
+
@include img-responsive();
|
68
|
+
}
|
69
|
+
|
70
|
+
// Rounded corners
|
71
|
+
.img-rounded {
|
72
|
+
border-radius: $border-radius-large;
|
73
|
+
}
|
74
|
+
|
75
|
+
// Image thumbnails
|
76
|
+
//
|
77
|
+
// Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
|
78
|
+
.img-thumbnail {
|
79
|
+
padding: $thumbnail-padding;
|
80
|
+
line-height: $line-height-base;
|
81
|
+
background-color: $thumbnail-bg;
|
82
|
+
border: 1px solid $thumbnail-border;
|
83
|
+
border-radius: $thumbnail-border-radius;
|
84
|
+
@include transition(all .2s ease-in-out);
|
85
|
+
|
86
|
+
// Keep them at most 100% wide
|
87
|
+
@include img-responsive(inline-block);
|
88
|
+
}
|
89
|
+
|
90
|
+
// Perfect circle
|
91
|
+
.img-circle {
|
92
|
+
border-radius: 50%; // set radius in percents
|
93
|
+
}
|
94
|
+
|
95
|
+
|
96
|
+
// Horizontal rules
|
97
|
+
|
98
|
+
hr {
|
99
|
+
margin-top: $line-height-computed;
|
100
|
+
margin-bottom: $line-height-computed;
|
101
|
+
border: 0;
|
102
|
+
border-top: 1px solid $hr-border;
|
103
|
+
}
|
104
|
+
|
105
|
+
|
106
|
+
// Only display content to screen readers
|
107
|
+
//
|
108
|
+
// See: http://a11yproject.com/posts/how-to-hide-content/
|
109
|
+
|
110
|
+
.sr-only {
|
111
|
+
position: absolute;
|
112
|
+
width: 1px;
|
113
|
+
height: 1px;
|
114
|
+
margin: -1px;
|
115
|
+
padding: 0;
|
116
|
+
overflow: hidden;
|
117
|
+
clip: rect(0,0,0,0);
|
118
|
+
border: 0;
|
119
|
+
}
|
@@ -0,0 +1,244 @@
|
|
1
|
+
//
|
2
|
+
// Tables
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
table {
|
7
|
+
max-width: 100%;
|
8
|
+
background-color: $table-bg;
|
9
|
+
}
|
10
|
+
th {
|
11
|
+
text-align: left;
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
// Baseline styles
|
16
|
+
|
17
|
+
.table {
|
18
|
+
width: 100%;
|
19
|
+
margin-bottom: $line-height-computed;
|
20
|
+
// Cells
|
21
|
+
> thead,
|
22
|
+
> tbody,
|
23
|
+
> tfoot {
|
24
|
+
> tr {
|
25
|
+
> th,
|
26
|
+
> td {
|
27
|
+
padding: $table-cell-padding;
|
28
|
+
line-height: $line-height-base;
|
29
|
+
vertical-align: top;
|
30
|
+
border-top: 1px solid $table-border-color;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
// Bottom align for column headings
|
35
|
+
> thead > tr > th {
|
36
|
+
vertical-align: bottom;
|
37
|
+
border-bottom: 2px solid $table-border-color;
|
38
|
+
}
|
39
|
+
// Remove top border from thead by default
|
40
|
+
> caption + thead,
|
41
|
+
> colgroup + thead,
|
42
|
+
> thead:first-child {
|
43
|
+
> tr:first-child {
|
44
|
+
> th,
|
45
|
+
> td {
|
46
|
+
border-top: 0;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
// Account for multiple tbody instances
|
51
|
+
> tbody + tbody {
|
52
|
+
border-top: 2px solid $table-border-color;
|
53
|
+
}
|
54
|
+
|
55
|
+
// Nesting
|
56
|
+
.table {
|
57
|
+
background-color: $body-bg;
|
58
|
+
}
|
59
|
+
}
|
60
|
+
|
61
|
+
|
62
|
+
// Condensed table w/ half padding
|
63
|
+
|
64
|
+
.table-condensed {
|
65
|
+
> thead,
|
66
|
+
> tbody,
|
67
|
+
> tfoot {
|
68
|
+
> tr {
|
69
|
+
> th,
|
70
|
+
> td {
|
71
|
+
padding: $table-condensed-cell-padding;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
|
78
|
+
// Bordered version
|
79
|
+
//
|
80
|
+
// Add borders all around the table and between all the columns.
|
81
|
+
|
82
|
+
.table-bordered {
|
83
|
+
border: 1px solid $table-border-color;
|
84
|
+
> thead,
|
85
|
+
> tbody,
|
86
|
+
> tfoot {
|
87
|
+
> tr {
|
88
|
+
> th,
|
89
|
+
> td {
|
90
|
+
border: 1px solid $table-border-color;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
> thead > tr {
|
95
|
+
> th,
|
96
|
+
> td {
|
97
|
+
border-bottom-width: 2px;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
|
103
|
+
// Zebra-striping
|
104
|
+
//
|
105
|
+
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
106
|
+
|
107
|
+
.table-striped {
|
108
|
+
> tbody > tr:nth-child(odd) {
|
109
|
+
> td,
|
110
|
+
> th {
|
111
|
+
background-color: $table-bg-accent;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
|
117
|
+
// Hover effect
|
118
|
+
//
|
119
|
+
// Placed here since it has to come after the potential zebra striping
|
120
|
+
|
121
|
+
.table-hover {
|
122
|
+
> tbody > tr:hover {
|
123
|
+
> td,
|
124
|
+
> th {
|
125
|
+
background-color: $table-bg-hover;
|
126
|
+
}
|
127
|
+
}
|
128
|
+
}
|
129
|
+
|
130
|
+
|
131
|
+
// Table cell sizing
|
132
|
+
//
|
133
|
+
// Reset default table behavior
|
134
|
+
|
135
|
+
table col[class*="col-"] {
|
136
|
+
float: none;
|
137
|
+
display: table-column;
|
138
|
+
}
|
139
|
+
table {
|
140
|
+
td,
|
141
|
+
th {
|
142
|
+
&[class*="col-"] {
|
143
|
+
float: none;
|
144
|
+
display: table-cell;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
// Table backgrounds
|
151
|
+
//
|
152
|
+
// Exact selectors below required to override `.table-striped` and prevent
|
153
|
+
// inheritance to nested tables.
|
154
|
+
|
155
|
+
.table {
|
156
|
+
> thead,
|
157
|
+
> tbody,
|
158
|
+
> tfoot {
|
159
|
+
> tr {
|
160
|
+
> td.active,
|
161
|
+
> th.active,
|
162
|
+
&.active > td,
|
163
|
+
&.active > th {
|
164
|
+
background-color: $table-bg-active;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
// Generate the contextual variants
|
171
|
+
@include table-row-variant('success', $state-success-bg, $state-success-border);
|
172
|
+
@include table-row-variant('danger', $state-danger-bg, $state-danger-border);
|
173
|
+
@include table-row-variant('warning', $state-warning-bg, $state-warning-border);
|
174
|
+
|
175
|
+
|
176
|
+
// Responsive tables
|
177
|
+
//
|
178
|
+
// Wrap your tables in `.table-responsive` and we'll make them mobile friendly
|
179
|
+
// by enabling horizontal scrolling. Only applies <768px. Everything above that
|
180
|
+
// will display normally.
|
181
|
+
|
182
|
+
@media (max-width: $screen-xs-max) {
|
183
|
+
.table-responsive {
|
184
|
+
width: 100%;
|
185
|
+
margin-bottom: ($line-height-computed * 0.75);
|
186
|
+
overflow-y: hidden;
|
187
|
+
overflow-x: scroll;
|
188
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
189
|
+
border: 1px solid $table-border-color;
|
190
|
+
-webkit-overflow-scrolling: touch;
|
191
|
+
|
192
|
+
// Tighten up spacing
|
193
|
+
> .table {
|
194
|
+
margin-bottom: 0;
|
195
|
+
|
196
|
+
// Ensure the content doesn't wrap
|
197
|
+
> thead,
|
198
|
+
> tbody,
|
199
|
+
> tfoot {
|
200
|
+
> tr {
|
201
|
+
> th,
|
202
|
+
> td {
|
203
|
+
white-space: nowrap;
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
|
209
|
+
// Special overrides for the bordered tables
|
210
|
+
> .table-bordered {
|
211
|
+
border: 0;
|
212
|
+
|
213
|
+
// Nuke the appropriate borders so that the parent can handle them
|
214
|
+
> thead,
|
215
|
+
> tbody,
|
216
|
+
> tfoot {
|
217
|
+
> tr {
|
218
|
+
> th:first-child,
|
219
|
+
> td:first-child {
|
220
|
+
border-left: 0;
|
221
|
+
}
|
222
|
+
> th:last-child,
|
223
|
+
> td:last-child {
|
224
|
+
border-right: 0;
|
225
|
+
}
|
226
|
+
}
|
227
|
+
}
|
228
|
+
|
229
|
+
// Only nuke the last row's bottom-border in `tbody` and `tfoot` since
|
230
|
+
// chances are there will be only one `tr` in a `thead` and that would
|
231
|
+
// remove the border altogether.
|
232
|
+
> tbody,
|
233
|
+
> tfoot {
|
234
|
+
> tr:last-child {
|
235
|
+
> th,
|
236
|
+
> td {
|
237
|
+
border-bottom: 0;
|
238
|
+
}
|
239
|
+
}
|
240
|
+
}
|
241
|
+
|
242
|
+
}
|
243
|
+
}
|
244
|
+
}
|