MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
Tag: Manual revert
No edit summary
Tag: Reverted
Line 1,144:
 
/* ======================================================= */
/* 3. AI ASSISTANT (AXA BRAIN) CUSTOMIZATION - MOBILE LAYOUT REFACTOR (Teleport Fix) */
/* ======================================================= */
 
/* 1. GLOBAL LAYER (All Devices) */
/* We ONLY force the layer order here, not the position. */
/* This ensures it sits on top of your floating buttons (z-index: 1002). */
.ext-aiassistant,
.ext-aiassistant-panel {
z-index: 2000 !important;
}
 
/* 2. MOBILE ONLY: FULL SCREEN MODE */
/* We only force 'fixed' position on mobile to lock it to the screen. */
@media screen and (max-width: 768px) {
 
.ext-aiassistant-panel {
/* Force1. FixedHIDE soTHE itBUGGY coversTOP theHEADER screen(Clean regardlessup ofthe scrolltop) */
.ext-aiassistant-header {
position: fixed !important;
background: transparent !important;
max-heightborder: none !important;
border-radiusheight: 0 !important;
min-height: 0 !important;
padding: 0 !important;
pointer-events: none !important; /* Let clicks pass through empty space */
overflow: visible !important; /* Allow button to "escape" the box */
}
 
/* Hide the Title and extra buttons (Previous/Settings) */
.ext-aiassistant-title,
.ext-aiassistant-header-actions button:not(:last-child) {
display: none !important;
}
 
/* 2. TELEPORT THE 'CLOSE/MINIMIZE' BUTTON TO BOTTOM LEFT */
/* We target the last button in the header actions */
.ext-aiassistant-header-actions button:last-child {
display: flex !important;
align-items: center !important;
justify-content: center !important;
/* OverrideBREAK inlineIT stylesOUT toOF forceTHE full width/heightHEADER */
widthposition: 100%fixed !important;
heightz-index: 100%3000 !important;
maxpointer-widthevents: noneauto !important;
max-height: none !important;
 
/* PinPIN toTO allBOTTOM 4LEFT (Next to cornersKeyboard) */
topbottom: 012px !important;
left: 10px !important;
top: auto !important; /* Reset top positioning */
/* Visual Styling */
width: 36px !important;
height: 36px !important;
background: rgba(0,0,0,0.05) !important; /* Subtle contrast */
border-radius: 50% !important;
backdrop-filter: blur(10px);
}
 
/* 3. SHIFT TEXT BOX TO THE RIGHT */
/* Make space for the new button position */
.ext-aiassistant-panelinput {
margin-left: 45px !important;
width: calc(100% - 90px) !important; /* Adjust width to fit both buttons */
}
 
/* 4. ENSURE FOOTER IS STABLE */
.ext-aiassistant-footer {
position: fixed !important; /* Anchor footer to screen bottom */
bottom: 0 !important;
left: 0 !important;
right: 0 !important;
padding-bottom: 0env(safe-area-inset-bottom) !important;
background: #ffffff !important;
z-index: 20002999 !important;
}
 
/* 5. RESET PANEL /* ResetTO stylesFULL forSCREEN a(No flatcomplex app-likeheight lookcalc) */
.ext-aiassistant-panel {
border-radius: 0 !important;
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
margin: 0 !important;
border: none !important;
}
/* Ensure6. thePADDING internalFOR chatCHAT body expands to fill the spaceMESSAGES */
/* Ensure messages don't get hidden behind the fixed footer */
.ext-aiassistant-body {
heightpadding-bottom: auto70px !important;
flexpadding-growtop: 120px !important; /* Since header is gone */
}
}