mediawiki-skins-Insurgency/resources/mobile.js.less
Volker E 8b727fe359 Replace deprecated background-image-svg() mixin calls
Use normal `background-image` properties with SVGs now
that IE 8 and Android 2.1 are removed from Grade C.
Also removing all fallback images.

Bug: T248062
Change-Id: Icd9cb9ea2a102467b5af3829f4dad0f2c5707aee
2020-07-23 23:07:15 -07:00

113 lines
1.7 KiB
Text

@import 'variables.less';
// remove duplicates we're not using here
#sidebar .generated-sidebar,
#p-search-mobilejs,
#p-tb-mobilejs,
#p-lang-mobilejs,
#t-contributions {
display: none;
}
// 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 );
}
}