2014-03-14 19:52:40 +00:00
|
|
|
/*!
|
2015-07-29 13:41:30 +00:00
|
|
|
* VisualEditor MediaWiki Initialization MobileArticleTarget styles.
|
2014-03-14 19:52:40 +00:00
|
|
|
*
|
2023-12-01 16:06:11 +00:00
|
|
|
* @copyright See AUTHORS.txt
|
2014-03-14 19:52:40 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
2024-06-07 18:18:01 +00:00
|
|
|
@import 'mediawiki.skin.variables.less';
|
2014-03-14 19:52:40 +00:00
|
|
|
|
2017-01-22 12:51:26 +00:00
|
|
|
.ve-init-mw-target-surface {
|
2019-02-13 12:10:25 +00:00
|
|
|
// margin-left and margin-right defined by the skin
|
|
|
|
// (see .content styles in Minerva)
|
|
|
|
margin-bottom: 1em;
|
2017-01-22 12:51:26 +00:00
|
|
|
|
2021-06-04 19:40:05 +00:00
|
|
|
> .ve-ce-surface .ve-ce-attachedRootNode,
|
|
|
|
> .ve-ui-surface-placeholder {
|
2017-10-17 18:44:03 +00:00
|
|
|
padding: 0;
|
2019-03-27 20:23:15 +00:00
|
|
|
|
2023-03-12 22:02:20 +00:00
|
|
|
&::before {
|
2019-03-27 20:23:15 +00:00
|
|
|
// This is done in this weird way to allow the margin to collapse with the margin of first
|
|
|
|
// element inside the editing surface. See I69d4d4bd9390a1007bc40cda9e78a6b3e7a1bd1d.
|
|
|
|
margin-top: 1em;
|
|
|
|
content: '';
|
|
|
|
display: block;
|
|
|
|
}
|
2017-10-17 18:44:03 +00:00
|
|
|
}
|
2019-04-01 20:12:54 +00:00
|
|
|
|
2021-06-04 19:40:05 +00:00
|
|
|
> .ve-ce-surface .ve-ce-attachedRootNode {
|
2019-04-01 20:12:54 +00:00
|
|
|
// Ensure whole page is focusable (T109508)
|
|
|
|
// Subtract toolbar height, margin-bottom and a little more
|
|
|
|
// to prevent scrolling.
|
|
|
|
min-height: ~'calc( 100vh - 5em )';
|
|
|
|
|
2019-05-14 19:52:21 +00:00
|
|
|
.ve-init-target-ios & {
|
2019-04-01 20:12:54 +00:00
|
|
|
// More spacing required on iOS to prevent scrolling.
|
|
|
|
min-height: ~'calc( 100vh - 10em )';
|
|
|
|
}
|
2021-04-29 15:00:36 +00:00
|
|
|
|
|
|
|
.ve-ui-targetWidget & {
|
|
|
|
min-height: 0;
|
|
|
|
}
|
2019-04-01 20:12:54 +00:00
|
|
|
}
|
2015-07-01 11:11:36 +00:00
|
|
|
}
|
2015-07-30 11:08:56 +00:00
|
|
|
|
2021-05-17 21:39:22 +00:00
|
|
|
.ve-ui-mwTargetWidget {
|
|
|
|
/* stylelint-disable-next-line selector-class-pattern */
|
|
|
|
.ve-ui-mwSurface.content {
|
|
|
|
// When content is applied to surface in a TargetWidget, don't add margins
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-03-27 20:23:15 +00:00
|
|
|
/* stylelint-disable-next-line selector-class-pattern */
|
|
|
|
.ve-init-mw-mobileArticleTarget.overlay {
|
|
|
|
// Override MobileFrontend `.overlay` styles.
|
|
|
|
// `padding-top` is instead set on a different element in adjustContentPadding().
|
|
|
|
padding-top: 0;
|
|
|
|
}
|
|
|
|
|
2019-07-29 19:20:17 +00:00
|
|
|
.ve-init-mw-mobileArticleTarget .ve-ui-overlay-local {
|
|
|
|
// Reset line height set by .content
|
|
|
|
line-height: 1.4;
|
|
|
|
}
|
|
|
|
|
2019-07-18 00:11:53 +00:00
|
|
|
.oo-ui-windowManager-ios-modal-ready .ve-init-mw-mobileArticleTarget {
|
|
|
|
height: 100%;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
2022-05-21 02:33:05 +00:00
|
|
|
.ve-init-mw-mobileArticleTarget-toolbar-popups {
|
|
|
|
// Avoid jittering while scrolling (T209192)
|
|
|
|
position: fixed;
|
|
|
|
}
|
|
|
|
|
2024-11-11 13:29:22 +00:00
|
|
|
.ve-init-mw-mobileArticleTarget-toolbar.ve-ui-targetToolbar-mobile .oo-ui-toolbar-tools > {
|
|
|
|
.ve-ui-toolbar-group-back,
|
|
|
|
.ve-ui-toolbar-group-save {
|
|
|
|
flex: 0;
|
|
|
|
min-width: 2.75em;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-04-12 22:32:33 +00:00
|
|
|
@media screen and ( max-width: 767px ) {
|
2021-06-04 19:40:05 +00:00
|
|
|
.ve-init-mw-target-surface > .ve-ui-surface-placeholder > * {
|
2015-07-30 11:08:56 +00:00
|
|
|
/* Fix margin overlap */
|
|
|
|
margin-top: 0;
|
|
|
|
/* Placeholder doesn't need a border as well */
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-debugBar {
|
2019-06-20 12:15:52 +00:00
|
|
|
margin: 0 -16px;
|
|
|
|
padding: 0 16px;
|
2024-06-07 18:18:01 +00:00
|
|
|
border-top: @border-subtle;
|
2015-10-02 18:23:13 +00:00
|
|
|
box-shadow: 0 10px 10px -10px rgba( 0, 0, 0, 0.15 ) inset;
|
2019-06-20 12:15:52 +00:00
|
|
|
|
|
|
|
@media screen and ( min-width: 720px ) {
|
|
|
|
margin: 0 -3.35em;
|
|
|
|
padding: 0 3.35em;
|
|
|
|
}
|
|
|
|
padding-top: 0.8em;
|
2015-07-30 11:08:56 +00:00
|
|
|
}
|
|
|
|
|
2019-10-09 13:55:40 +00:00
|
|
|
.ve-ui-targetWidget .ve-ui-debugBar {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
2015-08-06 16:55:13 +00:00
|
|
|
.ve-ui-debugBar-selectionLabel {
|
|
|
|
min-width: auto;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2019-05-14 19:52:21 +00:00
|
|
|
/* Restrict width of context to tablet width */
|
|
|
|
.ve-ui-mobileContext-menu {
|
|
|
|
max-width: 995px;
|
|
|
|
margin: 0 auto;
|
|
|
|
}
|