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.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/footer.html +8 -9
  3. data/_includes/head.html +20 -9
  4. data/_includes/js_files.html +21 -3
  5. data/_includes/navbar.html +28 -0
  6. data/_includes/sidebar.html +43 -0
  7. data/_layouts/default.html +10 -10
  8. data/_layouts/docs.html +12 -20
  9. data/_sass/bootstrap/_alert.scss +51 -0
  10. data/_sass/bootstrap/_badge.scss +53 -0
  11. data/_sass/bootstrap/_breadcrumb.scss +41 -0
  12. data/_sass/bootstrap/_button-group.scss +163 -0
  13. data/_sass/bootstrap/_buttons.scss +73 -101
  14. data/_sass/bootstrap/_card.scss +310 -0
  15. data/_sass/bootstrap/_carousel.scss +130 -202
  16. data/_sass/bootstrap/_close.scss +23 -15
  17. data/_sass/bootstrap/_code.scss +15 -36
  18. data/_sass/bootstrap/_custom-forms.scss +507 -0
  19. data/_sass/bootstrap/_dropdown.scss +191 -0
  20. data/_sass/bootstrap/_forms.scss +215 -498
  21. data/_sass/bootstrap/_functions.scss +86 -0
  22. data/_sass/bootstrap/_grid.scss +29 -61
  23. data/_sass/bootstrap/_images.scss +42 -0
  24. data/_sass/bootstrap/_input-group.scss +193 -0
  25. data/_sass/bootstrap/_jumbotron.scss +9 -47
  26. data/_sass/bootstrap/_list-group.scss +70 -79
  27. data/_sass/bootstrap/_media.scss +3 -61
  28. data/_sass/bootstrap/_mixins.scss +19 -18
  29. data/_sass/bootstrap/_modal.scss +186 -0
  30. data/_sass/bootstrap/_nav.scss +120 -0
  31. data/_sass/bootstrap/_navbar.scss +192 -555
  32. data/_sass/bootstrap/_pagination.scss +59 -70
  33. data/_sass/bootstrap/_popover.scss +183 -0
  34. data/_sass/bootstrap/_print.scss +89 -49
  35. data/_sass/bootstrap/_progress.scss +34 -0
  36. data/_sass/bootstrap/_reboot.scss +462 -0
  37. data/_sass/bootstrap/_root.scss +19 -0
  38. data/_sass/bootstrap/_spinners.scss +53 -0
  39. data/_sass/bootstrap/_tables.scss +119 -166
  40. data/_sass/bootstrap/_toasts.scss +43 -0
  41. data/_sass/bootstrap/_tooltip.scss +93 -79
  42. data/_sass/bootstrap/_transitions.scss +22 -0
  43. data/_sass/bootstrap/_type.scss +66 -239
  44. data/_sass/bootstrap/_utilities.scss +16 -55
  45. data/_sass/bootstrap/_variables.scss +926 -709
  46. data/_sass/bootstrap/bootstrap-grid.scss +29 -0
  47. data/_sass/bootstrap/bootstrap-reboot.scss +12 -0
  48. data/_sass/bootstrap/bootstrap.scss +44 -0
  49. data/_sass/bootstrap/mixins/_alert.scss +13 -0
  50. data/_sass/bootstrap/mixins/_background-variant.scss +14 -5
  51. data/_sass/bootstrap/mixins/_badge.scss +11 -0
  52. data/_sass/bootstrap/mixins/_border-radius.scss +25 -8
  53. data/_sass/bootstrap/mixins/_box-shadow.scss +5 -0
  54. data/_sass/bootstrap/mixins/_breakpoints.scss +123 -0
  55. data/_sass/bootstrap/mixins/_buttons.scss +86 -40
  56. data/_sass/bootstrap/mixins/_caret.scss +62 -0
  57. data/_sass/bootstrap/mixins/_clearfix.scss +3 -18
  58. data/_sass/bootstrap/mixins/_float.scss +11 -0
  59. data/_sass/bootstrap/mixins/_forms.scss +176 -66
  60. data/_sass/bootstrap/mixins/_gradients.scss +17 -30
  61. data/_sass/bootstrap/mixins/_grid-framework.scss +51 -66
  62. data/_sass/bootstrap/mixins/_grid.scss +34 -105
  63. data/_sass/bootstrap/mixins/_hover.scss +37 -0
  64. data/_sass/bootstrap/mixins/_image.scss +18 -15
  65. data/_sass/bootstrap/mixins/_list-group.scss +10 -21
  66. data/_sass/bootstrap/mixins/_lists.scss +7 -0
  67. data/_sass/bootstrap/mixins/_nav-divider.scss +4 -4
  68. data/_sass/bootstrap/mixins/_pagination.scss +10 -12
  69. data/_sass/bootstrap/mixins/_reset-text.scss +7 -8
  70. data/_sass/bootstrap/mixins/_resize.scss +1 -1
  71. data/_sass/bootstrap/mixins/_screen-reader.scss +33 -0
  72. data/_sass/bootstrap/mixins/_size.scss +1 -5
  73. data/_sass/bootstrap/mixins/_table-row.scss +26 -15
  74. data/_sass/bootstrap/mixins/_text-emphasis.scss +7 -5
  75. data/_sass/bootstrap/mixins/_text-hide.scss +13 -0
  76. data/_sass/bootstrap/mixins/{_text-overflow.scss → _text-truncate.scss} +2 -2
  77. data/_sass/bootstrap/mixins/_transition.scss +16 -0
  78. data/_sass/bootstrap/mixins/_visibility.scss +7 -0
  79. data/_sass/bootstrap/utilities/_align.scss +8 -0
  80. data/_sass/bootstrap/utilities/_background.scss +19 -0
  81. data/_sass/bootstrap/utilities/_borders.scss +63 -0
  82. data/_sass/bootstrap/utilities/_clearfix.scss +3 -0
  83. data/_sass/bootstrap/utilities/_display.scss +38 -0
  84. data/_sass/bootstrap/utilities/_embed.scss +39 -0
  85. data/_sass/bootstrap/utilities/_flex.scss +51 -0
  86. data/_sass/bootstrap/utilities/_float.scss +9 -0
  87. data/_sass/bootstrap/utilities/_overflow.scss +5 -0
  88. data/_sass/bootstrap/utilities/_position.scss +32 -0
  89. data/_sass/bootstrap/utilities/_screenreaders.scss +11 -0
  90. data/_sass/bootstrap/utilities/_shadows.scss +6 -0
  91. data/_sass/bootstrap/utilities/_sizing.scss +20 -0
  92. data/_sass/bootstrap/utilities/_spacing.scss +73 -0
  93. data/_sass/bootstrap/utilities/_text.scss +67 -0
  94. data/_sass/bootstrap/utilities/_visibility.scss +11 -0
  95. data/_sass/markdown/code.scss +65 -0
  96. data/_sass/markdown/color-system.scss +114 -0
  97. data/_sass/markdown/images.scss +119 -0
  98. data/_sass/markdown/markdown-body.scss +103 -0
  99. data/_sass/markdown/markdown.scss +15 -0
  100. data/_sass/rouge.scss +209 -0
  101. data/_sass/theme.scss +35 -0
  102. data/_sass/{_typeahead.scss → typeahead.scss} +0 -0
  103. data/assets/css/main.scss +1 -90
  104. data/assets/img/{bg.jpg → jumbotron.jpg} +0 -0
  105. data/assets/js/bootstrap.min.js +6 -6
  106. data/assets/js/jquery-3.3.1.min.js +2 -0
  107. data/assets/js/main.js +2 -1
  108. data/assets/js/search.json +11 -0
  109. data/assets/js/typeahead.bundle.js +2621 -0
  110. data/assets/js/typeahead.bundle.min.js +4 -4
  111. metadata +81 -50
  112. data/_includes/pages_nav.html +0 -40
  113. data/_includes/topnav.html +0 -37
  114. data/_sass/_bootstrap.scss +0 -56
  115. data/_sass/_syntax-highlighting.scss +0 -71
  116. data/_sass/bootstrap/_alerts.scss +0 -73
  117. data/_sass/bootstrap/_badges.scss +0 -68
  118. data/_sass/bootstrap/_breadcrumbs.scss +0 -28
  119. data/_sass/bootstrap/_button-groups.scss +0 -244
  120. data/_sass/bootstrap/_component-animations.scss +0 -37
  121. data/_sass/bootstrap/_dropdowns.scss +0 -216
  122. data/_sass/bootstrap/_glyphicons.scss +0 -307
  123. data/_sass/bootstrap/_input-groups.scss +0 -171
  124. data/_sass/bootstrap/_labels.scss +0 -66
  125. data/_sass/bootstrap/_modals.scss +0 -150
  126. data/_sass/bootstrap/_navs.scss +0 -242
  127. data/_sass/bootstrap/_normalize.scss +0 -424
  128. data/_sass/bootstrap/_pager.scss +0 -54
  129. data/_sass/bootstrap/_panels.scss +0 -271
  130. data/_sass/bootstrap/_popovers.scss +0 -131
  131. data/_sass/bootstrap/_progress-bars.scss +0 -87
  132. data/_sass/bootstrap/_responsive-embed.scss +0 -35
  133. data/_sass/bootstrap/_responsive-utilities.scss +0 -179
  134. data/_sass/bootstrap/_scaffolding.scss +0 -161
  135. data/_sass/bootstrap/_theme.scss +0 -291
  136. data/_sass/bootstrap/_thumbnails.scss +0 -38
  137. data/_sass/bootstrap/_wells.scss +0 -29
  138. data/_sass/bootstrap/mixins/_alerts.scss +0 -14
  139. data/_sass/bootstrap/mixins/_center-block.scss +0 -7
  140. data/_sass/bootstrap/mixins/_hide-text.scss +0 -21
  141. data/_sass/bootstrap/mixins/_labels.scss +0 -12
  142. data/_sass/bootstrap/mixins/_nav-vertical-align.scss +0 -9
  143. data/_sass/bootstrap/mixins/_opacity.scss +0 -8
  144. data/_sass/bootstrap/mixins/_panels.scss +0 -24
  145. data/_sass/bootstrap/mixins/_progress-bar.scss +0 -10
  146. data/_sass/bootstrap/mixins/_reset-filter.scss +0 -8
  147. data/_sass/bootstrap/mixins/_responsive-visibility.scss +0 -21
  148. data/_sass/bootstrap/mixins/_tab-focus.scss +0 -9
  149. data/_sass/bootstrap/mixins/_vendor-prefixes.scss +0 -222
  150. data/assets/css/font-awesome.min.css +0 -4
  151. data/assets/fonts/FontAwesome.otf +0 -0
  152. data/assets/fonts/fontawesome-webfont.eot +0 -0
  153. data/assets/fonts/fontawesome-webfont.svg +0 -2671
  154. data/assets/fonts/fontawesome-webfont.ttf +0 -0
  155. data/assets/fonts/fontawesome-webfont.woff +0 -0
  156. 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: 10px 15px;
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: -1px;
48
+ margin-bottom: -$list-group-border-width;
27
49
  background-color: $list-group-bg;
28
- border: 1px solid $list-group-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
- // Hover state
55
- &:hover,
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
- &.disabled:hover,
72
- &.disabled:focus {
73
- background-color: $list-group-disabled-bg;
67
+ &:disabled {
74
68
  color: $list-group-disabled-color;
75
- cursor: $cursor-disabled;
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
- // Active class on item itself, not parent
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
- // Force color to inherit for custom content
96
- .list-group-item-heading,
97
- .list-group-item-heading > small,
98
- .list-group-item-heading > .small {
99
- color: inherit;
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
- .list-group-item-text {
102
- color: $list-group-active-text-color;
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
- @include list-group-item-variant(success, $state-success-bg, $state-success-text);
114
- @include list-group-item-variant(info, $state-info-bg, $state-info-text);
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
  }
@@ -1,66 +1,8 @@
1
1
  .media {
2
- // Proper spacing between instances of .media
3
- margin-top: 15px;
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
- display: table-cell;
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
- // Mixins
2
- // --------------------------------------------------
1
+ // Toggles
2
+ //
3
+ // Used in conjunction with global variables to enable certain theme features.
3
4
 
4
5
  // Utilities
5
- @import "mixins/hide-text";
6
- @import "mixins/opacity";
6
+ @import "mixins/breakpoints";
7
+ @import "mixins/hover";
7
8
  @import "mixins/image";
8
- @import "mixins/labels";
9
- @import "mixins/reset-filter";
9
+ @import "mixins/badge";
10
10
  @import "mixins/resize";
11
- @import "mixins/responsive-visibility";
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-overflow";
17
- @import "mixins/vendor-prefixes";
15
+ @import "mixins/text-hide";
16
+ @import "mixins/text-truncate";
17
+ @import "mixins/visibility";
18
18
 
19
- // Components
20
- @import "mixins/alerts";
19
+ // // Components
20
+ @import "mixins/alert";
21
21
  @import "mixins/buttons";
22
- @import "mixins/panels";
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
+ }