Skip to content

Commit

Permalink
show box-shadow only when loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
tophf committed Sep 30, 2024
1 parent b1d24a2 commit 0bbec3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions script.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// @grant GM.setValue
// @grant GM.xmlHttpRequest
//
// @version 1.4.3
// @version 1.4.4
// @author tophf
//
// @original-version 2017.9.29
Expand Down Expand Up @@ -3995,6 +3995,7 @@ function createGlobalStyle() {
#\mpiv-popup {
display: none;
cursor: none;
box-shadow: none;
${cfg.uiFadein ? String.raw`
animation: .2s \mpiv-fadein both;
transition: box-shadow .25s, background-color .25s;
Expand All @@ -4020,7 +4021,6 @@ ${App.popupStyleBase = `
${cfg.uiBorder ? `border: ${cfg.uiBorder}px solid ${Util.color('Border')};` : ''}
${cfg.uiPadding ? `padding: ${cfg.uiPadding}px;` : ''}
${cfg.uiMargin ? `margin: ${cfg.uiMargin}px;` : ''}
box-shadow: ${cfg.uiShadow ? `2px 4px ${cfg.uiShadow}px 4px transparent` : 'none'};
}
#\mpiv-popup.\mpiv-show[loaded] {
background-color: ${Util.color('Background')};
Expand Down

0 comments on commit 0bbec3a

Please sign in to comment.