This repository has been archived on 2020-10-30. You can view files and clone it, but cannot push or open issues or pull requests.
hugo-blog/static/css/custom.css

184 lines
2.9 KiB
CSS
Raw Normal View History

2020-02-02 14:26:03 +00:00
.navigation .navigation-title {
text-transform: none;
}
2020-02-09 17:39:15 +00:00
body.colorscheme-light .avatar img {
border-radius: 31%;
}
@media (prefers-color-scheme: light) {
body.colorscheme-auto .avatar img {
border-radius: 31%;
}
}
2020-02-14 17:58:48 +00:00
.content figure.svg > img {
height: 100%;
}
.content figure.medium > img {
max-width: 30em;
width: 100%;
}
2020-02-14 17:58:48 +00:00
/*
* icons
*/
.content figure.icon-inline {
display: flex;
flex-direction: column;
}
.content figure.icon-inline > figcaption p {
margin: 2rem 0;
text-align: inherit;
font-style: inherit;
font-size: inherit;
}
.content figure.icon-inline > img {
2020-02-14 20:09:21 +00:00
display: block;
height: auto;
width: auto;
2020-02-14 17:58:48 +00:00
}
@media (max-width: 500px) {
.content figure.icon-inline.sm-order-rev > figcaption {
order: 1;
margin-top: -2rem;
}
2020-02-14 20:34:27 +00:00
.content figure.icon-inline > img {
max-width: 6em;
}
2020-02-14 17:58:48 +00:00
.content figure.icon-inline.sm-order-rev > img {
order: 2;
}
}
@media (min-width: 500px) {
.content figure.icon-inline {
flex-direction: row;
align-items: center;
}
.content figure.icon-inline > figcaption p {
margin: 0 0 0 2rem;
}
.content figure.icon-inline.icon-right > figcaption p {
order: 1;
margin: 0 2rem 0 0;
}
.content figure.icon-inline > img {
height: 4em;
2020-02-14 20:09:21 +00:00
margin: 0;
2020-02-14 17:58:48 +00:00
}
2020-02-14 20:34:27 +00:00
.content figure.icon-inline.large > img {
height: 6em;
}
2020-02-14 17:58:48 +00:00
.content figure.icon-inline.icon-right > img {
order: 2;
}
}
2020-02-14 19:27:04 +00:00
.content figure.icon-inline.flowmm-model-thumb > img {
display: block;
height: auto;
width: 100%;
max-width: 250px;
}
@media (min-width: 500px) {
.content figure.icon-inline.flowmm-model-thumb > img {
height: 12em;
width: auto;
}
}
2020-02-14 17:58:48 +00:00
/*
* logos
*/
.content figure.logo {
height: 1.6em;
margin: 4rem 0;
}
2020-02-14 20:34:27 +00:00
.content figure.logo.large {
height: 7em;
}
2020-02-14 17:58:48 +00:00
.content figure.logo > img {
display: block;
height: 100%;
}
@media (min-width: 500px) {
.content figure.logo {
height: 2.6em;
}
2020-02-14 20:34:27 +00:00
.content figure.logo.large {
height: 8em;
}
2020-02-14 17:58:48 +00:00
.content figure.logo.nuxt {
height: 1.6em;
}
}
.wp-icon > img {
opacity: 0.7;
}
@media (max-width: 500px) {
.content figure.icon-inline.wp-icon > img {
display: none;
}
}
2020-02-14 22:28:49 +00:00
/* TODO do this properly using a shortcode */
.cheat-october-list {
display: none;
}
.cheat-october-list + ul {
margin-top: 0;
margin-bottom: 0;
padding-left: 0;
}
.cheat-october-list + ul > li {
list-style: none;
}
.cheat-october-list + ul > li > p:first-child {
position: relative;
margin-top: 0;
padding-left: 40px;
}
.cheat-october-list + ul > li > p:not(:first-child) {
padding-left: 40px;
}
.cheat-october-list + ul > li > p:first-child::before {
/* list-style-image: url(/images/logos/october-icon.png); */
content: "";
position: absolute;
display: block;
top: 0.2em;
bottom: 0.2em;
left: 0;
right: 0;
background-size: contain;
background-repeat: no-repeat;
background-image: url(/images/logos/october-icon.png);
}