abe94aa408
Changes in HTML markup that fix various bugs and lead to consistencies with other skins: * firstHeading now has `dir` attribute * `tagline` message no longer parsed - plain text only - this is consistent with other skins * printfooter now child of #bodyContent * #ca-view is outputted (but hidden with CSS) * Order of attributes on #p-search-label changed * Search input form elements are no longer self closing * The #mw-searchButton element gains class mw-fallbackSearchButton * The generated-sidebar class is no longer present on sidebar portlets, consistent with other skins * The print link disappears when ElectronPdf is installed so there are not two print links. Changes in functionality: * Previously (in getCactions) a nomobile class would be added if less than 2 tabs. If not 1 tab, more would be appended. This is dropped. Bug: T285989 Change-Id: I03d0dc1dad23894e7e64ceeb8956692316265144
118 lines
1.8 KiB
Text
118 lines
1.8 KiB
Text
@import 'variables.less';
|
|
|
|
// remove duplicates we're not using here
|
|
#p-search-mobilejs,
|
|
#p-tb-mobilejs,
|
|
#p-lang-mobilejs,
|
|
#t-contributions {
|
|
display: none;
|
|
}
|
|
|
|
#sidebar #p-tb,
|
|
#sidebar #p-lang,
|
|
#sidebar #p-search {
|
|
display: block;
|
|
}
|
|
|
|
// popouts
|
|
#p-cactions,
|
|
#p-personal,
|
|
#p-tb,
|
|
#p-lang,
|
|
#sidebar-mobilejs {
|
|
// keep present for screen readers
|
|
.hidden();
|
|
|
|
&.mobile-menu-active {
|
|
top: 2em;
|
|
left: 0;
|
|
}
|
|
}
|
|
|
|
.mobile-menu-active {
|
|
position: absolute;
|
|
z-index: 10000;
|
|
background: @content-background;
|
|
border: solid 1px @orange-border;
|
|
border-left: 0;
|
|
padding: 2em 2em 0 1.5em;
|
|
font-size: 125%;
|
|
|
|
// hide originals but don't remove, as their duplicates don't have access keys on them
|
|
*[ id^='ca-nstab-' ],
|
|
#ca-talk,
|
|
#ca-edit {
|
|
.hidden();
|
|
}
|
|
|
|
ul {
|
|
padding-top: 1em;
|
|
}
|
|
|
|
li {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
a {
|
|
display: block;
|
|
padding: 0.65em 0;
|
|
}
|
|
|
|
h3:first-child {
|
|
margin-right: 2em;
|
|
}
|
|
|
|
.pBody {
|
|
margin-bottom: 2em;
|
|
}
|
|
|
|
.mobile-close-button {
|
|
width: 20px;
|
|
height: 20px;
|
|
background-image: url( images/icon-close.svg );
|
|
background-position: 0 0;
|
|
background-repeat: no-repeat;
|
|
position: absolute;
|
|
top: 1em;
|
|
right: 0.75em;
|
|
cursor: pointer;
|
|
}
|
|
}
|
|
|
|
.menus-cover {
|
|
display: none;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
z-index: 9999;
|
|
|
|
&.visible {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
#menus-cover {
|
|
position: fixed;
|
|
opacity: 0.45;
|
|
background-color: @content-background;
|
|
}
|
|
|
|
#menus-cover-background {
|
|
position: absolute;
|
|
background-color: @background;
|
|
background-image: url( images/headbg.svg );
|
|
background-position: 0 0;
|
|
background-repeat: no-repeat;
|
|
opacity: 0.55;
|
|
}
|
|
|
|
#p-cactions-mobile li {
|
|
&#ca-edit-mobile a {
|
|
background-image: url( images/icon-edit.svg );
|
|
}
|
|
|
|
&#t-contributions-mobile a {
|
|
background-image: url( images/icon-user.svg );
|
|
}
|
|
}
|