Create reusable class for Photo
This commit is contained in:
25
src/style/atoms/_photo.scss
Normal file
25
src/style/atoms/_photo.scss
Normal file
@@ -0,0 +1,25 @@
|
||||
.photo {
|
||||
overflow: hidden;
|
||||
background: $color-primary-tertiary20;
|
||||
border-radius: 6px;
|
||||
|
||||
a {
|
||||
position: relative;
|
||||
display: block;
|
||||
height: 100%;
|
||||
cursor: zoom-in;
|
||||
|
||||
& > picture {
|
||||
height: 100%;
|
||||
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
pointer-events: none;
|
||||
user-select: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user