infatuated/style.css

95 lines
1.7 KiB
CSS

body {
background: #111;
color: #ddd;
font-family: monospace;
}
* {
transition: all 0.1s;
}
#infatuated-canvas,
#infatuated-msgbox {
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
}
#infatuated-msgbox-title {
font-weight: bold;
}
#infatuated-msgbox-close {
font-weight: bold;
float: right;
width: 1.25em;
text-align: center;
border-radius: 1em;
border: none;
padding: 0;
background: #f700;
color: #ddd;
}
#infatuated-msgbox-close:focus,
#infatuated-msgbox-close:hover {
background: #f70;
color: #000;
cursor: pointer;
}
#infatuated-msgbox-close:focus,
#infatuated-msgbox-close:focus *,
#infatuated-msgbox-buttons button:focus *,
#infatuated-msgbox-buttons button:focus {
/* WHY DOESN'T THIS WORK???? */
outline: none;
}
#infatuated-msgbox {
background: #222;
border: 1px solid #777;
box-shadow: #000 0 0 25px;
border-radius: 0.25em;
padding: 2em;
z-index: 3;
}
#infatuated-overlay {
background: #0007;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 2;
}
#infatuated-msgbox,
#infatuated-overlay {
transition: opacity 0.125s;
}
[data-hidden="true"] {
opacity: 0;
pointer-events: none;
}
#infatuated-msgbox-buttons {
display: table;
position: relative;
margin: 1rem auto 0 auto;
}
#infatuated-msgbox-buttons button {
background: #333;
color: #eee;
border: 1px solid #777;
border-radius: 0.25em;
font-family: monospace;
text-align: center;
}
#infatuated-msgbox-buttons button:focus,
#infatuated-msgbox-buttons button:hover {
background: #444;
box-shadow: #fff7 0 0 0.25em;
}
#infatuated-msgbox-buttons button:not(:last-child) {
margin-right: 0.5rem;
}
#infatuated-canvas {
/*border: 1px solid #777;*/
box-shadow: #7773 0 0 25px;
z-index: 1;
}