80 lines
1.6 KiB
SCSS
80 lines
1.6 KiB
SCSS
.JobImage {
|
|
$height: 252px;
|
|
$width: 447px;
|
|
|
|
aspect-ratio: 7/9;
|
|
background: url('/images/background_a.jpg');
|
|
background-size: 500px 281px;
|
|
border-radius: $unit;
|
|
box-sizing: border-box;
|
|
box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.2);
|
|
display: block;
|
|
isolation: isolate;
|
|
flex-grow: 2;
|
|
flex-shrink: 0;
|
|
height: $height;
|
|
margin-right: $unit * 3;
|
|
max-height: $height;
|
|
max-width: $width;
|
|
overflow: hidden;
|
|
position: relative;
|
|
transition: box-shadow 0.15s ease-in-out;
|
|
width: $width;
|
|
z-index: 1;
|
|
|
|
// prettier-ignore
|
|
@media only screen
|
|
and (max-width: 800px)
|
|
and (max-height: 920px)
|
|
and (-webkit-min-device-pixel-ratio: 2) {
|
|
margin-right: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
@include breakpoint(phone) {
|
|
aspect-ratio: 16/9;
|
|
margin: 0;
|
|
width: 100%;
|
|
height: inherit;
|
|
}
|
|
|
|
img {
|
|
-webkit-filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.48));
|
|
filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.48));
|
|
position: relative;
|
|
top: $unit * -4;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
width: 100%;
|
|
z-index: 4;
|
|
}
|
|
|
|
.JobAccessory.Button {
|
|
align-items: center;
|
|
border-radius: 99px;
|
|
justify-content: center;
|
|
position: relative;
|
|
padding: $unit * 1.5;
|
|
top: $unit;
|
|
left: $unit;
|
|
height: auto;
|
|
z-index: 10;
|
|
|
|
&:hover .Accessory svg,
|
|
&.Selected .Accessory svg {
|
|
fill: var(--button-text-hover);
|
|
}
|
|
|
|
.Accessory svg {
|
|
fill: var(--button-text);
|
|
width: $unit-3x;
|
|
height: auto;
|
|
}
|
|
}
|
|
|
|
.Overlay {
|
|
background: none;
|
|
position: absolute;
|
|
z-index: 2;
|
|
}
|
|
}
|