features section done
This commit is contained in:
1 parent
b5a07abf51
commit
14b32ac1ac
20 files changed
+945
-16
No files matched your search
@@ -0,0 +1,38 @@
|
||||
.composition {
|
||||
position: relative;
|
||||
&__photo {
|
||||
width: 55%;
|
||||
box-shadow: 0 1.5rem 4rem rgba($color-black, .4);
|
||||
border-radius: 2px;
|
||||
position: absolute;
|
||||
z-index: 10;
|
||||
transition: all .2s;
|
||||
outline-offset: 2rem;
|
||||
|
||||
&--p1 {
|
||||
left: 0;
|
||||
top: -2rem;
|
||||
}
|
||||
|
||||
&--p2 {
|
||||
right: 0;
|
||||
top: 2rem;
|
||||
}
|
||||
|
||||
&--p3 {
|
||||
left: 20%;
|
||||
top: 10rem;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
outline: 1.5rem solid $color-primary;
|
||||
transform: scale(1.05) translateY(-.5rem);
|
||||
box-shadow: 0 2.5rem 4rem rgba($color-black, .5);
|
||||
z-index: 20;
|
||||
}
|
||||
}
|
||||
|
||||
&:hover &__photo:not(:hover) {
|
||||
transform: scale(0.9);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user