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

142 lines
2.3 KiB
SCSS
Raw Normal View History

2018-11-08 19:23:39 +05:30
.modal-xl {
max-width: 98%;
}
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 {
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
.color-label {
font-size: $gl-font-size;
padding: $gl-vert-padding $label-padding-modal;
2018-05-01 15:08:00 +05:30
vertical-align: middle;
2018-03-17 18:26:18 +05:30
}
}
2018-03-27 19:54:05 +05:30
2018-12-05 23:21:45 +05:30
// leave enough space for the close icon
.modal-title {
&.mw-100,
&.w-100 {
// after upgrading to Bootstrap 4.2 we can use $modal-header-padding-x here
// https://github.com/twbs/bootstrap/pull/26976
2019-02-15 15:39:39 +05:30
margin-right: -28px;
padding-right: 28px;
2018-12-05 23:21:45 +05:30
}
}
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;
min-height: $modal-body-height;
2016-06-02 11:05:42 +05:30
position: relative;
2018-03-17 18:26:18 +05:30
padding: #{3 * $grid-size} #{2 * $grid-size};
text-align: left;
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
}
.text-danger {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-bold;
}
}
.modal-footer {
display: flex;
flex-direction: row;
.btn + .btn {
margin-left: $grid-size;
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-down(xs) {
2018-03-17 18:26:18 +05:30
flex-direction: column;
.btn + .btn {
margin-left: 0;
margin-top: $grid-size;
}
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(sm) {
2018-12-05 23:21:45 +05:30
.btn:nth-child(1) {
2018-03-17 18:26:18 +05:30
margin-left: auto;
}
2016-06-02 11:05:42 +05:30
}
}
body.modal-open {
overflow: hidden;
}
2018-03-17 18:26:18 +05:30
.modal-no-backdrop {
@extend .modal-dialog;
.modal-content {
box-shadow: none;
2017-08-17 22:00:37 +05:30
}
2016-06-02 11:05:42 +05:30
}
2017-09-10 17:25:29 +05:30
2018-03-17 18:26:18 +05:30
.modal {
background-color: $black-transparent;
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(md) {
2018-03-17 18:26:18 +05:30
.modal-dialog {
margin: 30px auto;
}
}
}
.recaptcha-modal .recaptcha-form {
display: inline-block;
.recaptcha {
margin: 0;
}
}
2019-02-15 15:39:39 +05:30
.issues-import-modal,
.issues-export-modal {
.modal-header {
justify-content: flex-start;
.import-export-svg-container {
flex-grow: 1;
height: 56px;
padding: $gl-btn-padding $gl-btn-padding 0;
> svg {
float: right;
height: 100%;
}
}
}
.modal-body {
padding: 0;
.modal-subheader {
justify-content: flex-start;
align-items: center;
border-bottom: 1px solid $modal-border-color;
padding: 14px;
}
.modal-text {
padding: $gl-padding-24 $gl-padding;
min-height: $modal-body-height;
}
}
.checkmark {
color: $green-400;
}
}