badrihippo.thekambattu.rocks/static/style.css

144 lines
2.3 KiB
CSS
Raw Normal View History

2024-02-15 11:36:34 +01:00
@font-face {
font-family: Poppins;
src: url('/static/fonts/Poppins-Regular.otf');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: Poppins;
src: url('/static/fonts/Poppins-Italic.otf');
font-weight: normal;
font-style: italic;
}
@font-face {
font-family: Poppins;
src: url('/static/fonts/Poppins-Bold.otf');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: Poppins;
src: url('/static/fonts/Poppins-Black.otf');
font-weight: 900;
font-style: normal;
}
@font-face {
font-family: Poppins;
src: url('/static/fonts/Poppins-LightItalic.otf');
font-weight: 300;
font-style: italic;
}
2024-02-15 11:36:34 +01:00
body {
font-family: Poppins, sans-serif;
margin: 0;
padding: 0;
}
a {
text-decoration: none;
}
h1 {
font-weight: 900;
}
h1 small {
font-weight: 700;
opacity: 0.6;
}
h2 {
font-weight: 700;
}
h1:has(+ h2),
h2:has(+ h3) {
margin-bottom: 0;
}
h1 + h2,
h2 + h3 {
margin-top: 0;
font-weight: 500;
opacity: 0.6;
}
.site-header {
display: flex;
padding: 0.5em;
background: lightgrey;
2024-03-31 13:56:28 +02:00
column-gap: 0.6rem;
}
.site-header a {
display: flex;
2024-03-31 13:56:28 +02:00
color: grey;
}
.site-header a.primary {
color: black;
}
.site-header a:hover {
color: black;
}
.site-header .header-logo-wrapper img {
height: 1.5em;
width: 1.5em;
margin-right: 0.3em;
2024-02-15 11:36:34 +01:00
}
/*
* Setting the maximum width for posts. This should
* give you not much more than 75 letters per line;
* the reason it's given as 40 is that 'em' is
* literally the width of the letter 'M', which is
* significantly wider than any of the other letters.
* So if we write 'MMMM...' only 40 letters will fit,
* but for ordinary English this is getting us to 70
* or thereabouts.
*/
.main {
max-width: 40em;
margin: auto;
min-height: calc(100vh - 16em);
padding: 1em;
}
./*
* Styling for images. We centre-align them, make sure
* they fit in the screen, and see that they don't
* spill out of the post container.
*/
.main p:has(img) {
text-align: center;
}
.main img {
max-width: min(40em, 100vw);
max-height: 100vh;
margin: 1em auto;
}
.post-list {
padding: 0;
list-style-type: none;
}
.site-footer {
font-weight: 300;
font-style: italic;
max-width: 60em;
margin-left: auto;
margin-right: auto;
margin-top: 4em;
padding: 1em;
2024-02-15 13:30:39 +01:00
text-align: center;
}