audit_rails 2.0.4 → 2.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -1
- data/app/assets/stylesheets/audit_rails/application.css +3 -4
- data/app/assets/stylesheets/audit_rails/audit_rails.css +78 -0
- data/app/assets/stylesheets/audit_rails/bootstrap_override.css +58 -0
- data/app/assets/stylesheets/audit_rails/twitter/_alerts.scss +67 -0
- data/app/assets/stylesheets/audit_rails/twitter/_badges.scss +51 -0
- data/app/assets/stylesheets/audit_rails/twitter/_breadcrumbs.scss +23 -0
- data/app/assets/stylesheets/audit_rails/twitter/_button-groups.scss +253 -0
- data/app/assets/stylesheets/audit_rails/twitter/_buttons.scss +158 -0
- data/app/assets/stylesheets/audit_rails/twitter/_carousel.scss +231 -0
- data/app/assets/stylesheets/audit_rails/twitter/_close.scss +35 -0
- data/app/assets/stylesheets/audit_rails/twitter/_code.scss +53 -0
- data/app/assets/stylesheets/audit_rails/twitter/_component-animations.scss +29 -0
- data/app/assets/stylesheets/audit_rails/twitter/_dropdowns.scss +193 -0
- data/app/assets/stylesheets/audit_rails/twitter/_forms.scss +363 -0
- data/app/assets/stylesheets/audit_rails/twitter/_glyphicons.scss +236 -0
- data/app/assets/stylesheets/audit_rails/twitter/_grid.scss +93 -0
- data/app/assets/stylesheets/audit_rails/twitter/_input-groups.scss +136 -0
- data/app/assets/stylesheets/audit_rails/twitter/_jumbotron.scss +40 -0
- data/app/assets/stylesheets/audit_rails/twitter/_labels.scss +58 -0
- data/app/assets/stylesheets/audit_rails/twitter/_list-group.scss +88 -0
- data/app/assets/stylesheets/audit_rails/twitter/_media.scss +56 -0
- data/app/assets/stylesheets/audit_rails/twitter/_mixins.scss +861 -0
- data/app/assets/stylesheets/audit_rails/twitter/_modals.scss +132 -0
- data/app/assets/stylesheets/audit_rails/twitter/_navbar.scss +628 -0
- data/app/assets/stylesheets/audit_rails/twitter/_navs.scss +262 -0
- data/app/assets/stylesheets/audit_rails/twitter/_normalize.scss +406 -0
- data/app/assets/stylesheets/audit_rails/twitter/_pager.scss +55 -0
- data/app/assets/stylesheets/audit_rails/twitter/_pagination.scss +85 -0
- data/app/assets/stylesheets/audit_rails/twitter/_panels.scss +172 -0
- data/app/assets/stylesheets/audit_rails/twitter/_popovers.scss +133 -0
- data/app/assets/stylesheets/audit_rails/twitter/_print.scss +105 -0
- data/app/assets/stylesheets/audit_rails/twitter/_progress-bars.scss +92 -0
- data/app/assets/stylesheets/audit_rails/twitter/_responsive-utilities.scss +198 -0
- data/app/assets/stylesheets/audit_rails/twitter/_scaffolding.scss +119 -0
- data/app/assets/stylesheets/audit_rails/twitter/_tables.scss +244 -0
- data/app/assets/stylesheets/audit_rails/twitter/_theme.scss +247 -0
- data/app/assets/stylesheets/audit_rails/twitter/_thumbnails.scss +32 -0
- data/app/assets/stylesheets/audit_rails/twitter/_tooltip.scss +95 -0
- data/app/assets/stylesheets/audit_rails/twitter/_type.scss +279 -0
- data/app/assets/stylesheets/audit_rails/twitter/_utilities.scss +56 -0
- data/app/assets/stylesheets/audit_rails/twitter/_variables.scss +637 -0
- data/app/assets/stylesheets/audit_rails/twitter/_wells.scss +29 -0
- data/app/assets/stylesheets/audit_rails/twitter/bootstrap.scss +49 -0
- data/app/views/audit_rails/audits/_form_elements.html.erb +8 -2
- data/app/views/layouts/audit_rails/application.html.erb +33 -24
- data/lib/audit_rails/version.rb +1 -1
- metadata +47 -9
- data/app/assets/stylesheets/audit_rails/bootstrap-theme.css +0 -384
- data/app/assets/stylesheets/audit_rails/bootstrap.css +0 -6805
- data/app/assets/stylesheets/audit_rails/theme.css +0 -14
@@ -0,0 +1,92 @@
|
|
1
|
+
//
|
2
|
+
// Progress bars
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Bar animations
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
// WebKit
|
10
|
+
@-webkit-keyframes progress-bar-stripes {
|
11
|
+
from { background-position: 40px 0; }
|
12
|
+
to { background-position: 0 0; }
|
13
|
+
}
|
14
|
+
|
15
|
+
// Firefox
|
16
|
+
@-moz-keyframes progress-bar-stripes {
|
17
|
+
from { background-position: 40px 0; }
|
18
|
+
to { background-position: 0 0; }
|
19
|
+
}
|
20
|
+
|
21
|
+
// Opera
|
22
|
+
@-o-keyframes progress-bar-stripes {
|
23
|
+
from { background-position: 0 0; }
|
24
|
+
to { background-position: 40px 0; }
|
25
|
+
}
|
26
|
+
|
27
|
+
// Spec and IE10+
|
28
|
+
@keyframes progress-bar-stripes {
|
29
|
+
from { background-position: 40px 0; }
|
30
|
+
to { background-position: 0 0; }
|
31
|
+
}
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
// Bar itself
|
36
|
+
// -------------------------
|
37
|
+
|
38
|
+
// Outer container
|
39
|
+
.progress {
|
40
|
+
overflow: hidden;
|
41
|
+
height: $line-height-computed;
|
42
|
+
margin-bottom: $line-height-computed;
|
43
|
+
background-color: $progress-bg;
|
44
|
+
border-radius: $border-radius-base;
|
45
|
+
@include box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
|
46
|
+
}
|
47
|
+
|
48
|
+
// Bar of progress
|
49
|
+
.progress-bar {
|
50
|
+
float: left;
|
51
|
+
width: 0%;
|
52
|
+
height: 100%;
|
53
|
+
font-size: $font-size-small;
|
54
|
+
line-height: $line-height-computed;
|
55
|
+
color: $progress-bar-color;
|
56
|
+
text-align: center;
|
57
|
+
background-color: $progress-bar-bg;
|
58
|
+
@include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
|
59
|
+
@include transition(width .6s ease);
|
60
|
+
}
|
61
|
+
|
62
|
+
// Striped bars
|
63
|
+
.progress-striped .progress-bar {
|
64
|
+
@include gradient-striped();
|
65
|
+
background-size: 40px 40px;
|
66
|
+
}
|
67
|
+
|
68
|
+
// Call animation for the active one
|
69
|
+
.progress.active .progress-bar {
|
70
|
+
@include animation(progress-bar-stripes 2s linear infinite);
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
// Variations
|
76
|
+
// -------------------------
|
77
|
+
|
78
|
+
.progress-bar-success {
|
79
|
+
@include progress-bar-variant($progress-bar-success-bg);
|
80
|
+
}
|
81
|
+
|
82
|
+
.progress-bar-info {
|
83
|
+
@include progress-bar-variant($progress-bar-info-bg);
|
84
|
+
}
|
85
|
+
|
86
|
+
.progress-bar-warning {
|
87
|
+
@include progress-bar-variant($progress-bar-warning-bg);
|
88
|
+
}
|
89
|
+
|
90
|
+
.progress-bar-danger {
|
91
|
+
@include progress-bar-variant($progress-bar-danger-bg);
|
92
|
+
}
|
@@ -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
|
+
}
|