Skip to content

Commit 169fe1f

Browse files
authored
Merge pull request #269 from dianso/dev
Update simple-markdown.scss
2 parents 23c32fc + d871ed4 commit 169fe1f

File tree

1 file changed

+82
-16
lines changed

1 file changed

+82
-16
lines changed

front/assets/simple-markdown.scss

+82-16
Original file line numberDiff line numberDiff line change
@@ -72,28 +72,94 @@
7272
overflow-wrap: break-word;
7373
}
7474

75-
h2, h3, h4, h5, h6 {
76-
margin: 1rem 0;
75+
p {
76+
text-indent: 2em;
77+
margin-bottom: 0.1rem;
7778
}
79+
pre p,
80+
ul p,
81+
ol p {
82+
text-indent: 0 !important;
83+
margin-bottom: inherit;
84+
}
7885

79-
h2 {
80-
font-size: 2rem;
86+
h1 { font-size: 16px; }
87+
h2 { font-size: 15px; }
88+
h3 { font-size: 14px; }
89+
h4 { font-size: 13px; }
90+
h5 { font-size: 12px; }
91+
h6 { font-size: 11px; }
92+
h1, h2, h3, h4, h5, h6 {
93+
margin-top: 0.8rem;
94+
margin-bottom: 0.8rem;
95+
line-height: 1;
8196
}
8297

83-
h3 {
84-
font-size: 1.8rem;
85-
}
98+
table {
99+
width: 100%;
100+
border-collapse: collapse;
101+
margin: 1rem 0;
102+
overflow-x: auto;
103+
display: block;
104+
background: white;
105+
}
106+
th,
107+
td {
108+
padding: 8px 12px;
109+
border: 1px solid #e2e8f0 !important;
110+
}
111+
th {
112+
background-color: #f8fafc;
113+
font-weight: 600;
114+
}
86115

87-
h4 {
88-
font-size: 1.6rem;
89-
}
90116

91-
h5 {
92-
font-size: 1.4rem;
93-
}
117+
blockquote {
118+
border-left: 4px solid #42b883;
119+
background: #f8f8f8;
120+
padding: 0.4rem;
121+
border-radius: 6px;
122+
margin: 1rem 0;
123+
box-shadow: none;
124+
}
125+
blockquote p {
126+
margin: 0.2rem 0;
127+
line-height: 1.7;
128+
}
129+
130+
hr {
131+
border: 0;
132+
height: 2px;
133+
margin: 0.7rem 0;
134+
background: linear-gradient(
135+
to right,
136+
transparent,
137+
#42b883,
138+
transparent
139+
);
140+
position: relative;
141+
overflow: visible;
142+
}
143+
hr::after {
144+
content: "";
145+
position: absolute;
146+
left: -100%;
147+
top: -2px;
148+
width: 50%;
149+
height: 4px;
150+
background: linear-gradient(
151+
to right,
152+
transparent,
153+
rgba(255,255,255,0.8),
154+
transparent
155+
);
156+
animation: hr-glow 3s ease-in-out infinite;
157+
}
158+
159+
@keyframes hr-glow {
160+
0% { left: -100%; }
161+
100% { left: 150%; }
162+
}
94163

95-
h6 {
96-
font-size: 1.2rem;
97-
}
98164

99165
}

0 commit comments

Comments
 (0)