janw.name/themes/janw/static/css/style.css

211 lines
3 KiB
CSS
Raw Normal View History

2022-11-05 19:00:03 +00:00
@font-face {
font-family: Catamaran;
src: url(/fonts/catamaran.ttf);
}
html {
overflow-y: scroll;
}
body {
background: white;
background-size: cover;
background-attachment: fixed;
font-family: Catamaran, sans-serif;
2023-03-12 13:50:02 +00:00
max-width: 50em;
2022-11-05 19:00:03 +00:00
margin: auto;
2022-11-26 12:58:02 +00:00
padding: 0.5rem;
2022-11-05 19:00:03 +00:00
hyphens: auto;
cursor: default;
}
header {
text-align: center;
}
header .title {
display: block;
font-size: 2em;
}
header .subtitle {
display: block;
font-size: 1.1em;
}
2023-03-12 13:50:02 +00:00
img {
width: 100%;
}
2022-11-05 19:00:03 +00:00
.big-container {
display: block;
padding: 1rem;
}
.sub-container {
display: block;
padding: 0.75rem;
margin: 1rem;
2024-01-11 19:36:18 +00:00
transition: color 0.2s, border-color 0.2s;
border: solid 1px rgb(128, 128, 128);
2023-07-24 13:56:04 +00:00
border-radius: 0.3rem;
2022-11-05 19:00:03 +00:00
}
.sub-container:hover {
2022-12-05 21:59:23 +00:00
color: rgb(54, 63, 54);
2024-01-11 19:36:18 +00:00
border-color: rgb(54, 63, 54);
2022-11-05 19:00:03 +00:00
}
.sub-container .img-container {
border-radius: 0.5rem;
width: 100%;
height: 14rem;
overflow: hidden;
}
.img-container .img-container-child {
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
2024-01-11 19:36:18 +00:00
transition: transform 0.2s;
2022-11-05 19:00:03 +00:00
}
.sub-container:hover .img-container-child {
transform: scale(1.1);
}
hr {
border-width: 0 0 1px 0;
}
p {
text-align: justify;
}
nav ul {
list-style-type: none;
margin: 0;
padding: 0;
}
nav li {
display: inline-block;
padding: 0 0 0 1em;
}
nav a {
text-decoration: none;
}
nav li.active a {
text-decoration: underline;
}
2023-11-05 14:51:37 +00:00
ul.toc {
2022-11-05 19:00:03 +00:00
list-style-type: none;
padding: 0;
}
2023-11-05 14:51:37 +00:00
ul li {
2022-11-05 19:00:03 +00:00
margin: 1em 0;
}
2023-11-05 14:51:37 +00:00
ul.toc > li > .sub-container {
2022-11-05 19:00:03 +00:00
display: flex;
}
2023-11-05 14:51:37 +00:00
ul.toc > li > .sub-container > div {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
2022-11-05 19:00:03 +00:00
}
pre {
border-style: ridge;
border-color: #e0e0e0;
margin: 1em;
padding: 0.5em;
max-width: 100%;
overflow-x: scroll;
}
footer {
margin-top: 4em;
font-size: 0.8em;
transition: opacity 0.2s;
}
2022-11-26 12:58:02 +00:00
@media (max-width: 40rem) {
2022-11-05 19:00:03 +00:00
nav ul {
float: none;
}
nav li {
display: block;
padding: 0;
margin: 0.2em 0;
}
2022-11-26 12:58:02 +00:00
2023-11-05 14:51:37 +00:00
ul.toc > li > .sub-container {
flex-direction: column;
}
ul.toc > li > .sub-container > div {
flex: unset;
2022-11-26 12:58:02 +00:00
}
2022-11-05 19:00:03 +00:00
}
a {
color: #108f10;
transition: color 0.2s;
}
::selection {
color: #ffffff;
background: #108f10;
}
2023-07-24 13:56:04 +00:00
@media (prefers-color-scheme: dark) {
2022-11-05 19:00:03 +00:00
a {
2023-07-24 13:56:04 +00:00
color: rgb(123, 224, 123);
2022-11-05 19:00:03 +00:00
}
body {
background: #0d0d0d;
color: #ebebeb;
}
::selection {
color: #0d0d0d;
background: #5fe35f;
}
pre {
border-color: #5f5f5f;
}
2023-07-24 13:56:04 +00:00
.sub-container {
color: rgb(123, 224, 123);
2024-01-11 19:36:18 +00:00
border-color: rgb(78, 78, 78);
2023-07-24 13:56:04 +00:00
}
.sub-container:hover {
color: rgb(150, 255, 150);
2024-01-11 19:36:18 +00:00
border-color: rgb(120, 180, 120);
2023-07-24 13:56:04 +00:00
}
::selection {
color: #000000;
background: #107f10;
}
2022-11-05 19:00:03 +00:00
}
2023-03-12 13:50:02 +00:00
.screenshot-grid {
display:grid;
grid-template-columns: auto auto auto;
gap: 0.5rem;
}