-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
104 lines (89 loc) · 1.55 KB
/
style.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
body {
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: url('images/table.jpg') center/cover no-repeat;
background-color: #735b58;
margin: 0;
}
p {
font-family: Helvetica, sans-serif;
}
#outer-case {
display: flex;
justify-content: center;
align-items: center;
background-color: #100c08;
border-radius: 2em;
min-height: 32em;
width: 20em;
transform: rotate(20deg);
box-shadow: 1em -1em 1em;
}
#screen {
display: flex;
min-height: 29em;
text-align: center;
justify-content: center;
background-color: #f2f3f4;
border-radius: 1em;
width: 18em;
}
h2:nth-child(1) {
margin-bottom: 0;
}
h2:nth-child(2) {
margin: 0;
}
button {
position: absolute;
bottom: 3.5em;
left: 8em;
width: 8em;
height: 3em;
border-radius: 1em;
box-shadow: 5px 3px 3px #4c4946;
background-color: #fefe22;
color: #100c08;
padding: 0.5em;
font-weight: 600;
cursor: pointer;
}
.card {
width: 16em;
border-radius: 0.5em;
transform-style: preserve-3d;
transition: transform 3s;
transform-origin: center right;
}
.card-face {
position: absolute;
border-radius: 1em;
backface-visibility: hidden;
}
.card-face p {
padding-left: 1em;
padding-right: 1em;
margin-top: 0;
margin-bottom: 0;
}
.back,
.front {
background-color: #f2f3f4;
height: 26em;
}
.back h2,
.front h2 {
margin-bottom: 0;
}
.back {
transform: rotateY(180deg);
}
.card.flip {
transform: translateX(-100%) rotateY(-180deg);
}
img {
width: 16em;
}
/* Photo by Tim Mossholder on Unsplash - table */