diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5d2d39a..416692e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -32,10 +32,11 @@ repos: name: prettier (css, js) types_or: [css, javascript] -- repo: https://github.com/pre-commit/mirrors-csslint - rev: v1.0.5 - hooks: - - id: csslint +# fails on background-image: url(...) +# - repo: https://github.com/pre-commit/mirrors-csslint +# rev: v1.0.5 +# hooks: +# - id: csslint - repo: local hooks: diff --git a/docs/index.rst b/docs/index.rst index edc975f..75f70de 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -15,6 +15,7 @@ that can be clicked to peek at the target of the reference. .. video:: _static/sphinx-peek-demo.mp4 :alt: sphinx-peek demo :width: 600 + :preload: none Usage ----- diff --git a/src/sphinx_peek/__init__.py b/src/sphinx_peek/__init__.py index 3960728..e371482 100644 --- a/src/sphinx_peek/__init__.py +++ b/src/sphinx_peek/__init__.py @@ -68,7 +68,7 @@ class PeekConfig: preview_height: int = f("Height of preview window", 300) offset_x: int = f("Distance of preview window from icon (horizontal)", 20) offset_y: int = f("Distance of preview window from icon (vertical)", 20) - open_delay: int = f("Delay (milliseconds) before displaying preview window", 100) + open_delay: int = f("Delay (milliseconds) before displaying preview window", 200) @classmethod def from_config(cls, config: Config) -> PeekConfig: diff --git a/src/sphinx_peek/assets/sphinx_peek.css b/src/sphinx_peek/assets/sphinx_peek.css index f61f73a..1c45d1e 100644 --- a/src/sphinx_peek/assets/sphinx_peek.css +++ b/src/sphinx_peek/assets/sphinx_peek.css @@ -46,4 +46,8 @@ overflow: hidden; border: none; border-radius: 0.5rem; + background-color: rgba(128, 128, 128, 0.4); + background-image: url('data:image/svg+xml,'); + background-repeat: no-repeat; + background-position: center center; }