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
|
|
|
*
|
2019-01-01 13:24:23 +00:00
|
|
|
* @copyright 2011-2019 VisualEditor Team and others; see AUTHORS.txt
|
2014-03-14 19:52:40 +00:00
|
|
|
* @license The MIT License (MIT); see LICENSE.txt
|
|
|
|
*/
|
|
|
|
|
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
|
|
|
|
2019-02-13 13:20:46 +00:00
|
|
|
.ve-ce-attachedRootNode,
|
2017-10-17 18:44:03 +00:00
|
|
|
.ve-ui-surface-placeholder {
|
|
|
|
padding: 0;
|
2019-03-27 20:23:15 +00:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
// 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
|
|
|
}
|
2015-07-01 11:11:36 +00:00
|
|
|
}
|
2015-07-30 11:08:56 +00:00
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2018-04-12 22:32:33 +00:00
|
|
|
@media screen and ( max-width: 767px ) {
|
2015-07-30 11:08:56 +00:00
|
|
|
.ve-init-mw-target-surface .ve-ui-surface-placeholder > * {
|
|
|
|
/* Fix margin overlap */
|
|
|
|
margin-top: 0;
|
|
|
|
/* Placeholder doesn't need a border as well */
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ve-ui-debugBar {
|
2018-09-17 20:26:08 +00:00
|
|
|
padding-top: 0.8em;
|
2017-08-16 20:42:24 +00:00
|
|
|
border-top: 1px solid #c8ccd1;
|
2015-10-02 18:23:13 +00:00
|
|
|
box-shadow: 0 10px 10px -10px rgba( 0, 0, 0, 0.15 ) inset;
|
2015-07-30 11:08:56 +00:00
|
|
|
}
|
|
|
|
|
2015-08-06 16:55:13 +00:00
|
|
|
.ve-ui-debugBar-selectionLabel {
|
|
|
|
min-width: auto;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2015-07-30 11:08:56 +00:00
|
|
|
/* Hide toolbar shortcuts, no use on mobile */
|
2018-09-17 20:05:50 +00:00
|
|
|
.oo-ui-popupToolGroup-tools .oo-ui-tool-link .oo-ui-tool-accel {
|
2015-07-30 11:08:56 +00:00
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-08-06 14:22:15 +00:00
|
|
|
.ve-init-mw-mobileArticleTarget-title-container {
|
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
2017-08-16 20:42:24 +00:00
|
|
|
border-right: 1px solid #c8ccd1;
|
2015-08-06 14:22:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.ve-init-mw-mobileArticleTarget-title {
|
|
|
|
padding: 0 0.5em;
|
|
|
|
line-height: 3.164em;
|
|
|
|
white-space: nowrap;
|
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
}
|
|
|
|
|
2015-08-15 17:00:37 +00:00
|
|
|
.ve-init-mw-mobileArticleTarget-pageTools,
|
|
|
|
.ve-init-mw-mobileArticleTarget-editTools {
|
2015-08-06 14:22:15 +00:00
|
|
|
display: table;
|
2017-10-17 18:44:03 +00:00
|
|
|
|
|
|
|
> .oo-ui-toolGroup,
|
|
|
|
> .ve-init-mw-mobileArticleTarget-title-container {
|
|
|
|
display: table-cell;
|
|
|
|
}
|
2015-08-15 17:00:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/* Edit tools has no 100% width cells */
|
|
|
|
.ve-init-mw-mobileArticleTarget-editTools {
|
2015-08-06 14:22:15 +00:00
|
|
|
width: 100%;
|
|
|
|
|
2017-10-17 19:23:50 +00:00
|
|
|
> .oo-ui-popupToolGroup > .oo-ui-popupToolGroup-handle {
|
|
|
|
> .oo-ui-iconElement-icon,
|
|
|
|
> .oo-ui-indicatorElement-indicator {
|
2017-10-17 18:44:03 +00:00
|
|
|
left: 50%;
|
|
|
|
}
|
2018-12-03 18:20:02 +00:00
|
|
|
|
2017-10-17 19:23:50 +00:00
|
|
|
> .oo-ui-iconElement-icon {
|
|
|
|
margin-left: -1.875em;
|
|
|
|
}
|
|
|
|
}
|
2015-08-08 11:45:18 +00:00
|
|
|
|
2017-10-17 19:23:50 +00:00
|
|
|
> .oo-ui-barToolGroup {
|
|
|
|
text-align: center;
|
2017-10-17 10:25:32 +00:00
|
|
|
|
2017-10-17 19:23:50 +00:00
|
|
|
> .oo-ui-toolGroup-tools > .oo-ui-tool {
|
|
|
|
width: 100%;
|
2018-12-03 18:20:02 +00:00
|
|
|
|
2017-10-17 19:23:50 +00:00
|
|
|
> .oo-ui-tool-link {
|
2018-08-14 05:11:46 +00:00
|
|
|
padding: 0.875em;
|
2018-12-03 18:20:02 +00:00
|
|
|
|
2018-04-12 22:22:26 +00:00
|
|
|
> .oo-ui-iconElement-icon:not( .oo-ui-tool-checkIcon ) {
|
2017-10-17 19:23:50 +00:00
|
|
|
position: static;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: middle;
|
|
|
|
margin-right: 0.25em;
|
|
|
|
}
|
2018-12-03 18:20:02 +00:00
|
|
|
|
2017-10-17 19:23:50 +00:00
|
|
|
> .oo-ui-tool-title {
|
|
|
|
vertical-align: middle;
|
2018-04-12 22:32:33 +00:00
|
|
|
|
|
|
|
@media screen and ( max-width: 767px ) {
|
|
|
|
// stylelint-disable-next-line declaration-no-important
|
|
|
|
display: none !important;
|
|
|
|
}
|
2017-10-17 18:44:03 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2015-08-08 11:45:18 +00:00
|
|
|
|
2017-10-17 19:23:50 +00:00
|
|
|
> .oo-ui-toolGroup {
|
|
|
|
&-empty {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-10-17 18:44:03 +00:00
|
|
|
|
2017-10-17 19:23:50 +00:00
|
|
|
&:last-child {
|
|
|
|
border-right: 0;
|
|
|
|
}
|
2017-10-17 18:44:03 +00:00
|
|
|
}
|
2015-08-06 14:22:15 +00:00
|
|
|
}
|
|
|
|
|
2015-08-15 17:00:37 +00:00
|
|
|
.ve-init-mw-mobileArticleTarget-editTools-hidden,
|
|
|
|
.ve-init-mw-mobileArticleTarget-pageToolbar-hidden {
|
2015-08-08 10:52:05 +00:00
|
|
|
display: none;
|
|
|
|
}
|