Fix stuff

This commit is contained in:
Gokalp Sen 2024-12-06 23:47:52 +03:00
parent 1e09e9488a
commit c2c96848c4
3 changed files with 176 additions and 31 deletions

View file

@ -3,6 +3,8 @@
color: var(--md-text, #333);
line-height: 1.6;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
--checkbox-size: 1.2em;
--checkbox-margin: 0.5em;
}
.mdrender h1,
@ -51,10 +53,24 @@
}
.mdrender blockquote {
border-left: 4px solid var(--md-header, #2c3e50);
padding-left: 1rem;
margin: 1rem 0;
color: var(--md-blockquote, #666);
border-left: 4px solid var(--md-blockquote-border, #ddd);
margin: 1em 0;
padding: 0.5em 1em;
color: var(--md-blockquote-text, #666);
background-color: var(--md-blockquote-bg, rgba(0, 0, 0, 0.05));
}
.mdrender blockquote blockquote {
margin-left: 0.5em;
border-left-color: var(--md-blockquote-nested-border, #999);
}
.mdrender blockquote blockquote blockquote {
border-left-color: var(--md-blockquote-nested-2-border, #666);
}
.mdrender blockquote blockquote blockquote blockquote {
border-left-color: var(--md-blockquote-nested-3-border, #333);
}
.mdrender ul,
@ -114,13 +130,34 @@
}
/* Task Lists */
.mdrender .task-list-item {
list-style-type: none;
margin-left: -1.5rem;
.mdrender ul.task-list {
list-style: none;
padding-left: 0;
}
.mdrender .task-list-item input[type="checkbox"] {
margin-right: 0.5rem;
.mdrender .task-list-item {
display: flex;
align-items: flex-start;
margin: 0.5em 0;
line-height: 1.4;
}
.mdrender .task-list-item-checkbox {
width: var(--checkbox-size);
height: var(--checkbox-size);
margin: 0.1em var(--checkbox-margin) 0 0;
flex-shrink: 0;
}
.mdrender .task-list-item-text {
flex: 1;
min-width: 0;
}
/* Nested task lists */
.mdrender .task-list .task-list {
margin-top: 0.5em;
margin-left: var(--checkbox-size);
}
/* Footnotes */