Move hack styles out of common

This commit is contained in:
alistair3149 2020-06-12 02:03:05 -04:00
parent 478c476431
commit 23cb7e4774
No known key found for this signature in database
GPG key ID: 94D081060FD3DD9C
3 changed files with 31 additions and 36 deletions

View file

@ -1,26 +1,3 @@
/*
* Hacks
* TODO: Find a place to put them
*/
// Hide RSS icon
a.feedlink {
background: none !important;
}
// CSS checkbox hack
.mw-checkbox-hack {
width: @icon-box-size + @margin-side + @icon-padding;
height: @header-height;
position: absolute;
z-index: 8;
margin: 0;
display: block;
opacity: 0;
cursor: pointer;
-webkit-touch-callout: none;
}
/*
* Framework
*/
@ -181,19 +158,6 @@ a {
white-space: nowrap;
}
.screen-reader-text {
//.mixin-screen-reader-text;
display: block !important;
position: absolute !important;
clip: rect( 1px, 1px, 1px, 1px ) !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
border: 0 !important;
padding: 0 !important;
overflow: hidden !important;
}
/*
* Content
*/

View file

@ -0,0 +1,30 @@
// Hide RSS icon
a.feedlink {
background: none !important;
}
// CSS checkbox hack
.mw-checkbox-hack {
width: @icon-box-size + @margin-side + @icon-padding;
height: @header-height;
position: absolute;
z-index: 8;
margin: 0;
display: block;
opacity: 0;
cursor: pointer;
-webkit-touch-callout: none;
}
.screen-reader-text {
//.mixin-screen-reader-text;
display: block !important;
position: absolute !important;
clip: rect( 1px, 1px, 1px, 1px ) !important;
width: 1px !important;
height: 1px !important;
margin: -1px !important;
border: 0 !important;
padding: 0 !important;
overflow: hidden !important;
}

View file

@ -12,6 +12,7 @@
@import 'common/catlinks.less';
@import 'common/toc.less';
@import 'common/wikitable.less';
@import 'common/hacks.less';
@import 'common/darkmode.less';
// Components