infotorg-api-jekyll-theme 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README.md +3 -0
- data/_config.yml +37 -0
- data/_includes/footer.html +11 -0
- data/_includes/head-app-css.html +2 -0
- data/_includes/head-fonts.html +2 -0
- data/_includes/head-google-analytics.html +13 -0
- data/_includes/navigation.html +58 -0
- data/_includes/services.html +75 -0
- data/_includes/title.html +4 -0
- data/_layouts/default.html +38 -0
- data/_layouts/services.html +5 -0
- data/_layouts/swagger-ui.html +67 -0
- data/_sass/_bootstrap.scss +51 -0
- data/_sass/_bootstrap_variables.scss +124 -0
- data/_sass/_typography.scss +15 -0
- data/_sass/_variables.scss +75 -0
- data/_sass/bootstrap/_accordion.scss +125 -0
- data/_sass/bootstrap/_alert.scss +57 -0
- data/_sass/bootstrap/_badge.scss +29 -0
- data/_sass/bootstrap/_breadcrumb.scss +28 -0
- data/_sass/bootstrap/_button-group.scss +139 -0
- data/_sass/bootstrap/_buttons.scss +109 -0
- data/_sass/bootstrap/_card.scss +215 -0
- data/_sass/bootstrap/_carousel.scss +223 -0
- data/_sass/bootstrap/_close.scss +40 -0
- data/_sass/bootstrap/_containers.scss +41 -0
- data/_sass/bootstrap/_dropdown.scss +235 -0
- data/_sass/bootstrap/_forms.scss +9 -0
- data/_sass/bootstrap/_functions.scss +205 -0
- data/_sass/bootstrap/_grid.scss +22 -0
- data/_sass/bootstrap/_helpers.scss +7 -0
- data/_sass/bootstrap/_images.scss +42 -0
- data/_sass/bootstrap/_list-group.scss +163 -0
- data/_sass/bootstrap/_mixins.scss +41 -0
- data/_sass/bootstrap/_modal.scss +235 -0
- data/_sass/bootstrap/_nav.scss +127 -0
- data/_sass/bootstrap/_navbar.scss +293 -0
- data/_sass/bootstrap/_pagination.scss +64 -0
- data/_sass/bootstrap/_popover.scss +173 -0
- data/_sass/bootstrap/_progress.scss +45 -0
- data/_sass/bootstrap/_reboot.scss +635 -0
- data/_sass/bootstrap/_root.scss +16 -0
- data/_sass/bootstrap/_spinners.scss +65 -0
- data/_sass/bootstrap/_tables.scss +150 -0
- data/_sass/bootstrap/_toasts.scss +50 -0
- data/_sass/bootstrap/_tooltip.scss +115 -0
- data/_sass/bootstrap/_transitions.scss +19 -0
- data/_sass/bootstrap/_type.scss +104 -0
- data/_sass/bootstrap/_utilities.scss +560 -0
- data/_sass/bootstrap/_variables.scss +1333 -0
- data/_sass/bootstrap/bootstrap-grid.scss +65 -0
- data/_sass/bootstrap/bootstrap-reboot.scss +15 -0
- data/_sass/bootstrap/bootstrap-utilities.scss +18 -0
- data/_sass/bootstrap/forms/_floating-labels.scss +61 -0
- data/_sass/bootstrap/forms/_form-check.scss +151 -0
- data/_sass/bootstrap/forms/_form-control.scss +223 -0
- data/_sass/bootstrap/forms/_form-range.scss +91 -0
- data/_sass/bootstrap/forms/_form-select.scss +68 -0
- data/_sass/bootstrap/forms/_form-text.scss +11 -0
- data/_sass/bootstrap/forms/_input-group.scss +121 -0
- data/_sass/bootstrap/forms/_labels.scss +36 -0
- data/_sass/bootstrap/forms/_validation.scss +12 -0
- data/_sass/bootstrap/helpers/_clearfix.scss +3 -0
- data/_sass/bootstrap/helpers/_colored-links.scss +12 -0
- data/_sass/bootstrap/helpers/_position.scss +30 -0
- data/_sass/bootstrap/helpers/_ratio.scss +26 -0
- data/_sass/bootstrap/helpers/_stretched-link.scss +15 -0
- data/_sass/bootstrap/helpers/_text-truncation.scss +7 -0
- data/_sass/bootstrap/helpers/_visually-hidden.scss +8 -0
- data/_sass/bootstrap/mixins/_alert.scss +9 -0
- data/_sass/bootstrap/mixins/_border-radius.scss +76 -0
- data/_sass/bootstrap/mixins/_box-shadow.scss +18 -0
- data/_sass/bootstrap/mixins/_breakpoints.scss +127 -0
- data/_sass/bootstrap/mixins/_buttons.scss +128 -0
- data/_sass/bootstrap/mixins/_caret.scss +62 -0
- data/_sass/bootstrap/mixins/_clearfix.scss +9 -0
- data/_sass/bootstrap/mixins/_container.scss +9 -0
- data/_sass/bootstrap/mixins/_deprecate.scss +10 -0
- data/_sass/bootstrap/mixins/_forms.scss +117 -0
- data/_sass/bootstrap/mixins/_gradients.scss +43 -0
- data/_sass/bootstrap/mixins/_grid.scss +120 -0
- data/_sass/bootstrap/mixins/_image.scss +16 -0
- data/_sass/bootstrap/mixins/_list-group.scss +22 -0
- data/_sass/bootstrap/mixins/_lists.scss +7 -0
- data/_sass/bootstrap/mixins/_pagination.scss +29 -0
- data/_sass/bootstrap/mixins/_reset-text.scss +17 -0
- data/_sass/bootstrap/mixins/_resize.scss +6 -0
- data/_sass/bootstrap/mixins/_table-variants.scss +21 -0
- data/_sass/bootstrap/mixins/_text-truncate.scss +8 -0
- data/_sass/bootstrap/mixins/_transition.scss +26 -0
- data/_sass/bootstrap/mixins/_utilities.scss +68 -0
- data/_sass/bootstrap/mixins/_visually-hidden.scss +28 -0
- data/_sass/bootstrap/utilities/_api.scss +47 -0
- data/_sass/bootstrap/vendor/_rfs.scss +312 -0
- data/assets/bootstrap.min.js +7 -0
- data/assets/bootstrap.min.js.map +1 -0
- data/assets/css/main.scss +214 -0
- data/assets/css/print.scss +8 -0
- data/assets/css/swagger-ui/3.x/theme-feeling-blue.css +1672 -0
- data/assets/css/swagger-ui/3.x/theme-flattop.css +1672 -0
- data/assets/css/swagger-ui/3.x/theme-material.css +1719 -0
- data/assets/css/swagger-ui/3.x/theme-monokai.css +1792 -0
- data/assets/css/swagger-ui/3.x/theme-muted.css +1673 -0
- data/assets/css/swagger-ui/3.x/theme-newspaper.css +1671 -0
- data/assets/css/swagger-ui/3.x/theme-outline.css +1652 -0
- data/assets/images/cube.svg +11 -0
- data/assets/images/icons/collapse.svg +14 -0
- data/assets/images/icons/info.svg +14 -0
- data/assets/images/icons/services/eiendom.svg +9 -0
- data/assets/images/icons/services/foretak.svg +10 -0
- data/assets/images/icons/services/kreditt.svg +11 -0
- data/assets/images/icons/services/likningopplysning.svg +11 -0
- data/assets/images/icons/services/person.svg +11 -0
- data/assets/images/icons/services/small-boats.svg +9 -0
- data/assets/images/icons/services/vehicle.svg +9 -0
- data/assets/images/infotorg-developer.png +0 -0
- data/assets/images/infotorg-developer.svg +23 -0
- data/assets/images/infotorg-developer@2x.png +0 -0
- data/assets/images/infotorg-developer@3x.png +0 -0
- data/assets/images/it-gears.svg +14 -0
- data/assets/images/logo.svg +12 -0
- data/assets/images/tieto-evry-logo.svg +29 -0
- data/assets/openapi/eiendom.json +6817 -0
- metadata +180 -0
@@ -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,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,163 @@
|
|
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
|
+
|
16
|
+
// Interactive list items
|
17
|
+
//
|
18
|
+
// Use anchor or button elements instead of `li`s or `div`s to create interactive
|
19
|
+
// list items. Includes an extra `.active` modifier class for selected items.
|
20
|
+
|
21
|
+
.list-group-item-action {
|
22
|
+
width: 100%; // For `<button>`s (anchors become 100% by default though)
|
23
|
+
color: $list-group-action-color;
|
24
|
+
text-align: inherit; // For `<button>`s (anchors inherit)
|
25
|
+
|
26
|
+
// Hover state
|
27
|
+
&:hover,
|
28
|
+
&:focus {
|
29
|
+
z-index: 1; // Place hover/focus items above their siblings for proper border styling
|
30
|
+
color: $list-group-action-hover-color;
|
31
|
+
text-decoration: none;
|
32
|
+
background-color: $list-group-hover-bg;
|
33
|
+
}
|
34
|
+
|
35
|
+
&:active {
|
36
|
+
color: $list-group-action-active-color;
|
37
|
+
background-color: $list-group-action-active-bg;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
|
42
|
+
// Individual list items
|
43
|
+
//
|
44
|
+
// Use on `li`s or `div`s within the `.list-group` parent.
|
45
|
+
|
46
|
+
.list-group-item {
|
47
|
+
position: relative;
|
48
|
+
display: block;
|
49
|
+
padding: $list-group-item-padding-y $list-group-item-padding-x;
|
50
|
+
color: $list-group-color;
|
51
|
+
text-decoration: if($link-decoration == none, null, none);
|
52
|
+
background-color: $list-group-bg;
|
53
|
+
border: $list-group-border-width solid $list-group-border-color;
|
54
|
+
|
55
|
+
&:first-child {
|
56
|
+
@include border-top-radius(inherit);
|
57
|
+
}
|
58
|
+
|
59
|
+
&:last-child {
|
60
|
+
@include border-bottom-radius(inherit);
|
61
|
+
}
|
62
|
+
|
63
|
+
&.disabled,
|
64
|
+
&:disabled {
|
65
|
+
color: $list-group-disabled-color;
|
66
|
+
pointer-events: none;
|
67
|
+
background-color: $list-group-disabled-bg;
|
68
|
+
}
|
69
|
+
|
70
|
+
// Include both here for `<a>`s and `<button>`s
|
71
|
+
&.active {
|
72
|
+
z-index: 2; // Place active items above their siblings for proper border styling
|
73
|
+
color: $list-group-active-color;
|
74
|
+
background-color: $list-group-active-bg;
|
75
|
+
border-color: $list-group-active-border-color;
|
76
|
+
}
|
77
|
+
|
78
|
+
& + & {
|
79
|
+
border-top-width: 0;
|
80
|
+
|
81
|
+
&.active {
|
82
|
+
margin-top: -$list-group-border-width;
|
83
|
+
border-top-width: $list-group-border-width;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
|
89
|
+
// Horizontal
|
90
|
+
//
|
91
|
+
// Change the layout of list group items from vertical (default) to horizontal.
|
92
|
+
|
93
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
94
|
+
@include media-breakpoint-up($breakpoint) {
|
95
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
96
|
+
|
97
|
+
.list-group-horizontal#{$infix} {
|
98
|
+
flex-direction: row;
|
99
|
+
|
100
|
+
> .list-group-item {
|
101
|
+
&:first-child {
|
102
|
+
@include border-bottom-start-radius($list-group-border-radius);
|
103
|
+
@include border-top-end-radius(0);
|
104
|
+
}
|
105
|
+
|
106
|
+
&:last-child {
|
107
|
+
@include border-top-end-radius($list-group-border-radius);
|
108
|
+
@include border-bottom-start-radius(0);
|
109
|
+
}
|
110
|
+
|
111
|
+
&.active {
|
112
|
+
margin-top: 0;
|
113
|
+
}
|
114
|
+
|
115
|
+
+ .list-group-item {
|
116
|
+
border-top-width: $list-group-border-width;
|
117
|
+
border-left-width: 0;
|
118
|
+
|
119
|
+
&.active {
|
120
|
+
margin-left: -$list-group-border-width;
|
121
|
+
border-left-width: $list-group-border-width;
|
122
|
+
}
|
123
|
+
}
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
|
130
|
+
// Flush list items
|
131
|
+
//
|
132
|
+
// Remove borders and border-radius to keep list group items edge-to-edge. Most
|
133
|
+
// useful within other components (e.g., cards).
|
134
|
+
|
135
|
+
.list-group-flush {
|
136
|
+
@include border-radius(0);
|
137
|
+
|
138
|
+
> .list-group-item {
|
139
|
+
border-width: 0 0 $list-group-border-width;
|
140
|
+
|
141
|
+
&:last-child {
|
142
|
+
border-bottom-width: 0;
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
|
148
|
+
// scss-docs-start list-group-modifiers
|
149
|
+
// List group contextual variants
|
150
|
+
//
|
151
|
+
// Add modifier classes to change text and background color on individual items.
|
152
|
+
// Organizationally, this must come after the `:hover` states.
|
153
|
+
|
154
|
+
@each $state, $value in $theme-colors {
|
155
|
+
$background: shift-color($value, $list-group-item-bg-scale);
|
156
|
+
$color: shift-color($value, $list-group-item-color-scale);
|
157
|
+
@if (contrast-ratio($background, $color) < $min-contrast-ratio) {
|
158
|
+
$color: mix($value, color-contrast($background), abs($alert-color-scale));
|
159
|
+
}
|
160
|
+
|
161
|
+
@include list-group-item-variant($state, $background, $color);
|
162
|
+
}
|
163
|
+
// 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,235 @@
|
|
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
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
206
|
+
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
207
|
+
$postfix: if($infix != "", $infix + "-down", "");
|
208
|
+
|
209
|
+
@include media-breakpoint-down($breakpoint) {
|
210
|
+
.modal-fullscreen#{$postfix} {
|
211
|
+
width: 100vw;
|
212
|
+
max-width: none;
|
213
|
+
height: 100%;
|
214
|
+
margin: 0;
|
215
|
+
|
216
|
+
.modal-content {
|
217
|
+
height: 100%;
|
218
|
+
border: 0;
|
219
|
+
@include border-radius(0);
|
220
|
+
}
|
221
|
+
|
222
|
+
.modal-header {
|
223
|
+
@include border-radius(0);
|
224
|
+
}
|
225
|
+
|
226
|
+
.modal-body {
|
227
|
+
overflow-y: auto;
|
228
|
+
}
|
229
|
+
|
230
|
+
.modal-footer {
|
231
|
+
@include border-radius(0);
|
232
|
+
}
|
233
|
+
}
|
234
|
+
}
|
235
|
+
}
|