build: Update 'stylelint-config-wikimedia' and make pass
Change-Id: I147ea18307c58c5091c5ad79585b5acec9d46235
This commit is contained in:
parent
da0fa6280b
commit
0e089a0d4c
|
@ -9,6 +9,7 @@
|
||||||
html {
|
html {
|
||||||
font-size: @html-font-size;
|
font-size: @html-font-size;
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
@ -16,6 +17,7 @@ body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
font-family: @content-font-family;
|
font-family: @content-font-family;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background-color: @menu-background-color;
|
background-color: @menu-background-color;
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
|
|
||||||
&.selected {
|
&.selected {
|
||||||
.background-image('images/tab-current-fade.png');
|
.background-image('images/tab-current-fade.png');
|
||||||
|
|
||||||
a,
|
a,
|
||||||
a:visited {
|
a:visited {
|
||||||
color: #222;
|
color: #222;
|
||||||
|
|
|
@ -18,20 +18,25 @@
|
||||||
background-position: 5px 60%;
|
background-position: 5px 60%;
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ca-unwatch.icon a {
|
#ca-unwatch.icon a {
|
||||||
.background-image-svg( 'images/unwatch-icon.svg', 'images/unwatch-icon.png' );
|
.background-image-svg( 'images/unwatch-icon.svg', 'images/unwatch-icon.png' );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ca-watch.icon a {
|
#ca-watch.icon a {
|
||||||
.background-image-svg( 'images/watch-icon.svg', 'images/watch-icon.png' );
|
.background-image-svg( 'images/watch-icon.svg', 'images/watch-icon.png' );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ca-unwatch.icon a:hover,
|
#ca-unwatch.icon a:hover,
|
||||||
#ca-unwatch.icon a:focus {
|
#ca-unwatch.icon a:focus {
|
||||||
.background-image-svg( 'images/unwatch-icon-hl.svg', 'images/unwatch-icon-hl.png' );
|
.background-image-svg( 'images/unwatch-icon-hl.svg', 'images/unwatch-icon-hl.png' );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ca-watch.icon a:hover,
|
#ca-watch.icon a:hover,
|
||||||
#ca-watch.icon a:focus {
|
#ca-watch.icon a:focus {
|
||||||
.background-image-svg( 'images/watch-icon-hl.svg', 'images/watch-icon-hl.png' );
|
.background-image-svg( 'images/watch-icon-hl.svg', 'images/watch-icon-hl.png' );
|
||||||
}
|
}
|
||||||
|
|
||||||
#ca-unwatch.icon a.loading,
|
#ca-unwatch.icon a.loading,
|
||||||
#ca-watch.icon a.loading {
|
#ca-watch.icon a.loading {
|
||||||
.background-image-svg( 'images/watch-icon-loading.svg', 'images/watch-icon-loading.png' );
|
.background-image-svg( 'images/watch-icon-loading.svg', 'images/watch-icon-loading.png' );
|
||||||
|
@ -44,6 +49,7 @@
|
||||||
-webkit-transform-origin: 50% 57%;
|
-webkit-transform-origin: 50% 57%;
|
||||||
transform-origin: 50% 57%;
|
transform-origin: 50% 57%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ca-unwatch.icon a span,
|
#ca-unwatch.icon a span,
|
||||||
#ca-watch.icon a span {
|
#ca-watch.icon a span {
|
||||||
display: none;
|
display: none;
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"grunt-eslint": "21.0.0",
|
"grunt-eslint": "21.0.0",
|
||||||
"grunt-jsonlint": "1.1.0",
|
"grunt-jsonlint": "1.1.0",
|
||||||
"grunt-stylelint": "0.10.1",
|
"grunt-stylelint": "0.10.1",
|
||||||
"stylelint": "9.2.0",
|
"stylelint": "9.6.0",
|
||||||
"stylelint-config-wikimedia": "0.4.3"
|
"stylelint-config-wikimedia": "0.5.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,10 +35,10 @@
|
||||||
font-family: @font-family-serif;
|
font-family: @font-family-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
.printfooter,
|
|
||||||
#footer,
|
|
||||||
// Tables, thumbs and lists are sans-serif in print mode (unlike screen mode) because these will render
|
// 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
|
// more legibly on print media in a smaller font sizes
|
||||||
|
.printfooter,
|
||||||
|
#footer,
|
||||||
.thumb,
|
.thumb,
|
||||||
table,
|
table,
|
||||||
ol,
|
ol,
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
// src="https://wikimedia.org/api/rest_v1/media/math/render/svg/d03b01348b751e6f4eaff085b3effa9542e2935d"
|
// src="https://wikimedia.org/api/rest_v1/media/math/render/svg/d03b01348b751e6f4eaff085b3effa9542e2935d"
|
||||||
// class="mwe-math-fallback-image-inline"
|
// class="mwe-math-fallback-image-inline"
|
||||||
// aria-hidden="true"
|
// 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}}}">
|
// alt="r_{s}={\frac {2GM}{c^{2}}}">
|
||||||
img {
|
img {
|
||||||
font-family: @font-family-serif;
|
font-family: @font-family-serif;
|
||||||
|
@ -139,8 +139,8 @@
|
||||||
// between the surrounding elements, making the reading experience less
|
// between the surrounding elements, making the reading experience less
|
||||||
// enjoyable. If there is not enough space the following code will push
|
// enjoyable. If there is not enough space the following code will push
|
||||||
// the paragraph contents until after the floating element(s).
|
// the paragraph contents until after the floating element(s).
|
||||||
@paragraphMinWidth: 120pt;
|
|
||||||
&:before {
|
&:before {
|
||||||
|
@paragraphMinWidth: 120pt;
|
||||||
content: '';
|
content: '';
|
||||||
display: block;
|
display: block;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
@ -183,7 +183,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
> ul {
|
> ul {
|
||||||
|
|
||||||
> li {
|
> li {
|
||||||
margin-bottom: 4px;
|
margin-bottom: 4px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div#p-personal {
|
div#p-personal {
|
||||||
display: table;
|
display: table;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -60,6 +61,7 @@
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
div#right-navigation {
|
div#right-navigation {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: inherit;
|
top: inherit;
|
||||||
|
@ -67,6 +69,7 @@
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#left-navigation {
|
div#left-navigation {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: inherit;
|
top: inherit;
|
||||||
|
@ -74,19 +77,23 @@
|
||||||
display: block;
|
display: block;
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#p-namespaces,
|
div#p-namespaces,
|
||||||
div#p-views,
|
div#p-views,
|
||||||
div#p-variants {
|
div#p-variants {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 2.5em;
|
top: 2.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#p-namespaces {
|
div#p-namespaces {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#p-cactions {
|
div#p-cactions {
|
||||||
top: 2.5em;
|
top: 2.5em;
|
||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#p-search {
|
div#p-search {
|
||||||
float: none;
|
float: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
|
@ -94,15 +101,18 @@
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#simpleSearch {
|
div#simpleSearch {
|
||||||
margin: 0 3em;
|
margin: 0 3em;
|
||||||
width: 80vw;
|
width: 80vw;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.vectorMenu .menu {
|
.vectorMenu .menu {
|
||||||
left: inherit;
|
left: inherit;
|
||||||
right: -1px;
|
right: -1px;
|
||||||
}
|
}
|
||||||
|
|
||||||
div#content {
|
div#content {
|
||||||
/* Hide the 1px blue border on the left side */
|
/* Hide the 1px blue border on the left side */
|
||||||
border-left: 0;
|
border-left: 0;
|
||||||
|
|
Loading…
Reference in a new issue