Improve the dashboard alert and confirmation modal styles

This commit is contained in:
Kevin MacMartin 2018-06-18 16:50:50 -04:00
parent 103ab67b4d
commit af9c6df636
2 changed files with 33 additions and 46 deletions

View file

@ -999,21 +999,20 @@ form {
top: 0px;
left: 0px;
visibility: hidden;
display: table;
display: flex;
width: 100%;
height: 100%;
padding: $grid-gutter-width;
justify-content: center;
align-items: center;
background-color: fade-out(lighten($c-dashboard-light, 1%), 0.6);
opacity: 0;
transition: opacity 250ms;
.modal-container {
display: table-cell;
vertical-align: middle;
text-align: center;
.card {
position: relative;
margin: 0px;
}
max-width: 500px;
.btn {
margin: 20px 15px;
@ -1025,19 +1024,23 @@ form {
}
}
&#alert-modal {
.modal-container {
.card {
position: relative;
}
&.alert .card {
.message {
min-height: 50px;
padding: 15px 75px 15px 20px;
padding: 15px 20px;
text-align: left;
@include media-breakpoint-up(md) {
padding-right: 85px;
}
}
.btn {
@include media-breakpoint-down(sm) {
margin-top: 0px;
}
@include media-breakpoint-up(md) {
position: absolute;
top: 50%;
right: 0px;

View file

@ -21,35 +21,19 @@
</div>
</div>
<div id="confirmation-modal" class="modal">
<div class="modal-container">
<div class="container">
<div class="row">
<div class="col-12 col-md-6 offset-md-3 col-lg-4 offset-lg-4">
<div id="confirmation-modal" class="modal confirmation">
<div class="card">
<div class="card-header"></div>
<button type="button" class="cancel-button btn btn-primary">Cancel</button>
<button type="button" class="confirm-button btn btn-danger">Confirm</button>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="alert-modal" class="modal">
<div class="modal-container">
<div class="container">
<div class="row">
<div class="col-12 col-md-6 offset-md-3 col-lg-4 offset-lg-4">
<div id="alert-modal" class="modal alert">
<div class="card">
<div class="card-header">ALERT</div>
<div class="message"></div>
<button type="button" class="accept-button btn btn-primary">OK</button>
</div>
</div>
</div>
</div>
</div>
</div>
@endsection