Skip to content

Commit

Permalink
Make panel select icons more visible
Browse files Browse the repository at this point in the history
[Issue: #302]
  • Loading branch information
eidens committed Feb 16, 2022
1 parent cbfee0b commit 7269b78
Showing 1 changed file with 28 additions and 12 deletions.
40 changes: 28 additions & 12 deletions resources/js/components/PanelListingGridItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@
v-if="!batchSelectDisabled && IOwnThisPanel"
>

<font-awesome-icon
v-if="panelSelected"
icon="check"
transform="shrink-5"
:style="{ color: 'white' }"
/>
<font-awesome-icon icon="check" size="xs" />
</label>
</header>

Expand Down Expand Up @@ -361,15 +356,25 @@ $authors-height: $font-size-sm;
right: 2vw;
opacity: 1;
}
$panel-select-button-diameter: $image-height * 0.1;
.sd-grid-item--image-header {
cursor: auto;
position: absolute;
top: 0;
left: 0;
z-index: 2;
height: $panel-select-button-diameter * 2;
width: 100%;
padding: 6px;
}
.sd-grid-image-container-inner:hover .sd-grid-item--image-header {
background-image: linear-gradient(
to bottom,
rgba(0, 0, 0, .50),
rgba(0, 0, 0, .30),
transparent
);
}
.sd-grid-item--image-footer {
position: absolute;
Expand Down Expand Up @@ -397,7 +402,6 @@ $authors-height: $font-size-sm;
color:#634782;
}
$panel-select-button-diameter: $image-height * 0.1;
.panel-select-button {
// vertically align the green checkmark inside the button
display: flex;
Expand All @@ -414,14 +418,26 @@ $panel-select-button-diameter: $image-height * 0.1;
width: $panel-select-button-diameter;
height: $panel-select-button-diameter;
background-color: $mostly-white-gray-opaque;
border: solid 1px $very-light-gray;
background-color: $mostly-white-gray;
border-radius: 50%;
svg {
color: $light-gray;
}
}
.panel-select-button:hover,
.panel-select-button:focus {
background-color: $very-light-gray-opaque;
border: solid 1px $light-gray;
background-color: $very-light-gray;
svg {
color: gray;
}
}
.panel-select-button.bg-success svg {
color: $mostly-white-gray;
}
.panel-select-button.bg-success:hover svg {
color: $very-light-gray;
}
.sd-grid-item::v-deep .modal-dialog {
Expand Down

0 comments on commit 7269b78

Please sign in to comment.