p5.js-web-editor/client/styles/components/_overlay.scss

59 lines
953 B
SCSS
Raw Normal View History

.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 9999;
background-color: rgba(0, 0, 0, 0.5);
overflow-y: hidden;
}
.overlay__content {
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.overlay__body {
@extend %modal;
display: flex;
flex-wrap: wrap;
flex-flow: column;
2019-03-26 19:51:55 +00:00
max-height: 80%;
max-width: 65%;
position: relative;
}
.overlay__header {
display: flex;
justify-content: space-between;
2017-11-14 20:27:00 +00:00
padding: #{20 / $base-font-size}rem;
flex: 1 0 auto;
}
.overlay__actions {
display: flex;
}
2017-10-30 18:38:41 +00:00
.overlay__title {
font-size: #{21 / $base-font-size}rem;
}
.overlay__close-button {
@include icon();
padding: #{3 / $base-font-size}rem 0 #{3 / $base-font-size}rem #{10 / $base-font-size}rem;
}
/* Fixed height overlay */
.overlay--is-fixed-height .overlay__body {
height: 80vh;
}
.overlay--is-fixed-height .overlay__header {
flex: 0;
}