Commit 070de825 authored by Winnie Hellmann's avatar Winnie Hellmann

Adjust modal style to new design

parent 21bb3933
...@@ -122,7 +122,7 @@ ...@@ -122,7 +122,7 @@
> >
<button <button
type="button" type="button"
class="btn pull-left" class="btn"
:class="btnCancelKindClass" :class="btnCancelKindClass"
@click="emitCancel($event)" @click="emitCancel($event)"
data-dismiss="modal" data-dismiss="modal"
...@@ -132,7 +132,7 @@ ...@@ -132,7 +132,7 @@
<button <button
v-if="primaryButtonLabel" v-if="primaryButtonLabel"
type="button" type="button"
class="btn pull-right js-primary-button" class="btn js-primary-button"
:disabled="submitDisabled" :disabled="submitDisabled"
:class="btnKindClass" :class="btnKindClass"
@click="emitSubmit($event)" @click="emitSubmit($event)"
......
.modal-header { .modal-header {
background-color: $modal-body-bg;
padding: #{3 * $grid-size} #{2 * $grid-size}; padding: #{3 * $grid-size} #{2 * $grid-size};
.page-title { .page-title {
...@@ -8,6 +9,7 @@ ...@@ -8,6 +9,7 @@
.modal-body { .modal-body {
background-color: $modal-body-bg; background-color: $modal-body-bg;
min-height: $modal-body-height;
position: relative; position: relative;
padding: #{3 * $grid-size} #{2 * $grid-size}; padding: #{3 * $grid-size} #{2 * $grid-size};
...@@ -20,6 +22,30 @@ ...@@ -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 { body.modal-open {
overflow: hidden; overflow: hidden;
} }
...@@ -32,12 +58,6 @@ body.modal-open { ...@@ -32,12 +58,6 @@ body.modal-open {
} }
} }
@media (min-width: $screen-md-min) {
.modal-dialog {
width: 860px;
}
}
@media (min-width: $screen-lg-min) { @media (min-width: $screen-lg-min) {
.modal-full { .modal-full {
width: 98%; width: 98%;
......
...@@ -194,6 +194,6 @@ $modal-body-bg: $white-light; ...@@ -194,6 +194,6 @@ $modal-body-bg: $white-light;
//** Modal footer border color //** Modal footer border color
// $modal-footer-border-color: $modal-header-border-color // $modal-footer-border-color: $modal-header-border-color
// $modal-lg: 900px $modal-lg: 860px;
// $modal-md: 600px $modal-md: 540px;
// $modal-sm: 300px // $modal-sm: 300px
...@@ -733,3 +733,8 @@ $popup-box-shadow-color: rgba(90, 90, 90, 0.05); ...@@ -733,3 +733,8 @@ $popup-box-shadow-color: rgba(90, 90, 90, 0.05);
Multi file editor Multi file editor
*/ */
$border-color-settings: #e1e1e1; $border-color-settings: #e1e1e1;
/*
Modals
*/
$modal-body-height: 134px;
#modal-create-new-dir.modal #modal-create-new-dir.modal
.modal-dialog .modal-dialog.modal-lg
.modal-content .modal-content
.modal-header .modal-header
%a.close{ href: "#", "data-dismiss" => "modal" } × %a.close{ href: "#", "data-dismiss" => "modal" } ×
......
#modal-upload-blob.modal #modal-upload-blob.modal
.modal-dialog .modal-dialog.modal-lg
.modal-content .modal-content
.modal-header .modal-header
%a.close{ href: "#", "data-dismiss" => "modal" } × %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