mjestecko/html/style.css

116 lines
1.9 KiB
CSS
Raw Normal View History

@media (prefers-color-scheme: dark) {
2024-02-10 15:48:22 +00:00
:root {
--bg-color: #111;
--fg-color: #fff;
--hover-color: #e0e0e0;
2024-02-10 15:48:22 +00:00
--link-color: dodgerblue;
--nav-border-color: #bbbbdd;
2024-02-10 15:48:22 +00:00
}
}
@media only screen and (max-device-width: 480px) {
article, .container {
width: 100%;
}
html {
font-size: 13px;
}
}
* {
2024-02-10 15:48:22 +00:00
color: var(--fg-color);
text-decoration: none;
}
a {
2024-02-10 15:48:22 +00:00
color: var(--link-color);
}
html {
2024-02-16 12:01:58 +00:00
font-size: 20px;
font-family: "Charter", "Georgia", "Times New Roman", serif;
2023-05-22 09:49:44 +00:00
}
2023-05-22 09:49:44 +00:00
body {
2024-02-16 12:01:58 +00:00
background-color: var(--bg-color);
line-height: 1.3;
2023-05-22 09:49:44 +00:00
}
article, .container {
2024-02-16 12:01:58 +00:00
max-width: 800px;
margin: auto;
2023-05-22 09:49:44 +00:00
}
h1,h2,h3,h4 {
2024-02-16 12:01:58 +00:00
font-family: arial, sans;
2023-05-22 09:49:44 +00:00
}
h2 {
2024-02-16 12:01:58 +00:00
text-align: center;
margin-bottom: 1em;
2023-05-22 09:49:44 +00:00
}
h3 {
2024-02-16 12:01:58 +00:00
font-family: arial, sans;
margin: 1.3em 0 0.9em;
2023-05-22 09:49:44 +00:00
}
b {
2024-02-16 12:01:58 +00:00
font-family: arial, sans;
font-weight: normal;
font-size: 0.8em;
2023-05-22 09:49:44 +00:00
}
pre, p {
2024-02-16 12:01:58 +00:00
margin: 0.9em 0px 0.9em;
2023-05-22 09:49:44 +00:00
}
pre, code {
2024-02-16 12:01:58 +00:00
background-color: var(--bg-color);
line-height: normal;
overflow: auto;
font-size: 0.8em;
2023-05-22 09:49:44 +00:00
}
pre {
2024-02-16 12:01:58 +00:00
padding: 0.5em 0.5em;
border-radius: 4px;
2023-05-22 09:49:44 +00:00
}
2023-05-26 09:00:48 +00:00
nav ul {
2024-02-16 12:01:58 +00:00
padding-left: 0;
border-radius: 4px;
list-style: none;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
font-size: 0.8em;
background-color: var(--bg-color);
border: 1px solid var(--nav-border-color);
2024-02-23 17:52:11 +00:00
overflow: scroll;
2023-05-22 09:49:44 +00:00
}
2023-05-26 09:00:48 +00:00
nav li:first-child {
2024-02-16 12:01:58 +00:00
border-left: none;
2023-05-22 09:49:44 +00:00
}
2023-05-26 09:00:48 +00:00
nav li {
border-right: 1px solid var(--nav-border-color);
border-left: 1px solid var(--fg-color);
2023-05-22 09:49:44 +00:00
}
2023-05-26 09:00:48 +00:00
nav a {
2024-02-16 12:01:58 +00:00
padding: 0.4em 1em;
display: inline-block;
text-decoration: none;
font-family: arial, sans;
2023-05-22 09:49:44 +00:00
}
2023-05-26 09:00:48 +00:00
nav a:hover {
background-color: var(--hover-color);
2023-05-22 09:49:44 +00:00
}
2023-05-26 09:00:48 +00:00
nav a:link {
2024-02-16 12:01:58 +00:00
color: var(--link-color);
2023-05-22 09:49:44 +00:00
}
2023-05-26 09:00:48 +00:00
nav a:visited {
2024-02-16 12:01:58 +00:00
color: var(--link-color);
2023-05-22 09:49:44 +00:00
}
2023-05-26 09:00:48 +00:00
nav a.here {
background-color: var(--hover-color);
2023-05-22 09:49:44 +00:00
}
2024-02-23 17:52:11 +00:00
img {
2024-02-23 17:52:11 +00:00
max-width: 100%;
height: auto;
width: auto;
2024-02-23 18:18:15 +00:00
margin-left: auto;
margin-right: auto;
display: block;
2024-02-23 17:52:11 +00:00
}