Files
scratch-gui/src/components/modal/modal.css
T
2017-05-25 16:40:13 -04:00

80 lines
1.4 KiB
CSS

@import "../../css/colors.css";
@import "../../css/units.css";
.modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 1000;
background-color: rgba(0, 0, 0, .75);
}
/* @todo: extract to type: full ? */
.full-modal-content {
position: absolute;
outline: none;
overflow-y: auto;
-webkit-overflow-scrolling: 'touch';
user-select: none;
height: 100%;
width: 100%;
display: flex;
}
/*
Modal header has 3 items:
|filter title x|
Use the same width for both side item containers,
so that title remains centered
*/
$sides: 20rem;
.header {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: flex-start;
height: $library-header-height;
box-sizing: border-box;
width: 100%;
background-color: $blue;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 1rem;
font-weight: normal;
}
.header-item {
display: flex;
align-items: center;
padding: 1rem;
text-decoration: none;
color: white;
user-select: none;
}
.header-item-filter {
display: flex;
flex-basis: $sides;
justify-content: flex-start;
}
.header-item-title {
flex-grow: 1;
flex-shrink: 0;
justify-content: center;
user-select: none;
letter-spacing: 0.4px;
cursor: default;
}
.header-item-close {
flex-basis: $sides;
justify-content: flex-end;
}