Files
edx-platform/cms/static/sass/programs/_modals.scss
2016-08-02 18:57:13 -04:00

78 lines
1.3 KiB
SCSS

// ------------------------------
// Programs: Modals
// About: styling for modals.
.modal-window-overlay {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
background-color: palette(grayscale, dark);
opacity: 0.5;
z-index: 1000;
}
.modal-window {
position: absolute;
background-color: $black;
width: 80%;
left: 10%;
top: 40%;
z-index: 1001;
}
.modal-content {
margin: 5px;
padding: 20px;
background-color: palette(grayscale, dark);
border-top: 5px solid palette(warning, accent);
.copy {
color: $white;
}
.emphasized {
color: $white;
font-weight: font-weight(bold);
}
}
.modal-actions {
padding: 10px 20px;
.btn {
color: palette(grayscale, back);
}
.btn-brand {
background: palette(warning, back);
color: palette(grayscale, dark);
border-color: palette(warning, accent);
&:hover,
&:focus,
&:active {
background: palette(warning, back);
border-color: palette(warning, accent);
}
}
.btn-neutral {
background: transparent;
border-color: transparent;
&:hover,
&:focus,
&:active {
border-color: palette(grayscale, back)
}
}
}
@include breakpoint( $bp-screen-sm ) {
.modal-window {
width: 440px;
left: calc( 50% - 220px );
}
}