hensei-web/components/raids/RaidItem/index.module.scss
Justin Edmund fd50258f99 Add themed placeholder colors for raids
We don't have images for a lot of the new raid images. Here, we create themed placeholder colors and use those instead of images. The images can't react to the users theme as easily, so this is a better solution for now.
2023-07-04 01:44:54 -07:00

101 lines
1.8 KiB
SCSS

.item {
align-items: center;
border-radius: $item-corner;
border: 2px solid transparent;
color: var(--text-tertiary);
display: flex;
gap: $unit;
font-size: $font-regular;
padding: $unit $unit-2x $unit $unit;
&:hover,
&:focus {
background-color: var(--menu-bg-item-hover);
color: var(--text-primary);
cursor: pointer;
outline: none;
}
&:focus {
border: 2px solid $blue;
outline: none;
}
&:first-child {
margin-top: $unit;
}
&:last-child {
margin-bottom: $unit;
}
img {
width: $unit-4x;
height: auto;
}
.placeholder {
aspect-ratio: 10 / 7;
background-color: var(--placeholder-bound-bg);
border-radius: $item-corner-small;
width: $unit-10x;
height: auto;
}
&:hover {
.extraIndicator {
background: var(--extra-purple-secondary);
color: white;
}
.selected {
background-color: var(--pill-bg-hover);
color: var(--pill-text-hover);
}
.placeholder {
background-color: var(--placeholder-bound-bg-hover);
}
}
&.selected .extraIndicator {
background: var(--extra-purple-secondary);
color: white;
}
.text {
flex-grow: 1;
}
.extraIndicator {
background: var(--extra-purple-bg);
border-radius: $full-corner;
color: var(--extra-purple-dark-text);
display: flex;
font-weight: $bold;
font-size: $font-tiny;
width: $unit-3x;
height: $unit-3x;
justify-content: center;
align-items: center;
}
.selected {
background-color: var(--pill-bg);
color: var(--pill-text);
border-radius: $full-corner;
display: flex;
align-items: center;
font-size: $font-tiny;
font-weight: $bold;
padding: 0 $unit;
height: $unit-3x;
}
img {
background: var(--input-bound-bg);
border-radius: $unit-half;
width: $unit-10x;
height: 56px;
}
}