apx-docs-theme 0.1.7 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/footer.html +8 -9
- data/_includes/head.html +20 -9
- data/_includes/js_files.html +21 -3
- data/_includes/navbar.html +28 -0
- data/_includes/sidebar.html +43 -0
- data/_layouts/default.html +10 -10
- data/_layouts/docs.html +12 -20
- data/_sass/bootstrap/_alert.scss +51 -0
- data/_sass/bootstrap/_badge.scss +53 -0
- data/_sass/bootstrap/_breadcrumb.scss +41 -0
- data/_sass/bootstrap/_button-group.scss +163 -0
- data/_sass/bootstrap/_buttons.scss +73 -101
- data/_sass/bootstrap/_card.scss +310 -0
- data/_sass/bootstrap/_carousel.scss +130 -202
- data/_sass/bootstrap/_close.scss +23 -15
- data/_sass/bootstrap/_code.scss +15 -36
- data/_sass/bootstrap/_custom-forms.scss +507 -0
- data/_sass/bootstrap/_dropdown.scss +191 -0
- data/_sass/bootstrap/_forms.scss +215 -498
- data/_sass/bootstrap/_functions.scss +86 -0
- data/_sass/bootstrap/_grid.scss +29 -61
- data/_sass/bootstrap/_images.scss +42 -0
- data/_sass/bootstrap/_input-group.scss +193 -0
- data/_sass/bootstrap/_jumbotron.scss +9 -47
- data/_sass/bootstrap/_list-group.scss +70 -79
- data/_sass/bootstrap/_media.scss +3 -61
- data/_sass/bootstrap/_mixins.scss +19 -18
- data/_sass/bootstrap/_modal.scss +186 -0
- data/_sass/bootstrap/_nav.scss +120 -0
- data/_sass/bootstrap/_navbar.scss +192 -555
- data/_sass/bootstrap/_pagination.scss +59 -70
- data/_sass/bootstrap/_popover.scss +183 -0
- data/_sass/bootstrap/_print.scss +89 -49
- data/_sass/bootstrap/_progress.scss +34 -0
- data/_sass/bootstrap/_reboot.scss +462 -0
- data/_sass/bootstrap/_root.scss +19 -0
- data/_sass/bootstrap/_spinners.scss +53 -0
- data/_sass/bootstrap/_tables.scss +119 -166
- data/_sass/bootstrap/_toasts.scss +43 -0
- data/_sass/bootstrap/_tooltip.scss +93 -79
- data/_sass/bootstrap/_transitions.scss +22 -0
- data/_sass/bootstrap/_type.scss +66 -239
- data/_sass/bootstrap/_utilities.scss +16 -55
- data/_sass/bootstrap/_variables.scss +926 -709
- data/_sass/bootstrap/bootstrap-grid.scss +29 -0
- data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
- data/_sass/bootstrap/bootstrap.scss +44 -0
- data/_sass/bootstrap/mixins/_alert.scss +13 -0
- data/_sass/bootstrap/mixins/_background-variant.scss +14 -5
- data/_sass/bootstrap/mixins/_badge.scss +11 -0
- data/_sass/bootstrap/mixins/_border-radius.scss +25 -8
- data/_sass/bootstrap/mixins/_box-shadow.scss +5 -0
- data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
- data/_sass/bootstrap/mixins/_buttons.scss +86 -40
- data/_sass/bootstrap/mixins/_caret.scss +62 -0
- data/_sass/bootstrap/mixins/_clearfix.scss +3 -18
- data/_sass/bootstrap/mixins/_float.scss +11 -0
- data/_sass/bootstrap/mixins/_forms.scss +176 -66
- data/_sass/bootstrap/mixins/_gradients.scss +17 -30
- data/_sass/bootstrap/mixins/_grid-framework.scss +51 -66
- data/_sass/bootstrap/mixins/_grid.scss +34 -105
- data/_sass/bootstrap/mixins/_hover.scss +37 -0
- data/_sass/bootstrap/mixins/_image.scss +18 -15
- data/_sass/bootstrap/mixins/_list-group.scss +10 -21
- data/_sass/bootstrap/mixins/_lists.scss +7 -0
- data/_sass/bootstrap/mixins/_nav-divider.scss +4 -4
- data/_sass/bootstrap/mixins/_pagination.scss +10 -12
- data/_sass/bootstrap/mixins/_reset-text.scss +7 -8
- data/_sass/bootstrap/mixins/_resize.scss +1 -1
- data/_sass/bootstrap/mixins/_screen-reader.scss +33 -0
- data/_sass/bootstrap/mixins/_size.scss +1 -5
- data/_sass/bootstrap/mixins/_table-row.scss +26 -15
- data/_sass/bootstrap/mixins/_text-emphasis.scss +7 -5
- data/_sass/bootstrap/mixins/_text-hide.scss +13 -0
- data/_sass/bootstrap/mixins/{_text-overflow.scss → _text-truncate.scss} +2 -2
- data/_sass/bootstrap/mixins/_transition.scss +16 -0
- data/_sass/bootstrap/mixins/_visibility.scss +7 -0
- data/_sass/bootstrap/utilities/_align.scss +8 -0
- data/_sass/bootstrap/utilities/_background.scss +19 -0
- data/_sass/bootstrap/utilities/_borders.scss +63 -0
- data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
- data/_sass/bootstrap/utilities/_display.scss +38 -0
- data/_sass/bootstrap/utilities/_embed.scss +39 -0
- data/_sass/bootstrap/utilities/_flex.scss +51 -0
- data/_sass/bootstrap/utilities/_float.scss +9 -0
- data/_sass/bootstrap/utilities/_overflow.scss +5 -0
- data/_sass/bootstrap/utilities/_position.scss +32 -0
- data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
- data/_sass/bootstrap/utilities/_shadows.scss +6 -0
- data/_sass/bootstrap/utilities/_sizing.scss +20 -0
- data/_sass/bootstrap/utilities/_spacing.scss +73 -0
- data/_sass/bootstrap/utilities/_text.scss +67 -0
- data/_sass/bootstrap/utilities/_visibility.scss +11 -0
- data/_sass/markdown/code.scss +65 -0
- data/_sass/markdown/color-system.scss +114 -0
- data/_sass/markdown/images.scss +119 -0
- data/_sass/markdown/markdown-body.scss +103 -0
- data/_sass/markdown/markdown.scss +15 -0
- data/_sass/rouge.scss +209 -0
- data/_sass/theme.scss +35 -0
- data/_sass/{_typeahead.scss → typeahead.scss} +0 -0
- data/assets/css/main.scss +1 -90
- data/assets/img/{bg.jpg → jumbotron.jpg} +0 -0
- data/assets/js/bootstrap.min.js +6 -6
- data/assets/js/jquery-3.3.1.min.js +2 -0
- data/assets/js/main.js +2 -1
- data/assets/js/search.json +11 -0
- data/assets/js/typeahead.bundle.js +2621 -0
- data/assets/js/typeahead.bundle.min.js +4 -4
- metadata +81 -50
- data/_includes/pages_nav.html +0 -40
- data/_includes/topnav.html +0 -37
- data/_sass/_bootstrap.scss +0 -56
- data/_sass/_syntax-highlighting.scss +0 -71
- data/_sass/bootstrap/_alerts.scss +0 -73
- data/_sass/bootstrap/_badges.scss +0 -68
- data/_sass/bootstrap/_breadcrumbs.scss +0 -28
- data/_sass/bootstrap/_button-groups.scss +0 -244
- data/_sass/bootstrap/_component-animations.scss +0 -37
- data/_sass/bootstrap/_dropdowns.scss +0 -216
- data/_sass/bootstrap/_glyphicons.scss +0 -307
- data/_sass/bootstrap/_input-groups.scss +0 -171
- data/_sass/bootstrap/_labels.scss +0 -66
- data/_sass/bootstrap/_modals.scss +0 -150
- data/_sass/bootstrap/_navs.scss +0 -242
- data/_sass/bootstrap/_normalize.scss +0 -424
- data/_sass/bootstrap/_pager.scss +0 -54
- data/_sass/bootstrap/_panels.scss +0 -271
- data/_sass/bootstrap/_popovers.scss +0 -131
- data/_sass/bootstrap/_progress-bars.scss +0 -87
- data/_sass/bootstrap/_responsive-embed.scss +0 -35
- data/_sass/bootstrap/_responsive-utilities.scss +0 -179
- data/_sass/bootstrap/_scaffolding.scss +0 -161
- data/_sass/bootstrap/_theme.scss +0 -291
- data/_sass/bootstrap/_thumbnails.scss +0 -38
- data/_sass/bootstrap/_wells.scss +0 -29
- data/_sass/bootstrap/mixins/_alerts.scss +0 -14
- data/_sass/bootstrap/mixins/_center-block.scss +0 -7
- data/_sass/bootstrap/mixins/_hide-text.scss +0 -21
- data/_sass/bootstrap/mixins/_labels.scss +0 -12
- data/_sass/bootstrap/mixins/_nav-vertical-align.scss +0 -9
- data/_sass/bootstrap/mixins/_opacity.scss +0 -8
- data/_sass/bootstrap/mixins/_panels.scss +0 -24
- data/_sass/bootstrap/mixins/_progress-bar.scss +0 -10
- data/_sass/bootstrap/mixins/_reset-filter.scss +0 -8
- data/_sass/bootstrap/mixins/_responsive-visibility.scss +0 -21
- data/_sass/bootstrap/mixins/_tab-focus.scss +0 -9
- data/_sass/bootstrap/mixins/_vendor-prefixes.scss +0 -222
- data/assets/css/font-awesome.min.css +0 -4
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.eot +0 -0
- data/assets/fonts/fontawesome-webfont.svg +0 -2671
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
@@ -1,16 +1,38 @@
|
|
1
|
-
//
|
2
|
-
// List groups
|
3
|
-
// --------------------------------------------------
|
4
|
-
|
5
|
-
|
6
1
|
// Base class
|
7
2
|
//
|
8
3
|
// Easily usable on <ul>, <ol>, or <div>.
|
9
4
|
|
10
5
|
.list-group {
|
6
|
+
display: flex;
|
7
|
+
flex-direction: column;
|
8
|
+
|
11
9
|
// No need to set list-style: none; since .list-group-item is block level
|
12
|
-
margin-bottom: 20px;
|
13
10
|
padding-left: 0; // reset padding because ul and ol
|
11
|
+
margin-bottom: 0;
|
12
|
+
}
|
13
|
+
|
14
|
+
|
15
|
+
// Interactive list items
|
16
|
+
//
|
17
|
+
// Use anchor or button elements instead of `li`s or `div`s to create interactive
|
18
|
+
// list items. Includes an extra `.active` modifier class for selected items.
|
19
|
+
|
20
|
+
.list-group-item-action {
|
21
|
+
width: 100%; // For `<button>`s (anchors become 100% by default though)
|
22
|
+
color: $list-group-action-color;
|
23
|
+
text-align: inherit; // For `<button>`s (anchors inherit)
|
24
|
+
|
25
|
+
// Hover state
|
26
|
+
@include hover-focus {
|
27
|
+
color: $list-group-action-hover-color;
|
28
|
+
text-decoration: none;
|
29
|
+
background-color: $list-group-hover-bg;
|
30
|
+
}
|
31
|
+
|
32
|
+
&:active {
|
33
|
+
color: $list-group-action-active-color;
|
34
|
+
background-color: $list-group-action-active-bg;
|
35
|
+
}
|
14
36
|
}
|
15
37
|
|
16
38
|
|
@@ -21,85 +43,69 @@
|
|
21
43
|
.list-group-item {
|
22
44
|
position: relative;
|
23
45
|
display: block;
|
24
|
-
padding:
|
46
|
+
padding: $list-group-item-padding-y $list-group-item-padding-x;
|
25
47
|
// Place the border on the list items and negative margin up for better styling
|
26
|
-
margin-bottom: -
|
48
|
+
margin-bottom: -$list-group-border-width;
|
27
49
|
background-color: $list-group-bg;
|
28
|
-
border:
|
50
|
+
border: $list-group-border-width solid $list-group-border-color;
|
29
51
|
|
30
|
-
// Round the first and last items
|
31
52
|
&:first-child {
|
32
53
|
@include border-top-radius($list-group-border-radius);
|
33
54
|
}
|
55
|
+
|
34
56
|
&:last-child {
|
35
57
|
margin-bottom: 0;
|
36
58
|
@include border-bottom-radius($list-group-border-radius);
|
37
59
|
}
|
38
|
-
}
|
39
|
-
|
40
|
-
|
41
|
-
// Interactive list items
|
42
|
-
//
|
43
|
-
// Use anchor or button elements instead of `li`s or `div`s to create interactive items.
|
44
|
-
// Includes an extra `.active` modifier class for showing selected items.
|
45
|
-
|
46
|
-
a.list-group-item,
|
47
|
-
button.list-group-item {
|
48
|
-
color: $list-group-link-color;
|
49
|
-
|
50
|
-
.list-group-item-heading {
|
51
|
-
color: $list-group-link-heading-color;
|
52
|
-
}
|
53
60
|
|
54
|
-
|
55
|
-
|
56
|
-
&:focus {
|
61
|
+
@include hover-focus {
|
62
|
+
z-index: 1; // Place hover/active items above their siblings for proper border styling
|
57
63
|
text-decoration: none;
|
58
|
-
color: $list-group-link-hover-color;
|
59
|
-
background-color: $list-group-hover-bg;
|
60
64
|
}
|
61
|
-
}
|
62
|
-
|
63
|
-
button.list-group-item {
|
64
|
-
width: 100%;
|
65
|
-
text-align: left;
|
66
|
-
}
|
67
65
|
|
68
|
-
.list-group-item {
|
69
|
-
// Disabled state
|
70
66
|
&.disabled,
|
71
|
-
|
72
|
-
&.disabled:focus {
|
73
|
-
background-color: $list-group-disabled-bg;
|
67
|
+
&:disabled {
|
74
68
|
color: $list-group-disabled-color;
|
75
|
-
|
76
|
-
|
77
|
-
// Force color to inherit for custom content
|
78
|
-
.list-group-item-heading {
|
79
|
-
color: inherit;
|
80
|
-
}
|
81
|
-
.list-group-item-text {
|
82
|
-
color: $list-group-disabled-text-color;
|
83
|
-
}
|
69
|
+
pointer-events: none;
|
70
|
+
background-color: $list-group-disabled-bg;
|
84
71
|
}
|
85
72
|
|
86
|
-
//
|
87
|
-
&.active
|
88
|
-
&.active:hover,
|
89
|
-
&.active:focus {
|
73
|
+
// Include both here for `<a>`s and `<button>`s
|
74
|
+
&.active {
|
90
75
|
z-index: 2; // Place active items above their siblings for proper border styling
|
91
76
|
color: $list-group-active-color;
|
92
77
|
background-color: $list-group-active-bg;
|
93
|
-
border-color: $list-group-active-border;
|
78
|
+
border-color: $list-group-active-border-color;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
// Flush list items
|
84
|
+
//
|
85
|
+
// Remove borders and border-radius to keep list group items edge-to-edge. Most
|
86
|
+
// useful within other components (e.g., cards).
|
94
87
|
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
88
|
+
.list-group-flush {
|
89
|
+
.list-group-item {
|
90
|
+
border-right: 0;
|
91
|
+
border-left: 0;
|
92
|
+
@include border-radius(0);
|
93
|
+
|
94
|
+
&:last-child {
|
95
|
+
margin-bottom: -$list-group-border-width;
|
100
96
|
}
|
101
|
-
|
102
|
-
|
97
|
+
}
|
98
|
+
|
99
|
+
&:first-child {
|
100
|
+
.list-group-item:first-child {
|
101
|
+
border-top: 0;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
|
105
|
+
&:last-child {
|
106
|
+
.list-group-item:last-child {
|
107
|
+
margin-bottom: 0;
|
108
|
+
border-bottom: 0;
|
103
109
|
}
|
104
110
|
}
|
105
111
|
}
|
@@ -110,21 +116,6 @@ button.list-group-item {
|
|
110
116
|
// Add modifier classes to change text and background color on individual items.
|
111
117
|
// Organizationally, this must come after the `:hover` states.
|
112
118
|
|
113
|
-
@
|
114
|
-
@include list-group-item-variant(
|
115
|
-
@include list-group-item-variant(warning, $state-warning-bg, $state-warning-text);
|
116
|
-
@include list-group-item-variant(danger, $state-danger-bg, $state-danger-text);
|
117
|
-
|
118
|
-
|
119
|
-
// Custom content options
|
120
|
-
//
|
121
|
-
// Extra classes for creating well-formatted content within `.list-group-item`s.
|
122
|
-
|
123
|
-
.list-group-item-heading {
|
124
|
-
margin-top: 0;
|
125
|
-
margin-bottom: 5px;
|
126
|
-
}
|
127
|
-
.list-group-item-text {
|
128
|
-
margin-bottom: 0;
|
129
|
-
line-height: 1.3;
|
119
|
+
@each $color, $value in $theme-colors {
|
120
|
+
@include list-group-item-variant($color, theme-color-level($color, -9), theme-color-level($color, 6));
|
130
121
|
}
|
data/_sass/bootstrap/_media.scss
CHANGED
@@ -1,66 +1,8 @@
|
|
1
1
|
.media {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
&:first-child {
|
6
|
-
margin-top: 0;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
|
10
|
-
.media,
|
11
|
-
.media-body {
|
12
|
-
zoom: 1;
|
13
|
-
overflow: hidden;
|
14
|
-
}
|
15
|
-
|
16
|
-
.media-body {
|
17
|
-
width: 10000px;
|
18
|
-
}
|
19
|
-
|
20
|
-
.media-object {
|
21
|
-
display: block;
|
22
|
-
|
23
|
-
// Fix collapse in webkit from max-width: 100% and display: table-cell.
|
24
|
-
&.img-thumbnail {
|
25
|
-
max-width: none;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
.media-right,
|
30
|
-
.media > .pull-right {
|
31
|
-
padding-left: 10px;
|
32
|
-
}
|
33
|
-
|
34
|
-
.media-left,
|
35
|
-
.media > .pull-left {
|
36
|
-
padding-right: 10px;
|
2
|
+
display: flex;
|
3
|
+
align-items: flex-start;
|
37
4
|
}
|
38
5
|
|
39
|
-
.media-left,
|
40
|
-
.media-right,
|
41
6
|
.media-body {
|
42
|
-
|
43
|
-
vertical-align: top;
|
44
|
-
}
|
45
|
-
|
46
|
-
.media-middle {
|
47
|
-
vertical-align: middle;
|
48
|
-
}
|
49
|
-
|
50
|
-
.media-bottom {
|
51
|
-
vertical-align: bottom;
|
52
|
-
}
|
53
|
-
|
54
|
-
// Reset margins on headings for tighter default spacing
|
55
|
-
.media-heading {
|
56
|
-
margin-top: 0;
|
57
|
-
margin-bottom: 5px;
|
58
|
-
}
|
59
|
-
|
60
|
-
// Media list variation
|
61
|
-
//
|
62
|
-
// Undo default ul/ol styles
|
63
|
-
.media-list {
|
64
|
-
padding-left: 0;
|
65
|
-
list-style: none;
|
7
|
+
flex: 1;
|
66
8
|
}
|
@@ -1,40 +1,41 @@
|
|
1
|
-
//
|
2
|
-
//
|
1
|
+
// Toggles
|
2
|
+
//
|
3
|
+
// Used in conjunction with global variables to enable certain theme features.
|
3
4
|
|
4
5
|
// Utilities
|
5
|
-
@import "mixins/
|
6
|
-
@import "mixins/
|
6
|
+
@import "mixins/breakpoints";
|
7
|
+
@import "mixins/hover";
|
7
8
|
@import "mixins/image";
|
8
|
-
@import "mixins/
|
9
|
-
@import "mixins/reset-filter";
|
9
|
+
@import "mixins/badge";
|
10
10
|
@import "mixins/resize";
|
11
|
-
@import "mixins/
|
11
|
+
@import "mixins/screen-reader";
|
12
12
|
@import "mixins/size";
|
13
|
-
@import "mixins/tab-focus";
|
14
13
|
@import "mixins/reset-text";
|
15
14
|
@import "mixins/text-emphasis";
|
16
|
-
@import "mixins/text-
|
17
|
-
@import "mixins/
|
15
|
+
@import "mixins/text-hide";
|
16
|
+
@import "mixins/text-truncate";
|
17
|
+
@import "mixins/visibility";
|
18
18
|
|
19
|
-
// Components
|
20
|
-
@import "mixins/
|
19
|
+
// // Components
|
20
|
+
@import "mixins/alert";
|
21
21
|
@import "mixins/buttons";
|
22
|
-
@import "mixins/
|
22
|
+
@import "mixins/caret";
|
23
23
|
@import "mixins/pagination";
|
24
|
+
@import "mixins/lists";
|
24
25
|
@import "mixins/list-group";
|
25
26
|
@import "mixins/nav-divider";
|
26
27
|
@import "mixins/forms";
|
27
|
-
@import "mixins/progress-bar";
|
28
28
|
@import "mixins/table-row";
|
29
29
|
|
30
|
-
// Skins
|
30
|
+
// // Skins
|
31
31
|
@import "mixins/background-variant";
|
32
32
|
@import "mixins/border-radius";
|
33
|
+
@import "mixins/box-shadow";
|
33
34
|
@import "mixins/gradients";
|
35
|
+
@import "mixins/transition";
|
34
36
|
|
35
|
-
// Layout
|
37
|
+
// // Layout
|
36
38
|
@import "mixins/clearfix";
|
37
|
-
@import "mixins/center-block";
|
38
|
-
@import "mixins/nav-vertical-align";
|
39
39
|
@import "mixins/grid-framework";
|
40
40
|
@import "mixins/grid";
|
41
|
+
@import "mixins/float";
|
@@ -0,0 +1,186 @@
|
|
1
|
+
// .modal-open - body class for killing the scroll
|
2
|
+
// .modal - container to scroll within
|
3
|
+
// .modal-dialog - positioning shell for the actual modal
|
4
|
+
// .modal-content - actual modal w/ bg and corners and stuff
|
5
|
+
|
6
|
+
|
7
|
+
.modal-open {
|
8
|
+
// Kill the scroll on the body
|
9
|
+
overflow: hidden;
|
10
|
+
|
11
|
+
.modal {
|
12
|
+
overflow-x: hidden;
|
13
|
+
overflow-y: auto;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
// Container that the modal scrolls within
|
18
|
+
.modal {
|
19
|
+
position: fixed;
|
20
|
+
top: 0;
|
21
|
+
left: 0;
|
22
|
+
z-index: $zindex-modal;
|
23
|
+
display: none;
|
24
|
+
width: 100%;
|
25
|
+
height: 100%;
|
26
|
+
overflow: hidden;
|
27
|
+
// Prevent Chrome on Windows from adding a focus outline. For details, see
|
28
|
+
// https://github.com/twbs/bootstrap/pull/10951.
|
29
|
+
outline: 0;
|
30
|
+
// We deliberately don't use `-webkit-overflow-scrolling: touch;` due to a
|
31
|
+
// gnarly iOS Safari bug: https://bugs.webkit.org/show_bug.cgi?id=158342
|
32
|
+
// See also https://github.com/twbs/bootstrap/issues/17695
|
33
|
+
}
|
34
|
+
|
35
|
+
// Shell div to position the modal with bottom padding
|
36
|
+
.modal-dialog {
|
37
|
+
position: relative;
|
38
|
+
width: auto;
|
39
|
+
margin: $modal-dialog-margin;
|
40
|
+
// allow clicks to pass through for custom click handling to close modal
|
41
|
+
pointer-events: none;
|
42
|
+
|
43
|
+
// When fading in the modal, animate it to slide down
|
44
|
+
.modal.fade & {
|
45
|
+
@include transition($modal-transition);
|
46
|
+
transform: $modal-fade-transform;
|
47
|
+
}
|
48
|
+
.modal.show & {
|
49
|
+
transform: $modal-show-transform;
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.modal-dialog-centered {
|
54
|
+
display: flex;
|
55
|
+
align-items: center;
|
56
|
+
min-height: calc(100% - (#{$modal-dialog-margin} * 2));
|
57
|
+
|
58
|
+
// Ensure `modal-dialog-centered` extends the full height of the view (IE10/11)
|
59
|
+
&::before {
|
60
|
+
display: block; // IE10
|
61
|
+
height: calc(100vh - (#{$modal-dialog-margin} * 2));
|
62
|
+
content: "";
|
63
|
+
}
|
64
|
+
}
|
65
|
+
|
66
|
+
// Actual modal
|
67
|
+
.modal-content {
|
68
|
+
position: relative;
|
69
|
+
display: flex;
|
70
|
+
flex-direction: column;
|
71
|
+
width: 100%; // Ensure `.modal-content` extends the full width of the parent `.modal-dialog`
|
72
|
+
// counteract the pointer-events: none; in the .modal-dialog
|
73
|
+
pointer-events: auto;
|
74
|
+
background-color: $modal-content-bg;
|
75
|
+
background-clip: padding-box;
|
76
|
+
border: $modal-content-border-width solid $modal-content-border-color;
|
77
|
+
@include border-radius($modal-content-border-radius);
|
78
|
+
@include box-shadow($modal-content-box-shadow-xs);
|
79
|
+
// Remove focus outline from opened modal
|
80
|
+
outline: 0;
|
81
|
+
}
|
82
|
+
|
83
|
+
// Modal background
|
84
|
+
.modal-backdrop {
|
85
|
+
position: fixed;
|
86
|
+
top: 0;
|
87
|
+
left: 0;
|
88
|
+
z-index: $zindex-modal-backdrop;
|
89
|
+
width: 100vw;
|
90
|
+
height: 100vh;
|
91
|
+
background-color: $modal-backdrop-bg;
|
92
|
+
|
93
|
+
// Fade for backdrop
|
94
|
+
&.fade { opacity: 0; }
|
95
|
+
&.show { opacity: $modal-backdrop-opacity; }
|
96
|
+
}
|
97
|
+
|
98
|
+
// Modal header
|
99
|
+
// Top section of the modal w/ title and dismiss
|
100
|
+
.modal-header {
|
101
|
+
display: flex;
|
102
|
+
align-items: flex-start; // so the close btn always stays on the upper right corner
|
103
|
+
justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
|
104
|
+
padding: $modal-header-padding;
|
105
|
+
border-bottom: $modal-header-border-width solid $modal-header-border-color;
|
106
|
+
@include border-top-radius($modal-content-border-radius);
|
107
|
+
|
108
|
+
.close {
|
109
|
+
padding: $modal-header-padding;
|
110
|
+
// auto on the left force icon to the right even when there is no .modal-title
|
111
|
+
margin: (-$modal-header-padding-y) (-$modal-header-padding-x) (-$modal-header-padding-y) auto;
|
112
|
+
}
|
113
|
+
}
|
114
|
+
|
115
|
+
// Title text within header
|
116
|
+
.modal-title {
|
117
|
+
margin-bottom: 0;
|
118
|
+
line-height: $modal-title-line-height;
|
119
|
+
}
|
120
|
+
|
121
|
+
// Modal body
|
122
|
+
// Where all modal content resides (sibling of .modal-header and .modal-footer)
|
123
|
+
.modal-body {
|
124
|
+
position: relative;
|
125
|
+
// Enable `flex-grow: 1` so that the body take up as much space as possible
|
126
|
+
// when should there be a fixed height on `.modal-dialog`.
|
127
|
+
flex: 1 1 auto;
|
128
|
+
padding: $modal-inner-padding;
|
129
|
+
}
|
130
|
+
|
131
|
+
// Footer (for actions)
|
132
|
+
.modal-footer {
|
133
|
+
display: flex;
|
134
|
+
align-items: center; // vertically center
|
135
|
+
justify-content: flex-end; // Right align buttons with flex property because text-align doesn't work on flex items
|
136
|
+
padding: $modal-inner-padding;
|
137
|
+
border-top: $modal-footer-border-width solid $modal-footer-border-color;
|
138
|
+
@include border-bottom-radius($modal-content-border-radius);
|
139
|
+
|
140
|
+
// Easily place margin between footer elements
|
141
|
+
> :not(:first-child) { margin-left: .25rem; }
|
142
|
+
> :not(:last-child) { margin-right: .25rem; }
|
143
|
+
}
|
144
|
+
|
145
|
+
// Measure scrollbar width for padding body during modal show/hide
|
146
|
+
.modal-scrollbar-measure {
|
147
|
+
position: absolute;
|
148
|
+
top: -9999px;
|
149
|
+
width: 50px;
|
150
|
+
height: 50px;
|
151
|
+
overflow: scroll;
|
152
|
+
}
|
153
|
+
|
154
|
+
// Scale up the modal
|
155
|
+
@include media-breakpoint-up(sm) {
|
156
|
+
// Automatically set modal's width for larger viewports
|
157
|
+
.modal-dialog {
|
158
|
+
max-width: $modal-md;
|
159
|
+
margin: $modal-dialog-margin-y-sm-up auto;
|
160
|
+
}
|
161
|
+
|
162
|
+
.modal-dialog-centered {
|
163
|
+
min-height: calc(100% - (#{$modal-dialog-margin-y-sm-up} * 2));
|
164
|
+
|
165
|
+
&::before {
|
166
|
+
height: calc(100vh - (#{$modal-dialog-margin-y-sm-up} * 2));
|
167
|
+
}
|
168
|
+
}
|
169
|
+
|
170
|
+
.modal-content {
|
171
|
+
@include box-shadow($modal-content-box-shadow-sm-up);
|
172
|
+
}
|
173
|
+
|
174
|
+
.modal-sm { max-width: $modal-sm; }
|
175
|
+
}
|
176
|
+
|
177
|
+
@include media-breakpoint-up(lg) {
|
178
|
+
.modal-lg,
|
179
|
+
.modal-xl {
|
180
|
+
max-width: $modal-lg;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
@include media-breakpoint-up(xl) {
|
185
|
+
.modal-xl { max-width: $modal-xl; }
|
186
|
+
}
|