Étendre le Markdown du site public
This commit is contained in:
parent
21ee1bec36
commit
56a2fddc83
12 changed files with 179 additions and 52 deletions
|
|
@ -265,6 +265,40 @@ if (!function_exists('public_age')) {
|
|||
border-radius: var(--radius)
|
||||
}
|
||||
|
||||
.public-markdown-table {
|
||||
max-width: 100%;
|
||||
margin: 1.25rem 0;
|
||||
overflow-x: auto;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: calc(var(--radius) / 2)
|
||||
}
|
||||
|
||||
.public-markdown-table table {
|
||||
width: 100%;
|
||||
min-width: 420px;
|
||||
border-collapse: collapse;
|
||||
background: var(--surface)
|
||||
}
|
||||
|
||||
.public-markdown-table th,
|
||||
.public-markdown-table td {
|
||||
padding: 11px 14px;
|
||||
border-bottom: 1px solid var(--line);
|
||||
text-align: left;
|
||||
vertical-align: top
|
||||
}
|
||||
|
||||
.public-markdown-table th { background: var(--paper); font-weight: 800 }
|
||||
.public-markdown-table tr:last-child td { border-bottom: 0 }
|
||||
.public-markdown-table .text-center { text-align: center }
|
||||
.public-markdown-table .text-right { text-align: right }
|
||||
blockquote { margin: 1.25rem 0; padding: .75rem 1rem; border-left: 4px solid var(--accent); background: var(--surface) }
|
||||
blockquote p { margin: 0 }
|
||||
pre { max-width: 100%; overflow: auto; padding: 1rem; border-radius: calc(var(--radius) / 2); background: var(--ink); color: var(--surface) }
|
||||
:not(pre)>code { padding: .12rem .35rem; border-radius: 4px; background: var(--line) }
|
||||
.task-list-item { list-style: none }
|
||||
.task-marker { color: var(--accent-dark) }
|
||||
|
||||
.section {
|
||||
padding: 52px 0
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue