Skip to content

Commit

Permalink
#30 - Simplified the selectors of whitelisting icon and added double …
Browse files Browse the repository at this point in the history
…active state
  • Loading branch information
Manvel committed Jan 6, 2019
1 parent 7202736 commit de41869
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 12 deletions.
3 changes: 3 additions & 0 deletions src/css/img/check-mark-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/css/img/check-mark-circle.svg

This file was deleted.

3 changes: 3 additions & 0 deletions src/css/img/check-mark-double-active.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 0 additions & 1 deletion src/css/img/check-mark-filled.svg

This file was deleted.

3 changes: 3 additions & 0 deletions src/css/img/check-mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 15 additions & 10 deletions src/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ button.icon
border: none;
width: 20px;
padding: 0px;
cursor: default;
}

button.icon:after
Expand Down Expand Up @@ -523,20 +524,24 @@ button.icon.edit:hover:after
background-image: url(/css/img/edit-hover.svg);
}

.tableList > li > div button.icon.whitelist::after,
.tableList li > ul li > div button.icon.whitelist::after
button.icon.whitelist:after
{
background-image: url(/css/img/check-mark-circle.svg);
background-size: 100%;
background-repeat: no-repeat;
background-image: url(/css/img/check-mark.svg);
}

.tableList > li[data-whitelist="true"] > div button.icon.whitelist::after,
.tableList li > ul li[data-whitelist="true"] > div button.icon.whitelist::after
button.icon.whitelist:hover:after
{
background-image: url(/css/img/check-mark-filled.svg);
background-size: 100%;
background-repeat: no-repeat;
opacity: .8;
}

[data-whitelist="true"] button.icon.whitelist:after
{
background-image: url(/css/img/check-mark-active.svg);
}

[data-whitelist="true"] [data-whitelist="true"] button.icon.whitelist:after
{
background-image: url(/css/img/check-mark-double-active.svg);
}

/* CONTROLS */
Expand Down

0 comments on commit de41869

Please sign in to comment.