File size: 1,738 Bytes
48d1034 |
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 |
@scope (.markdown) {
/* Code blocks */
pre {
margin: 0.5rem 0;
white-space: break-spaces;
}
code {
padding: 0.2em 0.4em;
border-radius: 4px;
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
font-size: 0.9em;
}
pre,
code {
background-color: #f2f2f2;
}
@media (prefers-color-scheme: dark) {
pre,
code {
background-color: #333;
}
}
pre:has(code) {
padding: 1rem 0.5rem;
}
pre > code {
padding: 0;
}
/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 600;
line-height: 1.2;
}
h1 {
font-size: 2em;
margin: 1rem 0;
}
h2 {
font-size: 1.5em;
margin: 0.83rem 0;
}
h3 {
font-size: 1.25em;
margin: 0.67rem 0;
}
h4 {
font-size: 1em;
margin: 0.5rem 0;
}
h5 {
font-size: 0.875em;
margin: 0.33rem 0;
}
h6 {
font-size: 0.75em;
margin: 0.25rem 0;
}
h1,
h2,
h3,
h4,
h5,
h6:first-child {
margin-top: 0;
}
/* Unordered List */
ul {
list-style-type: disc;
margin-left: 1.5rem;
}
/* Ordered List */
ol {
list-style-type: decimal;
margin-left: 1.5rem;
}
/* List Items */
li {
margin: 0.25rem 0;
}
p:not(:first-child) {
margin-top: 0.75rem;
}
p:not(:last-child) {
margin-bottom: 0.75rem;
}
ul > li {
margin-left: 1rem;
}
/* Table */
table,
th,
td {
border: 1px solid lightgray;
padding: 0.25rem;
}
@media (prefers-color-scheme: dark) {
table,
th,
td {
border: 1px solid #f2f2f2;
}
}
}
|