css: fix stylelint issues.

This commit is contained in:
evazion
2019-10-02 01:49:48 -05:00
parent 60eaa99784
commit b9c869f3e4
20 changed files with 45 additions and 49 deletions

View File

@@ -2,4 +2,4 @@
.section {
margin-bottom: 2em;
}
}
}

View File

@@ -29,7 +29,7 @@ div.comments-for-post {
opacity: 0.3;
&:hover {
opacity: 1.0;
opacity: 1;
}
}
}
@@ -53,7 +53,7 @@ div#c-comments {
div.preview {
position: relative;
&:before {
&::before {
@include animated-icon;
}
}
@@ -63,7 +63,7 @@ div#c-comments {
div.preview {
position: relative;
&:before {
&::before {
@include sound-icon;
}
}

View File

@@ -2,4 +2,4 @@
textarea {
height: 10em;
}
}
}

View File

@@ -45,7 +45,7 @@ div#c-forum-topics {
color: var(--forum-level-restricted-topic-color);
font-weight: bold;
}
tr.forum-topic-row td:last-child {
white-space: nowrap;
}

View File

@@ -2,4 +2,4 @@
section {
margin-bottom: 2em;
}
}
}

View File

@@ -9,14 +9,14 @@ $tooltip-width: 164px * 3 - 10; // 3 thumbnails wide.
}
&::-webkit-scrollbar-button {
width: 0px;
height: 0px;
width: 0;
height: 0;
}
&::-webkit-scrollbar-thumb {
background: var(--post-tooltip-scrollbar-background);
border: none;
border-radius: 0px;
border-radius: 0;
}
&::-webkit-scrollbar-thumb:hover {
@@ -30,7 +30,7 @@ $tooltip-width: 164px * 3 - 10; // 3 thumbnails wide.
&::-webkit-scrollbar-track {
background: var(--post-tooltip-scrollbar-track-background);
border: none;
border-radius: 0px;
border-radius: 0;
}
&::-webkit-scrollbar-track:hover {
@@ -46,7 +46,6 @@ $tooltip-width: 164px * 3 - 10; // 3 thumbnails wide.
}
}
.post-tooltip {
max-width: $tooltip-width;
min-width: $tooltip-width;

View File

@@ -4,9 +4,11 @@
0% {
transform:scale(1);
}
50% {
transform:scale(1.3);
}
100% {
transform:scale(1);
}
@@ -41,19 +43,19 @@ article.post-preview {
}
.desc {
font-size: 80%;
margin-bottom: 0;
font-size: 80%;
margin-bottom: 0;
}
img {
margin: auto;
}
&[data-tags~=animated]:before, &[data-file-ext=swf]:before, &[data-file-ext=webm]:before, &[data-file-ext=mp4]:before, &[data-file-ext=zip]:before {
&[data-tags~=animated]::before, &[data-file-ext=swf]::before, &[data-file-ext=webm]::before, &[data-file-ext=mp4]::before, &[data-file-ext=zip]::before {
@include animated-icon;
}
&[data-has-sound=true]:before {
&[data-has-sound=true]::before {
@include sound-icon;
}
}
@@ -89,12 +91,11 @@ table article.post-preview {
&.post-status-has-parent img {
border-color: var(--preview-has-parent-color);
}
&.post-status-has-children.post-status-has-parent img {
border-color: var(--preview-has-children-color) var(--preview-has-parent-color) var(--preview-has-parent-color) var(--preview-has-children-color);
}
&.post-status-deleted img {
border-color: var(--preview-deleted-color);
}
@@ -111,7 +112,6 @@ table article.post-preview {
border-color: var(--preview-has-children-color) var(--preview-deleted-color) var(--preview-deleted-color) var(--preview-has-parent-color);
}
/* Pending and flagged posts have blue borders (except in the modqueue). */
&.post-status-pending:not(.mod-queue-preview) img,
&.post-status-flagged:not(.mod-queue-preview) img {
@@ -160,7 +160,7 @@ body[data-user-can-approve-posts="true"] .post-preview {
#has-parent-relationship-preview, #has-children-relationship-preview {
overflow-x: auto;
white-space: nowrap;
article.post-preview {
width: auto;
border: none;
@@ -280,13 +280,13 @@ div#c-posts {
display: flex;
input {
min-width: 0px;
min-width: 0;
}
#search-box-submit {
padding: 2px 6px;
border-left: none;
border-radius: 0px;
border-radius: 0;
}
}
@@ -421,7 +421,7 @@ div#c-posts {
div#c-post-versions, div#c-artist-versions {
div#a-index {
a {
word-wrap: break-word
word-wrap: break-word;
}
}
}

View File

@@ -19,10 +19,7 @@ div#c-user-upgrades {
width: 10em;
}
colgroup#basic {
}
colgroup#gold {
colgroup#gold {
background-color: var(--user-upgrade-gold-background-color);
}

View File

@@ -78,7 +78,7 @@
article.post-preview {
float: none;
margin: 0;
margin: 0;
text-align: center;
vertical-align: middle;
display: inline-block;