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 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
.modal-header {
.page-title,
.modal-title {
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
.modal-title-with-label span {
vertical-align: middle;
display: inline-block;
}
}
.modal-title {
line-height: $gl-line-height-24;
// leave enough space for the close icon
&.gl-max-w-full,
&.gl-w-full {
margin-right: -$modal-header-padding-x;
padding-right: $modal-header-padding-x;
}
}
.close {
font-weight: $gl-font-weight-normal;
line-height: $gl-line-height;
color: $gray-900;
opacity: 1;
}
}
.modal-body {
line-height: $line-height-base;
position: relative;
min-height: $modal-body-height;
padding: #{2 * $grid-size};
text-align: left;
white-space: normal;
.form-actions {
margin: #{2 * $grid-size} #{-2 * $grid-size} #{-2 * $grid-size};
}
}
.modal-footer {
display: flex;
flex-direction: row;
.btn {
margin: 0;
}
.btn + .btn,
.btn + .btn-group,
.btn-group + .btn,
.btn-group + .btn-group {
margin-left: $grid-size;
}
.btn-group .btn + .btn {
margin-left: -1px;
}
@include media-breakpoint-down(xs) {
flex-direction: column;
.btn-group .btn + .btn {
margin-left: -1px;
margin-top: 0;
}
}
}
body.modal-open {
overflow: hidden;
padding-right: 0 !important;
}
.modal {
background-color: $t-gray-a-24;
.modal-content {
border-radius: $modal-border-radius;
> :first-child {
border-top-left-radius: $modal-border-radius;
border-top-right-radius: $modal-border-radius;
}
> :last-child {
border-bottom-left-radius: $modal-border-radius;
border-bottom-right-radius: $modal-border-radius;
}
}
}
|