docs: improve formatting in time.parse_format description (#22113)

This commit is contained in:
Martin Skou 2024-08-25 07:05:13 +02:00 committed by GitHub
parent d1b20bec79
commit 62c69e8a31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 65 additions and 44 deletions

View file

@ -36,6 +36,8 @@
--attribute-deprecated-background-color: #f59f0b48;
--attribute-deprecated-text-color: #92400e;
--attribute-text-color: #000000cf;
--table-header-line-color: #2c3e64;
--table-background-color: #edf2f7;
}
html.dark {
--background-color: #1a202c;
@ -73,6 +75,8 @@ html.dark {
--attribute-background-color: #ffffff20;
--attribute-text-color: #ffffffaf;
--attribute-deprecated-text-color: #fef3c7;
--table-header-line-color: #cbd5e0;
--table-background-color: #2d3748;
}
html.dark .dark-icon {
display: none;
@ -665,6 +669,21 @@ pre {
margin: 0 0 0.4rem 0;
}
table {
border: 1px solid var(--table-background-color);
border-collapse: collapse;
}
table tr td,
table tr th {
padding: 4px 8px;
}
table tr th {
background-color: var(--table-background-color);
}
tr:nth-child(even) {
background-color: var(--table-background-color);
}
/* Medium screen and up */
@media (min-width: 768px) {
*::-webkit-scrollbar {