MediaWiki:Gadget-Tooltip.css: Difference between revisions
No edit summary |
No edit summary Tags: Mobile edit Mobile web edit |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 2: | Line 2: | ||
/* Force disable default hover tooltip on mobile and enable the toggle */ | /* Force disable default hover tooltip on mobile and enable the toggle */ | ||
.skin-minerva .hover-tooltip { display: none; } | .skin-minerva .hover-tooltip { display: none; } | ||
.skin-minerva .custom-tt-wrapper.hnaw-collapsible .mw-collapsible-toggle { display: | .skin-minerva .custom-tt-wrapper.hnaw-collapsible .mw-collapsible-toggle { display: none !important; } | ||
/** Text styling **/ | /** Text styling **/ | ||
| Line 17: | Line 17: | ||
font-weight: inherit; | font-weight: inherit; | ||
} | } | ||
.custom-tt-wrapper.hnaw-collapsible | .custom-tt-wrapper.hnaw-collapsible { | ||
font-weight: normal; | font-weight: normal; | ||
} | } | ||
| Line 24: | Line 24: | ||
/*** The tooltip's toggle version ***/ | /*** The tooltip's toggle version ***/ | ||
.toggle-tooltip.hnaw-collapsible, .text-tooltip { | .toggle-tooltip.hnaw-collapsible, .text-tooltip { | ||
display: inline-block; | |||
position: relative; | position: relative; | ||
border-bottom-color: rgb(128, 128, 128); | border-bottom-color: rgb(128, 128, 128); | ||
| Line 40: | Line 41: | ||
color: var(--theme-page-text-color); | color: var(--theme-page-text-color); | ||
border-radius: 5px 0 5px 5px; | border-radius: 5px 0 5px 5px; | ||
border: 1px solid var(--theme- | border: 1px solid var(--theme-accent-color); | ||
min-width: 75px; | min-width: 75px; | ||
min-height: 25px; | min-height: 25px; | ||
| Line 58: | Line 59: | ||
width: 0; | width: 0; | ||
border-top: 0 solid transparent; | border-top: 0 solid transparent; | ||
border-bottom: 10px solid var(--theme- | border-bottom: 10px solid var(--theme-accent-color); | ||
border-left: 10px solid transparent; | border-left: 10px solid transparent; | ||
border-right: 0 solid transparent; | border-right: 0 solid transparent; | ||
| Line 65: | Line 66: | ||
} | } | ||
/* | /* Bottom of Page Container (Mobile) */ | ||
.skin-minerva .custom-tt-wrapper .oo-ui-widget:not(.oo-ui-element-hidden) { | |||
.skin-minerva .custom-tt-wrapper . | |||
position: fixed; | position: fixed; | ||
z-index: 10005; | z-index: 10005; | ||
| Line 75: | Line 75: | ||
color: var(--theme-page-text-color); | color: var(--theme-page-text-color); | ||
border-radius: 0 0 5px 5px; | border-radius: 0 0 5px 5px; | ||
border: 1px solid var(--theme- | border: 1px solid var(--theme-accent-color); | ||
min-width: 150px; | min-width: 150px; | ||
min-height: 25px; | min-height: 25px; | ||
| Line 85: | Line 85: | ||
overflow-y: scroll; | overflow-y: scroll; | ||
} | } | ||
/* Container header */ | /* Container header */ | ||
.skin-minerva .custom-tt-wrapper . | .skin-minerva .custom-tt-wrapper .oo-ui-widget:not(.oo-ui-element-hidden):before { | ||
content: "ⓘ Tooltip content:"; | content: "ⓘ Tooltip content:"; | ||
display: block; | display: block; | ||
| Line 92: | Line 93: | ||
margin: 2px 0; | margin: 2px 0; | ||
width: 100%; | width: 100%; | ||
border-bottom: 1px solid var(--theme- | border-bottom: 1px solid var(--theme-accent-color); | ||
} | } | ||
/* Tooltip surrogate toggle on container header */ | /* Tooltip surrogate toggle on container header */ | ||
.skin-minerva .custom-tt-wrapper . | .skin-minerva .custom-tt-wrapper .oo-ui-widget:not(.oo-ui-element-hidden):after { | ||
content: " | content: "×" !important; | ||
position: fixed; | position: fixed; | ||
z-index: 10006; | z-index: 10006; | ||
| Line 104: | Line 106: | ||
} | } | ||
/* Tooltip surrogate toggle on backdrop overlay */ | /* Tooltip surrogate toggle on backdrop overlay */ | ||
.skin-minerva .custom-tt-wrapper . | /* not sure what this does so hiding it for now | ||
.skin-minerva .custom-tt-wrapper .oo-ui-widget:not(.oo-ui-element-hidden):before { | |||
background: black; | background: black; | ||
position: fixed; | position: fixed; | ||
| Line 114: | Line 117: | ||
z-index: 10004; | z-index: 10004; | ||
} | } | ||
*/ | |||
/* Undo default ooui */ | |||
.custom-tt-wrapper .oo-ui-popupWidget-popup { | |||
border: none; | |||
background-color: inherit; | |||
border-radius: inherit; | |||
} | |||
/* For [[Template:Extra Effect]] */ | /* For [[Template:Extra Effect]] */ | ||
| Line 167: | Line 177: | ||
} | } | ||
.skin-minerva .hnaw-extra-effect-wrapper | .skin-minerva .hnaw-extra-effect-wrapper button[aria-expanded="true"] + .mw-collapsible-content.hnaw-extra-effect { | ||
position: fixed; | position: fixed; | ||
z-index: 10005; | z-index: 10005; | ||