OpenTerminal/public/styles/main.css

115 lines
1.7 KiB
CSS

:root {
--colour: #a6e3a1;
--bgcolour: #1e1e2e;
}
body {
margin: 0;
padding: 0;
color: var(--colour);
background-color: var(--bgcolour);
font-family: monospace;
font-size: 12px;
}
main {
margin: 1rem 1rem 0 1rem;
border: 1px solid var(--colour);
}
pre#content {
height: calc(100vh - 5rem);
margin: 0;
padding: 1rem;
overflow-x: hidden;
overflow-y: scroll;
white-space: break-spaces;
line-break: anywhere;
text-shadow: 0 0 1em, 0 0 3em;
}
div#caret {
width: .5em;
height: .9em;
display: inline-block;
background: var(--colour);
transform: translateY(1px);
animation: linear .5s infinite forwards caret-blink;
}
@keyframes caret-blink {
from {
opacity: 1;
}
to {
opacity: 0;
}
}
footer {
height: 18px;
padding: .5em 2em;
display: flex;
gap: 1em;
align-items: center;
}
footer ul {
width: 100%;
margin: 0;
padding: 0;
display: flex;
justify-content: space-between;
}
footer li {
list-style: none;
opacity: .5;
}
footer li:hover {
text-shadow: 0 0 1em, 0 0 3em;
opacity: 1;
}
footer a {
color: var(--colour);
text-decoration: none;
}
div#overlay {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background-image: linear-gradient(180deg, rgba(0,0,0,0) 15%, rgb(0, 0, 0) 40%, rgb(0, 0, 0) 60%, rgba(0,0,0,0) 85%);
background-size: 100vw .2em;
background-repeat: repeat;
opacity: .5;
pointer-events: none;
animation: linear .05s infinite alternate overlay-flicker;
mix-blend-mode: overlay;
}
@keyframes overlay-flicker {
from {
opacity: .5;
}
to {
opacity: .6;
}
}
#mobile-input {
position: absolute;
top: 1.2em;
left: 1.2em;
width: calc(100vw - 3em);
height: calc(100vh - 3.9em);
opacity: 0;
user-select: none;
pointer-events: none;
}