rails_admin 0.6.5 → 0.6.6
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.
- checksums.yaml +4 -4
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-affix.js +99 -74
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-alert.js +48 -55
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-button.js +70 -65
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-carousel.js +163 -147
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-collapse.js +117 -114
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-dropdown.js +89 -107
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-modal.js +208 -175
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-popover.js +77 -78
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-scrollspy.js +137 -129
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-tab.js +85 -101
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-tooltip.js +364 -268
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-transition.js +51 -52
- data/app/assets/javascripts/rails_admin/bootstrap/bootstrap-typeahead.js +1782 -335
- data/app/assets/javascripts/rails_admin/ra.filter-box.js +1 -1
- data/app/assets/javascripts/rails_admin/ra.filtering-multiselect.js +3 -3
- data/app/assets/javascripts/rails_admin/ra.filtering-select.js +1 -1
- data/app/assets/javascripts/rails_admin/ra.remote-form.js +6 -2
- data/app/assets/stylesheets/rails_admin/base/theming.scss +34 -14
- data/app/assets/stylesheets/rails_admin/bootstrap/_alerts.scss +47 -58
- data/app/assets/stylesheets/rails_admin/bootstrap/_badges.scss +57 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_breadcrumbs.scss +12 -10
- data/app/assets/stylesheets/rails_admin/bootstrap/_button-groups.scss +163 -152
- data/app/assets/stylesheets/rails_admin/bootstrap/_buttons.scss +98 -169
- data/app/assets/stylesheets/rails_admin/bootstrap/_carousel.scss +151 -66
- data/app/assets/stylesheets/rails_admin/bootstrap/_close.scss +11 -8
- data/app/assets/stylesheets/rails_admin/bootstrap/_code.scss +36 -29
- data/app/assets/stylesheets/rails_admin/bootstrap/_component-animations.scss +16 -3
- data/app/assets/stylesheets/rails_admin/bootstrap/_dropdowns.scss +115 -148
- data/app/assets/stylesheets/rails_admin/bootstrap/_forms.scss +396 -547
- data/app/assets/stylesheets/rails_admin/bootstrap/_glyphicons.scss +237 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_grid.scss +74 -11
- data/app/assets/stylesheets/rails_admin/bootstrap/_input-groups.scss +166 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_jumbotron.scss +48 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_labels.scss +66 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_list-group.scss +131 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_media.scss +8 -7
- data/app/assets/stylesheets/rails_admin/bootstrap/_mixins.scss +36 -693
- data/app/assets/stylesheets/rails_admin/bootstrap/_modals.scss +108 -53
- data/app/assets/stylesheets/rails_admin/bootstrap/_navbar.scss +545 -383
- data/app/assets/stylesheets/rails_admin/bootstrap/_navs.scss +191 -358
- data/app/assets/stylesheets/rails_admin/bootstrap/_normalize.scss +425 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_pager.scss +45 -33
- data/app/assets/stylesheets/rails_admin/bootstrap/_pagination.scss +70 -105
- data/app/assets/stylesheets/rails_admin/bootstrap/_panels.scss +243 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_popovers.scss +61 -61
- data/app/assets/stylesheets/rails_admin/bootstrap/_print.scss +101 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_progress-bars.scss +56 -73
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-embed.scss +34 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-utilities.scss +150 -50
- data/app/assets/stylesheets/rails_admin/bootstrap/_scaffolding.scss +120 -23
- data/app/assets/stylesheets/rails_admin/bootstrap/_tables.scss +168 -170
- data/app/assets/stylesheets/rails_admin/bootstrap/_theme.scss +258 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/_thumbnails.scss +27 -42
- data/app/assets/stylesheets/rails_admin/bootstrap/_tooltip.scss +49 -24
- data/app/assets/stylesheets/rails_admin/bootstrap/_type.scss +200 -143
- data/app/assets/stylesheets/rails_admin/bootstrap/_utilities.scss +33 -21
- data/app/assets/stylesheets/rails_admin/bootstrap/_variables.scss +764 -215
- data/app/assets/stylesheets/rails_admin/bootstrap/_wells.scss +7 -7
- data/app/assets/stylesheets/rails_admin/bootstrap/bootstrap.scss +47 -60
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_alerts.scss +14 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_background-variant.scss +11 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_border-radius.scss +18 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_buttons.scss +50 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_center-block.scss +7 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_clearfix.scss +22 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_forms.scss +84 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_gradients.scss +58 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_grid-framework.scss +81 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_grid.scss +122 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_hide-text.scss +21 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_image.scss +34 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_labels.scss +12 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_list-group.scss +31 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_nav-divider.scss +10 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_opacity.scss +8 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_pagination.scss +23 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_panels.scss +24 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_progress-bar.scss +10 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_reset-filter.scss +8 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_resize.scss +6 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_size.scss +10 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_tab-focus.scss +9 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_table-row.scss +28 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_text-emphasis.scss +11 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_text-overflow.scss +8 -0
- data/app/assets/stylesheets/rails_admin/bootstrap/mixins/_vendor-prefixes.scss +219 -0
- data/app/assets/stylesheets/rails_admin/ra.calendar-additions.scss +17 -0
- data/app/assets/stylesheets/rails_admin/rails_admin.scss.erb +9 -5
- data/app/helpers/rails_admin/application_helper.rb +20 -19
- data/app/helpers/rails_admin/form_builder.rb +14 -11
- data/app/views/kaminari/twitter-bootstrap/_paginator.html.haml +8 -9
- data/app/views/layouts/rails_admin/_navigation.html.haml +5 -5
- data/app/views/layouts/rails_admin/_secondary_navigation.html.haml +1 -1
- data/app/views/layouts/rails_admin/application.html.haml +9 -8
- data/app/views/layouts/rails_admin/pjax.html.haml +4 -3
- data/app/views/rails_admin/main/_form_datetime.html.haml +2 -1
- data/app/views/rails_admin/main/_form_field.html.haml +1 -1
- data/app/views/rails_admin/main/_form_text.html.haml +1 -1
- data/app/views/rails_admin/main/_submit_buttons.html.haml +1 -0
- data/app/views/rails_admin/main/dashboard.html.haml +1 -1
- data/app/views/rails_admin/main/export.html.haml +19 -16
- data/app/views/rails_admin/main/index.html.haml +11 -7
- data/app/views/rails_admin/main/show.html.haml +1 -1
- data/lib/rails_admin/adapters/active_record.rb +2 -2
- data/lib/rails_admin/adapters/mongoid/property.rb +1 -1
- data/lib/rails_admin/config/actions/bulk_delete.rb +0 -1
- data/lib/rails_admin/config/actions/edit.rb +0 -2
- data/lib/rails_admin/config/actions/export.rb +0 -2
- data/lib/rails_admin/config/actions/index.rb +0 -3
- data/lib/rails_admin/config/actions/new.rb +0 -2
- data/lib/rails_admin/config/configurable.rb +1 -1
- data/lib/rails_admin/config/fields/base.rb +9 -0
- data/lib/rails_admin/config/fields/factories/enum.rb +2 -3
- data/lib/rails_admin/config/fields/types/polymorphic_association.rb +4 -0
- data/lib/rails_admin/config/model.rb +2 -1
- data/lib/rails_admin/extensions/paper_trail/auditing_adapter.rb +2 -2
- data/lib/rails_admin/support/csv_converter.rb +22 -42
- data/lib/rails_admin/version.rb +1 -1
- metadata +59 -18
- data/app/assets/stylesheets/rails_admin/bootstrap/_accordion.scss +0 -34
- data/app/assets/stylesheets/rails_admin/bootstrap/_hero-unit.scss +0 -25
- data/app/assets/stylesheets/rails_admin/bootstrap/_labels-badges.scss +0 -83
- data/app/assets/stylesheets/rails_admin/bootstrap/_layouts.scss +0 -16
- data/app/assets/stylesheets/rails_admin/bootstrap/_reset.scss +0 -216
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-1200px-min.scss +0 -28
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-767px-max.scss +0 -193
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-768px-979px.scss +0 -19
- data/app/assets/stylesheets/rails_admin/bootstrap/_responsive-navbar.scss +0 -189
- data/app/assets/stylesheets/rails_admin/bootstrap/_sprites.scss +0 -197
- data/app/assets/stylesheets/rails_admin/bootstrap/responsive.scss +0 -48
|
@@ -3,51 +3,148 @@
|
|
|
3
3
|
// --------------------------------------------------
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
// Reset the box-sizing
|
|
7
|
+
//
|
|
8
|
+
// Heads up! This reset may cause conflicts with some third-party widgets.
|
|
9
|
+
// For recommendations on resolving such conflicts, see
|
|
10
|
+
// http://getbootstrap.com/getting-started/#third-box-sizing
|
|
11
|
+
* {
|
|
12
|
+
@include box-sizing(border-box);
|
|
13
|
+
}
|
|
14
|
+
*:before,
|
|
15
|
+
*:after {
|
|
16
|
+
@include box-sizing(border-box);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
|
|
6
20
|
// Body reset
|
|
7
|
-
|
|
21
|
+
|
|
22
|
+
html {
|
|
23
|
+
font-size: 10px;
|
|
24
|
+
-webkit-tap-highlight-color: rgba(0,0,0,0);
|
|
25
|
+
}
|
|
8
26
|
|
|
9
27
|
body {
|
|
10
|
-
|
|
11
|
-
font-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
color: $
|
|
15
|
-
|
|
28
|
+
font-family: $font-family-base;
|
|
29
|
+
font-size: $font-size-base;
|
|
30
|
+
line-height: $line-height-base;
|
|
31
|
+
color: $text-color;
|
|
32
|
+
background-color: $body-bg;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// Reset fonts for relevant elements
|
|
36
|
+
input,
|
|
37
|
+
button,
|
|
38
|
+
select,
|
|
39
|
+
textarea {
|
|
40
|
+
font-family: inherit;
|
|
41
|
+
font-size: inherit;
|
|
42
|
+
line-height: inherit;
|
|
16
43
|
}
|
|
17
44
|
|
|
18
45
|
|
|
19
46
|
// Links
|
|
20
|
-
// -------------------------
|
|
21
47
|
|
|
22
48
|
a {
|
|
23
|
-
color: $
|
|
49
|
+
color: $link-color;
|
|
24
50
|
text-decoration: none;
|
|
51
|
+
|
|
52
|
+
&:hover,
|
|
53
|
+
&:focus {
|
|
54
|
+
color: $link-hover-color;
|
|
55
|
+
text-decoration: underline;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&:focus {
|
|
59
|
+
@include tab-focus();
|
|
60
|
+
}
|
|
25
61
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
// Figures
|
|
65
|
+
//
|
|
66
|
+
// We reset this here because previously Normalize had no `figure` margins. This
|
|
67
|
+
// ensures we don't break anyone's use of the element.
|
|
68
|
+
|
|
69
|
+
figure {
|
|
70
|
+
margin: 0;
|
|
30
71
|
}
|
|
31
72
|
|
|
32
73
|
|
|
33
74
|
// Images
|
|
34
|
-
|
|
75
|
+
|
|
76
|
+
img {
|
|
77
|
+
vertical-align: middle;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Responsive images (ensure images don't scale beyond their parents)
|
|
81
|
+
.img-responsive {
|
|
82
|
+
@include img-responsive();
|
|
83
|
+
}
|
|
35
84
|
|
|
36
85
|
// Rounded corners
|
|
37
86
|
.img-rounded {
|
|
38
|
-
|
|
87
|
+
border-radius: $border-radius-large;
|
|
39
88
|
}
|
|
40
89
|
|
|
41
|
-
//
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
90
|
+
// Image thumbnails
|
|
91
|
+
//
|
|
92
|
+
// Heads up! This is mixin-ed into thumbnails.less for `.thumbnail`.
|
|
93
|
+
.img-thumbnail {
|
|
94
|
+
padding: $thumbnail-padding;
|
|
95
|
+
line-height: $line-height-base;
|
|
96
|
+
background-color: $thumbnail-bg;
|
|
97
|
+
border: 1px solid $thumbnail-border;
|
|
98
|
+
border-radius: $thumbnail-border-radius;
|
|
99
|
+
@include transition(all .2s ease-in-out);
|
|
100
|
+
|
|
101
|
+
// Keep them at most 100% wide
|
|
102
|
+
@include img-responsive(inline-block);
|
|
48
103
|
}
|
|
49
104
|
|
|
50
105
|
// Perfect circle
|
|
51
106
|
.img-circle {
|
|
52
|
-
|
|
107
|
+
border-radius: 50%; // set radius in percents
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
// Horizontal rules
|
|
112
|
+
|
|
113
|
+
hr {
|
|
114
|
+
margin-top: $line-height-computed;
|
|
115
|
+
margin-bottom: $line-height-computed;
|
|
116
|
+
border: 0;
|
|
117
|
+
border-top: 1px solid $hr-border;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
// Only display content to screen readers
|
|
122
|
+
//
|
|
123
|
+
// See: http://a11yproject.com/posts/how-to-hide-content/
|
|
124
|
+
|
|
125
|
+
.sr-only {
|
|
126
|
+
position: absolute;
|
|
127
|
+
width: 1px;
|
|
128
|
+
height: 1px;
|
|
129
|
+
margin: -1px;
|
|
130
|
+
padding: 0;
|
|
131
|
+
overflow: hidden;
|
|
132
|
+
clip: rect(0,0,0,0);
|
|
133
|
+
border: 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
// Use in conjunction with .sr-only to only display content when it's focused.
|
|
137
|
+
// Useful for "Skip to main content" links; see http://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
|
|
138
|
+
// Credit: HTML5 Boilerplate
|
|
139
|
+
|
|
140
|
+
.sr-only-focusable {
|
|
141
|
+
&:active,
|
|
142
|
+
&:focus {
|
|
143
|
+
position: static;
|
|
144
|
+
width: auto;
|
|
145
|
+
height: auto;
|
|
146
|
+
margin: 0;
|
|
147
|
+
overflow: visible;
|
|
148
|
+
clip: auto;
|
|
149
|
+
}
|
|
53
150
|
}
|
|
@@ -3,233 +3,231 @@
|
|
|
3
3
|
// --------------------------------------------------
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
// BASE TABLES
|
|
7
|
-
// -----------------
|
|
8
|
-
|
|
9
6
|
table {
|
|
10
|
-
|
|
11
|
-
background-color: $tableBackground;
|
|
12
|
-
border-collapse: collapse;
|
|
13
|
-
border-spacing: 0;
|
|
7
|
+
background-color: $table-bg;
|
|
14
8
|
}
|
|
9
|
+
th {
|
|
10
|
+
text-align: left;
|
|
11
|
+
}
|
|
12
|
+
|
|
15
13
|
|
|
16
|
-
//
|
|
17
|
-
// ---------------
|
|
14
|
+
// Baseline styles
|
|
18
15
|
|
|
19
16
|
.table {
|
|
20
17
|
width: 100%;
|
|
21
|
-
|
|
18
|
+
max-width: 100%;
|
|
19
|
+
margin-bottom: $line-height-computed;
|
|
22
20
|
// Cells
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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
33
|
}
|
|
34
34
|
// Bottom align for column headings
|
|
35
|
-
thead th {
|
|
35
|
+
> thead > tr > th {
|
|
36
36
|
vertical-align: bottom;
|
|
37
|
+
border-bottom: 2px solid $table-border-color;
|
|
37
38
|
}
|
|
38
39
|
// Remove top border from thead by default
|
|
39
|
-
caption + thead
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
> caption + thead,
|
|
41
|
+
> colgroup + thead,
|
|
42
|
+
> thead:first-child {
|
|
43
|
+
> tr:first-child {
|
|
44
|
+
> th,
|
|
45
|
+
> td {
|
|
46
|
+
border-top: 0;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
46
49
|
}
|
|
47
50
|
// Account for multiple tbody instances
|
|
48
|
-
tbody + tbody {
|
|
49
|
-
border-top: 2px solid $
|
|
51
|
+
> tbody + tbody {
|
|
52
|
+
border-top: 2px solid $table-border-color;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
// Nesting
|
|
53
56
|
.table {
|
|
54
|
-
background-color: $
|
|
57
|
+
background-color: $body-bg;
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
60
|
|
|
58
61
|
|
|
59
|
-
|
|
60
|
-
// CONDENSED TABLE W/ HALF PADDING
|
|
61
|
-
// -------------------------------
|
|
62
|
+
// Condensed table w/ half padding
|
|
62
63
|
|
|
63
64
|
.table-condensed {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
> thead,
|
|
66
|
+
> tbody,
|
|
67
|
+
> tfoot {
|
|
68
|
+
> tr {
|
|
69
|
+
> th,
|
|
70
|
+
> td {
|
|
71
|
+
padding: $table-condensed-cell-padding;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
67
74
|
}
|
|
68
75
|
}
|
|
69
76
|
|
|
70
77
|
|
|
71
|
-
//
|
|
72
|
-
//
|
|
78
|
+
// Bordered version
|
|
79
|
+
//
|
|
80
|
+
// Add borders all around the table and between all the columns.
|
|
73
81
|
|
|
74
82
|
.table-bordered {
|
|
75
|
-
border: 1px solid $
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
caption + thead tr:first-child th,
|
|
86
|
-
caption + tbody tr:first-child th,
|
|
87
|
-
caption + tbody tr:first-child td,
|
|
88
|
-
colgroup + thead tr:first-child th,
|
|
89
|
-
colgroup + tbody tr:first-child th,
|
|
90
|
-
colgroup + tbody tr:first-child td,
|
|
91
|
-
thead:first-child tr:first-child th,
|
|
92
|
-
tbody:first-child tr:first-child th,
|
|
93
|
-
tbody:first-child tr:first-child td {
|
|
94
|
-
border-top: 0;
|
|
95
|
-
}
|
|
96
|
-
// For first th/td in the first row in the first thead or tbody
|
|
97
|
-
thead:first-child tr:first-child > th:first-child,
|
|
98
|
-
tbody:first-child tr:first-child > td:first-child,
|
|
99
|
-
tbody:first-child tr:first-child > th:first-child {
|
|
100
|
-
@include border-top-left-radius($baseBorderRadius);
|
|
101
|
-
}
|
|
102
|
-
// For last th/td in the first row in the first thead or tbody
|
|
103
|
-
thead:first-child tr:first-child > th:last-child,
|
|
104
|
-
tbody:first-child tr:first-child > td:last-child,
|
|
105
|
-
tbody:first-child tr:first-child > th:last-child {
|
|
106
|
-
@include border-top-right-radius($baseBorderRadius);
|
|
107
|
-
}
|
|
108
|
-
// For first th/td (can be either) in the last row in the last thead, tbody, and tfoot
|
|
109
|
-
thead:last-child tr:last-child > th:first-child,
|
|
110
|
-
tbody:last-child tr:last-child > td:first-child,
|
|
111
|
-
tbody:last-child tr:last-child > th:first-child,
|
|
112
|
-
tfoot:last-child tr:last-child > td:first-child,
|
|
113
|
-
tfoot:last-child tr:last-child > th:first-child {
|
|
114
|
-
@include border-bottom-left-radius($baseBorderRadius);
|
|
115
|
-
}
|
|
116
|
-
// For last th/td (can be either) in the last row in the last thead, tbody, and tfoot
|
|
117
|
-
thead:last-child tr:last-child > th:last-child,
|
|
118
|
-
tbody:last-child tr:last-child > td:last-child,
|
|
119
|
-
tbody:last-child tr:last-child > th:last-child,
|
|
120
|
-
tfoot:last-child tr:last-child > td:last-child,
|
|
121
|
-
tfoot:last-child tr:last-child > th:last-child {
|
|
122
|
-
@include border-bottom-right-radius($baseBorderRadius);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// Clear border-radius for first and last td in the last row in the last tbody for table with tfoot
|
|
126
|
-
tfoot + tbody:last-child tr:last-child td:first-child {
|
|
127
|
-
@include border-bottom-left-radius(0);
|
|
128
|
-
}
|
|
129
|
-
tfoot + tbody:last-child tr:last-child td:last-child {
|
|
130
|
-
@include border-bottom-right-radius(0);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
// Special fixes to round the left border on the first td/th
|
|
134
|
-
caption + thead tr:first-child th:first-child,
|
|
135
|
-
caption + tbody tr:first-child td:first-child,
|
|
136
|
-
colgroup + thead tr:first-child th:first-child,
|
|
137
|
-
colgroup + tbody tr:first-child td:first-child {
|
|
138
|
-
@include border-top-left-radius($baseBorderRadius);
|
|
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
|
+
}
|
|
139
93
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
94
|
+
> thead > tr {
|
|
95
|
+
> th,
|
|
96
|
+
> td {
|
|
97
|
+
border-bottom-width: 2px;
|
|
98
|
+
}
|
|
145
99
|
}
|
|
146
|
-
|
|
147
100
|
}
|
|
148
101
|
|
|
149
102
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
// ZEBRA-STRIPING
|
|
153
|
-
// --------------
|
|
154
|
-
|
|
103
|
+
// Zebra-striping
|
|
104
|
+
//
|
|
155
105
|
// Default zebra-stripe styles (alternating gray and transparent backgrounds)
|
|
106
|
+
|
|
156
107
|
.table-striped {
|
|
157
|
-
tbody {
|
|
158
|
-
>
|
|
159
|
-
>
|
|
160
|
-
background-color: $
|
|
108
|
+
> tbody > tr:nth-child(odd) {
|
|
109
|
+
> td,
|
|
110
|
+
> th {
|
|
111
|
+
background-color: $table-bg-accent;
|
|
161
112
|
}
|
|
162
113
|
}
|
|
163
114
|
}
|
|
164
115
|
|
|
165
116
|
|
|
166
|
-
//
|
|
167
|
-
//
|
|
117
|
+
// Hover effect
|
|
118
|
+
//
|
|
168
119
|
// Placed here since it has to come after the potential zebra striping
|
|
120
|
+
|
|
169
121
|
.table-hover {
|
|
170
|
-
tbody {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
background-color: $
|
|
122
|
+
> tbody > tr:hover {
|
|
123
|
+
> td,
|
|
124
|
+
> th {
|
|
125
|
+
background-color: $table-bg-hover;
|
|
174
126
|
}
|
|
175
127
|
}
|
|
176
128
|
}
|
|
177
129
|
|
|
178
130
|
|
|
179
|
-
//
|
|
180
|
-
//
|
|
131
|
+
// Table cell sizing
|
|
132
|
+
//
|
|
133
|
+
// Reset default table behavior
|
|
181
134
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
.row-fluid table th[class*="span"] {
|
|
187
|
-
display: table-cell;
|
|
188
|
-
float: none; // undo default grid column styles
|
|
189
|
-
margin-left: 0; // undo default grid column styles
|
|
135
|
+
table col[class*="col-"] {
|
|
136
|
+
position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
|
|
137
|
+
float: none;
|
|
138
|
+
display: table-column;
|
|
190
139
|
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
140
|
+
table {
|
|
141
|
+
td,
|
|
142
|
+
th {
|
|
143
|
+
&[class*="col-"] {
|
|
144
|
+
position: static; // Prevent border hiding in Firefox and IE9/10 (see https://github.com/twbs/bootstrap/issues/11623)
|
|
145
|
+
float: none;
|
|
146
|
+
display: table-cell;
|
|
147
|
+
}
|
|
197
148
|
}
|
|
198
149
|
}
|
|
199
150
|
|
|
200
151
|
|
|
152
|
+
// Table backgrounds
|
|
153
|
+
//
|
|
154
|
+
// Exact selectors below required to override `.table-striped` and prevent
|
|
155
|
+
// inheritance to nested tables.
|
|
201
156
|
|
|
202
|
-
//
|
|
203
|
-
|
|
204
|
-
|
|
157
|
+
// Generate the contextual variants
|
|
158
|
+
@include table-row-variant('active', $table-bg-active);
|
|
159
|
+
@include table-row-variant('success', $state-success-bg);
|
|
160
|
+
@include table-row-variant('info', $state-info-bg);
|
|
161
|
+
@include table-row-variant('warning', $state-warning-bg);
|
|
162
|
+
@include table-row-variant('danger', $state-danger-bg);
|
|
205
163
|
|
|
206
|
-
.table tbody tr {
|
|
207
|
-
&.success > td {
|
|
208
|
-
background-color: $successBackground;
|
|
209
|
-
}
|
|
210
|
-
&.error > td {
|
|
211
|
-
background-color: $errorBackground;
|
|
212
|
-
}
|
|
213
|
-
&.warning > td {
|
|
214
|
-
background-color: $warningBackground;
|
|
215
|
-
}
|
|
216
|
-
&.info > td {
|
|
217
|
-
background-color: $infoBackground;
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
164
|
|
|
221
|
-
//
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
165
|
+
// Responsive tables
|
|
166
|
+
//
|
|
167
|
+
// Wrap your tables in `.table-responsive` and we'll make them mobile friendly
|
|
168
|
+
// by enabling horizontal scrolling. Only applies <768px. Everything above that
|
|
169
|
+
// will display normally.
|
|
170
|
+
|
|
171
|
+
.table-responsive {
|
|
172
|
+
@media screen and (max-width: $screen-xs-max) {
|
|
173
|
+
width: 100%;
|
|
174
|
+
margin-bottom: ($line-height-computed * 0.75);
|
|
175
|
+
overflow-y: hidden;
|
|
176
|
+
overflow-x: auto;
|
|
177
|
+
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
178
|
+
border: 1px solid $table-border-color;
|
|
179
|
+
-webkit-overflow-scrolling: touch;
|
|
180
|
+
|
|
181
|
+
// Tighten up spacing
|
|
182
|
+
> .table {
|
|
183
|
+
margin-bottom: 0;
|
|
184
|
+
|
|
185
|
+
// Ensure the content doesn't wrap
|
|
186
|
+
> thead,
|
|
187
|
+
> tbody,
|
|
188
|
+
> tfoot {
|
|
189
|
+
> tr {
|
|
190
|
+
> th,
|
|
191
|
+
> td {
|
|
192
|
+
white-space: nowrap;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
// Special overrides for the bordered tables
|
|
199
|
+
> .table-bordered {
|
|
200
|
+
border: 0;
|
|
201
|
+
|
|
202
|
+
// Nuke the appropriate borders so that the parent can handle them
|
|
203
|
+
> thead,
|
|
204
|
+
> tbody,
|
|
205
|
+
> tfoot {
|
|
206
|
+
> tr {
|
|
207
|
+
> th:first-child,
|
|
208
|
+
> td:first-child {
|
|
209
|
+
border-left: 0;
|
|
210
|
+
}
|
|
211
|
+
> th:last-child,
|
|
212
|
+
> td:last-child {
|
|
213
|
+
border-right: 0;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
// Only nuke the last row's bottom-border in `tbody` and `tfoot` since
|
|
219
|
+
// chances are there will be only one `tr` in a `thead` and that would
|
|
220
|
+
// remove the border altogether.
|
|
221
|
+
> tbody,
|
|
222
|
+
> tfoot {
|
|
223
|
+
> tr:last-child {
|
|
224
|
+
> th,
|
|
225
|
+
> td {
|
|
226
|
+
border-bottom: 0;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
}
|
|
234
232
|
}
|
|
235
233
|
}
|