feat: Support aside element, tweak media queries

This commit is contained in:
daudix
2024-02-01 20:33:34 +03:00
parent 14fd1a6dc3
commit 4e37f12afd
4 changed files with 32 additions and 5 deletions

View File

@ -13,7 +13,7 @@ html {
}
// Smaller font size on mobile
// @media screen and (max-width: 480px) {
// @media only screen and (max-width: 480px) {
// html {
// font-size: 14px;
// }
@ -173,6 +173,24 @@ abbr {
text-decoration: underline dotted;
}
aside {
background-color: var(--primary-color-alpha);
border-radius: var(--rounded-corner);
box-shadow: var(--shadow);
width: 30%;
padding: 1rem;
margin-inline-start: 1rem;
float: right;
@media only screen and (max-width: 720px) {
& {
width: 100%;
float: none;
margin-inline-start: 0;
}
}
}
// CODE
pre,
code,
@ -252,8 +270,6 @@ mark {
}
figcaption {
margin-top: -1rem;
margin-bottom: 2rem;
display: block;
text-align: center;
color: var(--fg-muted-4);