Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
− | /* | + | /* Tooltip para links de imagem */ |
− | + | .tile-top.tile-image a.warp-copy::after { | |
− | + | content: "Copy"; | |
− | + | position: absolute; | |
− | + | left: 50%; | |
− | + | background-color: #333; | |
− | + | color: white; | |
− | . | + | padding: 2px 6px; |
− | + | border-radius: 3px; | |
− | + | font-size: 12px; | |
− | + | white-space: nowrap; | |
− | + | z-index: 10; | |
− | + | opacity: 0; | |
− | . | + | visibility: hidden; |
− | + | pointer-events: none; | |
− | + | transform: translateX(-50%); | |
− | + | bottom: -25px; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | .warp-copy::after { | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | .tile-top { | + | .tile-top.tile-image a.warp-copy::before { |
− | + | content: ""; | |
− | + | position: absolute; | |
+ | left: 50%; | ||
+ | bottom: -18px; | ||
+ | border-width: 4px; | ||
+ | border-style: solid; | ||
+ | border-color: #333 transparent transparent transparent; | ||
+ | z-index: 10; | ||
+ | opacity: 0; | ||
+ | visibility: hidden; | ||
+ | pointer-events: none; | ||
+ | transform: translateX(-50%); | ||
} | } | ||
− | /* | + | /* Estilo para hover e copied para links de imagem */ |
− | .tile-top.tile-image | + | .tile-top.tile-image a.warp-copy:hover::after, |
− | + | .tile-top.tile-image a.warp-copy:hover::before { | |
− | + | opacity: 1; | |
− | + | visibility: visible; | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | .tile-top.tile-image a | + | .tile-top.tile-image a.warp-copy.copied::after { |
− | + | content: "Copied!" !important; | |
− | + | background-color: #4CAF50 !important; | |
− | + | opacity: 1 !important; | |
− | + | visibility: visible !important; | |
− | |||
− | |||
} | } | ||
− | /* | + | /* Certifique-se de que o feedback "copied" seja visível */ |
− | . | + | .warp-copy.copied::before { |
− | + | opacity: 1 !important; | |
− | + | visibility: visible !important; | |
− | + | border-color: #4CAF50 transparent transparent transparent !important; | |
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 15:56, 9 May 2025
/* Tooltip para links de imagem */ .tile-top.tile-image a.warp-copy::after { content: "Copy"; position: absolute; left: 50%; background-color: #333; color: white; padding: 2px 6px; border-radius: 3px; font-size: 12px; white-space: nowrap; z-index: 10; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%); bottom: -25px; } .tile-top.tile-image a.warp-copy::before { content: ""; position: absolute; left: 50%; bottom: -18px; border-width: 4px; border-style: solid; border-color: #333 transparent transparent transparent; z-index: 10; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(-50%); } /* Estilo para hover e copied para links de imagem */ .tile-top.tile-image a.warp-copy:hover::after, .tile-top.tile-image a.warp-copy:hover::before { opacity: 1; visibility: visible; } .tile-top.tile-image a.warp-copy.copied::after { content: "Copied!" !important; background-color: #4CAF50 !important; opacity: 1 !important; visibility: visible !important; } /* Certifique-se de que o feedback "copied" seja visível */ .warp-copy.copied::before { opacity: 1 !important; visibility: visible !important; border-color: #4CAF50 transparent transparent transparent !important; }