-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR makes three visible changes: 1. The "default" behaviour of the right chevron is to go from right-facing (closed) to down-facing (open), instead of down-facing (closed) to up-facing (open). There is also a rotate transition on opening/closing. The old default behaviour can be retained by using the new `:chevron: down-up` directive option. 2. The prefix icon (optional), title text, and chevron state icon are now all better aligned 3. The top/bottom padding is now 0.5em instead of 1em The PR also introduces three new CSS variables to control font sizes of the dropdown: ```css --sd-fontsize-tabs-label: 1rem; --sd-fontsize-dropdown-title: 1rem; --sd-fontweight-dropdown-title: 700; ``` --- Internally, the HTML / CSS is changed, such that the title is now an `inline-flex` box, with three columns arranged with `justify-content: space-between`: | icon (optional) | text (`flex-grow: 1`) | state chevron | | -------------- | -------------------- | -------------- | Also, the state chevron was previously two distinct SVGs (with one hidden), but now is one that get rotated on open/close.
- Loading branch information
1 parent
169c09d
commit 89aaa26
Showing
12 changed files
with
171 additions
and
109 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
body { | ||
--sd-fontsize-dropdown: var(--admonition-font-size); | ||
--sd-fontsize-dropdown-title: var(--admonition-title-font-size); | ||
--sd-fontweight-dropdown-title: 500; | ||
} |
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
Oops, something went wrong.