MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Tag: Reverted
Line 1,116:
/* ======================================================= */
 
/* 1. Z-INDEX & VISIBILITY (Ensures it sits above floating buttons) */
.ext-aiassistant,
.ext-aiassistant-panel {
z-index: 20009999 !important; /* Maximum Priority */
}
 
/* 2. SMART HIDE: If AI Panel is OPEN, hide the floating buttons completely */
/* 2. MOBILE OVERRIDES */
/* This replicates the "Search Mode" behavior where UI elements disappear */
@media screen and (max-width: 768px) {
/* If body contains a visible AI panel, hide floating buttons */
body:has(.ext-aiassistant-panel:not([style*="display: none"])) #searchIcon,
body:has(.ext-aiassistant-panel:not([style*="display: none"])) .branding-box,
body:has(.ext-aiassistant-panel:not([style*="display: none"])) #cps-open-toc,
body:has(.ext-aiassistant-panel:not([style*="display: none"])) #custom-email-btn {
display: none !important;
}
}
 
/* 23. MOBILE OVERRIDES */
@media screen and (max-width: 768px) {
/* --- A. THE MAIN CONTAINER (The White Cover) --- */
.ext-aiassistant-panel {
/* Force Full Screen Dimensions */
position: fixed !important;
insettop: 0 !important; /*left: Shortcut0 for!important; top/left/right/: 0 !important; bottom: 0 */!important;
width: 100%100vw !important;
height: 100%100vh !important;
max-width: none !important;
max-height/* APPEARANCE: noneSolid White Cover !important;*/
background-color: #ffffff !important;
 
/*background: Reset#ffffff appearance */!important;
marginborder: 0none !important;
border-radius: 0 !important;
box-shadow: none !important;
backgroundmargin: #fff0 !important; /* Ensure it's opaque */
 
/* CRITICAL FIX FOR IOS: WeBeats removedthe "display:floating buttons' flex3D !important"transform */
transform: translateZ(100px) !important;
/* This allows the JS to hide the window (display: none) when you click minimize */
will-change: transform;
}
 
Line 1,156 ⟶ 1,169:
padding-top: env(safe-area-inset-top) !important;
z-index: 1010000 !important;
background: #fff !important; /* Match your theme header color if needed */
border-bottom: 1px solid #eaecf0 !important;
}
Line 1,172 ⟶ 1,185:
padding-bottom: env(safe-area-inset-bottom) !important;
z-index: 1010000 !important;
background: #fff !important;
border-top: 1px solid #eaecf0 !important;
Line 1,185 ⟶ 1,198:
/* Calculate Bottom: Approx Footer Height (65px) + Home Bar */
/* We leave a little extra space so text isn't cut off by the input box */
bottom: calc(65px + env(safe-area-inset-bottom)) !important;
Line 1,196 ⟶ 1,208:
overflow-y: auto !important;
-webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
background: #fff !important; /* Ensures no transparency leaks */
}
}