Merge pull request #10448 from nextcloud/list-opacity-fix

Only lower opacity of the avatar if the checkbox is checked on the content-list
This commit is contained in:
Roeland Jago Douma 2018-08-01 09:42:38 +02:00 committed by GitHub
commit 27d4ff8b4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 16 additions and 11 deletions

View File

@ -1104,20 +1104,25 @@ $popovericon-size: 16px;
width: 40px; width: 40px;
display: flex; display: flex;
z-index: 50; z-index: 50;
+ .app-content-list-item-icon {
opacity: .7;
}
} }
.app-content-list-item-checkbox.checkbox + label { .app-content-list-item-checkbox.checkbox {
top: 14px; &:checked {
left: 7px; // if checked, lower the opacity of the avatar
&::before { + label + .app-content-list-item-icon {
margin: 0; opacity: .7;
}
} }
/* Hide the star, priority to the checkbox */ + label {
~ .app-content-list-item-star { top: 14px;
display: none; left: 7px;
&::before {
margin: 0;
}
/* Hide the star, priority to the checkbox */
~ .app-content-list-item-star {
display: none;
}
} }
} }