Skip to content

Commit 0e510cf

Browse files
authored
Fix calendar popover width for mobile (#146)
1 parent 37c5cf8 commit 0e510cf

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

napari_sphinx_theme/static/css/napari-sphinx-theme.css

+18-1
Original file line numberDiff line numberDiff line change
@@ -1053,14 +1053,31 @@ div.admonition.note>.admonition-title::after {
10531053
margin: auto;
10541054
padding: 0;
10551055
border: 1px solid #888;
1056-
width: 20%;
10571056
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
10581057
-webkit-animation-name: animatetop;
10591058
-webkit-animation-duration: 0.4s;
10601059
animation-name: animatetop;
10611060
animation-duration: 0.4s
10621061
}
10631062

1063+
/* Modal Content */
1064+
.modal-content {
1065+
width: 30%;
1066+
}
1067+
1068+
@media (max-width: 780px) {
1069+
.modal-content {
1070+
width: 50%;
1071+
}
1072+
}
1073+
1074+
@media (max-width: 495px) {
1075+
.modal-content {
1076+
width: 80%;
1077+
}
1078+
}
1079+
1080+
10641081
/* Add Animation */
10651082
@-webkit-keyframes animatetop {
10661083
from {

0 commit comments

Comments
 (0)