MediaWiki:Mobile.css: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
/* | /* ================================================================ | ||
MediaWiki:Mobile.css | |||
Loaded only on Minerva (mobile skin). | |||
================================================================ */ | |||
/* ── 1. AUTO-ZOOM PREVENTION ───────────────────────────────────── | |||
iOS and Android zoom the viewport when a focused input has | |||
font-size < 16px. Every input on the site must be >= 16px. | |||
──────────────────────────────────────────────────────────────── */ | |||
/* Reader toolbar search input */ | |||
#gr-search-panel input { | |||
font-size: 16px !important; | |||
} | } | ||
/* | /* New document dialog inputs */ | ||
#gr- | #gr-newdoc-overlay input, | ||
#gr-newdoc-overlay select, | |||
#gr-newdoc-overlay textarea { | |||
font-size: 16px !important; | |||
} | } | ||
# | /* Annotation composer inputs (gr_annotations gadget) */ | ||
.gra-composer-input, | |||
.gra-fb-select, | |||
#gra-nt-input, | |||
#gra-bm-input, | |||
#gra-fb-text, | |||
#gra-fb-email { | |||
font-size: 16px !important; | |||
} | } | ||
/* ── 2. LONG-PRESS CONTEXT MENU SUPPRESSION ────────────────────── | |||
-webkit-touch-callout: none → stops iOS "Copy / Look Up / Share" | |||
popup on long press of buttons | |||
user-select: none → prevents text selection on button labels | |||
touch-action: manipulation → removes 300ms tap delay and prevents | |||
context menu on long press (iOS + Android) | |||
──────────────────────────────────────────────────────────────── */ | |||
/* | /* Sanskrit keyboard keys */ | ||
.gr-kb-key, | |||
.gr-kb-key-iast, | |||
.gr-kb-action, | |||
.gr-kb { | |||
-webkit-touch-callout: none; | |||
user-select: none; | |||
touch-action: manipulation; | |||
} | } | ||
# | /* Annotation FAB buttons and mobile action bar */ | ||
.gra-mob-btn, | |||
.gra-fab-btn, | |||
#gra-toggle, | |||
#gra-mob-feedback, | |||
#gra-mob-note, | |||
#gra-mob-bookmark, | |||
#gra-mob-dismiss { | |||
-webkit-touch-callout: none; | |||
user-select: none; | |||
touch-action: manipulation; | |||
} | } | ||
#gr- | /* Reader toolbar buttons */ | ||
#gr-static-bar .gr-btn, | |||
#gr-static-bar .gr-icon-btn { | |||
-webkit-touch-callout: none; | |||
user-select: none; | |||
touch-action: manipulation; | |||
} | } | ||
# | /* siteNav FAB buttons */ | ||
#se-docnav-btn, | |||
#se-scrolltop { | |||
-webkit-touch-callout: none; | |||
user-select: none; | |||
touch-action: manipulation; | |||
} | } | ||
Revision as of 08:24, 21 May 2026
/* ================================================================
MediaWiki:Mobile.css
Loaded only on Minerva (mobile skin).
================================================================ */
/* ── 1. AUTO-ZOOM PREVENTION ─────────────────────────────────────
iOS and Android zoom the viewport when a focused input has
font-size < 16px. Every input on the site must be >= 16px.
──────────────────────────────────────────────────────────────── */
/* Reader toolbar search input */
#gr-search-panel input {
font-size: 16px !important;
}
/* New document dialog inputs */
#gr-newdoc-overlay input,
#gr-newdoc-overlay select,
#gr-newdoc-overlay textarea {
font-size: 16px !important;
}
/* Annotation composer inputs (gr_annotations gadget) */
.gra-composer-input,
.gra-fb-select,
#gra-nt-input,
#gra-bm-input,
#gra-fb-text,
#gra-fb-email {
font-size: 16px !important;
}
/* ── 2. LONG-PRESS CONTEXT MENU SUPPRESSION ──────────────────────
-webkit-touch-callout: none → stops iOS "Copy / Look Up / Share"
popup on long press of buttons
user-select: none → prevents text selection on button labels
touch-action: manipulation → removes 300ms tap delay and prevents
context menu on long press (iOS + Android)
──────────────────────────────────────────────────────────────── */
/* Sanskrit keyboard keys */
.gr-kb-key,
.gr-kb-key-iast,
.gr-kb-action,
.gr-kb {
-webkit-touch-callout: none;
user-select: none;
touch-action: manipulation;
}
/* Annotation FAB buttons and mobile action bar */
.gra-mob-btn,
.gra-fab-btn,
#gra-toggle,
#gra-mob-feedback,
#gra-mob-note,
#gra-mob-bookmark,
#gra-mob-dismiss {
-webkit-touch-callout: none;
user-select: none;
touch-action: manipulation;
}
/* Reader toolbar buttons */
#gr-static-bar .gr-btn,
#gr-static-bar .gr-icon-btn {
-webkit-touch-callout: none;
user-select: none;
touch-action: manipulation;
}
/* siteNav FAB buttons */
#se-docnav-btn,
#se-scrolltop {
-webkit-touch-callout: none;
user-select: none;
touch-action: manipulation;
}