From 0e510cf56bcd82d631ff8fca68fcd5164dedb9e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Melissa=20Weber=20Mendon=C3=A7a?= Date: Wed, 31 Jan 2024 06:43:58 -0300 Subject: [PATCH] Fix calendar popover width for mobile (#146) --- .../static/css/napari-sphinx-theme.css | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/napari_sphinx_theme/static/css/napari-sphinx-theme.css b/napari_sphinx_theme/static/css/napari-sphinx-theme.css index e4353227..8f9e3449 100644 --- a/napari_sphinx_theme/static/css/napari-sphinx-theme.css +++ b/napari_sphinx_theme/static/css/napari-sphinx-theme.css @@ -1053,7 +1053,6 @@ div.admonition.note>.admonition-title::after { margin: auto; padding: 0; border: 1px solid #888; - width: 20%; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); -webkit-animation-name: animatetop; -webkit-animation-duration: 0.4s; @@ -1061,6 +1060,24 @@ div.admonition.note>.admonition-title::after { animation-duration: 0.4s } +/* Modal Content */ +.modal-content { + width: 30%; +} + +@media (max-width: 780px) { + .modal-content { + width: 50%; + } +} + +@media (max-width: 495px) { + .modal-content { + width: 80%; + } +} + + /* Add Animation */ @-webkit-keyframes animatetop { from {