-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: elements > code > accordion + table layout tweaks (#1613)
* docs: elements > code > accordion + table layout tweaks * docs: code table design revisions * docs: darken code table mobile/hover row color * docs: move Code page accordion + table CSS to its own file * docs: allow horizontal scrollbars on `rh-table` * docs: move `link` tag to new layout --------- Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>
- Loading branch information
1 parent
a5b51e6
commit 203f3d4
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/** | ||
* Elements > Code > Accordion Panel & Table customizations | ||
* Only loaded on the {Element} > Code pages | ||
**/ | ||
rh-accordion-panel[expanded]::part(container) { | ||
background-color: var(--rh-color-surface-lighter, #f2f2f2); | ||
} | ||
|
||
rh-accordion-panel[expanded] rh-table { | ||
--rh-table-row-background-hover-color: #f8f8f8; | ||
|
||
background-color: var(--rh-color-surface-lightest, #ffffff); | ||
margin: 0; | ||
} | ||
|
||
rh-accordion-panel[expanded] rh-table tbody tr:last-child { | ||
border-block-end: 0 !important; | ||
} | ||
|
||
rh-accordion-panel[expanded] rh-table th { | ||
font-size: var(--rh-font-size-body-text-sm, 0.875rem); | ||
} | ||
|
||
rh-accordion-panel[expanded] rh-table :is(th, td) p { | ||
margin-block: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters