-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
feat: v5 style overhaul #2469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
feat: v5 style overhaul #2469
Changes from all commits
Commits
Show all changes
211 commits
Select commit
Hold shift + click to select a range
599d706
Replace stylus var with custom properties
jhildenbiddle e61ea9d
Add CSS theme source and postcss scripts
jhildenbiddle 88a461a
Convert CSS to nested syntax
jhildenbiddle 6e05987
Add custom props. Update styles. Refactor themes.
jhildenbiddle 3db118f
Fix incorrect tip/warn class names
jhildenbiddle 71b9de8
Add UI Kit page
jhildenbiddle e12da08
Fix typos
jhildenbiddle f5eac1f
Add loading spinner. Other minor updates.
jhildenbiddle 27c0499
Fix screen flicker on theme change + minor updates
jhildenbiddle 85f2e0b
Fix lint issues
jhildenbiddle af2c39c
Style updates. Other minor updates.
jhildenbiddle 079443a
Fix app nav always visible on mobile
jhildenbiddle 901f678
Update nav bar styles (full width, configurable)
jhildenbiddle a5212e2
Move edit link to footer
jhildenbiddle 273d913
Add configurable max-width. Style updates.
jhildenbiddle 14c2a1e
Fix sidebar link border color on active
jhildenbiddle 709e4ac
Fix incorrect heading level
jhildenbiddle 5201fe5
Fix navbar scroll behavior on mobile
jhildenbiddle 15c4659
Mark private css vars with underscore
jhildenbiddle 8c95c03
Update merged navbar style to match sidebar links
jhildenbiddle c60fe7c
Refactor bold sidebar navigation headings
jhildenbiddle ea5c3b7
Update coverpage with custom props
jhildenbiddle 90343c3
Fix iOS text text adjustment
jhildenbiddle 333763c
Fix safe area inset margins on mobile
jhildenbiddle 2624d13
Update coverpage with custom props (missed files)
jhildenbiddle 35302e9
Create CSS partials. Add core theme.
jhildenbiddle 7ff100a
Update Google Font imports
jhildenbiddle b68185b
Remove unnecessary ignore file
jhildenbiddle d3f713a
Update skip-to-content button with shared style
jhildenbiddle 73ce1eb
Fix method and docs type (docisfy => docsify)
jhildenbiddle 09218cf
Update cover page and themes docs
jhildenbiddle 857fa5f
Add details and summary styies. Move callouts.
jhildenbiddle 3274928
Add Prism theme support
jhildenbiddle afe056f
Fix callout charm line height
jhildenbiddle c7ea4fd
Swap color-primary prop for theme-color
jhildenbiddle 8ab26fb
Update themeColor documentation
jhildenbiddle 5568224
Update topMargin documentation (deprecated)
jhildenbiddle 8aad5c5
Minor UI Kit updates
jhildenbiddle abe4f55
Update color properties and docs
jhildenbiddle a2275c4
Refactor vars
jhildenbiddle 0976608
Add light/dark mode support
jhildenbiddle dc1b7c5
Rename color-mono- and theme-coloar variants
jhildenbiddle 31c83e0
Separate themes into core and add-ons
jhildenbiddle e68205f
Fix theme preview function
jhildenbiddle 4f4179f
Isolate element style from markdown styles
jhildenbiddle f6294dc
Update cover backgrounds
jhildenbiddle 68892b9
Add covepage oklch gradient
jhildenbiddle 46a63ef
Add duration props and reduced motion mq
jhildenbiddle 8876d29
Update button styles
jhildenbiddle fbc7fb3
Update headng styles
jhildenbiddle f47da30
Update search plugin and kbd styles
jhildenbiddle 281344d
Fix select element style in Safari
jhildenbiddle fc94626
Update search plugin button
jhildenbiddle a386de8
Update sidebar block margins
jhildenbiddle 59edb17
Update results display & hideOtherSidebarContent
jhildenbiddle c56bd6c
Fix carbonads margin
jhildenbiddle 794d90b
Add styles for mark element
jhildenbiddle 454d5d9
Update quickstart to accommodate style updates
jhildenbiddle a5ced86
Fix cover gradient on navigate back to cover
jhildenbiddle 10f1d98
Fix missing merged navbar on resize
jhildenbiddle dead48b
Fix marking of active navbar item
jhildenbiddle db976e1
Merge branch 'develop' into v5-style-overhaul
jhildenbiddle 998e44e
Update e2e tests
jhildenbiddle 12b4535
Add fix for Jest 29 and Prettier 3
jhildenbiddle d7097d0
Fix potential reference errors
jhildenbiddle 21c457a
Update integration tests
jhildenbiddle dca2445
Add util.css with clamp classes
jhildenbiddle d4ea8de
Fix hidden clear search button text in Safari
jhildenbiddle 6fef2ee
Remove accent color style
jhildenbiddle f404d7a
Update mono and theme color names
jhildenbiddle 5f30d25
Move mono and theme palettes to basic vars
jhildenbiddle 3671a2b
Fix bold font weight declarations
jhildenbiddle 8dde425
Update base font weights
jhildenbiddle 696df7b
Fix rendering of headers
jhildenbiddle 75646bf
Add sidebar chevron support + nested collapsable
jhildenbiddle f0dcfc6
Update theme dirs and docs
jhildenbiddle c663533
Update theme-related documentation
jhildenbiddle 85ce620
Add sidebar pagelink and group classes
jhildenbiddle 93cf296
Add sidebar group theme properties
jhildenbiddle 58fa58f
Add toggle elements. Update UI kit and theme docs.
jhildenbiddle 643dd8a
Update tests
jhildenbiddle f65d158
Merge branch 'develop' into v5-style-overhaul
jhildenbiddle c71bb19
Toggle active theme previews on load
jhildenbiddle d7de7cd
Fix theme switching (part of last commit)
jhildenbiddle 9d5aad8
Update disabled style
jhildenbiddle 90885f2
Added core-dark.css and updated docs
jhildenbiddle 81fe5c3
Fix label styles
jhildenbiddle 0a12050
Move legacy addons
jhildenbiddle da3de66
Fix select font in Safari
jhildenbiddle 7d7b430
Update heading and border styles
jhildenbiddle 50932c8
Fix sidebar styles
jhildenbiddle ded64f8
Detect use of light/dark cover gradient
jhildenbiddle 1ba9630
Update common margin-block
jhildenbiddle cafa268
Minor docs update
jhildenbiddle 21404bb
Update sidebar item margins
jhildenbiddle 8a5c749
Fix merged app nav margin
jhildenbiddle 2126642
Fix cover subblock quote heading line height
jhildenbiddle c97ab6e
Remove heading font weight properties
jhildenbiddle 3d11fb5
Remove heading font size properties
jhildenbiddle 9db6529
Remove stylus dependency and scripts
jhildenbiddle 36d921d
Updated mark element border radius
jhildenbiddle 4f3f46e
Update samp styles
jhildenbiddle 710c7ef
Fix H2 heading margin
jhildenbiddle fea5104
Fix markdown top margin
jhildenbiddle ca10a23
Fix mobile/desktop inverted sidebar “close” class
jhildenbiddle 3798f53
Update legacy transform declarations
jhildenbiddle 1cf5c34
Normalize transition timings
jhildenbiddle 2be8fec
Moved reduced motion media query
jhildenbiddle 49c8bc6
Fix mobile breakpoint behavior
jhildenbiddle d75dba8
Remove inBrowser var (SSR cruft)
jhildenbiddle 3444e9a
Prevent render sidebar when hideSidebar is true
jhildenbiddle dc8f3eb
Fix sidebar chevron rendering
jhildenbiddle 50a205e
Fix navbar sizing, wrapping, and margins
jhildenbiddle cfcac53
Add group-title class and theme properties
jhildenbiddle 3c9ad99
Update chevron-right inset
jhildenbiddle 376f1fe
Add sidebar-group add-ons
jhildenbiddle 11dddac
Fix horizontal scroll on mobile
jhildenbiddle 2fb4590
Rename blockquote-text prop to blockquote-color
jhildenbiddle d8c89fa
Fix improper marking of sidebar groups
jhildenbiddle 75235b0
Fix line-height of small, sub, and sup elements
jhildenbiddle bffe26a
Fix handling of text elemetns in sidebar
jhildenbiddle 334ff4d
Update output border style
jhildenbiddle 522cf25
Add px comment next to font-size theme prop
jhildenbiddle 0149e45
Move postcss config to config file
jhildenbiddle 0d5b060
Add link theme properties
jhildenbiddle ef1c681
Fix sidebar first item indentation
jhildenbiddle 76e409f
Fix search result hover style
jhildenbiddle a6455ff
Add insertAfter/Before search plugin options
jhildenbiddle 86200f4
Fix cover title link style
jhildenbiddle 6469b83
Add syntax highlighting theme properties
jhildenbiddle ef1ecb3
Update sidebar and search border styles
jhildenbiddle dacdf7d
Fix content scrolling bug (mobile + cover)
jhildenbiddle 80987b8
Make first cover button primary
jhildenbiddle 40b6b89
Update cover button styles in dark mode
jhildenbiddle a0dc789
Fix coverpage margins
jhildenbiddle fb863c5
Lock sidebar toggle size to markdown inset
jhildenbiddle a47fb20
Update strong and heading colors
jhildenbiddle 51147a0
Add no-chevron class to sidebar-chevron addons
jhildenbiddle cba5a36
Fix sidebar scrollable before body.sticky
jhildenbiddle 3a26f5a
Hide menu toggle w/ cover (consistent w/ desktop)
jhildenbiddle c4e19b0
Fix sidebar toggle tab index (show focus)
jhildenbiddle aa8a1f7
Disable broswersync ghost mode
jhildenbiddle c96e227
Replace 100% height declaration to 100vh
jhildenbiddle 82338dd
Implement nww sidebar toggle
jhildenbiddle 35dbd00
Clean up navbar styles (consistent w/ sidebar-nav)
jhildenbiddle 5dcb821
Fix sidebar link active hover color
jhildenbiddle 074314d
Restore focus on content on sidebar hide
jhildenbiddle 70c937f
Fix sidebar visible when navigating to root
jhildenbiddle 1583300
Fix focus on sidebar toggle
jhildenbiddle fb8c119
Update new sidebar toggle (always show toggle)
jhildenbiddle 2bb1116
Fix markdown content overflow
jhildenbiddle 0fceec3
Fix navbar when sidebar visible
jhildenbiddle acd7f74
Fix merged nav bar group margin
jhildenbiddle a02b3e8
Fix sidebar app name line height
jhildenbiddle 3078281
Fix content overflow w/o breaking focus ring
jhildenbiddle ae2f4f3
Add Safari hack comment
jhildenbiddle e085f51
Fix focus trip (mobile only)
jhildenbiddle e91a861
Fix content focus ring clipping in Safari
jhildenbiddle 0ab4be4
Allow sidebar links to wrap
jhildenbiddle 1e542d0
Remove unnecessary padding and scroll margin
jhildenbiddle 9c882d5
Prevent long sidebar link overflow
jhildenbiddle c66ab67
Add block margin to buttons
jhildenbiddle 57a2d7f
Add theme classes
jhildenbiddle 4e9399c
Add light and dark core variations
jhildenbiddle 4be0637
Rename data-theme prop to data-sheet
jhildenbiddle 5c1b3f9
Remove docsify-themeable endorsement
jhildenbiddle 62b2b07
Fix sidebar nav left indentation
jhildenbiddle 38f7b5f
Fix sidebar link and group margins
jhildenbiddle dfe256b
Fix markdown container and long heading overflow
jhildenbiddle 89f4a19
Add loading class to docs and index
jhildenbiddle 9040430
Restore site settings
jhildenbiddle afb793e
Remove link-line-height prop
jhildenbiddle 4734d5d
Add info about creating section headers
jhildenbiddle 940c25e
Add info about creating drop-down menus
jhildenbiddle 7c60ac4
Add content-margin-inline theme prop
jhildenbiddle 3d47ba3
Rename max-width to content-max-width
jhildenbiddle d356676
Set default scroll-padding-top value
jhildenbiddle 094bf16
Disable prettier on _vars theme files
jhildenbiddle 8c4a09a
Refactor callout styles
jhildenbiddle c479bea
Fix codeblock font size
jhildenbiddle 89a6be6
Update themes docs
jhildenbiddle 0f50c78
Update sidebar toggle contrast (dark mode)
jhildenbiddle ca5d043
Add color-mono-9 to docs. Adjust mono-6.
jhildenbiddle 4e76fc2
Align callout props
jhildenbiddle 1f80f05
Fix group borders (only child, single group)
jhildenbiddle a8c661d
Fix group borders (again)
jhildenbiddle cadeb98
Fix dark mode cover brightness w/ brigthness prop.
jhildenbiddle 9b5d5eb
Adjust strong color in dark mode, weight in name.
jhildenbiddle 9bdb630
Add sidebar-toggle-kebab class
jhildenbiddle fd75d61
Fix inconsistent button hover style
jhildenbiddle 9268421
Default to kebab toggle style. Add hamb class.
jhildenbiddle cb26599
Rever to core dark as addon
jhildenbiddle 5e8e8fd
Rever to core dark as addon (fix)
jhildenbiddle 128c677
Fix sidebar toggle aria-hidden attr
jhildenbiddle a752057
Fix sidebar-chevron-left indentation
jhildenbiddle 34a241c
Adjust sidebar-link-spacing
jhildenbiddle 66f126a
Add --navbar-drop-link-spacing
jhildenbiddle 312d0a4
Fix search kbd vertical alignment
jhildenbiddle c9ffaf8
Fix skip-to-content behavior
jhildenbiddle 3b8fcfb
Merge branch 'develop' into v5-style-overhaul
jhildenbiddle 548fadd
Increase content margin. Reduce toggle width.
jhildenbiddle 767545e
Increase touch-only tap target width
jhildenbiddle 44144a8
Add theme prop includes (awaiting merge)
jhildenbiddle 1ef355c
Move UI Kit page in sidebar
jhildenbiddle 9eb3a8f
Update page titles
jhildenbiddle 11f9443
Restore site config
jhildenbiddle 8f10799
Fix nested CSS syntax in search plugin
jhildenbiddle 099c041
Update snapshots
jhildenbiddle 282c15b
Prevent matchMedia from breaking Jest (unit & int)
jhildenbiddle 95cf10b
Update sidebar toggle test
jhildenbiddle 662d571
Remove legacy theme addons
jhildenbiddle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.eslintignore | ||
.eslintrc.cjs | ||
.github | ||
.gitignore |
This file contains hidden or 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 |
---|---|---|
|
@@ -4,6 +4,8 @@ dist | |
lib | ||
|
||
# Files | ||
_vars.css | ||
_vars-advanced.css | ||
CHANGELOG.md | ||
emoji-data.* | ||
HISTORY.md | ||
HISTORY.md |
This file contains hidden or 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
## docsify | ||
# docsify | ||
|
||
> A magical documentation site generator. | ||
|
||
|
This file contains hidden or 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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
<!-- markdownlint-disable first-line-h1 --> | ||
|
||
 | ||
|
||
# docsify <small>4.13.0</small> | ||
|
||
> A magical documentation site generator. | ||
> A magical documentation site generator | ||
|
||
- Simple and lightweight | ||
- No statically built html files | ||
- No statically built HTML files | ||
- Multiple themes | ||
|
||
[Get Started](#docsify) | ||
[GitHub](https://github.com/docsifyjs/docsify/) | ||
[Getting Started](#docsify) | ||
|
||
<!--  --> | ||
<!--  --> |
This file contains hidden or 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 |
---|---|---|
@@ -1 +1,31 @@ | ||
<h1>To infinity and Beyond!</h1> | ||
<style> | ||
html, | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
min-height: 100%; | ||
} | ||
|
||
body { | ||
background-color: #4158d0; | ||
background-image: linear-gradient( | ||
43deg, | ||
#4158d0 0%, | ||
#c850c0 46%, | ||
#ffcc70 100% | ||
); | ||
color: #fff; | ||
font-family: sans-serif; | ||
} | ||
|
||
main { | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100vh; | ||
} | ||
</style> | ||
|
||
<main> | ||
<p>Example HTML Page</p> | ||
</main> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.