rails_admin 0.6.5 → 0.6.6
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of rails_admin might be problematic. Click here for more details.
- 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
@@ -1,123 +1,88 @@
|
|
1
1
|
//
|
2
2
|
// Pagination (multiple pages)
|
3
3
|
// --------------------------------------------------
|
4
|
-
|
5
|
-
// Space out pagination from surrounding content
|
6
4
|
.pagination {
|
7
|
-
margin: $baseLineHeight 0;
|
8
|
-
}
|
9
|
-
|
10
|
-
.pagination ul {
|
11
|
-
// Allow for text-based alignment
|
12
5
|
display: inline-block;
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
margin-bottom: 0;
|
17
|
-
// Visuals
|
18
|
-
@include border-radius($baseBorderRadius);
|
19
|
-
@include box-shadow(0 1px 2px rgba(0,0,0,.05));
|
20
|
-
}
|
21
|
-
.pagination ul > li {
|
22
|
-
display: inline; // Remove list-style and block-level defaults
|
23
|
-
}
|
24
|
-
.pagination ul > li > a,
|
25
|
-
.pagination ul > li > span {
|
26
|
-
float: left; // Collapse white-space
|
27
|
-
padding: 4px 12px;
|
28
|
-
line-height: $baseLineHeight;
|
29
|
-
text-decoration: none;
|
30
|
-
background-color: $paginationBackground;
|
31
|
-
border: 1px solid $paginationBorder;
|
32
|
-
border-left-width: 0;
|
33
|
-
}
|
34
|
-
.pagination ul > li > a:hover,
|
35
|
-
.pagination ul > li > a:focus,
|
36
|
-
.pagination ul > .active > a,
|
37
|
-
.pagination ul > .active > span {
|
38
|
-
background-color: $paginationActiveBackground;
|
39
|
-
}
|
40
|
-
.pagination ul > .active > a,
|
41
|
-
.pagination ul > .active > span {
|
42
|
-
color: $grayLight;
|
43
|
-
cursor: default;
|
44
|
-
}
|
45
|
-
.pagination ul > .disabled > span,
|
46
|
-
.pagination ul > .disabled > a,
|
47
|
-
.pagination ul > .disabled > a:hover,
|
48
|
-
.pagination ul > .disabled > a:focus {
|
49
|
-
color: $grayLight;
|
50
|
-
background-color: transparent;
|
51
|
-
cursor: default;
|
52
|
-
}
|
53
|
-
.pagination ul > li:first-child > a,
|
54
|
-
.pagination ul > li:first-child > span {
|
55
|
-
border-left-width: 1px;
|
56
|
-
@include border-left-radius($baseBorderRadius);
|
57
|
-
}
|
58
|
-
.pagination ul > li:last-child > a,
|
59
|
-
.pagination ul > li:last-child > span {
|
60
|
-
@include border-right-radius($baseBorderRadius);
|
61
|
-
}
|
6
|
+
padding-left: 0;
|
7
|
+
margin: $line-height-computed 0;
|
8
|
+
border-radius: $border-radius-base;
|
62
9
|
|
10
|
+
> li {
|
11
|
+
display: inline; // Remove list-style and block-level defaults
|
12
|
+
> a,
|
13
|
+
> span {
|
14
|
+
position: relative;
|
15
|
+
float: left; // Collapse white-space
|
16
|
+
padding: $padding-base-vertical $padding-base-horizontal;
|
17
|
+
line-height: $line-height-base;
|
18
|
+
text-decoration: none;
|
19
|
+
color: $pagination-color;
|
20
|
+
background-color: $pagination-bg;
|
21
|
+
border: 1px solid $pagination-border;
|
22
|
+
margin-left: -1px;
|
23
|
+
}
|
24
|
+
&:first-child {
|
25
|
+
> a,
|
26
|
+
> span {
|
27
|
+
margin-left: 0;
|
28
|
+
@include border-left-radius($border-radius-base);
|
29
|
+
}
|
30
|
+
}
|
31
|
+
&:last-child {
|
32
|
+
> a,
|
33
|
+
> span {
|
34
|
+
@include border-right-radius($border-radius-base);
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
63
38
|
|
64
|
-
|
65
|
-
|
39
|
+
> li > a,
|
40
|
+
> li > span {
|
41
|
+
&:hover,
|
42
|
+
&:focus {
|
43
|
+
color: $pagination-hover-color;
|
44
|
+
background-color: $pagination-hover-bg;
|
45
|
+
border-color: $pagination-hover-border;
|
46
|
+
}
|
47
|
+
}
|
66
48
|
|
67
|
-
.
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
49
|
+
> .active > a,
|
50
|
+
> .active > span {
|
51
|
+
&,
|
52
|
+
&:hover,
|
53
|
+
&:focus {
|
54
|
+
z-index: 2;
|
55
|
+
color: $pagination-active-color;
|
56
|
+
background-color: $pagination-active-bg;
|
57
|
+
border-color: $pagination-active-border;
|
58
|
+
cursor: default;
|
59
|
+
}
|
60
|
+
}
|
73
61
|
|
62
|
+
> .disabled {
|
63
|
+
> span,
|
64
|
+
> span:hover,
|
65
|
+
> span:focus,
|
66
|
+
> a,
|
67
|
+
> a:hover,
|
68
|
+
> a:focus {
|
69
|
+
color: $pagination-disabled-color;
|
70
|
+
background-color: $pagination-disabled-bg;
|
71
|
+
border-color: $pagination-disabled-border;
|
72
|
+
cursor: not-allowed;
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
74
76
|
|
75
77
|
// Sizing
|
76
78
|
// --------------------------------------------------
|
77
79
|
|
78
80
|
// Large
|
79
|
-
.pagination-
|
80
|
-
|
81
|
-
ul > li > span {
|
82
|
-
padding: $paddingLarge;
|
83
|
-
font-size: $fontSizeLarge;
|
84
|
-
}
|
85
|
-
ul > li:first-child > a,
|
86
|
-
ul > li:first-child > span {
|
87
|
-
@include border-left-radius($borderRadiusLarge);
|
88
|
-
}
|
89
|
-
ul > li:last-child > a,
|
90
|
-
ul > li:last-child > span {
|
91
|
-
@include border-right-radius($borderRadiusLarge);
|
92
|
-
}
|
93
|
-
}
|
94
|
-
|
95
|
-
// Small and mini
|
96
|
-
.pagination-mini,
|
97
|
-
.pagination-small {
|
98
|
-
ul > li:first-child > a,
|
99
|
-
ul > li:first-child > span {
|
100
|
-
@include border-left-radius($borderRadiusSmall);
|
101
|
-
}
|
102
|
-
ul > li:last-child > a,
|
103
|
-
ul > li:last-child > span {
|
104
|
-
@include border-right-radius($borderRadiusSmall);
|
105
|
-
}
|
81
|
+
.pagination-lg {
|
82
|
+
@include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $border-radius-large);
|
106
83
|
}
|
107
84
|
|
108
85
|
// Small
|
109
|
-
.pagination-
|
110
|
-
|
111
|
-
ul > li > span {
|
112
|
-
padding: $paddingSmall;
|
113
|
-
font-size: $fontSizeSmall;
|
114
|
-
}
|
115
|
-
}
|
116
|
-
// Mini
|
117
|
-
.pagination-mini {
|
118
|
-
ul > li > a,
|
119
|
-
ul > li > span {
|
120
|
-
padding: $paddingMini;
|
121
|
-
font-size: $fontSizeMini;
|
122
|
-
}
|
86
|
+
.pagination-sm {
|
87
|
+
@include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $border-radius-small);
|
123
88
|
}
|
@@ -0,0 +1,243 @@
|
|
1
|
+
//
|
2
|
+
// Panels
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base class
|
7
|
+
.panel {
|
8
|
+
margin-bottom: $line-height-computed;
|
9
|
+
background-color: $panel-bg;
|
10
|
+
border: 1px solid transparent;
|
11
|
+
border-radius: $panel-border-radius;
|
12
|
+
@include box-shadow(0 1px 1px rgba(0,0,0,.05));
|
13
|
+
}
|
14
|
+
|
15
|
+
// Panel contents
|
16
|
+
.panel-body {
|
17
|
+
padding: $panel-body-padding;
|
18
|
+
@include clearfix();
|
19
|
+
}
|
20
|
+
|
21
|
+
// Optional heading
|
22
|
+
.panel-heading {
|
23
|
+
padding: $panel-heading-padding;
|
24
|
+
border-bottom: 1px solid transparent;
|
25
|
+
@include border-top-radius(($panel-border-radius - 1));
|
26
|
+
|
27
|
+
> .dropdown .dropdown-toggle {
|
28
|
+
color: inherit;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
// Within heading, strip any `h*` tag of its default margins for spacing.
|
33
|
+
.panel-title {
|
34
|
+
margin-top: 0;
|
35
|
+
margin-bottom: 0;
|
36
|
+
font-size: ceil(($font-size-base * 1.125));
|
37
|
+
color: inherit;
|
38
|
+
|
39
|
+
> a {
|
40
|
+
color: inherit;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
// Optional footer (stays gray in every modifier class)
|
45
|
+
.panel-footer {
|
46
|
+
padding: $panel-footer-padding;
|
47
|
+
background-color: $panel-footer-bg;
|
48
|
+
border-top: 1px solid $panel-inner-border;
|
49
|
+
@include border-bottom-radius(($panel-border-radius - 1));
|
50
|
+
}
|
51
|
+
|
52
|
+
|
53
|
+
// List groups in panels
|
54
|
+
//
|
55
|
+
// By default, space out list group content from panel headings to account for
|
56
|
+
// any kind of custom content between the two.
|
57
|
+
|
58
|
+
.panel {
|
59
|
+
> .list-group {
|
60
|
+
margin-bottom: 0;
|
61
|
+
|
62
|
+
.list-group-item {
|
63
|
+
border-width: 1px 0;
|
64
|
+
border-radius: 0;
|
65
|
+
}
|
66
|
+
|
67
|
+
// Add border top radius for first one
|
68
|
+
&:first-child {
|
69
|
+
.list-group-item:first-child {
|
70
|
+
border-top: 0;
|
71
|
+
@include border-top-radius(($panel-border-radius - 1));
|
72
|
+
}
|
73
|
+
}
|
74
|
+
// Add border bottom radius for last one
|
75
|
+
&:last-child {
|
76
|
+
.list-group-item:last-child {
|
77
|
+
border-bottom: 0;
|
78
|
+
@include border-bottom-radius(($panel-border-radius - 1));
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
// Collapse space between when there's no additional content.
|
84
|
+
.panel-heading + .list-group {
|
85
|
+
.list-group-item:first-child {
|
86
|
+
border-top-width: 0;
|
87
|
+
}
|
88
|
+
}
|
89
|
+
.list-group + .panel-footer {
|
90
|
+
border-top-width: 0;
|
91
|
+
}
|
92
|
+
|
93
|
+
// Tables in panels
|
94
|
+
//
|
95
|
+
// Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
|
96
|
+
// watch it go full width.
|
97
|
+
|
98
|
+
.panel {
|
99
|
+
> .table,
|
100
|
+
> .table-responsive > .table,
|
101
|
+
> .panel-collapse > .table {
|
102
|
+
margin-bottom: 0;
|
103
|
+
}
|
104
|
+
// Add border top radius for first one
|
105
|
+
> .table:first-child,
|
106
|
+
> .table-responsive:first-child > .table:first-child {
|
107
|
+
@include border-top-radius(($panel-border-radius - 1));
|
108
|
+
|
109
|
+
> thead:first-child,
|
110
|
+
> tbody:first-child {
|
111
|
+
> tr:first-child {
|
112
|
+
td:first-child,
|
113
|
+
th:first-child {
|
114
|
+
border-top-left-radius: ($panel-border-radius - 1);
|
115
|
+
}
|
116
|
+
td:last-child,
|
117
|
+
th:last-child {
|
118
|
+
border-top-right-radius: ($panel-border-radius - 1);
|
119
|
+
}
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
// Add border bottom radius for last one
|
124
|
+
> .table:last-child,
|
125
|
+
> .table-responsive:last-child > .table:last-child {
|
126
|
+
@include border-bottom-radius(($panel-border-radius - 1));
|
127
|
+
|
128
|
+
> tbody:last-child,
|
129
|
+
> tfoot:last-child {
|
130
|
+
> tr:last-child {
|
131
|
+
td:first-child,
|
132
|
+
th:first-child {
|
133
|
+
border-bottom-left-radius: ($panel-border-radius - 1);
|
134
|
+
}
|
135
|
+
td:last-child,
|
136
|
+
th:last-child {
|
137
|
+
border-bottom-right-radius: ($panel-border-radius - 1);
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
> .panel-body + .table,
|
143
|
+
> .panel-body + .table-responsive {
|
144
|
+
border-top: 1px solid $table-border-color;
|
145
|
+
}
|
146
|
+
> .table > tbody:first-child > tr:first-child th,
|
147
|
+
> .table > tbody:first-child > tr:first-child td {
|
148
|
+
border-top: 0;
|
149
|
+
}
|
150
|
+
> .table-bordered,
|
151
|
+
> .table-responsive > .table-bordered {
|
152
|
+
border: 0;
|
153
|
+
> thead,
|
154
|
+
> tbody,
|
155
|
+
> tfoot {
|
156
|
+
> tr {
|
157
|
+
> th:first-child,
|
158
|
+
> td:first-child {
|
159
|
+
border-left: 0;
|
160
|
+
}
|
161
|
+
> th:last-child,
|
162
|
+
> td:last-child {
|
163
|
+
border-right: 0;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
}
|
167
|
+
> thead,
|
168
|
+
> tbody {
|
169
|
+
> tr:first-child {
|
170
|
+
> td,
|
171
|
+
> th {
|
172
|
+
border-bottom: 0;
|
173
|
+
}
|
174
|
+
}
|
175
|
+
}
|
176
|
+
> tbody,
|
177
|
+
> tfoot {
|
178
|
+
> tr:last-child {
|
179
|
+
> td,
|
180
|
+
> th {
|
181
|
+
border-bottom: 0;
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
> .table-responsive {
|
187
|
+
border: 0;
|
188
|
+
margin-bottom: 0;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
|
193
|
+
// Collapsable panels (aka, accordion)
|
194
|
+
//
|
195
|
+
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
196
|
+
// the help of our collapse JavaScript plugin.
|
197
|
+
|
198
|
+
.panel-group {
|
199
|
+
margin-bottom: $line-height-computed;
|
200
|
+
|
201
|
+
// Tighten up margin so it's only between panels
|
202
|
+
.panel {
|
203
|
+
margin-bottom: 0;
|
204
|
+
border-radius: $panel-border-radius;
|
205
|
+
+ .panel {
|
206
|
+
margin-top: 5px;
|
207
|
+
}
|
208
|
+
}
|
209
|
+
|
210
|
+
.panel-heading {
|
211
|
+
border-bottom: 0;
|
212
|
+
+ .panel-collapse > .panel-body {
|
213
|
+
border-top: 1px solid $panel-inner-border;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
.panel-footer {
|
217
|
+
border-top: 0;
|
218
|
+
+ .panel-collapse .panel-body {
|
219
|
+
border-bottom: 1px solid $panel-inner-border;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
224
|
+
|
225
|
+
// Contextual variations
|
226
|
+
.panel-default {
|
227
|
+
@include panel-variant($panel-default-border, $panel-default-text, $panel-default-heading-bg, $panel-default-border);
|
228
|
+
}
|
229
|
+
.panel-primary {
|
230
|
+
@include panel-variant($panel-primary-border, $panel-primary-text, $panel-primary-heading-bg, $panel-primary-border);
|
231
|
+
}
|
232
|
+
.panel-success {
|
233
|
+
@include panel-variant($panel-success-border, $panel-success-text, $panel-success-heading-bg, $panel-success-border);
|
234
|
+
}
|
235
|
+
.panel-info {
|
236
|
+
@include panel-variant($panel-info-border, $panel-info-text, $panel-info-heading-bg, $panel-info-border);
|
237
|
+
}
|
238
|
+
.panel-warning {
|
239
|
+
@include panel-variant($panel-warning-border, $panel-warning-text, $panel-warning-heading-bg, $panel-warning-border);
|
240
|
+
}
|
241
|
+
.panel-danger {
|
242
|
+
@include panel-variant($panel-danger-border, $panel-danger-text, $panel-danger-heading-bg, $panel-danger-border);
|
243
|
+
}
|
@@ -7,43 +7,37 @@
|
|
7
7
|
position: absolute;
|
8
8
|
top: 0;
|
9
9
|
left: 0;
|
10
|
-
z-index: $
|
10
|
+
z-index: $zindex-popover;
|
11
11
|
display: none;
|
12
|
-
max-width:
|
12
|
+
max-width: $popover-max-width;
|
13
13
|
padding: 1px;
|
14
14
|
text-align: left; // Reset given new insertion method
|
15
|
-
background-color: $
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
border:
|
20
|
-
border: 1px solid rgba(0,0,0,.2);
|
21
|
-
@include border-radius(6px);
|
15
|
+
background-color: $popover-bg;
|
16
|
+
background-clip: padding-box;
|
17
|
+
border: 1px solid $popover-fallback-border-color;
|
18
|
+
border: 1px solid $popover-border-color;
|
19
|
+
border-radius: $border-radius-large;
|
22
20
|
@include box-shadow(0 5px 10px rgba(0,0,0,.2));
|
23
21
|
|
24
22
|
// Overrides for proper insertion
|
25
23
|
white-space: normal;
|
26
24
|
|
27
25
|
// Offset the popover to account for the popover arrow
|
28
|
-
&.top { margin-top: -
|
29
|
-
&.right { margin-left:
|
30
|
-
&.bottom { margin-top:
|
31
|
-
&.left { margin-left: -
|
26
|
+
&.top { margin-top: -$popover-arrow-width; }
|
27
|
+
&.right { margin-left: $popover-arrow-width; }
|
28
|
+
&.bottom { margin-top: $popover-arrow-width; }
|
29
|
+
&.left { margin-left: -$popover-arrow-width; }
|
32
30
|
}
|
33
31
|
|
34
32
|
.popover-title {
|
35
33
|
margin: 0; // reset heading margin
|
36
34
|
padding: 8px 14px;
|
37
|
-
font-size:
|
35
|
+
font-size: $font-size-base;
|
38
36
|
font-weight: normal;
|
39
37
|
line-height: 18px;
|
40
|
-
background-color: $
|
41
|
-
border-bottom: 1px solid darken($
|
42
|
-
|
43
|
-
|
44
|
-
&:empty {
|
45
|
-
display: none;
|
46
|
-
}
|
38
|
+
background-color: $popover-title-bg;
|
39
|
+
border-bottom: 1px solid darken($popover-title-bg, 5%);
|
40
|
+
border-radius: ($border-radius-large - 1) ($border-radius-large - 1) 0 0;
|
47
41
|
}
|
48
42
|
|
49
43
|
.popover-content {
|
@@ -54,79 +48,85 @@
|
|
54
48
|
//
|
55
49
|
// .arrow is outer, .arrow:after is inner
|
56
50
|
|
57
|
-
.popover .arrow
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
51
|
+
.popover > .arrow {
|
52
|
+
&,
|
53
|
+
&:after {
|
54
|
+
position: absolute;
|
55
|
+
display: block;
|
56
|
+
width: 0;
|
57
|
+
height: 0;
|
58
|
+
border-color: transparent;
|
59
|
+
border-style: solid;
|
60
|
+
}
|
65
61
|
}
|
66
|
-
.popover .arrow {
|
67
|
-
border-width: $
|
62
|
+
.popover > .arrow {
|
63
|
+
border-width: $popover-arrow-outer-width;
|
68
64
|
}
|
69
|
-
.popover .arrow:after {
|
70
|
-
border-width: $
|
65
|
+
.popover > .arrow:after {
|
66
|
+
border-width: $popover-arrow-width;
|
71
67
|
content: "";
|
72
68
|
}
|
73
69
|
|
74
70
|
.popover {
|
75
|
-
&.top .arrow {
|
71
|
+
&.top > .arrow {
|
76
72
|
left: 50%;
|
77
|
-
margin-left: -$
|
73
|
+
margin-left: -$popover-arrow-outer-width;
|
78
74
|
border-bottom-width: 0;
|
79
|
-
border-top-color:
|
80
|
-
border-top-color: $
|
81
|
-
bottom: -$
|
75
|
+
border-top-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
76
|
+
border-top-color: $popover-arrow-outer-color;
|
77
|
+
bottom: -$popover-arrow-outer-width;
|
82
78
|
&:after {
|
79
|
+
content: " ";
|
83
80
|
bottom: 1px;
|
84
|
-
margin-left: -$
|
81
|
+
margin-left: -$popover-arrow-width;
|
85
82
|
border-bottom-width: 0;
|
86
|
-
border-top-color: $
|
83
|
+
border-top-color: $popover-arrow-color;
|
87
84
|
}
|
88
85
|
}
|
89
|
-
&.right .arrow {
|
86
|
+
&.right > .arrow {
|
90
87
|
top: 50%;
|
91
|
-
left: -$
|
92
|
-
margin-top: -$
|
88
|
+
left: -$popover-arrow-outer-width;
|
89
|
+
margin-top: -$popover-arrow-outer-width;
|
93
90
|
border-left-width: 0;
|
94
|
-
border-right-color:
|
95
|
-
border-right-color: $
|
91
|
+
border-right-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
92
|
+
border-right-color: $popover-arrow-outer-color;
|
96
93
|
&:after {
|
94
|
+
content: " ";
|
97
95
|
left: 1px;
|
98
|
-
bottom: -$
|
96
|
+
bottom: -$popover-arrow-width;
|
99
97
|
border-left-width: 0;
|
100
|
-
border-right-color: $
|
98
|
+
border-right-color: $popover-arrow-color;
|
101
99
|
}
|
102
100
|
}
|
103
|
-
&.bottom .arrow {
|
101
|
+
&.bottom > .arrow {
|
104
102
|
left: 50%;
|
105
|
-
margin-left: -$
|
103
|
+
margin-left: -$popover-arrow-outer-width;
|
106
104
|
border-top-width: 0;
|
107
|
-
border-bottom-color:
|
108
|
-
border-bottom-color: $
|
109
|
-
top: -$
|
105
|
+
border-bottom-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
106
|
+
border-bottom-color: $popover-arrow-outer-color;
|
107
|
+
top: -$popover-arrow-outer-width;
|
110
108
|
&:after {
|
109
|
+
content: " ";
|
111
110
|
top: 1px;
|
112
|
-
margin-left: -$
|
111
|
+
margin-left: -$popover-arrow-width;
|
113
112
|
border-top-width: 0;
|
114
|
-
border-bottom-color: $
|
113
|
+
border-bottom-color: $popover-arrow-color;
|
115
114
|
}
|
116
115
|
}
|
117
116
|
|
118
|
-
&.left .arrow {
|
117
|
+
&.left > .arrow {
|
119
118
|
top: 50%;
|
120
|
-
right: -$
|
121
|
-
margin-top: -$
|
119
|
+
right: -$popover-arrow-outer-width;
|
120
|
+
margin-top: -$popover-arrow-outer-width;
|
122
121
|
border-right-width: 0;
|
123
|
-
border-left-color:
|
124
|
-
border-left-color: $
|
122
|
+
border-left-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
123
|
+
border-left-color: $popover-arrow-outer-color;
|
125
124
|
&:after {
|
125
|
+
content: " ";
|
126
126
|
right: 1px;
|
127
127
|
border-right-width: 0;
|
128
|
-
border-left-color: $
|
129
|
-
bottom: -$
|
128
|
+
border-left-color: $popover-arrow-color;
|
129
|
+
bottom: -$popover-arrow-width;
|
130
130
|
}
|
131
131
|
}
|
132
132
|
|