MediaWiki:Gadget-Tooltip.css: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary |
||
| (10 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 70: | Line 71: | ||
position: fixed; | position: fixed; | ||
z-index: 10005; | z-index: 10005; | ||
width: 100%; | 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: | border-radius: 20px 20px 5px 5px; | ||
border: 1px solid var(--theme-accent-color); | border: 1px solid var(--theme-accent-color); | ||
box-shadow: 1px 5px 5px 1px black; | |||
min-width: 150px; | min-width: 150px; | ||
min-height: 25px; | min-height: 25px; | ||
padding: 6px; | padding: 6px 0 6px 12px; | ||
bottom: 0; | bottom: 0; | ||
left: 0; | left: 0; | ||
margin: 0; | margin: 0; | ||
overflow-y: | overflow-y: auto; | ||
} | } | ||
| Line 104: | 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 125: | Line 124: | ||
} | } | ||
.skin-minerva .custom-tt-wrapper .oo-ui-popupWidget-body { | |||
width: 100% !important; | |||
} | } | ||
| Line 144: | Line 138: | ||
} | } | ||
} | } | ||
e | |||