Merge pull request #3572 from thelounge/xpaw/css

Remove unnecessary selectors
This commit is contained in:
Pavel Djundik 2019-12-11 14:33:27 +02:00 committed by GitHub
commit 7eaf6fb58f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -606,8 +606,7 @@ kbd {
cursor: pointer; cursor: pointer;
} }
/* All sidebar buttons and channels/queries must be white on hover and active */ /* Channels/queries must be white on hover and active */
#sidebar button:hover,
.channel-list-item:hover, .channel-list-item:hover,
.channel-list-item.active { .channel-list-item.active {
color: #fff; color: #fff;
@ -620,12 +619,10 @@ background on hover (unless active) */
background-color: rgba(48, 62, 74, 0.5); /* #303e4a x 50% alpha */ background-color: rgba(48, 62, 74, 0.5); /* #303e4a x 50% alpha */
} }
/* All active elements, hovered or not, must have a background */ /* Darker background and defualt cursor for active channels */
#sidebar button.active, .channel-list-item.active {
#sidebar button.active:hover,
.channel-list-item.active,
.channel-list-item.active:hover {
background-color: #303e4a; background-color: #303e4a;
cursor: default;
} }
/* Remove background on hovered/active channel when sorting/drag-and-dropping */ /* Remove background on hovered/active channel when sorting/drag-and-dropping */
@ -773,6 +770,15 @@ background on hover (unless active) */
color: #fff; color: #fff;
} }
.channel-list-item.active .close {
opacity: 0.4;
display: unset;
}
.channel-list-item.active .close:hover {
opacity: 1;
}
.channel-list-item[data-type="lobby"] .add-channel { .channel-list-item[data-type="lobby"] .add-channel {
border-radius: 3px; border-radius: 3px;
width: 18px; width: 18px;
@ -828,19 +834,6 @@ background on hover (unless active) */
opacity: 1; opacity: 1;
} }
.channel-list-item.active {
cursor: default;
}
.channel-list-item.active .close {
opacity: 0.4;
display: unset;
}
.channel-list-item.active .close:hover {
opacity: 1;
}
#footer { #footer {
height: 45px; height: 45px;
font-size: 14px; font-size: 14px;
@ -2438,7 +2431,6 @@ part/quit messages where we don't load previews (adds a blank line otherwise) */
margin-top: 5px; margin-top: 5px;
} }
#sidebar button,
.channel-list-item, .channel-list-item,
#sidebar .empty, #sidebar .empty,
.window label, .window label,