rachel.cafe/assets/css/main.scss

189 lines
2.5 KiB
SCSS
Raw Normal View History

2022-04-01 20:11:04 +02:00
---
---
2022-12-09 20:02:28 +01:00
.centercol {
counter-reset: heading;
}
2023-01-27 17:38:22 +01:00
h1:not(.irrelevant *):before {
2022-12-09 20:02:28 +01:00
content: counter(heading)" ";
counter-increment: heading;
}
2023-01-27 17:38:22 +01:00
h1:not(.irrelevant *) {
2022-12-09 20:02:28 +01:00
counter-reset: subheading;
}
2023-01-27 17:38:22 +01:00
h2:not(.irrelevant *):before {
2022-12-09 20:02:28 +01:00
content: counter(heading)"." counter(subheading)" ";
counter-increment: subheading;
}
2023-01-27 17:38:22 +01:00
h2:not(.irrelevant *) {
2022-12-09 20:37:13 +01:00
counter-reset: subsubheading;
}
2023-01-27 17:38:22 +01:00
h3:not(.irrelevant *):before {
2022-12-09 20:37:13 +01:00
content: counter(heading)"." counter(subheading)"." counter(subsubheading)" ";
counter-increment: subsubheading;
}
2022-12-09 20:02:28 +01:00
@font-face {
font-family: CMUSerif;
src: url(/assets/css/fonts/cmunrm.ttf);
font-weight: heavy;
}
@font-face {
font-family: CMUMono;
src: url(/assets/css/fonts/cmuntt.ttf);
}
body {
2022-12-09 20:02:28 +01:00
font-family: CMUSerif;
}
2022-01-27 19:44:11 +01:00
img {
max-width: 100%;
}
figcaption {
text-align: center;
}
2022-10-08 15:13:30 +02:00
.tcenter {
text-align: center;
}
pre code {
display: block;
2022-12-09 20:02:28 +01:00
padding: 10px;
border-top: 2px dotted gray;
border-bottom: 2px dotted gray;
}
2022-01-27 20:06:52 +01:00
table, th, td {
2022-12-09 20:02:28 +01:00
border: 1px solid black;
2022-01-27 20:06:52 +01:00
}
th, td {
padding: 5px;
}
.bigger {
font-size: 1.2em;
}
.bit_bigger {
font-size: 1.1em;
}
a {
text-decoration: none;
}
a:link {
2022-12-09 20:02:28 +01:00
color: blue;
}
a:visited {
2022-12-09 20:02:28 +01:00
color: violet;
}
a:hover {
2022-12-09 20:02:28 +01:00
color: cyan;
}
2022-12-09 20:02:28 +01:00
.sitetitle a, {
color: black
}
2023-03-04 00:20:48 +01:00
.cup {
max-height: 1.5em;
height: 1.5em;
margin-left: 0.5em;
}
.sitetitle {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
}
2022-12-09 20:02:28 +01:00
h1,h2,h3,h4,h5,h6 {
text-align: center;
}
2022-01-27 20:36:06 +01:00
.right {
text-align: right;
float: right;
}
2023-01-27 17:38:22 +01:00
.aba {
display: flex;
flex-direction: row;
align-items: top;
justify-content: center;
}
.rimg {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
width: 200%;
max-width: 200%;
}
@media only screen and (max-width : 850px) {
.aba {
display: flex;
flex-direction: column;
align-items: center;
justify-content: top;
}
.rimg {
margin: 1em 0 0 0;
width: 70%;
max-width: 70%;
}
}
2022-01-27 20:36:06 +01:00
.post_listing {
margin-top: 40px;
margin-bottom: 40px;
}
nav ul {
list-style: none;
padding: 0;
margin: 0;
text-align: center;
}
2023-03-04 00:20:48 +01:00
nav ul li {
display: inline;
margin-right: 1em;
white-space: nowrap;
}
hr {
2022-12-09 20:02:28 +01:00
color: gray;
border: 0;
border-bottom: 1px dashed;
}
2022-12-10 22:52:39 +01:00
table {
margin-left: auto;
margin-right: auto;
}
.centercol {
2022-01-27 20:09:23 +01:00
width: 50em;
max-width: 94vw;
display: block;
margin: auto;
}