Chatwoot/app/javascript/dashboard/assets/scss/widgets/_modal.scss
Pranav Raj S 246d0b407f
Chore: UI Cleanup in modals (#873)
* Chore: UI Cleanup in modals

* Fix review comments
2020-05-17 21:07:45 +05:30

106 lines
1.7 KiB
SCSS

@import '~dashboard/assets/scss/variables';
@import '~dashboard/assets/scss/mixins';
.modal-mask {
@include flex;
@include flex-align(center, middle);
background-color: $masked-bg;
height: 100%;
left: 0;
position: fixed;
top: 0;
width: 100%;
z-index: 9990;
}
.modal--close {
border-radius: 50%;
color: $color-heading;
cursor: pointer;
font-size: $font-size-big;
line-height: $space-normal;
padding: $space-normal $space-two;
position: absolute;
right: $space-micro;
top: $space-micro;
&:hover {
background: $color-background;
}
}
.page-top-bar {
@include padding($space-large $space-large $zero);
img {
max-height: 6rem;
}
}
.modal-container {
@include normal-shadow;
background-color: $color-white;
border-radius: $space-smaller;
max-height: 100%;
overflow: auto;
position: relative;
width: 60rem;
.content-box {
@include padding($zero);
height: auto;
}
h2 {
color: $color-heading;
font-size: $font-size-medium;
font-weight: $font-weight-bold;
}
p {
@include margin($zero);
@include padding($zero);
font-size: $font-size-small;
}
form {
@include padding($space-large);
align-self: center;
a {
@include padding($space-normal);
}
}
.modal-footer {
@include flex;
@include flex-align($x: flex-start, $y: middle);
@include padding($space-small $zero);
button {
font-size: $font-size-small;
}
}
.delete-item {
@include padding($space-large);
button {
@include margin($zero);
}
}
}
.modal-enter,
.modal-leave {
opacity: 0;
}
.modal-enter .modal-container,
.modal-leave .modal-container {
transform: scale(1.1);
}