MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary Tag: Reverted |
No edit summary Tag: Reverted |
||
Line 1,166:
/* ======================================================= */
/* 2. MOBILE ONLY:
/* ======================================================= */
@media screen and (max-width: 768px) {
/* A.
.ext-aiassistant {▼
position: static !important;▼
width: auto !important;▼
height: auto !important;▼
background: transparent !important;▼
z-index: auto !important;▼
clip: auto !important;▼
}▼
.ext-aiassistant-panel {
/* 1.
position: fixed !important;
top: 0 !important;
Line 1,191 ⟶ 1,180:
bottom: 0 !important;
/* 2. Force Full Dimensions (Overriding inline styles) */
width: 100% !important;
height: 100dvh !important; /*
max-width: none !important;
max-height: none !important;
margin: 0 !important;
background-color: #ffffff !important;▼
border-radius: 0 !important;
border: none !important;
/* 4.
/* We DO NOT force display here. This lets the JS hide it (display:none) */
display: flex !important;▼
/* or show it (display:block) naturally. */
flex-direction: column !important;▼
justify-content: space-between !important;▼
▲ /* 5. Visuals */
▲ background-color: #ffffff !important;
box-shadow: none !important;▼
overscroll-behavior: none !important; /* Stop background scroll */▼
}
/*
.ext-aiassistant-header {
width: 100% !important;
/* Fixed Height: Matches the Body 'top' value below */
border-bottom: 1px solid #eee !important;▼
/* iOS Notch Support */
padding-top: env(safe-area-inset-top) !important;
}▼
/* D. BODY (Scrollable Middle) */▼
/* FLEXBOX SCROLL TRICK: */▼
flex: 1 1 0% !important; ▼
z-
height: auto !important;▼
width: 100% !important;▼
padding-bottom: 20px !important;▼
}
/*
.ext-aiassistant-footer {
width: 100% !important;
/* Fixed Height: Matches the Body 'bottom' value below */
/* iOS Home Bar Support */
background: #fff !important;
border-top: 1px solid #eee !important;
/*
▲ }
▲ /* D. BODY (Scrollable Middle Area) */
▲ .ext-aiassistant-body {
/* 1. Anchored exactly between Header and Footer */
/* Note: 60px height + 20px (approx notch/padding) = ~80px top */
top: calc(60px + env(safe-area-inset-top)) !important;
bottom: calc(60px + env(safe-area-inset-bottom)) !important;
height: auto !important; /* Let 'top' and 'bottom' define the height */
overflow-y: auto !important;
▲
}
}
| |||