Edit and WIP on Location page
Create house component
This commit is contained in:
51
src/style/organisms/_house.scss
Normal file
51
src/style/organisms/_house.scss
Normal file
@@ -0,0 +1,51 @@
|
||||
.house {
|
||||
--columns: 20;
|
||||
grid-column-start: 3;
|
||||
position: relative;
|
||||
|
||||
a {
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
// Information
|
||||
&__info {
|
||||
grid-column: 4 / span 14;
|
||||
margin-bottom: 56px;
|
||||
max-width: 800px;
|
||||
|
||||
time {
|
||||
display: block;
|
||||
margin-top: 24px;
|
||||
color: $color-lightgray;
|
||||
}
|
||||
}
|
||||
|
||||
// Photo
|
||||
&__photo {
|
||||
position: relative;
|
||||
display: block;
|
||||
grid-column: 1 / span 17;
|
||||
|
||||
picture {
|
||||
position: relative;
|
||||
z-index: 3;
|
||||
border-radius: 8px;
|
||||
overflow: hidden;
|
||||
}
|
||||
img {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: auto;
|
||||
object-fit: contain;
|
||||
}
|
||||
}
|
||||
|
||||
// Photo number
|
||||
&__index {
|
||||
position: absolute;
|
||||
right: -250px;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
z-index: 1;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user