Chatwoot/app/javascript/dashboard/assets/scss/widgets/_modal.scss
Pranav Raj S 6e911e69f8 Update font family to make design consistent in all platforms (#318)
* Add inter font, remove modal header bg

* Remove unnecessary font files

* Fix codeclimate issues, remove letter-spacing attribute
2019-11-28 11:03:01 +05:30

91 lines
1.6 KiB
SCSS

.modal-mask {
position: fixed;
z-index: 9990;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, .5);
@include flex;
@include flex-align(center, middle);
}
.modal-container {
width: 60rem;
max-height: 100%;
overflow: scroll;
position: relative;
background-color: $color-white;
border-radius: $space-small;
.modal--close {
font-size: $font-size-large;
position: absolute;
right: $space-normal;
top: $space-small;
cursor: pointer;
color: $color-heading;
}
.page-top-bar {
@include padding($space-large $space-larger 0);
img {
max-height: 6rem;
}
}
.content-box {
@include padding($zero);
height: auto;
}
h2 {
font-size: $font-size-medium;
color: $color-woot;
font-weight: $font-weight-normal;
@include padding($space-small $zero $zero $zero);
}
p {
font-size: $font-size-small;
@include padding($zero);
@include margin($zero);
}
form {
align-self: center;
@include padding($space-medium $space-larger $space-small);
a {
@include padding($space-normal);
}
}
.modal-footer {
@include flex;
@include flex-align($x: justify, $y: middle);
@include padding($space-small $zero $space-medium $zero);
button {
font-size: $font-size-small;
}
}
.delete-item {
@include padding($space-normal);
button {
@include margin($zero);
}
}
}
.modal-enter, .modal-leave {
opacity: 0;
}
.modal-enter .modal-container,
.modal-leave .modal-container {
-webkit-transform: scale(1.1);
transform: scale(1.1);
}