🎨 refactor: improve code format; set tabs = 4 spaces
parent
50280e65a9
commit
7a1bb1d04c
@ -1,24 +1,26 @@
|
||||
.archive {
|
||||
.listing-title {
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
.listing-title {
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.listing-item {
|
||||
padding: 0.2rem 1rem;
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
|
||||
.listing-item {
|
||||
padding: 0.2rem 1rem;
|
||||
display: flex;
|
||||
gap: 1rem;
|
||||
.post-time {
|
||||
width: 4rem;
|
||||
.date {
|
||||
color: var(--meta-color);
|
||||
}
|
||||
.post-time {
|
||||
width: 4rem;
|
||||
|
||||
.date {
|
||||
color: var(--meta-color);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
ul {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
|
@ -1,100 +1,100 @@
|
||||
code {
|
||||
background-color: var(--bg-1);
|
||||
padding: 0.1em 0.2em;
|
||||
font-family: var(--code-font);
|
||||
font-weight: 350;
|
||||
font-size: 0.92em;
|
||||
background-color: var(--bg-1);
|
||||
padding: 0.1em 0.2em;
|
||||
font-family: var(--code-font);
|
||||
font-weight: 350;
|
||||
font-size: 0.92em;
|
||||
}
|
||||
|
||||
pre {
|
||||
border: 1px solid var(--border-color);
|
||||
line-height: 1.4;
|
||||
overflow-x: auto;
|
||||
padding: 1em;
|
||||
position: relative;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
border: 1px solid var(--border-color);
|
||||
line-height: 1.4;
|
||||
overflow-x: auto;
|
||||
padding: 1em;
|
||||
position: relative;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
pre code {
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
background-color: transparent;
|
||||
color: inherit;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
pre code[class*="language-"] {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
|
||||
pre code[class*="language-"]::before {
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.025rem;
|
||||
padding: 0.1rem 0.5rem;
|
||||
position: absolute;
|
||||
right: 0.1rem;
|
||||
margin-top: 0.1rem;
|
||||
text-align: right;
|
||||
text-transform: uppercase;
|
||||
top: 0;
|
||||
font-size: 12px;
|
||||
letter-spacing: 0.025rem;
|
||||
padding: 0.1rem 0.5rem;
|
||||
position: absolute;
|
||||
right: 0.1rem;
|
||||
margin-top: 0.1rem;
|
||||
text-align: right;
|
||||
text-transform: uppercase;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
pre code[class="language-javaScript"]::before,
|
||||
pre code[class="language-js"]::before {
|
||||
content: "js";
|
||||
background: #f7df1e;
|
||||
color: black;
|
||||
content: "js";
|
||||
background: #f7df1e;
|
||||
color: black;
|
||||
}
|
||||
|
||||
pre code[class*="language-yml"]::before,
|
||||
pre code[class*="language-yaml"]::before {
|
||||
content: "yaml";
|
||||
background: #C51117;
|
||||
color: white;
|
||||
content: "yaml";
|
||||
background: #C51117;
|
||||
color: white;
|
||||
}
|
||||
|
||||
pre code[class*="language-shell"]::before,
|
||||
pre code[class*="language-bash"]::before,
|
||||
pre code[class*="language-sh"]::before {
|
||||
content: "shell";
|
||||
background: #33A841;
|
||||
color: white;
|
||||
content: "shell";
|
||||
background: #33A841;
|
||||
color: white;
|
||||
}
|
||||
|
||||
pre code[class*="language-json"]::before {
|
||||
content: "json";
|
||||
color: black;
|
||||
background: whitesmoke;
|
||||
content: "json";
|
||||
color: black;
|
||||
background: whitesmoke;
|
||||
}
|
||||
|
||||
pre code[class*="language-python"]::before,
|
||||
pre code[class*="language-py"]::before {
|
||||
content: "python";
|
||||
background: #306698;
|
||||
color: #ffd343;
|
||||
content: "python";
|
||||
background: #306698;
|
||||
color: #ffd343;
|
||||
}
|
||||
|
||||
pre code[class*="language-css"]::before {
|
||||
content: "css";
|
||||
background: #215AEF;
|
||||
color: white;
|
||||
content: "css";
|
||||
background: #215AEF;
|
||||
color: white;
|
||||
}
|
||||
|
||||
pre code[class*="language-go"]::before {
|
||||
content: "Go";
|
||||
background: #00ADD8;
|
||||
color: white;
|
||||
content: "Go";
|
||||
background: #00ADD8;
|
||||
color: white;
|
||||
}
|
||||
|
||||
pre code[class*="language-md"]::before,
|
||||
pre code[class*="language-md"]::before {
|
||||
content: "Markdown";
|
||||
background: #159ADC;
|
||||
color: white;
|
||||
content: "Markdown";
|
||||
background: #159ADC;
|
||||
color: white;
|
||||
}
|
||||
|
||||
pre code[class*="language-rust"]::before,
|
||||
pre code[class*="language-rs"]::before {
|
||||
content: "rust";
|
||||
background: #fff8f6;
|
||||
color: #ff4647;
|
||||
content: "rust";
|
||||
background: #fff8f6;
|
||||
color: #ff4647;
|
||||
}
|
||||
|
@ -1,70 +1,68 @@
|
||||
footer {
|
||||
margin-top: auto;
|
||||
margin-bottom: 1.4rem;
|
||||
font-family: var(--post-font-family);
|
||||
margin-top: auto;
|
||||
margin-bottom: 1.4rem;
|
||||
font-family: var(--post-font-family);
|
||||
}
|
||||
|
||||
footer section {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0rem;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 0rem;
|
||||
}
|
||||
|
||||
footer nav {
|
||||
display: flex;
|
||||
gap: 0rem;
|
||||
margin: 0 0rem;
|
||||
display: flex;
|
||||
gap: 0rem;
|
||||
margin: 0 0rem;
|
||||
}
|
||||
|
||||
.socials {
|
||||
justify-content: center;
|
||||
/* flex-child */
|
||||
flex-grow: 0;
|
||||
/* flex-container */
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
justify-content: center;
|
||||
flex-grow: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.social {
|
||||
background-image: unset;
|
||||
padding: 0.5vmin;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
background-image: unset;
|
||||
padding: 0.5vmin;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.social>img {
|
||||
color: #000000;
|
||||
aspect-ratio: 1/1;
|
||||
width: 1.5rem;
|
||||
height: auto;
|
||||
.social > img {
|
||||
color: #000000;
|
||||
aspect-ratio: 1/1;
|
||||
width: 1.5rem;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.social {
|
||||
&:hover {
|
||||
&>img {
|
||||
filter: invert(1);
|
||||
&:hover {
|
||||
& > img {
|
||||
filter: invert(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
.social {
|
||||
&:hover {
|
||||
&>img {
|
||||
filter: invert(0);
|
||||
}
|
||||
}
|
||||
.social {
|
||||
&:hover {
|
||||
& > img {
|
||||
filter: invert(0);
|
||||
}
|
||||
}
|
||||
|
||||
&>img {
|
||||
filter: invert(1);
|
||||
& > img {
|
||||
filter: invert(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.credits {
|
||||
font-size: 0.88rem;
|
||||
color: var(--meta-color);
|
||||
font-size: 0.88rem;
|
||||
color: var(--meta-color);
|
||||
}
|
||||
|
@ -1,126 +1,129 @@
|
||||
header {
|
||||
width: 100%;
|
||||
.main {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
width: 100%;
|
||||
|
||||
.main {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-between;
|
||||
align-items: flex-start;
|
||||
gap: 12px;
|
||||
font-size: 1.5rem;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
.page-header {
|
||||
font-size: 3em;
|
||||
line-height: 100%;
|
||||
font-family: var(--header-font);
|
||||
margin: 4rem 0px 1rem 0px;
|
||||
font-size: 3em;
|
||||
line-height: 100%;
|
||||
font-family: var(--header-font);
|
||||
margin: 4rem 0px 1rem 0px;
|
||||
}
|
||||
|
||||
.centered-header {
|
||||
font-family: var(--header-font);
|
||||
position: absolute;
|
||||
top: 40%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
font-size: 1em;
|
||||
font-family: var(--header-font);
|
||||
position: absolute;
|
||||
top: 40%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
max-width: var(--max-layout-width);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 1em 0;
|
||||
margin: 0 auto;
|
||||
max-width: var(--max-layout-width);
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 1em 0;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
.nav-navs {
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
img {
|
||||
border: none;
|
||||
}
|
||||
display: flex;
|
||||
gap: 5px;
|
||||
|
||||
img {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
font-size: 1em;
|
||||
font-weight: 340;
|
||||
text-decoration: none;
|
||||
justify-content: right;
|
||||
color: var(--text-color);
|
||||
padding: 0.66rem;
|
||||
font-size: 1em;
|
||||
font-weight: 340;
|
||||
text-decoration: none;
|
||||
justify-content: right;
|
||||
color: var(--text-color);
|
||||
padding: 0.66rem;
|
||||
}
|
||||
|
||||
.home-title {
|
||||
font-size: 1.7em;
|
||||
font-weight: 450;
|
||||
padding: 0.12rem;
|
||||
margin-left: -0.12rem;
|
||||
border: none;
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
font-size: 1.7em;
|
||||
font-weight: 450;
|
||||
padding: 0.12rem;
|
||||
margin-left: -0.12rem;
|
||||
border: none;
|
||||
color: var(--primary-color);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.meta {
|
||||
color: var(--meta-color);
|
||||
letter-spacing: -0.5px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 300;
|
||||
padding: 0;
|
||||
padding-top: 0.7vmin;
|
||||
padding-bottom: 3vmin;
|
||||
line-height: 1.4rem;
|
||||
|
||||
a {
|
||||
color: var(--meta-color);
|
||||
text-decoration-color: none;
|
||||
font-weight: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul, li {
|
||||
list-style-type: none;
|
||||
display: inline;
|
||||
}
|
||||
color: var(--meta-color);
|
||||
letter-spacing: -0.5px;
|
||||
font-size: 0.8rem;
|
||||
font-weight: 300;
|
||||
padding: 0;
|
||||
padding-top: 0.7vmin;
|
||||
padding-bottom: 3vmin;
|
||||
line-height: 1.4rem;
|
||||
|
||||
a {
|
||||
color: var(--meta-color);
|
||||
text-decoration-color: none;
|
||||
font-weight: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
ul,
|
||||
li {
|
||||
list-style-type: none;
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
.card-meta {
|
||||
color: var(--meta-color);
|
||||
font-size: 0.92rem;
|
||||
color: var(--meta-color);
|
||||
font-size: 0.92rem;
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 1000px) {
|
||||
.navbar {
|
||||
max-width: var(--normal-layout-width);
|
||||
}
|
||||
.navbar {
|
||||
max-width: var(--normal-layout-width);
|
||||
}
|
||||
|
||||
.nav-navs {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.nav-navs {
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 600px) {
|
||||
.nav-navs {
|
||||
margin-top: 0.8rem;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
.nav-navs {
|
||||
margin-top: 0.8rem;
|
||||
width: 100%;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.navbar {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.navbar {
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 300px) {
|
||||
.navbar {
|
||||
max-width: var(--small-layout-width);
|
||||
}
|
||||
.navbar {
|
||||
max-width: var(--small-layout-width);
|
||||
}
|
||||
}
|
||||
|
@ -1,52 +1,53 @@
|
||||
figure {
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
box-sizing: border-box;
|
||||
display: inline-block;
|
||||
margin: 0;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
figcaption {
|
||||
font-family: var(--serif-font);
|
||||
font-size: 0.72rem;
|
||||
color: var(--meta-color);
|
||||
text-align: center;
|
||||
font-family: var(--serif-font);
|
||||
font-size: 0.72rem;
|
||||
color: var(--meta-color);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
figure img {
|
||||
max-height: 500px;
|
||||
max-height: 500px;
|
||||
}
|
||||
|
||||
img {
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
figure h4 {
|
||||
font-size: 1rem;
|
||||
margin: 0;
|
||||
margin-bottom: 1em;
|
||||
font-size: 1rem;
|
||||
margin: 0;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
|
||||
figure h4::before {
|
||||
content: "↳ ";
|
||||
content: "↳ ";
|
||||
}
|
||||
|
||||
svg {
|
||||
max-height: 15px;
|
||||
max-height: 15px;
|
||||
}
|
||||
|
||||
.img-dark {
|
||||
display: none;
|
||||
display: none;
|
||||
}
|
||||
|
||||
[data-theme="dark"] {
|
||||
.img-dark {
|
||||
display: block;
|
||||
}
|
||||
.img-light {
|
||||
display: none;
|
||||
}
|
||||
.img-dark {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.img-light {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
@ -1,15 +1,15 @@
|
||||
table {
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
border-spacing: 0;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
table th {
|
||||
padding: 6px 13px;
|
||||
border: 1px solid #dfe2e5;
|
||||
font-size: large;
|
||||
padding: 6px 13px;
|
||||
border: 1px solid #dfe2e5;
|
||||
font-size: large;
|
||||
}
|
||||
|
||||
table td {
|
||||
padding: 6px 13px;
|
||||
border: 1px solid #dfe2e5;
|
||||
padding: 6px 13px;
|
||||
border: 1px solid #dfe2e5;
|
||||
}
|
||||
|
@ -1,41 +1,47 @@
|
||||
.theme-switcher {
|
||||
align-self: center;
|
||||
margin-left: 0.5rem;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
||||
.switch {
|
||||
align-self: center;
|
||||
margin-left: 0.5rem;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
border: none;
|
||||
}
|
||||
.sun {
|
||||
opacity: 0;
|
||||
}
|
||||
.moon {
|
||||
opacity: 1;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
|
||||
.switch {
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
img {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
position: absolute;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.sun {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
.moon {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
input {
|
||||
display: none;
|
||||
&:checked + .switch {
|
||||
.sun {
|
||||
opacity: 1;
|
||||
}
|
||||
.moon {
|
||||
opacity: 0;
|
||||
}
|
||||
|
||||
input {
|
||||
display: none;
|
||||
|
||||
&:checked + .switch {
|
||||
.sun {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.moon {
|
||||
opacity: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue