Update docsy to v0.8.0 (#1699)

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-02-27 19:12:39 +01:00 committed by GitHub
parent e2dc5a3826
commit b136b357e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 382 additions and 360 deletions

View file

@ -18,9 +18,6 @@ limitations under the License.
Custom SCSS for the Matrix spec
*/
@import "variables_project";
@import "variables";
/* Import the CSS classes for the syntax highlighter.
*
* This is generated with:
@ -49,6 +46,10 @@ Custom SCSS for the Matrix spec
}
.nav-link {
font-weight: normal;
}
a {
color: $black;
}
@ -292,7 +293,7 @@ footer {
}
/* Styles for sections that are rendered from data, such as HTTP APIs and event schemas */
.rendered-data {
.td-content .rendered-data {
background-color: $secondary-lightest-background;
padding: 0.85rem;
margin: 0.85rem 0;
@ -346,7 +347,7 @@ footer {
}
p code, table code {
background-color: inherit;
background-color: transparent;
}
table {
@ -396,6 +397,7 @@ footer {
th, td, caption {
padding: 1rem;
border-top: 1px $table-border-color solid;
}
&.object-table, &.response-table, &.content-type-table {
@ -408,14 +410,12 @@ footer {
// ... but avoid double border between caption and table
border-bottom: 0;
background-color: $secondary-lighter-background;
}
caption, tbody tr {
background-color: $table-row-default;
}
tbody tr:nth-child(even) {
background-color: $table-row-alternate;
tbody tr {
--bs-table-striped-bg: #{$secondary-lighter-background};
}
}
@ -517,3 +517,15 @@ dd {
border-radius: 0.25rem; // was $border-radius, but that var isn't accessible here.
}
}
/* Style for breadcrumbs */
.td-breadcrumbs {
padding: .75rem 1rem;
background-color: #eee;
border-radius: .25rem;
margin-bottom: 1rem;
.breadcrumb {
margin: 0;
}
}

View file

@ -20,7 +20,7 @@ $dark: #333;
$gray-100: #FBFBFB;
$secondary-background: #E5F5FB;
$secondary-lighter-background: #F4FaFC;
$secondary-lighter-background: #F4FAFC;
$secondary-lightest-background: #FBFDFD;
@ -33,8 +33,7 @@ $warning-background: #FFE0E0;
// colours for definition tables.
// the border colour matches that used for "highlight" divs
$table-border-color: rgba(black, .125);
$table-row-alternate: $secondary-lightest-background;
$table-row-default: $secondary-lighter-background;
$table-bg: $secondary-lightest-background;
/* Configure docsy to use the default system fonts instead of Google Fonts.
* See https://www.docsy.dev/docs/adding-content/lookandfeel/#fonts */