Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 28 additions & 25 deletions public/_static/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ html {
}

p code {
padding: 0 0.2rem;
padding: 0 0.2em;
}

p code:first-child, p code:last-child {
Expand Down Expand Up @@ -145,8 +145,8 @@ header .header-actions {
header .sections a {
text-decoration: none;
color: var(--main-color);
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
padding: 0.25em 0.5em;
border-radius: 0.25em;
white-space: nowrap;
}

Expand Down Expand Up @@ -220,8 +220,8 @@ header .sections a:focus-visible,
display: flex;
align-items: center;
flex-wrap: nowrap;
gap: 0.125rem;
padding: 0.25rem 0.5rem;
gap: 0.125em;
padding: 0.25em 0.5em;
border-bottom: 1px solid var(--underlay-color);
font-size: 0.9em;
overflow-x: auto;
Expand All @@ -232,8 +232,8 @@ header .sections a:focus-visible,
.subnav a {
text-decoration: none;
color: var(--main-color);
padding: 0.15rem 0.5rem;
border-radius: 0.25rem;
padding: 0.15em 0.5em;
border-radius: 0.25em;
white-space: nowrap;
}

Expand All @@ -248,8 +248,8 @@ header .sections a:focus-visible,

.subnav.breadcrumb a + a::before {
content: "::";
margin-left: -0.5rem;
margin-right: 0.5rem;
margin-left: -0.5em;
margin-right: 0.5em;
opacity: 0.4;
}

Expand Down Expand Up @@ -347,13 +347,13 @@ main {
}

.sidebar nav a {
padding: 0.4rem 0.75rem;
padding: 0.4em 0.75em;
font-size: 0.9rem;
border-left: 3px solid transparent;
color: var(--main-color);
text-decoration: none;
display: block;
border-radius: 0.25rem;
border-radius: 0.25em;
transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

Expand Down Expand Up @@ -510,7 +510,7 @@ pre {
details {
margin: 1rem;
border: 1px solid #aaa;
border-radius: 0.5rem;
border-radius: 0.5em;

padding: .5em .5em 0;
}
Expand All @@ -522,18 +522,17 @@ summary > * {

summary {
font-weight: bold;
margin: -.5rem -.5rem 0;
padding: .5rem;
margin: -.5em -.5em 0;
padding: .5em;
cursor: pointer;
}

details[open] {
padding: .5rem;
padding: .5em;
}

details[open] summary {
border-bottom: 1px solid #aaa;
/* margin-bottom: .5rem; */
}

figure {
Expand Down Expand Up @@ -568,7 +567,11 @@ table {
}

table th, table td {
padding: 0.5rem 0.75rem;
padding: 0.1em 0.4em;
}

table th:nth-child(even), table td:nth-child(even) {
background-color: color-mix(in srgb, var(--main-color) 2%, transparent);
}

table thead {
Expand Down Expand Up @@ -598,13 +601,13 @@ ul.pragmas li {
border-radius: 0.5em;

box-shadow: 0 0 2px #eee;
padding: 0.1rem 0.2rem;
padding: 0.1em 0.2em;

display: inline-block;
}

ul.pragmas li + li {
margin-left: 0.5rem;
margin-left: 0.5em;
}

ul.pragmas li.public {
Expand Down Expand Up @@ -678,8 +681,8 @@ ul.pragmas li.asynchronous {
color: var(--main-color);
text-decoration: none;
display: block;
padding: 0.25rem 0.5rem;
border-radius: 0.25rem;
padding: 0.25em 0.5em;
border-radius: 0.25em;
transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

Expand Down Expand Up @@ -737,13 +740,13 @@ ul.pragmas li.asynchronous {

.sidebar nav a,
.sidebar details nav a {
padding: 0.4rem 0.75rem;
padding: 0.4em 0.75em;
font-size: 0.9rem;
border-left: 3px solid transparent;
color: var(--main-color);
text-decoration: none;
display: block;
border-radius: 0.25rem;
border-radius: 0.25em;
transition: all 0.2s ease;
}

Expand All @@ -753,7 +756,7 @@ ul.pragmas li.asynchronous {
}

.sidebar nav.compact a {
padding: 0.25rem 0.5rem;
padding: 0.25em 0.5em;
font-size: 0.85rem;
line-height: 1.3;
}
Expand Down Expand Up @@ -794,7 +797,7 @@ ul.pragmas li.asynchronous {
.sidebar nav a:focus-visible {
outline: 2px solid var(--accent-color);
outline-offset: 2px;
border-radius: 0.25rem;
border-radius: 0.25em;
}

/* Brief click feedback */
Expand Down
1 change: 1 addition & 0 deletions releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
## Unreleased

- Add padding to documentation table cells and allow tables to scroll whenever they exceed the available width.
- Scale table, inline code, badge, navigation link, and disclosure spacing with the local font size.

## v0.45.0

Expand Down
Loading