-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.scss
62 lines (55 loc) · 1.33 KB
/
style.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
$easing: cubic-bezier(0.1, 0.7, 0.1, 1);
$tablet-width: 768px;
body {
background: linear-gradient(to bottom, hsla(0, 100%, 100%, 1) 0%, hsla(206, 30%, 90%, 1) 100%);
text-align: center;
margin: 0;
}
#wrapper {
margin: 10vh auto 0;
width: 80vw;
height: 80vh;
overflow: hidden;
box-shadow: 0px 3px 5px 0px rgba(0,0,0,0.25);
border-radius: 5px;
transition: all 800ms $easing;
transform: scale(0.985);
&:hover {
box-shadow: 0px 3px 10px 0px rgba(0,0,0,0.45);
transform: scale(1);
}
@media (max-width: $tablet-width) {
margin: 0;
width: 100vw;
height: 100vh;
transform: scale(1);
border-radius: 0;
}
}
#preview {
width: 100%;
height: 100%;
background-image: url('https://d1k0cb7ed4to50.cloudfront.net/MPJkRpnF3_nc2beYvK8f8XcsOFw=/1800x1200/https://listing-photos-production.s3.amazonaws.com/uploads/listing-360/61361.jpg');
background-position: center;
background-size: cover;
margin: 0 auto;
}
#list {
background-color: hsla(0, 0, 0, 0.8);
box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.2);
transition: all 500ms $easing;
margin-top: 20px;
&.show {
margin: -50px;
}
@media (max-width: $tablet-width) {
margin: -50px;
}
}
.thumbnail {
display: inline-block;
background-size: cover;
background-position: center;
margin-right: 1px;
transition: all 250ms $easing;
}