Skip to content

Commit

Permalink
CSS tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
aunefyren committed Dec 8, 2023
1 parent e69f270 commit bdd7db5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion web/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,12 @@ button:disabled {
transition: 1s;
}

.hoverable-opacity:hover {
opacity: 0.5;
transition: 1s;
color: var(--black);
}

.hoverable-dark:hover {
background-color: var(--darkblue);
transition: 1s;
Expand Down Expand Up @@ -559,7 +565,7 @@ button:disabled {
align-content: center;
border-radius: 1em;
border: 0.15em solid var(--darkblue);
background-color: var(--eggshell);
background-color: var(--white);
margin: 0.25em 1em;
}

Expand Down
2 changes: 1 addition & 1 deletion web/js/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function place_groups(group_array, user_id) {
if(j == 0) {
html += '<div class="text-body">Members in this group:</div>'
}
html += '<div class="group-member hoverable-light" title="Group member">'
html += '<div class="group-member hoverable-opacity" title="Group member">'

html += '<div class="group-title">';

Expand Down
4 changes: 2 additions & 2 deletions web/js/wishlists.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ function place_wishlists(wishlists_array, user_id) {
html += '<div class="text-body">Available in these groups:</div>'
}

html += '<div class="group-member hoverable-light" title="Group">'
html += '<div class="group-member hoverable-opacity" title="Group">'

html += `<div class="group-title clickable underline" onclick="location.href = '/groups/${wishlists_array[i].members[j].id}'" title="Go to group">`;

Expand Down Expand Up @@ -287,7 +287,7 @@ function place_wishlists(wishlists_array, user_id) {
html += '<div class="text-body">Wishlist collaborators:</div>'
}

html += '<div class="group-member hoverable-light" title="User">'
html += '<div class="group-member hoverable-opacity" title="User">'

html += '<div class="group-title">';

Expand Down

0 comments on commit bdd7db5

Please sign in to comment.