Skip to content

Commit

Permalink
Center event popover vertically (#147)
Browse files Browse the repository at this point in the history
  • Loading branch information
melissawm authored Jan 31, 2024
1 parent 6abbf99 commit 6555f6d
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions napari_sphinx_theme/static/css/napari-sphinx-theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,6 @@ div.admonition.note>.admonition-title::after {

/* The Modal (background) */
.modal {
display: none;
/* Hidden by default */
position: fixed;
/* Stay in place */
Expand All @@ -1047,18 +1046,18 @@ div.admonition.note>.admonition-title::after {
/* Black w/ opacity */
}


/* Modal Content */
.modal-content {
position: relative;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);;
background-color: #fefefe;
margin: auto;
padding: 0;
padding: 0px;
border: 1px solid #888;
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;
animation-name: animatetop;
animation-duration: 0.4s
}

/* Modal Content */
Expand Down

0 comments on commit 6555f6d

Please sign in to comment.