Github CI lint - eslint/stylelint

This commit is contained in:
github-actions 2020-01-07 17:49:15 +00:00
parent 4a43b7f3f1
commit d84b74f688
2 changed files with 129 additions and 131 deletions

View file

@ -510,7 +510,7 @@ a {
line-height: inherit;
overflow-wrap: break-word;
}
p:first-of-type {
margin-top: 0;
}

View file

@ -7,171 +7,169 @@
@import '../../../resources/mixins.less';
#filetoc {
margin: 0;
padding: 0;
overflow: auto;
white-space: nowrap;
display: flex;
border-color: @base-80;
transition: @transition-margin, @transition-padding;
margin: 0;
padding: 0;
overflow: auto;
white-space: nowrap;
display: flex;
border-color: @base-80;
transition: @transition-margin, @transition-padding;
li {
padding: 0;
display: block;
li {
padding: 0;
display: block;
a {
padding: @margin-side / 2 @margin-side;
display: block;
transition: @transition-background-quick;
a {
padding: @margin-side / 2 @margin-side;
display: block;
transition: @transition-background-quick;
&:hover {
background-color: @base-80;
}
}
}
&:hover {
background-color: @base-80;
}
}
}
}
.fullImageLink {
margin: 0 @negative-margin;
max-width: @footer-width - 10px; // 1280px - image size 4
background-color: @base-90;
margin: 0 @negative-margin;
max-width: @footer-width - 10px; // 1280px - image size 4
background-color: @base-90;
>a {
display: block;
pointer-events: none;
> a {
display: block;
pointer-events: none;
>img {
margin: 0 auto;
max-width: 100%;
height: auto;
display: block;
.boxshadow(1);
}
}
> img {
margin: 0 auto;
max-width: 100%;
height: auto;
display: block;
.boxshadow(1);
}
}
.mw-filepage-resolutioninfo {
padding: @margin-side / 2 @margin-side;
border: 1px solid @base-80;
text-align: center;
transition: @transition-margin, @transition-padding;
}
.mw-filepage-resolutioninfo {
padding: @margin-side / 2 @margin-side;
border: 1px solid @base-80;
text-align: center;
transition: @transition-margin, @transition-padding;
}
}
.fullMedia {
padding: @margin-side / 2 @margin-side;
border: 1px solid @base-80;
border-top: 0;
background-color: @base-90;
font-size: smaller;
text-align: center;
transition: @transition-margin;
padding: @margin-side / 2 @margin-side;
border: 1px solid @base-80;
border-top: 0;
background-color: @base-90;
font-size: smaller;
text-align: center;
transition: @transition-margin;
.mw-mmv-filepage-buttons {
margin-top: @margin-side / 2;
display: flex;
justify-content: center;
}
.mw-mmv-filepage-buttons {
margin-top: @margin-side / 2;
display: flex;
justify-content: center;
}
}
.multipageimage {
display: flex;
justify-content: center;
overflow: visible;
display: flex;
justify-content: center;
overflow: visible;
.fullImageLink {
margin: 0 !important;
}
.fullImageLink {
margin: 0 !important;
}
>a>img {
margin: 0;
}
tr {
display: flex;
flex-direction: column;
}
> a > img {
margin: 0;
}
.multipageimagenavbox {
margin-top: 0.8rem;
display: flex;
align-items: center;
justify-content: space-between;
tr {
display: flex;
flex-direction: column;
}
.thumb {
margin: 0 !important;
.multipageimagenavbox {
margin-top: 0.8rem;
display: flex;
align-items: center;
justify-content: space-between;
&:first-of-type {
order: -1;
}
.thumb {
margin: 0 !important;
.lazy {
filter: none !important;
}
}
&:first-of-type {
order: -1;
}
hr,
br {
display: none;
}
}
.lazy {
filter: none !important;
}
}
hr,
br {
display: none;
}
}
}
@media only screen and (max-width: @screen2 ) {
.fullImageLink {
/* stylelint-disable unit-no-unknown */
margin: 0~'calc((100vw - @{page-width}) / -2)';
/* stylelint-enable */
@media only screen and ( max-width: @screen2 ) {
.fullImageLink {
/* stylelint-disable unit-no-unknown */
margin: 0~'calc((100vw - @{page-width}) / -2)';
/* stylelint-enable */
.mw-filepage-resolutioninfo,
.fullMedia {
margin: 0;
}
}
.mw-filepage-resolutioninfo,
.fullMedia {
margin: 0;
}
}
}
@media only screen and (max-width: @screen1 ) {
@media only screen and ( max-width: @screen1 ) {
#filetoc,
.fullImageLink,
.fullMedia {
margin: 0 -@margin-side;
}
#filetoc,
.fullImageLink,
.fullMedia {
margin: 0 -@margin-side;
}
#filetoc {
padding: 0 @margin-side;
}
#filetoc {
padding: 0 @margin-side;
}
}
@media (prefers-color-scheme: dark) {
@media ( prefers-color-scheme: dark ) {
#filetoc,
.fullMedia {
background-color: @dark-bg-10;
border-color: @dark-bg-20;
}
#filetoc,
.fullMedia {
background-color: @dark-bg-10;
border-color: @dark-bg-20;
}
.fullImageLink {
background-color: @dark-bg-10;
.fullImageLink {
background-color: @dark-bg-10;
.mw-filepage-resolutioninfo {
border-color: @dark-bg-20;
}
}
.mw-filepage-resolutioninfo {
border-color: @dark-bg-20;
}
}
#filetoc li a:hover {
background-color: @dark-bg-40;
}
#filetoc li a:hover {
background-color: @dark-bg-40;
}
.mw_metadata td,
.mw_metadata th {
border: 1px solid @dark-bg-50;
}
.mw_metadata td,
.mw_metadata th {
border: 1px solid @dark-bg-50;
}
.mw_metadata th {
background-color: @dark-bg-10;
}
.mw_metadata th {
background-color: @dark-bg-10;
}
.mw_metadata td {
background-color: @dark-bg-20;
}
.mw_metadata td {
background-color: @dark-bg-20;
}
}