blog/themes/chosto/static/css/custom.css

68 lines
1.6 KiB
CSS
Raw Normal View History

2022-11-06 22:58:22 +01:00
@font-face {
font-family: 'Nunito';
src:
url('../font/Nunito-Regular.woff2') format('woff2'),
url('../font/Nunito-Regular.woff') format('woff'),
url('../font/Nunito-Regular.ttf') format('truetype');
2022-11-06 22:58:22 +01:00
font-weight: normal;
font-style: normal;
font-display: swap;
}
2023-07-04 15:39:49 +02:00
/* Trick which changes nothing visually but makes the footnote anchors
virtually 40% lower. Otherwise the fixed navbar is just above the
footnote link when going back from the bottom. That way, either
footnotes or anchors are in the middle of the page, making
navigation easier */
sup[id*=fn] {
padding-top: 40% !important;
margin-top: -40% !important;
}
li[id*=fn] {
padding-top: 40% !important;
margin-top: -40% !important;
}
/* Useful to force cards to have the same height */
.has-equal-height {
height: 100%;
display: flex;
flex-direction: column;
}
2021-11-14 23:41:41 +01:00
/* Justify all content but not titles nor figure captions */
p:not(.title, .subtitle, figcaption p) {
2021-11-14 23:41:41 +01:00
text-align: justify;
2022-11-06 22:58:22 +01:00
}
/* New font is "smaller" in feeling */
2022-11-06 22:58:22 +01:00
.navbar-dropdown {
font-size: 1rem;
2022-11-15 00:08:14 +01:00
}
figcaption h4, figcaption p {
2022-11-15 00:08:14 +01:00
margin-top: 10px;
font-size: 1rem !important;
2022-11-18 01:18:06 +01:00
font-weight: 400 !important;
2023-07-04 17:20:03 +02:00
font-style: normal;
line-height: 1.5 !important;
color: dimgray;
2022-11-15 00:08:14 +01:00
}
figure img {
filter: drop-shadow(4px 4px 5px grey)
}
.menu-label {
text-justify: none;
}
/* Workaround for horizontal scrollbar,
probably because I'm messing with containers,
sections and columns, but I do not understand
CSS enough to fix it properly.
See https://github.com/jgthms/bulma/issues/449 */
body {
overflow-x: hidden;
}