Skip to content

Commit 6555f6d

Browse files
authored
Center event popover vertically (#147)
1 parent 6abbf99 commit 6555f6d

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

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

+6-7
Original file line numberDiff line numberDiff line change
@@ -1025,7 +1025,6 @@ div.admonition.note>.admonition-title::after {
10251025

10261026
/* The Modal (background) */
10271027
.modal {
1028-
display: none;
10291028
/* Hidden by default */
10301029
position: fixed;
10311030
/* Stay in place */
@@ -1047,18 +1046,18 @@ div.admonition.note>.admonition-title::after {
10471046
/* Black w/ opacity */
10481047
}
10491048

1049+
10501050
/* Modal Content */
10511051
.modal-content {
1052-
position: relative;
1052+
position: absolute;
1053+
top: 50%;
1054+
left: 50%;
1055+
transform: translate(-50%, -50%);;
10531056
background-color: #fefefe;
10541057
margin: auto;
1055-
padding: 0;
1058+
padding: 0px;
10561059
border: 1px solid #888;
10571060
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
1058-
-webkit-animation-name: animatetop;
1059-
-webkit-animation-duration: 0.4s;
1060-
animation-name: animatetop;
1061-
animation-duration: 0.4s
10621061
}
10631062

10641063
/* Modal Content */

0 commit comments

Comments
 (0)