mjestecko/html/style.css

103 lines
1.6 KiB
CSS
Raw Normal View History

2024-02-10 15:48:22 +00:00
@media (prefers-color-scheme: dark) {
:root {
--bg-color: #111;
--fg-color: #fff;
--link-color: dodgerblue;
}
}
* {
color: var(--fg-color);
text-decoration: none;
}
a {
color: var(--link-color);
}
2023-05-22 09:49:44 +00:00
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
}
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 #bbbbdd;
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 {
2024-02-16 12:01:58 +00:00
border-right: 1px solid #bbbbdd;
border-left: 1px solid #ffffff;
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 {
2024-02-16 12:01:58 +00:00
background-color: #e0e0e0;
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 {
2024-02-16 12:01:58 +00:00
background-color: #e0e0e0;
2023-05-22 09:49:44 +00:00
}
@media only screen and (max-device-width: 480px) {
2024-02-16 12:01:58 +00:00
article, .container {
width: 100%;
}
html {
font-size: 13px;
}
2023-05-22 09:49:44 +00:00
}