mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-24 15:53:46 +00:00
f2695a5bf3
Some LESS parsers will get confused with the lack of file extension. It's better to be explicit and in alignment with recent change in core I379334d7729e587a2a00. It was already weirdly mixed in this repo with some imports featuring extension and some not. Change-Id: If5065cf9e30289de9b4fd33315bd65b75959ecb7
126 lines
2.1 KiB
Plaintext
126 lines
2.1 KiB
Plaintext
/*
|
|
The styles below essentially place the navigation menu below the content,
|
|
instead of to the side of it. They also hide the logo, as there's no space
|
|
left for it.
|
|
*/
|
|
@import 'mediawiki.ui/variables.less';
|
|
|
|
@media screen and ( max-width: @width-breakpoint-tablet ) {
|
|
#mw-head {
|
|
position: static !important; /* stylelint-disable-line declaration-no-important */
|
|
margin-top: 0.5em;
|
|
}
|
|
|
|
/* Move the panel to the bottom and display it as in-line lists */
|
|
#mw-navigation {
|
|
#mw-panel {
|
|
display: table;
|
|
position: static;
|
|
table-layout: fixed;
|
|
width: 100%;
|
|
overflow: hidden;
|
|
font-size: 150%;
|
|
|
|
.portal {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
|
|
ul li {
|
|
list-style: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
/* Hide the logo and tabs */
|
|
#p-logo {
|
|
display: none;
|
|
}
|
|
|
|
/* Rearrange various page elements to fill the now-available space */
|
|
body #footer {
|
|
margin-left: 0;
|
|
padding-top: 0;
|
|
|
|
/* don't need these in the footer either... */
|
|
#footer-info-lastmod,
|
|
#footer-info-viewcount {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
#p-personal {
|
|
display: table;
|
|
position: relative;
|
|
width: 100%;
|
|
top: inherit;
|
|
left: inherit;
|
|
right: inherit;
|
|
|
|
ul {
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
|
|
#right-navigation {
|
|
// float: none; Override not needed with `position: absolute` above.
|
|
position: absolute;
|
|
top: inherit;
|
|
right: 0;
|
|
margin-top: 0;
|
|
}
|
|
|
|
#left-navigation {
|
|
// float: none; Override not needed with `position: absolute` above.
|
|
position: absolute;
|
|
top: inherit;
|
|
margin: 0;
|
|
display: block;
|
|
}
|
|
|
|
#p-namespaces,
|
|
#p-views,
|
|
#p-variants {
|
|
position: relative;
|
|
top: 2.5em;
|
|
}
|
|
|
|
#p-namespaces {
|
|
padding-left: 0;
|
|
}
|
|
|
|
#p-cactions {
|
|
top: 2.5em;
|
|
float: right;
|
|
}
|
|
|
|
#p-search {
|
|
// float: none; Override not needed with `position: absolute` above.
|
|
position: absolute;
|
|
right: 0;
|
|
width: 100vw;
|
|
margin: 0;
|
|
}
|
|
|
|
#simpleSearch {
|
|
margin: 0 3em;
|
|
width: 80vw;
|
|
padding: 0;
|
|
}
|
|
|
|
.vectorMenu .menu {
|
|
left: inherit;
|
|
right: -1px;
|
|
}
|
|
|
|
.mw-body {
|
|
/* Hide the 1px blue border on the left side */
|
|
border-left: 0;
|
|
margin-left: 0;
|
|
}
|
|
|
|
#mw-data-after-content {
|
|
margin-left: 0;
|
|
}
|
|
}
|