Skip to content

Commit 4dc184a

Browse files
committed
relocate markdwon styles
1 parent 2454b44 commit 4dc184a

File tree

2 files changed

+72
-72
lines changed

2 files changed

+72
-72
lines changed

src/lib/scss/custom/common/_common.scss

Lines changed: 0 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -180,75 +180,3 @@ button:focus {
180180
.thin-scrollbar {
181181
scrollbar-width: thin;
182182
}
183-
184-
.markdown-container {
185-
overflow-x: auto;
186-
scrollbar-width: thin;
187-
188-
&:has(.language-sql),
189-
&:has(.language-java),
190-
&:has(.language-javascript),
191-
&:has(.language-typescript),
192-
&:has(.language-csharp),
193-
&:has(.language-python),
194-
&:has(.language-json) {
195-
background-color: black;
196-
color: white;
197-
border-radius: 5px;
198-
padding: 5px 10px;
199-
}
200-
201-
pre {
202-
-ms-overflow-style: none !important;
203-
white-space: pre-wrap;
204-
margin-top: 1em;
205-
margin-bottom: 1em;
206-
}
207-
208-
pre::-webkit-scrollbar {
209-
display: none !important;
210-
}
211-
212-
table {
213-
margin-top: 1em !important;
214-
margin-bottom: 1em !important;
215-
border-radius: 5px;
216-
217-
th, td {
218-
padding: 3px 5px !important;
219-
}
220-
}
221-
222-
p {
223-
margin-top: 0 !important;
224-
margin-bottom: 0 !important;
225-
}
226-
227-
ul {
228-
list-style-position: inside !important;
229-
}
230-
}
231-
232-
.markdown-lite {
233-
table {
234-
th, td {
235-
border: 1px solid white;
236-
}
237-
}
238-
239-
a {
240-
color: white;
241-
}
242-
}
243-
244-
.markdown-dark {
245-
table {
246-
th, td {
247-
border: 1px solid $primary;
248-
}
249-
}
250-
251-
a {
252-
color: $primary;
253-
}
254-
}

src/lib/scss/custom/components/_markdown.scss

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,75 @@
1+
.markdown-container {
2+
overflow-x: auto;
3+
scrollbar-width: thin;
4+
5+
&:has(.language-sql),
6+
&:has(.language-java),
7+
&:has(.language-javascript),
8+
&:has(.language-typescript),
9+
&:has(.language-csharp),
10+
&:has(.language-python),
11+
&:has(.language-json) {
12+
background-color: black;
13+
color: white !important;
14+
border-radius: 5px;
15+
padding: 5px 10px;
16+
}
17+
18+
pre {
19+
-ms-overflow-style: none !important;
20+
white-space: pre-wrap;
21+
margin-top: 1em;
22+
margin-bottom: 1em;
23+
}
24+
25+
pre::-webkit-scrollbar {
26+
display: none !important;
27+
}
28+
29+
table {
30+
margin-top: 1em !important;
31+
margin-bottom: 1em !important;
32+
border-radius: 5px;
33+
34+
th, td {
35+
padding: 3px 5px !important;
36+
}
37+
}
38+
39+
p {
40+
margin-top: 0 !important;
41+
margin-bottom: 0 !important;
42+
}
43+
44+
ul {
45+
list-style-position: inside !important;
46+
}
47+
}
48+
49+
.markdown-lite {
50+
table {
51+
th, td {
52+
border: 1px solid white;
53+
}
54+
}
55+
56+
a {
57+
color: white;
58+
}
59+
}
60+
61+
.markdown-dark {
62+
table {
63+
th, td {
64+
border: 1px solid $primary;
65+
}
66+
}
67+
68+
a {
69+
color: $primary;
70+
}
71+
}
72+
173
.code-block {
274
position: relative;
375
background-color: black;

0 commit comments

Comments
 (0)