feat: format
This commit is contained in:
parent
b0df7bebb0
commit
da030f3dc1
30 changed files with 603 additions and 348 deletions
170
public/styles/posts.css
Normal file
170
public/styles/posts.css
Normal file
|
|
@ -0,0 +1,170 @@
|
|||
html,
|
||||
body {
|
||||
font-family: "Signifier", serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
height: 100%;
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
header {
|
||||
font-size: 1.5em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
ul {
|
||||
list-style: unset;
|
||||
list-style-type: "- ";
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.main {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.post-header {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.post-container {
|
||||
width: 80%;
|
||||
}
|
||||
|
||||
.post-title {
|
||||
font-weight: normal;
|
||||
font-size: 2.2em;
|
||||
margin: 50px 0;
|
||||
width: 100%;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.post-title::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
background-color: var(--topic-color, #000);
|
||||
height: 30px;
|
||||
width: 2px;
|
||||
bottom: -10px;
|
||||
left: -20px;
|
||||
}
|
||||
|
||||
.post-title::after {
|
||||
content: "";
|
||||
position: absolute;
|
||||
background-color: var(--topic-color, #000);
|
||||
width: 200px;
|
||||
height: 2px;
|
||||
bottom: -10px;
|
||||
left: -20px;
|
||||
}
|
||||
|
||||
.post-meta {
|
||||
font-size: 1.3em;
|
||||
color: #000;
|
||||
margin-left: 100px;
|
||||
}
|
||||
|
||||
.post-article {
|
||||
font-size: 1.5em;
|
||||
line-height: 1.5em;
|
||||
padding-bottom: 50px;
|
||||
}
|
||||
|
||||
.post-article a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
article h1,
|
||||
article h2,
|
||||
article h3,
|
||||
.post-article h1,
|
||||
.post-article h2,
|
||||
.post-article h3 {
|
||||
font-weight: normal;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
article h1,
|
||||
.post-article h1 {
|
||||
padding-left: 1.5em;
|
||||
}
|
||||
|
||||
article h2,
|
||||
.post-article h2 {
|
||||
padding-left: 2em;
|
||||
}
|
||||
|
||||
article h3,
|
||||
.post-article h3 {
|
||||
padding-left: 2.5em;
|
||||
}
|
||||
|
||||
article h1::before,
|
||||
.post-article h1::before {
|
||||
content: "#";
|
||||
}
|
||||
|
||||
article h2::before,
|
||||
.post-article h2::before {
|
||||
content: "##";
|
||||
}
|
||||
|
||||
article h3::before,
|
||||
.post-article h3::before {
|
||||
content: "###";
|
||||
}
|
||||
|
||||
article h1::before,
|
||||
article h2::before,
|
||||
article h3::before,
|
||||
.post-article h1::before,
|
||||
.post-article h2::before,
|
||||
.post-article h3::before {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
color: var(--topic-color, #000);
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
|
||||
article img {
|
||||
display: block;
|
||||
margin: 2rem auto;
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
article pre {
|
||||
padding: 1rem;
|
||||
overflow-x: auto;
|
||||
border-radius: 4px;
|
||||
background: #f4f4f4 !important;
|
||||
border: 1px solid #e1e1e1;
|
||||
}
|
||||
|
||||
pre * {
|
||||
background: #f4f4f4 !important;
|
||||
}
|
||||
|
||||
:not(pre) > code {
|
||||
font-family: "Courier New", Courier, monospace;
|
||||
padding: 4px;
|
||||
margin: 0 5px;
|
||||
white-space: nowrap;
|
||||
border: 1px solid #e1e1e1;
|
||||
border-radius: 4px;
|
||||
background: #f4f4f4 !important;
|
||||
}
|
||||
|
||||
.astro-code {
|
||||
font-size: 0.8em !important;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue