gitlab-org--gitlab-foss/app/assets/stylesheets/framework/modal.scss

101 lines
1.6 KiB
SCSS
Raw Normal View History

.modal-header {
2018-01-09 04:08:28 -05:00
background-color: $modal-body-bg;
padding: #{3 * $grid-size} #{2 * $grid-size};
.page-title,
.modal-title {
2018-03-22 16:02:22 -04:00
.modal-title-with-label span {
vertical-align: middle;
display: inline-block;
}
2018-01-30 15:36:27 -05:00
.color-label {
2018-02-05 17:00:17 -05:00
font-size: $gl-font-size;
padding: $gl-vert-padding $label-padding-modal;
2018-03-22 16:02:22 -04:00
vertical-align: middle;
2018-01-26 17:42:42 -05:00
}
}
.page-title {
margin-top: 0;
}
}
.modal-body {
2017-11-06 15:32:51 -05:00
background-color: $modal-body-bg;
2018-01-04 08:15:27 -05:00
line-height: $line-height-base;
2018-01-09 04:08:28 -05:00
min-height: $modal-body-height;
position: relative;
padding: #{3 * $grid-size} #{2 * $grid-size};
text-align: left;
.form-actions {
margin: #{2 * $grid-size} #{-2 * $grid-size} #{-2 * $grid-size};
}
.text-danger {
font-weight: $gl-font-weight-bold;
}
}
2018-01-09 04:08:28 -05:00
.modal-footer {
display: flex;
flex-direction: row;
.btn + .btn {
margin-left: $grid-size;
}
@media (max-width: $screen-xs-max) {
flex-direction: column;
.btn + .btn {
margin-left: 0;
margin-top: $grid-size;
}
}
@media (min-width: $screen-sm-min) {
.btn:first-of-type {
margin-left: auto;
}
}
}
body.modal-open {
overflow: hidden;
}
.modal-no-backdrop {
@extend .modal-dialog;
.modal-content {
box-shadow: none;
}
}
@media (min-width: $screen-lg-min) {
.modal-full {
width: 98%;
}
}
2017-12-11 13:43:28 -05:00
.modal {
background-color: $black-transparent;
z-index: 2100;
@media (min-width: $screen-md-min) {
.modal-dialog {
margin: 30px auto;
}
}
}
.recaptcha-modal .recaptcha-form {
display: inline-block;
.recaptcha {
margin: 0;
}
}