Commit 475c1a29 authored by Tim Zallmann's avatar Tim Zallmann

Merge branch 'winh-style-modals' into 'master'

Adjust modal style to new design

See merge request gitlab-org/gitlab-ce!16310
parents 191b5153 070de825
......@@ -122,7 +122,7 @@
>
<button
type="button"
class="btn pull-left"
class="btn"
:class="btnCancelKindClass"
@click="emitCancel($event)"
data-dismiss="modal"
......@@ -132,7 +132,7 @@
<button
v-if="primaryButtonLabel"
type="button"
class="btn pull-right js-primary-button"
class="btn js-primary-button"
:disabled="submitDisabled"
:class="btnKindClass"
@click="emitSubmit($event)"
......
.modal-header {
background-color: $modal-body-bg;
padding: #{3 * $grid-size} #{2 * $grid-size};
.page-title {
......@@ -8,6 +9,7 @@
.modal-body {
background-color: $modal-body-bg;
min-height: $modal-body-height;
position: relative;
padding: #{3 * $grid-size} #{2 * $grid-size};
......@@ -20,6 +22,30 @@
}
}
.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;
}
......@@ -32,12 +58,6 @@ body.modal-open {
}
}
@media (min-width: $screen-md-min) {
.modal-dialog {
width: 860px;
}
}
@media (min-width: $screen-lg-min) {
.modal-full {
width: 98%;
......
......@@ -194,6 +194,6 @@ $modal-body-bg: $white-light;
//** Modal footer border color
// $modal-footer-border-color: $modal-header-border-color
// $modal-lg: 900px
// $modal-md: 600px
$modal-lg: 860px;
$modal-md: 540px;
// $modal-sm: 300px
......@@ -733,3 +733,8 @@ $popup-box-shadow-color: rgba(90, 90, 90, 0.05);
Multi file editor
*/
$border-color-settings: #e1e1e1;
/*
Modals
*/
$modal-body-height: 134px;
#modal-create-new-dir.modal
.modal-dialog
.modal-dialog.modal-lg
.modal-content
.modal-header
%a.close{ href: "#", "data-dismiss" => "modal" } ×
......
#modal-upload-blob.modal
.modal-dialog
.modal-dialog.modal-lg
.modal-content
.modal-header
%a.close{ href: "#", "data-dismiss" => "modal" } ×
......
---
title: Adjust modal style to new design
merge_request: 16310
author:
type: other
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment