MediaWiki:Gadget-Tooltip.css: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 3: | Line 3: | ||
.skin-minerva .hover-tooltip { display: none; } | .skin-minerva .hover-tooltip { display: none; } | ||
.skin-minerva .custom-tt-wrapper.hnaw-collapsible .mw-collapsible-toggle { display: none !important; } | .skin-minerva .custom-tt-wrapper.hnaw-collapsible .mw-collapsible-toggle { display: none !important; } | ||
/* Colors */ | |||
:root .wgl-darkmode, :root .wgl-theme-dark { | |||
--tooltip-bg: #0c0c0cd6; | |||
} | |||
:root .wgl-lightmode, :root .wgl-theme-light { | |||
--tooltip-bg: #ecececd6; | |||
} | |||
/** Text styling **/ | /** Text styling **/ | ||
| Line 33: | Line 42: | ||
/** Desktop: enabled through gadget **/ | /** Desktop: enabled through gadget **/ | ||
/* Container */ | /* Container */ | ||
.skin-vector-legacy . | .skin-vector-legacy .custom-tt-wrapper .oo-ui-popupWidget-popup { | ||
background: var(--tooltip-bg); | |||
color: var(--theme-page-text-color); | |||
border: 1px solid var(--theme-accent-color); | |||
border-radius: 5px; | |||
padding: 6px; | |||
min-width: 75px; | |||
text-align: center; | |||
} | } | ||
/* Arrow */ | /* Arrow */ | ||
.skin-vector-legacy .mw-collapsible-content.custom-tt:before { | .skin-vector-legacy .mw-collapsible-content.custom-tt:before { | ||
| Line 72: | Line 73: | ||
width: calc(100% - 1em + 2px); | width: calc(100% - 1em + 2px); | ||
height: 125px; | height: 125px; | ||
background: var(--tooltip-bg); | |||
color: var(--theme-page-text-color); | color: var(--theme-page-text-color); | ||
border-radius: 20px 20px 5px 5px; | border-radius: 20px 20px 5px 5px; | ||
| Line 105: | Line 106: | ||
font-size: 30px; | font-size: 30px; | ||
} | } | ||
.custom-tt-wrapper .tt-header { | |||
display: block; | |||
font-weight: bold; | |||
font-size: larger; | |||
} | |||
.hnaw-ee .oo-ui-popupWidget-body div { | |||
text-align: left !important; | |||
} | } | ||
/* Undo default ooui */ | /* Undo default ooui */ | ||
| Line 126: | Line 124: | ||
} | } | ||
.skin-minerva .custom-tt-wrapper .oo-ui-popupWidget-body { | |||
width: 100% !important; | |||
} | } | ||
| Line 145: | Line 138: | ||
} | } | ||
} | } | ||
e | |||