Modals.css•1.51 kB
/* The Modal (background) */
.modal {
display: none;
/* Hidden by default */
position: fixed;
/* Stay in place */
z-index: 1;
/* Sit on top */
left: 0;
top: 0;
width: 100%;
/* Full width */
height: 100%;
/* Full height */
overflow: auto;
/* Enable scroll if needed */
background-color: black;
/* Fallback color */
background-color: rgba(0, 0, 0, 0.4);
/* Black w/ opacity */
text-align: left;
color: black; }
/* Modal Content/Box */
.CommModal-content {
font-family: "Work Sans", sans-serif;
background-color: #fefefe;
margin: 15% auto;
/* 15% from the top and centered */
padding: 20px;
border: 1px solid #888;
width: 80%;
/* Could be more or less, depending on screen size */ }
.CommModal-content ul {
padding: 20px; }
.CommModal-content p {
font-size: 1.5em; }
/* Modal Content/Box */
.GameModal-content {
font-family: "Work Sans", sans-serif;
background-color: #fefefe;
margin: 15% auto;
/* 15% from the top and centered */
padding: 20px;
border: 1px solid #888;
width: 80%;
/* Could be more or less, depending on screen size */ }
.GameModal-content__title {
font-size: 1.5em; }
/* The Close Button */
.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold; }
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer; }
@media (max-width: 440px) {
.address {
font-size: 0.75em; } }
@media (max-width: 440px) {
code {
font-size: 0.75em; } }