-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodal.scss
55 lines (46 loc) · 1.01 KB
/
modal.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
@import 'common';
@import 'bootstrap/scss/modal';
// $modal-md > $grid-breakpoints[sm] which case modal overflow viewport
.modal {
@include media-breakpoint-up(sm) {
padding-left: map-get($spacers, '16p');
padding-right: map-get($spacers, '16p');
}
}
.modal-header {
flex-direction: column-reverse;
padding-bottom: $spacer;
.close {
margin-bottom: 0;
}
}
.modal-title {
width: 100%;
padding-left: map-get($spacers, '16p');
padding-right: map-get($spacers, '16p');
}
.modal-body {
padding-left: map-get($spacers, '16p');
padding-right: map-get($spacers, '16p');
}
.modal-content {
border-width: 0;
box-shadow: map-get(map-get($shadows, xl), light);
}
@include media-breakpoint-down(xs) {
.modal-dialog {
width: 100%;
height: 100%;
}
.modal-dialog-centered.modal-dialog-scrollable .modal-content {
height: 100%;
}
}
// Footer (for actions)
.modal-footer {
padding: $spacer;
@include media-breakpoint-up(sm) {
padding-top: map-get($spacers, '40p');
padding-bottom: map-get($spacers, '56p');
}
}