MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,113:
/* ======================================================= */
/* AXA BRAIN AI ASSISTANT
/* ======================================================= */
/* 1. Z-INDEX
.ext-aiassistant,
.ext-aiassistant-panel {
Line 1,123 ⟶ 1,122:
}
/* 2. MOBILE
@media screen and (max-width: 768px) {
/*
.ext-aiassistant-panel {
/* Force
position: fixed !important;
left: 0 !important;▼
right: 0 !important;▼
bottom: 0 !important;▼
width: 100% !important;
height: 100% !important;
max-width:
max-height:
/* Reset
margin: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
/*
/* This allows the JS to hide the window (display: none) when you click minimize */
display: flex !important;▼
flex-direction: column !important;▼
}
/*
.ext-aiassistant-body {▼
flex-grow: 1 !important;▼
height: auto !important;▼
▲ overflow-y: auto !important; /* Scrollable internal area */
}▼
/* iPhone/Android Notch Safety - Header */▼
.ext-aiassistant-header {
position: absolute !important;
▲ left: 0 !important;
▲ right: 0 !important;
height: 50px !important;
padding-top: env(safe-area-inset-top) !important;
background: #fff !important; /* Match your theme header color if needed */
border-bottom: 1px solid #eaecf0 !important;
}
/*
.ext-aiassistant-footer {
▲ bottom: 0 !important;
right: 0 !important;
/* Height + iPhone Home Bar Safety */
min-height: 60px !important;
padding-bottom: env(safe-area-inset-bottom) !important;
z-index: 10 !important;
background: #fff !important;
border-top: 1px solid #eaecf0 !important;
▲ }
/* --- D. MESSAGE BODY (Scrollable Middle Area) --- */
▲ .ext-aiassistant-body {
position: absolute !important;
/* Calculate Top: Header Height (50px) + Notch */
top: calc(50px + env(safe-area-inset-top)) !important;
/* 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;
left: 0 !important;
right: 0 !important;
width: auto !important;
▲ height: auto !important;
/* Allow Scrolling */
overflow-y: auto !important;
-webkit-overflow-scrolling: touch; /* Smooth scroll on iOS */
}
}
| |||