adhoq 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +22 -0
- data/README.md +80 -0
- data/Rakefile +28 -0
- data/app/assets/javascripts/adhoq/application.js +19 -0
- data/app/assets/javascripts/adhoq/bootstrap-sprockets.js +12 -0
- data/app/assets/javascripts/adhoq/bootstrap.js +2107 -0
- data/app/assets/javascripts/adhoq/bootstrap/affix.js +142 -0
- data/app/assets/javascripts/adhoq/bootstrap/alert.js +92 -0
- data/app/assets/javascripts/adhoq/bootstrap/button.js +110 -0
- data/app/assets/javascripts/adhoq/bootstrap/carousel.js +223 -0
- data/app/assets/javascripts/adhoq/bootstrap/collapse.js +170 -0
- data/app/assets/javascripts/adhoq/bootstrap/dropdown.js +151 -0
- data/app/assets/javascripts/adhoq/bootstrap/modal.js +280 -0
- data/app/assets/javascripts/adhoq/bootstrap/popover.js +113 -0
- data/app/assets/javascripts/adhoq/bootstrap/scrollspy.js +170 -0
- data/app/assets/javascripts/adhoq/bootstrap/tab.js +128 -0
- data/app/assets/javascripts/adhoq/bootstrap/tooltip.js +457 -0
- data/app/assets/javascripts/adhoq/bootstrap/transition.js +59 -0
- data/app/assets/javascripts/adhoq/previewer.js.coffee +25 -0
- data/app/assets/stylesheets/adhoq/_bootstrap-compass.scss +7 -0
- data/app/assets/stylesheets/adhoq/_bootstrap-mincer.scss +17 -0
- data/app/assets/stylesheets/adhoq/_bootstrap-sprockets.scss +7 -0
- data/app/assets/stylesheets/adhoq/adhoq.css.sass +57 -0
- data/app/assets/stylesheets/adhoq/application.css +16 -0
- data/app/assets/stylesheets/adhoq/bootstrap.scss +50 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_alerts.scss +68 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_badges.scss +57 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_breadcrumbs.scss +26 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_button-groups.scss +240 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_buttons.scss +157 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_carousel.scss +243 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_close.scss +35 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_code.scss +68 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_component-animations.scss +35 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_dropdowns.scss +215 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_forms.scss +538 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_glyphicons.scss +237 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_grid.scss +84 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_input-groups.scss +166 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_jumbotron.scss +48 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_labels.scss +66 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_list-group.scss +131 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_media.scss +56 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_mixins.scss +39 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_modals.scss +150 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_navbar.scss +659 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_navs.scss +242 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_normalize.scss +425 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_pager.scss +55 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_pagination.scss +88 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_panels.scss +243 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_popovers.scss +133 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_print.scss +101 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_progress-bars.scss +105 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_responsive-embed.scss +34 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_responsive-utilities.scss +174 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_scaffolding.scss +150 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_tables.scss +233 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_theme.scss +258 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_thumbnails.scss +38 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_tooltip.scss +95 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_type.scss +304 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_utilities.scss +57 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_variables.scss +850 -0
- data/app/assets/stylesheets/adhoq/bootstrap/_wells.scss +29 -0
- data/app/assets/stylesheets/adhoq/bootstrap/bootstrap.scss +50 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_alerts.scss +14 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_background-variant.scss +11 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_border-radius.scss +18 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_buttons.scss +50 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_center-block.scss +7 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_clearfix.scss +22 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_forms.scss +84 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_gradients.scss +58 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_grid-framework.scss +81 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_grid.scss +122 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_hide-text.scss +21 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_image.scss +34 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_labels.scss +12 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_list-group.scss +31 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_nav-divider.scss +10 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_opacity.scss +8 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_pagination.scss +23 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_panels.scss +24 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_progress-bar.scss +10 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_reset-filter.scss +8 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_resize.scss +6 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_responsive-visibility.scss +21 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_size.scss +10 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_tab-focus.scss +9 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_table-row.scss +28 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_text-emphasis.scss +11 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_text-overflow.scss +8 -0
- data/app/assets/stylesheets/adhoq/bootstrap/mixins/_vendor-prefixes.scss +219 -0
- data/app/controllers/adhoq/application_controller.rb +5 -0
- data/app/controllers/adhoq/authorization_methods.rb +36 -0
- data/app/controllers/adhoq/executions_controller.rb +25 -0
- data/app/controllers/adhoq/previews_controller.rb +13 -0
- data/app/controllers/adhoq/queries_controller.rb +38 -0
- data/app/helpers/adhoq/application_helper.rb +11 -0
- data/app/models/adhoq/execution.rb +29 -0
- data/app/models/adhoq/query.rb +14 -0
- data/app/models/adhoq/report.rb +42 -0
- data/app/models/adhoq/time_based_orders.rb +9 -0
- data/app/views/adhoq/application/_global_nav.html.slim +11 -0
- data/app/views/adhoq/application/_sidebar_queries_index.html.slim +10 -0
- data/app/views/adhoq/previews/create.html.slim +12 -0
- data/app/views/adhoq/previews/statement_invalid.html.slim +5 -0
- data/app/views/adhoq/queries/_form.html.slim +38 -0
- data/app/views/adhoq/queries/_query.html.slim +43 -0
- data/app/views/adhoq/queries/edit.html.slim +2 -0
- data/app/views/adhoq/queries/index.html.slim +1 -0
- data/app/views/adhoq/queries/new.html.slim +2 -0
- data/app/views/adhoq/queries/show.html.slim +1 -0
- data/app/views/layouts/adhoq/application.html.slim +18 -0
- data/config/routes.rb +9 -0
- data/db/migrate/20141003095645_create_adhoq_queries.rb +11 -0
- data/db/migrate/20141006014750_create_adhoq_executions.rb +13 -0
- data/db/migrate/20141007052308_create_adhoq_reports.rb +12 -0
- data/lib/adhoq.rb +13 -0
- data/lib/adhoq/configuration.rb +21 -0
- data/lib/adhoq/engine.rb +15 -0
- data/lib/adhoq/error.rb +4 -0
- data/lib/adhoq/executor.rb +27 -0
- data/lib/adhoq/global_variable.rb +34 -0
- data/lib/adhoq/reporter.rb +5 -0
- data/lib/adhoq/reporter/xlsx.rb +32 -0
- data/lib/adhoq/result.rb +18 -0
- data/lib/adhoq/storage.rb +5 -0
- data/lib/adhoq/storage/local_file.rb +45 -0
- data/lib/adhoq/version.rb +3 -0
- data/lib/tasks/adhoq_tasks.rake +4 -0
- data/spec/adhoq/executor_spec.rb +11 -0
- data/spec/adhoq/storage_spec.rb +19 -0
- data/spec/factories/adhoq_queries.rb +29 -0
- data/spec/models/adhoq/execution_spec.rb +4 -0
- data/spec/models/adhoq/query_spec.rb +4 -0
- data/spec/models/adhoq/report_spec.rb +25 -0
- data/spec/spec_helper.rb +36 -0
- data/spec/support/have_values_in_xlsx_sheet_matcher.rb +20 -0
- metadata +375 -0
@@ -0,0 +1,55 @@
|
|
1
|
+
//
|
2
|
+
// Pager pagination
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.pager {
|
7
|
+
padding-left: 0;
|
8
|
+
margin: $line-height-computed 0;
|
9
|
+
list-style: none;
|
10
|
+
text-align: center;
|
11
|
+
@include clearfix();
|
12
|
+
li {
|
13
|
+
display: inline;
|
14
|
+
> a,
|
15
|
+
> span {
|
16
|
+
display: inline-block;
|
17
|
+
padding: 5px 14px;
|
18
|
+
background-color: $pager-bg;
|
19
|
+
border: 1px solid $pager-border;
|
20
|
+
border-radius: $pager-border-radius;
|
21
|
+
}
|
22
|
+
|
23
|
+
> a:hover,
|
24
|
+
> a:focus {
|
25
|
+
text-decoration: none;
|
26
|
+
background-color: $pager-hover-bg;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
.next {
|
31
|
+
> a,
|
32
|
+
> span {
|
33
|
+
float: right;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
.previous {
|
38
|
+
> a,
|
39
|
+
> span {
|
40
|
+
float: left;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
.disabled {
|
45
|
+
> a,
|
46
|
+
> a:hover,
|
47
|
+
> a:focus,
|
48
|
+
> span {
|
49
|
+
color: $pager-disabled-color;
|
50
|
+
background-color: $pager-bg;
|
51
|
+
cursor: not-allowed;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
}
|
@@ -0,0 +1,88 @@
|
|
1
|
+
//
|
2
|
+
// Pagination (multiple pages)
|
3
|
+
// --------------------------------------------------
|
4
|
+
.pagination {
|
5
|
+
display: inline-block;
|
6
|
+
padding-left: 0;
|
7
|
+
margin: $line-height-computed 0;
|
8
|
+
border-radius: $border-radius-base;
|
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
|
+
}
|
38
|
+
|
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
|
+
}
|
48
|
+
|
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
|
+
}
|
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
|
+
}
|
76
|
+
|
77
|
+
// Sizing
|
78
|
+
// --------------------------------------------------
|
79
|
+
|
80
|
+
// Large
|
81
|
+
.pagination-lg {
|
82
|
+
@include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $border-radius-large);
|
83
|
+
}
|
84
|
+
|
85
|
+
// Small
|
86
|
+
.pagination-sm {
|
87
|
+
@include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $border-radius-small);
|
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
|
+
}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
//
|
2
|
+
// Popovers
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
.popover {
|
7
|
+
position: absolute;
|
8
|
+
top: 0;
|
9
|
+
left: 0;
|
10
|
+
z-index: $zindex-popover;
|
11
|
+
display: none;
|
12
|
+
max-width: $popover-max-width;
|
13
|
+
padding: 1px;
|
14
|
+
text-align: left; // Reset given new insertion method
|
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;
|
20
|
+
@include box-shadow(0 5px 10px rgba(0,0,0,.2));
|
21
|
+
|
22
|
+
// Overrides for proper insertion
|
23
|
+
white-space: normal;
|
24
|
+
|
25
|
+
// Offset the popover to account for the popover arrow
|
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; }
|
30
|
+
}
|
31
|
+
|
32
|
+
.popover-title {
|
33
|
+
margin: 0; // reset heading margin
|
34
|
+
padding: 8px 14px;
|
35
|
+
font-size: $font-size-base;
|
36
|
+
font-weight: normal;
|
37
|
+
line-height: 18px;
|
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;
|
41
|
+
}
|
42
|
+
|
43
|
+
.popover-content {
|
44
|
+
padding: 9px 14px;
|
45
|
+
}
|
46
|
+
|
47
|
+
// Arrows
|
48
|
+
//
|
49
|
+
// .arrow is outer, .arrow:after is inner
|
50
|
+
|
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
|
+
}
|
61
|
+
}
|
62
|
+
.popover > .arrow {
|
63
|
+
border-width: $popover-arrow-outer-width;
|
64
|
+
}
|
65
|
+
.popover > .arrow:after {
|
66
|
+
border-width: $popover-arrow-width;
|
67
|
+
content: "";
|
68
|
+
}
|
69
|
+
|
70
|
+
.popover {
|
71
|
+
&.top > .arrow {
|
72
|
+
left: 50%;
|
73
|
+
margin-left: -$popover-arrow-outer-width;
|
74
|
+
border-bottom-width: 0;
|
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;
|
78
|
+
&:after {
|
79
|
+
content: " ";
|
80
|
+
bottom: 1px;
|
81
|
+
margin-left: -$popover-arrow-width;
|
82
|
+
border-bottom-width: 0;
|
83
|
+
border-top-color: $popover-arrow-color;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
&.right > .arrow {
|
87
|
+
top: 50%;
|
88
|
+
left: -$popover-arrow-outer-width;
|
89
|
+
margin-top: -$popover-arrow-outer-width;
|
90
|
+
border-left-width: 0;
|
91
|
+
border-right-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
92
|
+
border-right-color: $popover-arrow-outer-color;
|
93
|
+
&:after {
|
94
|
+
content: " ";
|
95
|
+
left: 1px;
|
96
|
+
bottom: -$popover-arrow-width;
|
97
|
+
border-left-width: 0;
|
98
|
+
border-right-color: $popover-arrow-color;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
&.bottom > .arrow {
|
102
|
+
left: 50%;
|
103
|
+
margin-left: -$popover-arrow-outer-width;
|
104
|
+
border-top-width: 0;
|
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;
|
108
|
+
&:after {
|
109
|
+
content: " ";
|
110
|
+
top: 1px;
|
111
|
+
margin-left: -$popover-arrow-width;
|
112
|
+
border-top-width: 0;
|
113
|
+
border-bottom-color: $popover-arrow-color;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
|
117
|
+
&.left > .arrow {
|
118
|
+
top: 50%;
|
119
|
+
right: -$popover-arrow-outer-width;
|
120
|
+
margin-top: -$popover-arrow-outer-width;
|
121
|
+
border-right-width: 0;
|
122
|
+
border-left-color: $popover-arrow-outer-fallback-color; // IE8 fallback
|
123
|
+
border-left-color: $popover-arrow-outer-color;
|
124
|
+
&:after {
|
125
|
+
content: " ";
|
126
|
+
right: 1px;
|
127
|
+
border-right-width: 0;
|
128
|
+
border-left-color: $popover-arrow-color;
|
129
|
+
bottom: -$popover-arrow-width;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
}
|