administrate-bootstrap-theme 0.1.0 → 0.1.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -11
  3. data/Rakefile +10 -14
  4. data/app/assets/config/administrate-bootstrap-theme_manifest.js +1 -0
  5. data/app/assets/javascripts/administrate-bootstrap-theme/theme.js +2 -0
  6. data/app/assets/stylesheets/administrate-bootstrap-theme/_base.scss +17 -1
  7. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_content_body.scss +17 -3
  8. data/app/assets/stylesheets/administrate-bootstrap-theme/components/_form.scss +52 -16
  9. data/app/assets/stylesheets/administrate-bootstrap-theme/theme.scss +12 -0
  10. data/lib/administrate-bootstrap-theme/engine.rb +2 -0
  11. data/lib/administrate-bootstrap-theme/version.rb +1 -1
  12. data/node_modules/bootstrap/js/src/alert.js +141 -0
  13. data/node_modules/bootstrap/js/src/base-component.js +46 -0
  14. data/node_modules/bootstrap/js/src/button.js +95 -0
  15. data/node_modules/bootstrap/js/src/carousel.js +624 -0
  16. data/node_modules/bootstrap/js/src/collapse.js +410 -0
  17. data/node_modules/bootstrap/js/src/dom/data.js +57 -0
  18. data/node_modules/bootstrap/js/src/dom/event-handler.js +331 -0
  19. data/node_modules/bootstrap/js/src/dom/manipulator.js +80 -0
  20. data/node_modules/bootstrap/js/src/dom/selector-engine.js +75 -0
  21. data/node_modules/bootstrap/js/src/dropdown.js +543 -0
  22. data/node_modules/bootstrap/js/src/modal.js +582 -0
  23. data/node_modules/bootstrap/js/src/offcanvas.js +279 -0
  24. data/node_modules/bootstrap/js/src/popover.js +171 -0
  25. data/node_modules/bootstrap/js/src/scrollspy.js +319 -0
  26. data/node_modules/bootstrap/js/src/tab.js +220 -0
  27. data/node_modules/bootstrap/js/src/toast.js +219 -0
  28. data/node_modules/bootstrap/js/src/tooltip.js +802 -0
  29. data/node_modules/bootstrap/js/src/util/index.js +253 -0
  30. data/node_modules/bootstrap/js/src/util/sanitizer.js +127 -0
  31. data/node_modules/bootstrap/js/src/util/scrollbar.js +70 -0
  32. data/node_modules/bootstrap/scss/_accordion.scss +116 -0
  33. data/node_modules/bootstrap/scss/_alert.scss +57 -0
  34. data/node_modules/bootstrap/scss/_badge.scss +29 -0
  35. data/node_modules/bootstrap/scss/_breadcrumb.scss +28 -0
  36. data/node_modules/bootstrap/scss/_button-group.scss +139 -0
  37. data/node_modules/bootstrap/scss/_buttons.scss +111 -0
  38. data/node_modules/bootstrap/scss/_card.scss +215 -0
  39. data/node_modules/bootstrap/scss/_carousel.scss +229 -0
  40. data/node_modules/bootstrap/scss/_close.scss +40 -0
  41. data/node_modules/bootstrap/scss/_containers.scss +41 -0
  42. data/node_modules/bootstrap/scss/_dropdown.scss +246 -0
  43. data/node_modules/bootstrap/scss/_forms.scss +9 -0
  44. data/node_modules/bootstrap/scss/_functions.scss +205 -0
  45. data/node_modules/bootstrap/scss/_grid.scss +22 -0
  46. data/node_modules/bootstrap/scss/_helpers.scss +7 -0
  47. data/node_modules/bootstrap/scss/_images.scss +42 -0
  48. data/node_modules/bootstrap/scss/_list-group.scss +174 -0
  49. data/node_modules/bootstrap/scss/_mixins.scss +41 -0
  50. data/node_modules/bootstrap/scss/_modal.scss +237 -0
  51. data/node_modules/bootstrap/scss/_nav.scss +139 -0
  52. data/node_modules/bootstrap/scss/_navbar.scss +306 -0
  53. data/node_modules/bootstrap/scss/_offcanvas.scss +77 -0
  54. data/node_modules/bootstrap/scss/_pagination.scss +64 -0
  55. data/node_modules/bootstrap/scss/_popover.scss +158 -0
  56. data/node_modules/bootstrap/scss/_progress.scss +48 -0
  57. data/node_modules/bootstrap/scss/_reboot.scss +621 -0
  58. data/node_modules/bootstrap/scss/_root.scss +16 -0
  59. data/node_modules/bootstrap/scss/_spinners.scss +69 -0
  60. data/node_modules/bootstrap/scss/_tables.scss +150 -0
  61. data/node_modules/bootstrap/scss/_toasts.scss +51 -0
  62. data/node_modules/bootstrap/scss/_tooltip.scss +115 -0
  63. data/node_modules/bootstrap/scss/_transitions.scss +21 -0
  64. data/node_modules/bootstrap/scss/_type.scss +104 -0
  65. data/node_modules/bootstrap/scss/_utilities.scss +594 -0
  66. data/node_modules/bootstrap/scss/_variables.scss +1464 -0
  67. data/node_modules/bootstrap/scss/bootstrap-grid.scss +65 -0
  68. data/node_modules/bootstrap/scss/bootstrap-reboot.scss +15 -0
  69. data/node_modules/bootstrap/scss/bootstrap-utilities.scss +18 -0
  70. data/node_modules/bootstrap/scss/bootstrap.scss +52 -0
  71. data/node_modules/bootstrap/scss/forms/_floating-labels.scss +61 -0
  72. data/node_modules/bootstrap/scss/forms/_form-check.scss +152 -0
  73. data/node_modules/bootstrap/scss/forms/_form-control.scss +219 -0
  74. data/node_modules/bootstrap/scss/forms/_form-range.scss +91 -0
  75. data/node_modules/bootstrap/scss/forms/_form-select.scss +67 -0
  76. data/node_modules/bootstrap/scss/forms/_form-text.scss +11 -0
  77. data/node_modules/bootstrap/scss/forms/_input-group.scss +121 -0
  78. data/node_modules/bootstrap/scss/forms/_labels.scss +36 -0
  79. data/node_modules/bootstrap/scss/forms/_validation.scss +12 -0
  80. data/node_modules/bootstrap/scss/helpers/_clearfix.scss +3 -0
  81. data/node_modules/bootstrap/scss/helpers/_colored-links.scss +12 -0
  82. data/node_modules/bootstrap/scss/helpers/_position.scss +30 -0
  83. data/node_modules/bootstrap/scss/helpers/_ratio.scss +26 -0
  84. data/node_modules/bootstrap/scss/helpers/_stretched-link.scss +15 -0
  85. data/node_modules/bootstrap/scss/helpers/_text-truncation.scss +7 -0
  86. data/node_modules/bootstrap/scss/helpers/_visually-hidden.scss +8 -0
  87. data/node_modules/bootstrap/scss/mixins/_alert.scss +11 -0
  88. data/node_modules/bootstrap/scss/mixins/_border-radius.scss +78 -0
  89. data/node_modules/bootstrap/scss/mixins/_box-shadow.scss +18 -0
  90. data/node_modules/bootstrap/scss/mixins/_breakpoints.scss +127 -0
  91. data/node_modules/bootstrap/scss/mixins/_buttons.scss +133 -0
  92. data/node_modules/bootstrap/scss/mixins/_caret.scss +64 -0
  93. data/node_modules/bootstrap/scss/mixins/_clearfix.scss +9 -0
  94. data/node_modules/bootstrap/scss/mixins/_container.scss +9 -0
  95. data/node_modules/bootstrap/scss/mixins/_deprecate.scss +10 -0
  96. data/node_modules/bootstrap/scss/mixins/_forms.scss +134 -0
  97. data/node_modules/bootstrap/scss/mixins/_gradients.scss +47 -0
  98. data/node_modules/bootstrap/scss/mixins/_grid.scss +120 -0
  99. data/node_modules/bootstrap/scss/mixins/_image.scss +16 -0
  100. data/node_modules/bootstrap/scss/mixins/_list-group.scss +24 -0
  101. data/node_modules/bootstrap/scss/mixins/_lists.scss +7 -0
  102. data/node_modules/bootstrap/scss/mixins/_pagination.scss +31 -0
  103. data/node_modules/bootstrap/scss/mixins/_reset-text.scss +17 -0
  104. data/node_modules/bootstrap/scss/mixins/_resize.scss +6 -0
  105. data/node_modules/bootstrap/scss/mixins/_table-variants.scss +21 -0
  106. data/node_modules/bootstrap/scss/mixins/_text-truncate.scss +8 -0
  107. data/node_modules/bootstrap/scss/mixins/_transition.scss +26 -0
  108. data/node_modules/bootstrap/scss/mixins/_utilities.scss +68 -0
  109. data/node_modules/bootstrap/scss/mixins/_visually-hidden.scss +29 -0
  110. data/node_modules/bootstrap/scss/utilities/_api.scss +47 -0
  111. data/node_modules/bootstrap/scss/vendor/_rfs.scss +312 -0
  112. metadata +106 -19
@@ -0,0 +1,22 @@
1
+ // Row
2
+ //
3
+ // Rows contain your columns.
4
+
5
+ @if $enable-grid-classes {
6
+ .row {
7
+ @include make-row();
8
+
9
+ > * {
10
+ @include make-col-ready();
11
+ }
12
+ }
13
+ }
14
+
15
+
16
+ // Columns
17
+ //
18
+ // Common styles for small and large grid columns
19
+
20
+ @if $enable-grid-classes {
21
+ @include make-grid-columns();
22
+ }
@@ -0,0 +1,7 @@
1
+ @import "helpers/clearfix";
2
+ @import "helpers/colored-links";
3
+ @import "helpers/ratio";
4
+ @import "helpers/position";
5
+ @import "helpers/visually-hidden";
6
+ @import "helpers/stretched-link";
7
+ @import "helpers/text-truncation";
@@ -0,0 +1,42 @@
1
+ // Responsive images (ensure images don't scale beyond their parents)
2
+ //
3
+ // This is purposefully opt-in via an explicit class rather than being the default for all `<img>`s.
4
+ // We previously tried the "images are responsive by default" approach in Bootstrap v2,
5
+ // and abandoned it in Bootstrap v3 because it breaks lots of third-party widgets (including Google Maps)
6
+ // which weren't expecting the images within themselves to be involuntarily resized.
7
+ // See also https://github.com/twbs/bootstrap/issues/18178
8
+ .img-fluid {
9
+ @include img-fluid();
10
+ }
11
+
12
+
13
+ // Image thumbnails
14
+ .img-thumbnail {
15
+ padding: $thumbnail-padding;
16
+ background-color: $thumbnail-bg;
17
+ border: $thumbnail-border-width solid $thumbnail-border-color;
18
+ @include border-radius($thumbnail-border-radius);
19
+ @include box-shadow($thumbnail-box-shadow);
20
+
21
+ // Keep them at most 100% wide
22
+ @include img-fluid();
23
+ }
24
+
25
+ //
26
+ // Figures
27
+ //
28
+
29
+ .figure {
30
+ // Ensures the caption's text aligns with the image.
31
+ display: inline-block;
32
+ }
33
+
34
+ .figure-img {
35
+ margin-bottom: $spacer / 2;
36
+ line-height: 1;
37
+ }
38
+
39
+ .figure-caption {
40
+ @include font-size($figure-caption-font-size);
41
+ color: $figure-caption-color;
42
+ }
@@ -0,0 +1,174 @@
1
+ // Base class
2
+ //
3
+ // Easily usable on <ul>, <ol>, or <div>.
4
+
5
+ .list-group {
6
+ display: flex;
7
+ flex-direction: column;
8
+
9
+ // No need to set list-style: none; since .list-group-item is block level
10
+ padding-left: 0; // reset padding because ul and ol
11
+ margin-bottom: 0;
12
+ @include border-radius($list-group-border-radius);
13
+ }
14
+
15
+ .list-group-numbered {
16
+ list-style-type: none;
17
+ counter-reset: section;
18
+
19
+ > li::before {
20
+ // Increments only this instance of the section counter
21
+ content: counters(section, ".") ". ";
22
+ counter-increment: section;
23
+ }
24
+ }
25
+
26
+
27
+ // Interactive list items
28
+ //
29
+ // Use anchor or button elements instead of `li`s or `div`s to create interactive
30
+ // list items. Includes an extra `.active` modifier class for selected items.
31
+
32
+ .list-group-item-action {
33
+ width: 100%; // For `<button>`s (anchors become 100% by default though)
34
+ color: $list-group-action-color;
35
+ text-align: inherit; // For `<button>`s (anchors inherit)
36
+
37
+ // Hover state
38
+ &:hover,
39
+ &:focus {
40
+ z-index: 1; // Place hover/focus items above their siblings for proper border styling
41
+ color: $list-group-action-hover-color;
42
+ text-decoration: none;
43
+ background-color: $list-group-hover-bg;
44
+ }
45
+
46
+ &:active {
47
+ color: $list-group-action-active-color;
48
+ background-color: $list-group-action-active-bg;
49
+ }
50
+ }
51
+
52
+
53
+ // Individual list items
54
+ //
55
+ // Use on `li`s or `div`s within the `.list-group` parent.
56
+
57
+ .list-group-item {
58
+ position: relative;
59
+ display: block;
60
+ padding: $list-group-item-padding-y $list-group-item-padding-x;
61
+ color: $list-group-color;
62
+ text-decoration: if($link-decoration == none, null, none);
63
+ background-color: $list-group-bg;
64
+ border: $list-group-border-width solid $list-group-border-color;
65
+
66
+ &:first-child {
67
+ @include border-top-radius(inherit);
68
+ }
69
+
70
+ &:last-child {
71
+ @include border-bottom-radius(inherit);
72
+ }
73
+
74
+ &.disabled,
75
+ &:disabled {
76
+ color: $list-group-disabled-color;
77
+ pointer-events: none;
78
+ background-color: $list-group-disabled-bg;
79
+ }
80
+
81
+ // Include both here for `<a>`s and `<button>`s
82
+ &.active {
83
+ z-index: 2; // Place active items above their siblings for proper border styling
84
+ color: $list-group-active-color;
85
+ background-color: $list-group-active-bg;
86
+ border-color: $list-group-active-border-color;
87
+ }
88
+
89
+ & + & {
90
+ border-top-width: 0;
91
+
92
+ &.active {
93
+ margin-top: -$list-group-border-width;
94
+ border-top-width: $list-group-border-width;
95
+ }
96
+ }
97
+ }
98
+
99
+
100
+ // Horizontal
101
+ //
102
+ // Change the layout of list group items from vertical (default) to horizontal.
103
+
104
+ @each $breakpoint in map-keys($grid-breakpoints) {
105
+ @include media-breakpoint-up($breakpoint) {
106
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
107
+
108
+ .list-group-horizontal#{$infix} {
109
+ flex-direction: row;
110
+
111
+ > .list-group-item {
112
+ &:first-child {
113
+ @include border-bottom-start-radius($list-group-border-radius);
114
+ @include border-top-end-radius(0);
115
+ }
116
+
117
+ &:last-child {
118
+ @include border-top-end-radius($list-group-border-radius);
119
+ @include border-bottom-start-radius(0);
120
+ }
121
+
122
+ &.active {
123
+ margin-top: 0;
124
+ }
125
+
126
+ + .list-group-item {
127
+ border-top-width: $list-group-border-width;
128
+ border-left-width: 0;
129
+
130
+ &.active {
131
+ margin-left: -$list-group-border-width;
132
+ border-left-width: $list-group-border-width;
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+
140
+
141
+ // Flush list items
142
+ //
143
+ // Remove borders and border-radius to keep list group items edge-to-edge. Most
144
+ // useful within other components (e.g., cards).
145
+
146
+ .list-group-flush {
147
+ @include border-radius(0);
148
+
149
+ > .list-group-item {
150
+ border-width: 0 0 $list-group-border-width;
151
+
152
+ &:last-child {
153
+ border-bottom-width: 0;
154
+ }
155
+ }
156
+ }
157
+
158
+
159
+ // scss-docs-start list-group-modifiers
160
+ // List group contextual variants
161
+ //
162
+ // Add modifier classes to change text and background color on individual items.
163
+ // Organizationally, this must come after the `:hover` states.
164
+
165
+ @each $state, $value in $theme-colors {
166
+ $list-group-background: shift-color($value, $list-group-item-bg-scale);
167
+ $list-group-color: shift-color($value, $list-group-item-color-scale);
168
+ @if (contrast-ratio($list-group-background, $list-group-color) < $min-contrast-ratio) {
169
+ $list-group-color: mix($value, color-contrast($list-group-background), abs($alert-color-scale));
170
+ }
171
+
172
+ @include list-group-item-variant($state, $list-group-background, $list-group-color);
173
+ }
174
+ // scss-docs-end list-group-modifiers
@@ -0,0 +1,41 @@
1
+ // Toggles
2
+ //
3
+ // Used in conjunction with global variables to enable certain theme features.
4
+
5
+ // Vendor
6
+ @import "vendor/rfs";
7
+
8
+ // Deprecate
9
+ @import "mixins/deprecate";
10
+
11
+ // Helpers
12
+ @import "mixins/breakpoints";
13
+ @import "mixins/image";
14
+ @import "mixins/resize";
15
+ @import "mixins/visually-hidden";
16
+ @import "mixins/reset-text";
17
+ @import "mixins/text-truncate";
18
+
19
+ // Utilities
20
+ @import "mixins/utilities";
21
+
22
+ // Components
23
+ @import "mixins/alert";
24
+ @import "mixins/buttons";
25
+ @import "mixins/caret";
26
+ @import "mixins/pagination";
27
+ @import "mixins/lists";
28
+ @import "mixins/list-group";
29
+ @import "mixins/forms";
30
+ @import "mixins/table-variants";
31
+
32
+ // Skins
33
+ @import "mixins/border-radius";
34
+ @import "mixins/box-shadow";
35
+ @import "mixins/gradients";
36
+ @import "mixins/transition";
37
+
38
+ // Layout
39
+ @import "mixins/clearfix";
40
+ @import "mixins/container";
41
+ @import "mixins/grid";
@@ -0,0 +1,237 @@
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
+ // When trying to close, animate focus to scale
53
+ .modal.modal-static & {
54
+ transform: $modal-scale-transform;
55
+ }
56
+ }
57
+
58
+ .modal-dialog-scrollable {
59
+ height: subtract(100%, $modal-dialog-margin * 2);
60
+
61
+ .modal-content {
62
+ max-height: 100%;
63
+ overflow: hidden;
64
+ }
65
+
66
+ .modal-body {
67
+ overflow-y: auto;
68
+ }
69
+ }
70
+
71
+ .modal-dialog-centered {
72
+ display: flex;
73
+ align-items: center;
74
+ min-height: subtract(100%, $modal-dialog-margin * 2);
75
+ }
76
+
77
+ // Actual modal
78
+ .modal-content {
79
+ position: relative;
80
+ display: flex;
81
+ flex-direction: column;
82
+ width: 100%; // Ensure `.modal-content` extends the full width of the parent `.modal-dialog`
83
+ // counteract the pointer-events: none; in the .modal-dialog
84
+ color: $modal-content-color;
85
+ pointer-events: auto;
86
+ background-color: $modal-content-bg;
87
+ background-clip: padding-box;
88
+ border: $modal-content-border-width solid $modal-content-border-color;
89
+ @include border-radius($modal-content-border-radius);
90
+ @include box-shadow($modal-content-box-shadow-xs);
91
+ // Remove focus outline from opened modal
92
+ outline: 0;
93
+ }
94
+
95
+ // Modal background
96
+ .modal-backdrop {
97
+ position: fixed;
98
+ top: 0;
99
+ left: 0;
100
+ z-index: $zindex-modal-backdrop;
101
+ width: 100vw;
102
+ height: 100vh;
103
+ background-color: $modal-backdrop-bg;
104
+
105
+ // Fade for backdrop
106
+ &.fade { opacity: 0; }
107
+ &.show { opacity: $modal-backdrop-opacity; }
108
+ }
109
+
110
+ // Modal header
111
+ // Top section of the modal w/ title and dismiss
112
+ .modal-header {
113
+ display: flex;
114
+ flex-shrink: 0;
115
+ align-items: center;
116
+ justify-content: space-between; // Put modal header elements (title and dismiss) on opposite ends
117
+ padding: $modal-header-padding;
118
+ border-bottom: $modal-header-border-width solid $modal-header-border-color;
119
+ @include border-top-radius($modal-content-inner-border-radius);
120
+
121
+ .btn-close {
122
+ padding: ($modal-header-padding-y / 2) ($modal-header-padding-x / 2);
123
+ margin: ($modal-header-padding-y / -2) ($modal-header-padding-x / -2) ($modal-header-padding-y / -2) auto;
124
+ }
125
+ }
126
+
127
+ // Title text within header
128
+ .modal-title {
129
+ margin-bottom: 0;
130
+ line-height: $modal-title-line-height;
131
+ }
132
+
133
+ // Modal body
134
+ // Where all modal content resides (sibling of .modal-header and .modal-footer)
135
+ .modal-body {
136
+ position: relative;
137
+ // Enable `flex-grow: 1` so that the body take up as much space as possible
138
+ // when there should be a fixed height on `.modal-dialog`.
139
+ flex: 1 1 auto;
140
+ padding: $modal-inner-padding;
141
+ }
142
+
143
+ // Footer (for actions)
144
+ .modal-footer {
145
+ display: flex;
146
+ flex-wrap: wrap;
147
+ flex-shrink: 0;
148
+ align-items: center; // vertically center
149
+ justify-content: flex-end; // Right align buttons with flex property because text-align doesn't work on flex items
150
+ padding: $modal-inner-padding - $modal-footer-margin-between / 2;
151
+ border-top: $modal-footer-border-width solid $modal-footer-border-color;
152
+ @include border-bottom-radius($modal-content-inner-border-radius);
153
+
154
+ // Place margin between footer elements
155
+ // This solution is far from ideal because of the universal selector usage,
156
+ // but is needed to fix https://github.com/twbs/bootstrap/issues/24800
157
+ > * {
158
+ margin: $modal-footer-margin-between / 2;
159
+ }
160
+ }
161
+
162
+ // Measure scrollbar width for padding body during modal show/hide
163
+ .modal-scrollbar-measure {
164
+ position: absolute;
165
+ top: -9999px;
166
+ width: 50px;
167
+ height: 50px;
168
+ overflow: scroll;
169
+ }
170
+
171
+ // Scale up the modal
172
+ @include media-breakpoint-up(sm) {
173
+ // Automatically set modal's width for larger viewports
174
+ .modal-dialog {
175
+ max-width: $modal-md;
176
+ margin: $modal-dialog-margin-y-sm-up auto;
177
+ }
178
+
179
+ .modal-dialog-scrollable {
180
+ height: subtract(100%, $modal-dialog-margin-y-sm-up * 2);
181
+ }
182
+
183
+ .modal-dialog-centered {
184
+ min-height: subtract(100%, $modal-dialog-margin-y-sm-up * 2);
185
+ }
186
+
187
+ .modal-content {
188
+ @include box-shadow($modal-content-box-shadow-sm-up);
189
+ }
190
+
191
+ .modal-sm { max-width: $modal-sm; }
192
+ }
193
+
194
+ @include media-breakpoint-up(lg) {
195
+ .modal-lg,
196
+ .modal-xl {
197
+ max-width: $modal-lg;
198
+ }
199
+ }
200
+
201
+ @include media-breakpoint-up(xl) {
202
+ .modal-xl { max-width: $modal-xl; }
203
+ }
204
+
205
+ // scss-docs-start modal-fullscreen-loop
206
+ @each $breakpoint in map-keys($grid-breakpoints) {
207
+ $infix: breakpoint-infix($breakpoint, $grid-breakpoints);
208
+ $postfix: if($infix != "", $infix + "-down", "");
209
+
210
+ @include media-breakpoint-down($breakpoint) {
211
+ .modal-fullscreen#{$postfix} {
212
+ width: 100vw;
213
+ max-width: none;
214
+ height: 100%;
215
+ margin: 0;
216
+
217
+ .modal-content {
218
+ height: 100%;
219
+ border: 0;
220
+ @include border-radius(0);
221
+ }
222
+
223
+ .modal-header {
224
+ @include border-radius(0);
225
+ }
226
+
227
+ .modal-body {
228
+ overflow-y: auto;
229
+ }
230
+
231
+ .modal-footer {
232
+ @include border-radius(0);
233
+ }
234
+ }
235
+ }
236
+ }
237
+ // scss-docs-end modal-fullscreen-loop