szpakowski-lang/css/style.css
2024-12-09 22:22:57 +01:00

220 lines
4.1 KiB
CSS

html {
background: rgb(249,235,213);
font-size: 1em;
line-height: 1.4;
overflow: hidden;
}
#console {
font: 13px monospace, sans-serif;
padding: 5px;
color: black;
background: rgb(255,241,219);
position: fixed;
right: 1px;
bottom: 4em;
width: 30em;
height: 90%;
border: 2px solid darkgray;
border-radius: 10px;
z-index: 0;
}
#help{
position: absolute;
background: rgb(249,235,213);
font: 13px monospace, sans-serif;
padding-left: 5px;
width: 90%;
color: black;
z-index: 2;
scroll-behavior: auto;
overflow: auto;
border: none transparent;
}
#command_input {
background: rgb(255,241,219);
color: black;
outline: none;
width: 90%;
height: 99%;
resize: none;
}
#log{
font: 13px monospace, sans-serif;
padding: 5px;
color: black;
background: rgb(255,241,219);
position: fixed;
right: 1px;
bottom: 0;
width: 40em;
height: 2em;
border: 2px solid darkgray;
border-radius: 10px;
z-index: 0;
}
.multiline {
border: none transparent;
}
.single_line {
border: none transparent;
}
.hidden,
[hidden] {
display: none !important;
}
/*
* Hide only visually, but have it available for screen readers:
* https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
*
* 1. For long content, line feeds are not interpreted as spaces and small width
* causes content to wrap 1 word per line:
* https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
*/
.visually-hidden {
border: 0;
clip: rect(0, 0, 0, 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
position: absolute;
white-space: nowrap;
width: 1px;
/* 1 */
}
/*
* Extends the .visually-hidden class to allow the element
* to be focusable when navigated to via the keyboard:
* https://www.drupal.org/node/897638
*/
.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
clip: auto;
height: auto;
margin: 0;
overflow: visible;
position: static;
white-space: inherit;
width: auto;
}
/*
* Hide visually and from screen readers, but maintain layout
*/
.invisible {
visibility: hidden;
}
/*
* Clearfix: contain floats
*
* The use of `table` rather than `block` is only necessary if using
* `::before` to contain the top-margins of child elements.
*/
.clearfix::before,
.clearfix::after {
content: "";
display: table;
}
.clearfix::after {
clear: both;
}
/* ==========================================================================
EXAMPLE Media Queries for Responsive Design.
These examples override the primary ('mobile first') styles.
Modify as content requires.
========================================================================== */
@media only screen and (min-width: 35em) {
/* Style adjustments for viewports that meet the condition */
}
@media print,
(-webkit-min-device-pixel-ratio: 1.25),
(min-resolution: 1.25dppx),
(min-resolution: 120dpi) {
/* Style adjustments for high resolution devices */
}
/* ==========================================================================
Print styles.
Inlined to avoid the additional HTTP request:
https://www.phpied.com/delay-loading-your-print-css/
========================================================================== */
@media print {
*,
*::before,
*::after {
background: #fff !important;
color: #000 !important;
/* Black prints faster */
box-shadow: none !important;
text-shadow: none !important;
}
a,
a:visited {
text-decoration: underline;
}
a[href]::after {
content: " (" attr(href) ")";
}
abbr[title]::after {
content: " (" attr(title) ")";
}
/*
* Don't show links that are fragment identifiers,
* or use the `javascript:` pseudo protocol
*/
a[href^="#"]::after,
a[href^="javascript:"]::after {
content: "";
}
pre {
white-space: pre-wrap !important;
}
pre,
blockquote {
border: 1px solid #999;
page-break-inside: avoid;
}
tr,
img {
page-break-inside: avoid;
}
p,
h2,
h3 {
orphans: 3;
widows: 3;
}
h2,
h3 {
page-break-after: avoid;
}
}