MediaWiki:Common.css: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 4: | Line 4: | ||
/* Contentor do bloco de código */ | |||
.mw-highlight, .syntaxhighlight { | |||
position: relative; /* Necessário para o posicionamento do botão */ | |||
} | |||
/* Estilo do Botão Copy */ | |||
.copy-code-button { | .copy-code-button { | ||
position: absolute; | |||
top: 5px; | |||
right: 5px; | |||
z-index: 100; | |||
padding: 4px 8px; | |||
background-color: #f8f9fa; | background-color: #f8f9fa; | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
border-radius: | border-radius: 4px; | ||
color: #202122; | color: #202122; | ||
font-size: 11px; | |||
font-family: sans-serif; | |||
cursor: pointer; | |||
opacity: 0.8; | |||
} | } | ||
.copy-code-button:hover { | .copy-code-button:hover { | ||
opacity: 1; | |||
background-color: #ffffff; | background-color: #ffffff; | ||
border-color: # | border-color: #447ff5; | ||
color: # | color: #447ff5; | ||
box-shadow: 0 1px 2px rgba(0,0,0,0.1); | |||
} | } | ||
| Line 382: | Line 390: | ||
} | } | ||
.arrow-icon.rotated { | .arrow-icon.rotated { | ||
transform: rotate(180deg) !important; | |||
} | |||
/* Esta regra garante transição suave mesmo se o MediaWiki interferir */ | |||
.arrow-icon { | |||
transition: transform 0.25s ease-in-out !important; | |||
transform-origin: center center !important; | |||
} | } | ||