mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2025-02-22 12:40:31 +01:00
Restructured actions
This commit is contained in:
parent
786b21039d
commit
653426257e
@ -20,9 +20,7 @@
|
|||||||
* IN THE SOFTWARE.
|
* IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export * from "./anchor"
|
|
||||||
export * from "./header"
|
export * from "./header"
|
||||||
export * from "./hidden"
|
export * from "./main"
|
||||||
export * from "./scrolling"
|
|
||||||
export * from "./search"
|
export * from "./search"
|
||||||
export * from "./sidebar"
|
export * from "./toc"
|
||||||
|
25
src/assets/javascripts/actions/main/index.ts
Normal file
25
src/assets/javascripts/actions/main/index.ts
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2016-2020 Martin Donath <martin.donath@squidfunk.com>
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to
|
||||||
|
* deal in the Software without restriction, including without limitation the
|
||||||
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||||
|
* sell copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
|
* IN THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export * from "./hideable"
|
||||||
|
export * from "./sidebar"
|
||||||
|
export * from "./scrollable"
|
@ -32,7 +32,7 @@
|
|||||||
export function setOverflowScrolling(
|
export function setOverflowScrolling(
|
||||||
el: HTMLElement
|
el: HTMLElement
|
||||||
): void {
|
): void {
|
||||||
// el.style.backgroundColor = "yellow" // TODO: debugging
|
el.style.backgroundColor = "yellow" // TODO: debugging
|
||||||
el.style.webkitOverflowScrolling = "touch"
|
el.style.webkitOverflowScrolling = "touch"
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,6 +44,6 @@ export function setOverflowScrolling(
|
|||||||
export function resetOverflowScrolling(
|
export function resetOverflowScrolling(
|
||||||
el: HTMLElement
|
el: HTMLElement
|
||||||
): void {
|
): void {
|
||||||
// el.style.backgroundColor = "" // TODO: debugging
|
el.style.backgroundColor = "" // TODO: debugging
|
||||||
el.style.webkitOverflowScrolling = ""
|
el.style.webkitOverflowScrolling = ""
|
||||||
}
|
}
|
23
src/assets/javascripts/actions/toc/index.ts
Normal file
23
src/assets/javascripts/actions/toc/index.ts
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
* Copyright (c) 2016-2020 Martin Donath <martin.donath@squidfunk.com>
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to
|
||||||
|
* deal in the Software without restriction, including without limitation the
|
||||||
|
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||||
|
* sell copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||||
|
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||||
|
* IN THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export * from "./anchor"
|
Loading…
x
Reference in New Issue
Block a user