blob: 4378d398feef4448ba3d118aca9e3c8cac8b927c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
|
// Variables (can be moved to a separate variables file if needed)
$font-size: var(--content-font-size);
$link-color: var(--link-color);
$secondary-text-color: var(--secondary-text-color);
$border-color: var(--border-color);
$block-background-color: var(--block-background-color);
$strong-text-color: #A94A4A;
$em-text-color: #889E73;
// Mixin for block styles
@mixin block-style($margin, $padding, $color: null, $border-left: null) {
margin: $margin;
padding: $padding;
@if $color {
color: $color;
}
@if $border-left {
border-left: $border-left;
}
}
// Main styles
.markdown-body {
font-size: $font-size;
max-width: 100%;
// Nested styles for child elements
a {
text-decoration: underline;
color: $link-color;
}
blockquote {
@include block-style(0, 0 1em, $secondary-text-color, 0.2em solid $border-color);
padding-right: 0;
&:not(blockquote > blockquote) {
@media screen and (min-width: 768px) {
margin-left: -1.4rem;
}
}
}
pre {
padding: 16px;
overflow: auto;
border-radius: 10px;
}
code {
padding: 0.2em 0.4em;
font-size: 85%;
background-color: $block-background-color;
border-radius: 6px;
}
pre > code {
padding: 0;
font-size: 100%;
background-color: inherit;
border: 0;
}
p {
hyphens: auto;
text-justify: ideographic;
margin-bottom: 1em;
}
strong {
color: $strong-text-color;
}
em {
color: $em-text-color;
}
img {
max-width: 100%;
display: block;
margin-right: auto;
margin-top: 6px;
}
figure {
margin: 0;
}
figure figcaption h4 {
font-size: 0.9rem;
color: var(--secondary-text-color);
font-weight: 400;
}
ul {
list-style-type: square;
}
ul, ol {
padding-inline-start: 1.75rem;
li {
padding-left: 0.25rem;
}
::marker {
color: var(--secondary-text-color);
}
}
mark {
background-color: rgba(255, 235, 0, .5)
}
.table-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
table {
border-collapse: collapse;
table-layout: fixed;
min-width: 100%;
width: max-content;
border-top: 2px solid var(--border-color);
tr {
border-bottom: 1px solid var(--border-color);
}
td, th {
max-width: 200px;
padding: 0.5rem 1rem;
line-height: 1.5;
white-space: normal;
word-wrap: break-word;
}
}
}
del {
opacity: 0.5
}
}
|