-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.css
108 lines (87 loc) · 1.79 KB
/
app.css
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');
* {
text-underline-offset: 4px;
}
html {
background-color: #d0d5d5;
}
body {
margin: 0;
}
#flash-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999;
pointer-events: none;
transition: background 3s;
}
#flash-overlay.active {
background: #ffffffaa;
transition: background 0.1s
}
#polaroid-img {
opacity: 0;
}
#polaroid-camera {
width: 500px;
height: 500px;
margin: auto;
margin-top: 32px;
background-image: url(./assets/image.png);
background-repeat: no-repeat;
background-size: 100%;
opacity: 0;
}
#polaroid-picture-wrapper {
overflow: hidden;
position: absolute;
width: 400px;
height: calc(400px * 1.2);
}
#polaroid-picture {
opacity: 0;
box-shadow: inset 0 15px 29px -15px black;
position: relative;
top: -100%;
transition: top 0.3s;
background-color: #f2f3f4;
font-family: "Parisienne", serif;
display: flex;
flex-direction: column;
}
#polaroid-picture.open {
top: 0;
transition: top 1.75s linear;
}
.polaroid-picture-img {
width: 360px;
height: 360px;
margin: 20px 20px 0 20px;
outline: black 2px solid;
background-image: url(https://pbs.twimg.com/media/BG48ENgCEAAIDl9.jpg);
background-repeat: no-repeat;
background-size: 100%;
background-position: center;
}
.polaroid-picture-subtitle {
font-size: 1.6rem;
margin: 6px 0 0 60px;
}
.polaroid-picture-subtitle>h2 {
margin: 0;
}
.polaroid-picture-subtitle>h2:nth-of-type(2) {
padding-left: 20px;
}
.cameraBtn {
background: crimson;
border: none;
position: absolute;
opacity: 0;
}
.cameraBtn:active {
background: firebrick;
}