-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_composition.scss
64 lines (54 loc) · 1.25 KB
/
_composition.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
.composition {
position: relative;
&__photo {
width: 50%;
box-shadow: 0 5rem 4rem rgba($color-black, 0.4);
border-radius: 1rem;
position: absolute;
z-index: 10;
transition: all 0.2s;
outline-offset: 2rem;
@include respond(tab-port) {
float: left;
position: relative;
width: 33.3333333%;
box-shadow: 0 1.5rem 3rem rgba($color-black, 0.2);
}
&--p1 {
left: 1rem;
top: -2rem;
@include respond(tab-port) {
top: 0;
transform: scale(1.2);
}
}
&--p2 {
right: 0;
top: 5rem;
@include respond(tab-port) {
top: -1rem;
transform: scale(1.3);
z-index: 100;
}
}
&--p3 {
left: 20%;
top: 10rem;
@include respond(tab-port) {
top: 1rem;
left: 0;
transform: scale(1.1);
}
}
&:hover {
outline: 1rem solid rgba(194, 178, 128, 0.7);
transform: scale(1.05) translateY(-0.5rem);
box-shadow: 1rem 7rem 6rem rgba($color-black, 0.5);
z-index: 20;
}
}
&:hover &__photo:not(:hover) {
transform: scale(0.95);
}
//composition:hover composition__photo:not(:hover) {
}