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:
}
/* 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;
}
}
@media screen and (max-width: 768px) {
/* --- A. THE MAIN CONTAINER (The White Cover) --- */
.ext-aiassistant-panel {
/* Force Full Screen Dimensions */
position: fixed !important;
width:
height:
background-color: #ffffff !important;
border-radius: 0 !important;
box-shadow: none !important;
/* CRITICAL FIX FOR IOS:
transform: translateZ(100px) !important;
will-change: transform;
}
Line 1,156 ⟶ 1,169:
padding-top: env(safe-area-inset-top) !important;
z-index:
background: #fff !important;
border-bottom: 1px solid #eaecf0 !important;
}
Line 1,172 ⟶ 1,185:
padding-bottom: env(safe-area-inset-bottom) !important;
z-index:
background: #fff !important;
border-top: 1px solid #eaecf0 !important;
Line 1,185 ⟶ 1,198:
/* Calculate Bottom: Approx Footer Height (65px) + Home Bar */
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 */
}
}
| |||