debian-mirror-gitlab/app/assets/stylesheets/framework/modal.scss

104 lines
1.8 KiB
SCSS
Raw Normal View History

2018-03-17 18:26:18 +05:30
.modal-header {
background-color: $modal-body-bg;
2018-03-27 19:54:05 +05:30
.page-title,
.modal-title {
2020-04-08 14:13:33 +05:30
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
2018-05-01 15:08:00 +05:30
.modal-title-with-label span {
vertical-align: middle;
display: inline-block;
}
2018-03-17 18:26:18 +05:30
}
2018-03-27 19:54:05 +05:30
2018-12-05 23:21:45 +05:30
.modal-title {
2019-09-30 21:07:59 +05:30
line-height: $gl-line-height-24;
// leave enough space for the close icon
2018-12-05 23:21:45 +05:30
&.mw-100,
&.w-100 {
2019-09-30 21:07:59 +05:30
margin-right: -$modal-header-padding-x;
padding-right: $modal-header-padding-x;
2018-12-05 23:21:45 +05:30
}
}
2019-09-30 21:07:59 +05:30
.close {
font-weight: $gl-font-weight-normal;
line-height: $gl-line-height;
color: $gray-900;
opacity: 1;
}
2018-03-17 18:26:18 +05:30
}
2016-06-02 11:05:42 +05:30
.modal-body {
2018-03-17 18:26:18 +05:30
background-color: $modal-body-bg;
line-height: $line-height-base;
2016-06-02 11:05:42 +05:30
position: relative;
2019-09-30 21:07:59 +05:30
min-height: $modal-body-height;
2019-12-26 22:10:19 +05:30
padding: #{2 * $grid-size};
2018-03-17 18:26:18 +05:30
text-align: left;
2019-07-31 22:56:46 +05:30
white-space: normal;
2016-06-02 11:05:42 +05:30
.form-actions {
2018-03-17 18:26:18 +05:30
margin: #{2 * $grid-size} #{-2 * $grid-size} #{-2 * $grid-size};
2016-06-02 11:05:42 +05:30
}
2023-05-27 22:25:52 +05:30
.text-danger:not(.dropdown-item) {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-bold;
}
}
.modal-footer {
display: flex;
flex-direction: row;
2019-09-30 21:07:59 +05:30
.btn {
margin: 0;
}
2020-03-13 15:44:24 +05:30
.btn + .btn,
2019-09-04 21:01:54 +05:30
.btn + .btn-group,
2019-12-26 22:10:19 +05:30
.btn-group + .btn,
.btn-group + .btn-group {
2018-03-17 18:26:18 +05:30
margin-left: $grid-size;
}
2019-09-30 21:07:59 +05:30
.btn-group .btn + .btn {
margin-left: -1px;
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2018-03-17 18:26:18 +05:30
flex-direction: column;
2019-09-30 21:07:59 +05:30
.btn-group .btn + .btn {
margin-left: -1px;
margin-top: 0;
}
2018-03-17 18:26:18 +05:30
}
2016-06-02 11:05:42 +05:30
}
body.modal-open {
overflow: hidden;
2021-02-22 17:27:13 +05:30
padding-right: 0 !important;
2016-06-02 11:05:42 +05:30
}
2018-03-17 18:26:18 +05:30
.modal {
background-color: $black-transparent;
2019-09-30 21:07:59 +05:30
.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;
}
}
2018-03-17 18:26:18 +05:30
}