Sort styles using "Sort CSS" VSCode extension

This commit is contained in:
daudix
2024-04-03 02:19:54 +03:00
parent c0a43b83f9
commit 0fa24c2d7c
13 changed files with 171 additions and 171 deletions

View File

@ -5,12 +5,12 @@
}
html {
font-size: 16px;
overflow: hidden; // Disable scroll of html, scroll body instead
scroll-behavior: smooth;
// scrollbar-color: var(--primary-color) transparent;
accent-color: var(--primary-color);
font-size: 16px;
overflow-wrap: break-word;
overflow: hidden; // Disable scroll of html, scroll body instead
// Smaller font size on mobile
// @media only screen and (max-width: 480px) {
@ -25,29 +25,29 @@ body {
}
body {
overflow: scroll; // Scroll body instead of html
height: 100vh;
font-family: var(--font-system);
line-height: 1.6;
color: var(--fg-color);
background: var(--bg-color);
// Put footer at the bottom for short pages, such as the 404
display: grid;
min-height: 100vh;
grid-template-rows: auto minmax(auto, 1fr) auto; // Header, stuff, footer
background: var(--bg-color);
height: 100vh;
min-height: 100vh;
overflow: scroll; // Scroll body instead of html
color: var(--fg-color);
line-height: 1.6;
font-family: var(--font-system);
}
// Style text selection to use primary color
::selection {
color: var(--fg-color);
background-color: var(--primary-color);
color: var(--fg-color);
}
// Make focused anchor not get covered by nav,
// and flash it with primary color when jumping to it
:target:not(#main) {
scroll-margin-top: 15vh;
animation: var(--transition-long) 1s highlight-in-out;
scroll-margin-top: 15vh;
color: var(--primary-color);
text-shadow: var(--primary-color-alpha) 0 0 4px, var(--primary-color) 0 0 12px;
@ -64,8 +64,8 @@ body {
// LAYOUT
.container {
margin-left: auto;
margin-right: auto;
margin-left: auto;
width: min(var(--content-width), 90%);
}
@ -75,11 +75,11 @@ h3,
h4,
h5,
h6 {
font-family: var(--font-serif);
font-weight: lighter;
letter-spacing: -0.05em;
line-height: 1.25;
margin: 3rem 0 1rem;
font-weight: lighter;
line-height: 1.25;
font-family: var(--font-serif);
letter-spacing: -0.05em;
.zola-anchor {
display: none;
@ -88,8 +88,8 @@ h6 {
&:hover .zola-anchor {
display: inline-block;
text-decoration: none;
visibility: visible;
text-decoration: none;
}
}
@ -110,8 +110,8 @@ a {
font-weight: bold;
&:hover {
text-decoration: underline wavy;
-webkit-text-decoration: underline wavy;
text-decoration: underline wavy;
}
}
@ -124,22 +124,22 @@ dl {
padding: 0;
dt {
padding: 0;
margin-top: 1rem;
font-size: 1rem;
padding: 0;
font-weight: bold;
font-size: 1rem;
}
dd {
padding: 0;
margin-bottom: 1rem;
padding: 0;
}
}
hr {
margin: 2rem auto;
border: 0;
border-top: 1px solid var(--fg-muted-2);
margin: 2rem auto;
width: 100%;
}
@ -148,11 +148,11 @@ hr {
}
blockquote {
margin: 0;
border-left: 0.25rem solid var(--primary-color);
border-radius: 0.2rem;
color: var(--fg-muted-5);
margin: 0;
padding: 0 0.75rem;
color: var(--fg-muted-5);
& & {
border-radius: 0;
@ -160,24 +160,24 @@ blockquote {
}
abbr[title] {
-webkit-text-decoration: underline dotted;
cursor: help;
text-decoration: underline dotted;
-webkit-text-decoration: underline dotted;
}
aside {
background-color: var(--primary-color-alpha);
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight);
float: right;
margin-inline-start: 1rem;
box-shadow: var(--edge-highlight);
border-radius: var(--rounded-corner);
background-color: var(--primary-color-alpha);
padding: 1rem;
width: 30%;
@media only screen and (max-width: 720px) {
width: 100%;
float: none;
margin-inline-start: 0;
width: 100%;
}
}
@ -189,44 +189,44 @@ kbd {
}
code:not(pre code) {
background-color: var(--fg-muted-2);
border-radius: var(--rounded-corner-small);
box-shadow: var(--edge-highlight);
color: var(--red-fg);
border-radius: var(--rounded-corner-small);
background-color: var(--fg-muted-2);
padding: 0.125rem 0.375rem;
color: var(--red-fg);
}
pre {
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight), var(--shadow);
line-height: normal; // Unset line height
margin: 1rem 0 1rem;
box-shadow: var(--edge-highlight), var(--shadow);
border-radius: var(--rounded-corner);
padding: 1rem;
max-width: 100vw;
overflow: auto;
padding: 1rem;
line-height: normal; // Unset line height
table td {
padding: 0;
border: none;
padding: 0;
}
// The line number cells
table td:nth-of-type(1) {
text-align: center;
user-select: none;
text-align: center;
}
mark {
background-color: var(--fg-muted-1);
border-radius: 0; // Unset code block border radius
color: var(--fg-color); // Unset mark color from primary color to text color
display: block;
border-radius: 0; // Unset code block border radius
background-color: var(--fg-muted-1);
padding: 0; // Unset mark padding
color: var(--fg-color); // Unset mark color from primary color to text color
}
table {
width: 100%;
border-collapse: collapse;
width: 100%;
}
// The line numbers already provide some kind of left/right padding
@ -236,42 +236,42 @@ pre {
}
kbd {
background-color: var(--fg-muted-2);
border-radius: var(--rounded-corner-small);
box-shadow: inset 0 -2px 0 var(--fg-muted-2), 0 -1px 0 var(--fg-muted-3);
cursor: pointer;
display: inline-block;
transition: var(--transition);
cursor: pointer;
box-shadow: inset 0 -2px 0 var(--fg-muted-2), 0 -1px 0 var(--fg-muted-3);
border-radius: var(--rounded-corner-small);
background-color: var(--fg-muted-2);
padding: 0.125rem 0.375rem;
font-size: 0.8rem;
line-height: normal;
padding: 0.125rem 0.375rem;
transition: var(--transition);
// Small nice thingy, keys can be pressed!
&:active {
background-color: var(--fg-muted-3);
box-shadow: inset 0 1px 0 var(--fg-muted-2);
transform: translateY(2px);
box-shadow: inset 0 1px 0 var(--fg-muted-2);
background-color: var(--fg-muted-3);
}
}
mark {
background-color: var(--primary-color-alpha);
border-radius: var(--rounded-corner-small);
box-shadow: var(--edge-highlight);
color: var(--primary-color);
border-radius: var(--rounded-corner-small);
background-color: var(--primary-color-alpha);
padding: 0.125rem 0.375rem;
color: var(--primary-color);
}
figcaption {
display: block;
text-align: center;
color: var(--fg-muted-4);
font-size: 0.8rem;
text-align: center;
}
details {
background-color: var(--fg-muted-1);
border-radius: var(--rounded-corner);
background-color: var(--fg-muted-1);
padding: 1rem;
&>summary {
@ -281,12 +281,12 @@ details {
// TABLES
table {
border-collapse: collapse;
border-radius: var(--rounded-corner);
box-shadow: var(--edge-highlight);
overflow: hidden;
table-layout: fixed;
border-radius: var(--rounded-corner);
border-collapse: collapse;
width: 100%;
table-layout: fixed;
overflow: hidden;
th {
font-weight: bold;