feat: 基础文章编辑功能

This commit is contained in:
2026-07-06 14:20:21 +08:00
parent e67829562d
commit 12e521891a
13 changed files with 1966 additions and 2175 deletions

View File

@@ -1,6 +0,0 @@
@import "tailwindcss";
:root {
--layout-width: 1200px;
}

4
src/styles/css-reset.css Normal file
View File

@@ -0,0 +1,4 @@
a {
color: inherit;
text-decoration: none;
}

View File

@@ -0,0 +1,12 @@
.markdown-body pre code{
font-size: 1.1em;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
border-bottom: none ;
}

27
src/styles/global.css Normal file
View File

@@ -0,0 +1,27 @@
@import "modern-normalize";
@import "css-reset.css";
:root {
--layout-width: 980px;
}
html,
body {
width: 100%;
height: 100%;
font-size: 16px;
}
body {
display: flex;
flex-direction: column;
background: #fafafa;
}
main {
max-width: var(--layout-width);
flex: 1;
width: 100%;
margin: 0 auto;
padding: 32px;
}