build: Update 'stylelint-config-wikimedia' and make pass

Change-Id: I147ea18307c58c5091c5ad79585b5acec9d46235
This commit is contained in:
Volker E 2018-12-02 14:40:28 -08:00
parent da0fa6280b
commit 0e089a0d4c
6 changed files with 25 additions and 7 deletions

View File

@ -9,6 +9,7 @@
html {
font-size: @html-font-size;
}
html,
body {
height: 100%;
@ -16,6 +17,7 @@ body {
padding: 0;
font-family: @content-font-family;
}
body {
background-color: @menu-background-color;
}

View File

@ -48,6 +48,7 @@
&.selected {
.background-image('images/tab-current-fade.png');
a,
a:visited {
color: #222;

View File

@ -18,20 +18,25 @@
background-position: 5px 60%;
background-repeat: no-repeat;
}
#ca-unwatch.icon a {
.background-image-svg( 'images/unwatch-icon.svg', 'images/unwatch-icon.png' );
}
#ca-watch.icon a {
.background-image-svg( 'images/watch-icon.svg', 'images/watch-icon.png' );
}
#ca-unwatch.icon a:hover,
#ca-unwatch.icon a:focus {
.background-image-svg( 'images/unwatch-icon-hl.svg', 'images/unwatch-icon-hl.png' );
}
#ca-watch.icon a:hover,
#ca-watch.icon a:focus {
.background-image-svg( 'images/watch-icon-hl.svg', 'images/watch-icon-hl.png' );
}
#ca-unwatch.icon a.loading,
#ca-watch.icon a.loading {
.background-image-svg( 'images/watch-icon-loading.svg', 'images/watch-icon-loading.png' );
@ -44,6 +49,7 @@
-webkit-transform-origin: 50% 57%;
transform-origin: 50% 57%;
}
#ca-unwatch.icon a span,
#ca-watch.icon a span {
display: none;

View File

@ -11,7 +11,7 @@
"grunt-eslint": "21.0.0",
"grunt-jsonlint": "1.1.0",
"grunt-stylelint": "0.10.1",
"stylelint": "9.2.0",
"stylelint-config-wikimedia": "0.4.3"
"stylelint": "9.6.0",
"stylelint-config-wikimedia": "0.5.0"
}
}

View File

@ -35,10 +35,10 @@
font-family: @font-family-serif;
}
.printfooter,
#footer,
// Tables, thumbs and lists are sans-serif in print mode (unlike screen mode) because these will render
// more legibly on print media in a smaller font sizes
.printfooter,
#footer,
.thumb,
table,
ol,
@ -58,7 +58,7 @@
// src="https://wikimedia.org/api/rest_v1/media/math/render/svg/d03b01348b751e6f4eaff085b3effa9542e2935d"
// class="mwe-math-fallback-image-inline"
// aria-hidden="true"
// style="vertical-align: -2.171ex; width:11.418ex; height:5.676ex;"
// style="vertical-align: -2.171ex; width: 11.418ex; height: 5.676ex;"
// alt="r_{s}={\frac {2GM}{c^{2}}}">
img {
font-family: @font-family-serif;
@ -139,8 +139,8 @@
// between the surrounding elements, making the reading experience less
// enjoyable. If there is not enough space the following code will push
// the paragraph contents until after the floating element(s).
@paragraphMinWidth: 120pt;
&:before {
@paragraphMinWidth: 120pt;
content: '';
display: block;
overflow: hidden;
@ -183,7 +183,6 @@
}
> ul {
> li {
margin-bottom: 4px;
font-weight: bold;

View File

@ -48,6 +48,7 @@
display: none;
}
}
div#p-personal {
display: table;
position: relative;
@ -60,6 +61,7 @@
padding-left: 0;
}
}
div#right-navigation {
position: absolute;
top: inherit;
@ -67,6 +69,7 @@
margin-top: 0;
float: none;
}
div#left-navigation {
position: absolute;
top: inherit;
@ -74,19 +77,23 @@
display: block;
float: none;
}
div#p-namespaces,
div#p-views,
div#p-variants {
position: relative;
top: 2.5em;
}
div#p-namespaces {
padding-left: 0;
}
div#p-cactions {
top: 2.5em;
float: right;
}
div#p-search {
float: none;
position: absolute;
@ -94,15 +101,18 @@
width: 100vw;
margin: 0;
}
div#simpleSearch {
margin: 0 3em;
width: 80vw;
padding: 0;
}
.vectorMenu .menu {
left: inherit;
right: -1px;
}
div#content {
/* Hide the 1px blue border on the left side */
border-left: 0;