Style static comments, form, and modal

This commit is contained in:
Michael Rose
2016-08-10 15:45:48 -04:00
parent a1c7c022e6
commit fb32147148
3 changed files with 168 additions and 7 deletions

View File

@ -377,6 +377,61 @@ body:hover .visually-hidden button {
}
/*
Modals
========================================================================== */
.show-modal {
overflow: hidden;
position: relative;
&:before {
position: absolute;
content: "";
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999;
background-color: rgba(255, 255, 255, 0.85);
}
.modal {
display: block;
}
}
.modal {
display: none;
position: fixed;
width: 300px;
top: 50%;
left: 50%;
margin-left: -150px;
margin-top: -150px;
min-height: 0;
z-index: 9999;
background: #fff;
border: 1px solid $border-color;
border-radius: $border-radius;
box-shadow: $box-shadow;
&__title {
margin: 0;
padding: 0.5em 1em;
}
&__supporting-text {
padding: 0 1em 0.5em 1em;
}
&__actions {
padding: 0.5em 1em;
border-top: 1px solid $border-color;
}
}
/*
Footnotes
========================================================================== */
@ -402,4 +457,14 @@ a.reversefootnote {
&:hover {
text-decoration: underline;
}
}
}
/*
Required
========================================================================== */
.required {
color: $danger-color;
font-weight: bold;
}