-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
153 lines (134 loc) · 2.48 KB
/
styles.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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
@import url("https://fonts.googleapis.com/css2?family=Parisienne&display=swap");
:root {
--lightBlue: #a7b7c0;
--lightGreen: #808375;
--mediumGreen: #6f7261;
--darkGreen: #5e6152;
--darkerGreen: #494b40;
--textGreen: #7f8372;
--almostWhite: #eeebe6;
}
body {
background: var(--lightBlue);
color: var(--textGreen);
font-family: "Parisienne", cursive;
}
.envelope {
width: 220px;
margin: 400px auto;
height: 120px;
position: relative;
background: var(--darkerGreen);
cursor: pointer;
box-shadow: 0px 4px 6px -3px var(--lightGreen);
}
.top,
.bottom {
border-left: 110px solid transparent;
border-right: 110px solid transparent;
width: 0;
height: 0;
position: relative;
}
.top {
border-bottom: 80px solid var(--lightGreen);
top: -80px;
transform-origin: bottom;
z-index: 3;
transition: all 0.8s ease;
transform: rotateX(0deg);
}
.bottom {
border-bottom: 80px solid var(--darkGreen);
top: -40px;
z-index: 4;
}
.left,
.right {
width: 0;
height: 0;
border-top: 60px solid transparent;
border-bottom: 60px solid transparent;
top: 0;
z-index: 4;
}
.left {
border-left: 110px solid var(--mediumGreen);
position: absolute;
left: 0;
}
.right {
border-right: 110px solid var(--mediumGreen);
position: absolute;
right: 0;
}
.back {
width: 100%;
height: 100%;
position: absolute;
transition: all 1s ease;
z-index: 3;
transition-delay: 0.4s;
top: -100%;
}
.paper {
width: 90%;
height: 90%;
background: var(--almostWhite);
margin: 6px auto 0;
transition: all 0.5s ease-out;
position: absolute;
left: 50%;
transform: translate(-50%);
border-radius: 0px;
display: flex;
flex-direction: column;
box-sizing: border-box;
overflow: hidden;
}
.envelope.fold .back {
z-index: 3;
transition-delay: 0.1s;
top: 0;
}
.envelope.fold .top {
transition-delay: 0.6s;
transform: rotateX(180deg);
z-index: 6;
}
.envelope.grow .back {
z-index: 999;
transform: scale(500%) translateY(20%);
transition-duration: 2s;
}
.title {
font-size: 0.6rem;
margin-bottom: 10px;
text-align: center;
}
.content {
font-size: 0.3rem;
text-align: center;
}
.mb-1 {
margin-bottom: 8px;
}
.container {
border: solid 0.5px var(--textGreen);
display: flex;
flex-direction: column;
box-sizing: border-box;
padding: 10px 15px;
margin: 5px;
height: 100%;
}
.flower {
position: absolute;
height: 60%;
width: 60%;
color: var(--textGreen);
opacity: 0.1;
z-index: -1;
bottom: -30%;
left: -50px;
}