Fix repo (#55)
* Fix option is an empty string * Fix test * Add hr style #54 * Tweak hr style
This commit is contained in:
parent
000a1fcdf0
commit
69e500bd33
4 changed files with 14 additions and 3 deletions
|
|
@ -1,4 +1,9 @@
|
||||||
## 1.7.1
|
## 1.7.3
|
||||||
|
### Bug fixes
|
||||||
|
- Add `hr` style
|
||||||
|
- Fixed option is an empty string
|
||||||
|
|
||||||
|
## 1.7.2
|
||||||
### Bug fixes
|
### Bug fixes
|
||||||
- Fix sidebar click event in mobile browser.
|
- Fix sidebar click event in mobile browser.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const script = document.currentScript || [].slice.call(document.getElementsByTag
|
||||||
if (script) {
|
if (script) {
|
||||||
for (const prop in OPTIONS) {
|
for (const prop in OPTIONS) {
|
||||||
const val = script.getAttribute('data-' + camel2kebab(prop))
|
const val = script.getAttribute('data-' + camel2kebab(prop))
|
||||||
OPTIONS[prop] = isNil(val) ? OPTIONS[prop] : (val || true)
|
OPTIONS[prop] = isNil(val) ? OPTIONS[prop] : (typeof OPTIONS[prop] === 'string' ? val : true)
|
||||||
}
|
}
|
||||||
if (OPTIONS.loadSidebar === true) OPTIONS.loadSidebar = '_sidebar.md'
|
if (OPTIONS.loadSidebar === true) OPTIONS.loadSidebar = '_sidebar.md'
|
||||||
if (OPTIONS.loadNavbar === true) OPTIONS.loadNavbar = '_navbar.md'
|
if (OPTIONS.loadNavbar === true) OPTIONS.loadNavbar = '_navbar.md'
|
||||||
|
|
|
||||||
|
|
@ -287,6 +287,12 @@ body.sticky {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.markdown-section hr {
|
||||||
|
border: none;
|
||||||
|
margin: 2em 0;
|
||||||
|
border-bottom: 1px solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
.markdown-section table {
|
.markdown-section table {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ $sidebar-width: 16em;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
li.active {
|
||||||
background-color: #eee;
|
background-color: #eee;
|
||||||
|
|
||||||
a {
|
a {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue