mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-01 01:16:30 +00:00
Simplify mobile overrides using LESS
Change-Id: I9ffce148fede03dda6e78377a0d20355bb45e5fd
This commit is contained in:
parent
6d6bff49eb
commit
0306f77fde
|
@ -11,11 +11,11 @@
|
||||||
|
|
||||||
.ve-init-mw-target-surface {
|
.ve-init-mw-target-surface {
|
||||||
padding: 1em 0;
|
padding: 1em 0;
|
||||||
}
|
|
||||||
|
|
||||||
.ve-init-mw-target-surface .ve-ce-documentNode,
|
.ve-ce-documentNode,
|
||||||
.ve-init-mw-target-surface .ve-ui-surface-placeholder {
|
.ve-ui-surface-placeholder {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media ( max-width: 767px ) {
|
@media ( max-width: 767px ) {
|
||||||
|
@ -65,65 +65,69 @@
|
||||||
.ve-init-mw-mobileArticleTarget-pageTools,
|
.ve-init-mw-mobileArticleTarget-pageTools,
|
||||||
.ve-init-mw-mobileArticleTarget-editTools {
|
.ve-init-mw-mobileArticleTarget-editTools {
|
||||||
display: table;
|
display: table;
|
||||||
|
|
||||||
|
> .oo-ui-toolGroup,
|
||||||
|
> .ve-init-mw-mobileArticleTarget-title-container {
|
||||||
|
display: table-cell;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Edit tools has no 100% width cells */
|
/* Edit tools has no 100% width cells */
|
||||||
.ve-init-mw-mobileArticleTarget-editTools {
|
.ve-init-mw-mobileArticleTarget-editTools {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
|
||||||
|
|
||||||
.ve-init-mw-mobileArticleTarget-pageTools > .oo-ui-toolGroup,
|
> .oo-ui-toolGroup {
|
||||||
.ve-init-mw-mobileArticleTarget-pageTools > .ve-init-mw-mobileArticleTarget-title-container,
|
text-align: center;
|
||||||
.ve-init-mw-mobileArticleTarget-editTools > .oo-ui-toolGroup {
|
}
|
||||||
display: table-cell;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ve-init-mw-mobileArticleTarget-editTools > .oo-ui-toolGroup {
|
.oo-ui-barToolGroup {
|
||||||
text-align: center;
|
.oo-ui-iconElement-icon {
|
||||||
}
|
left: 50%;
|
||||||
|
margin-left: -0.9375em;
|
||||||
|
}
|
||||||
|
|
||||||
.ve-init-mw-mobileArticleTarget-editTools .oo-ui-barToolGroup .oo-ui-iconElement-icon {
|
@media ( max-width: 479px ) {
|
||||||
left: 50%;
|
> .oo-ui-toolGroup-tools > .oo-ui-tool.oo-ui-iconElement.oo-ui-tool-with-label > .oo-ui-tool-link {
|
||||||
margin-left: -0.9375em;
|
.oo-ui-tool-title {
|
||||||
}
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
.ve-init-mw-mobileArticleTarget-editTools .oo-ui-tool-with-label .oo-ui-iconElement-icon,
|
.oo-ui-iconElement-icon {
|
||||||
.ve-init-mw-mobileArticleTarget-editTools .oo-ui-popupToolGroup-handle .oo-ui-iconElement-icon {
|
margin-left: -0.9375em;
|
||||||
left: 50%;
|
}
|
||||||
margin-left: -1.875em;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ve-init-mw-mobileArticleTarget-editTools .oo-ui-popupToolGroup-handle .oo-ui-indicatorElement-indicator {
|
}
|
||||||
left: 50%;
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ve-init-mw-mobileArticleTarget-editTools .oo-ui-popupToolGroup .oo-ui-toolGroup-tools {
|
.oo-ui-tool-with-label .oo-ui-iconElement-icon,
|
||||||
text-align: left;
|
.oo-ui-popupToolGroup-handle .oo-ui-iconElement-icon {
|
||||||
}
|
left: 50%;
|
||||||
|
margin-left: -1.875em;
|
||||||
|
}
|
||||||
|
|
||||||
.ve-init-mw-mobileArticleTarget-editTools > .oo-ui-toolGroup-empty {
|
.oo-ui-popupToolGroup-handle .oo-ui-indicatorElement-indicator {
|
||||||
display: none;
|
left: 50%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ve-init-mw-mobileArticleTarget-editTools > .oo-ui-toolGroup:last-child {
|
.oo-ui-popupToolGroup .oo-ui-toolGroup-tools {
|
||||||
border-right: 0;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ve-init-mw-mobileArticleTarget-editTools > .oo-ui-toolGroup > .oo-ui-toolGroup-tools > .oo-ui-tool {
|
> .oo-ui-toolGroup-empty {
|
||||||
width: 100%;
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .oo-ui-toolGroup:last-child {
|
||||||
|
border-right: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
> .oo-ui-toolGroup > .oo-ui-toolGroup-tools > .oo-ui-tool {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.ve-init-mw-mobileArticleTarget-editTools-hidden,
|
.ve-init-mw-mobileArticleTarget-editTools-hidden,
|
||||||
.ve-init-mw-mobileArticleTarget-pageToolbar-hidden {
|
.ve-init-mw-mobileArticleTarget-pageToolbar-hidden {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media ( max-width: 479px ) {
|
|
||||||
.ve-init-mw-mobileArticleTarget-toolbar .oo-ui-barToolGroup > .oo-ui-toolGroup-tools > .oo-ui-tool.oo-ui-iconElement.oo-ui-tool-with-label > .oo-ui-tool-link .oo-ui-tool-title {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.ve-init-mw-mobileArticleTarget-toolbar .oo-ui-barToolGroup > .oo-ui-toolGroup-tools > .oo-ui-tool.oo-ui-iconElement.oo-ui-tool-with-label > .oo-ui-tool-link .oo-ui-iconElement-icon {
|
|
||||||
margin-left: -0.9375em;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue