-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday86.html
More file actions
98 lines (86 loc) · 2.21 KB
/
day86.html
File metadata and controls
98 lines (86 loc) · 2.21 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DAY 86 | CSS CHALLENGE</title>
<style>
@import url(https://fonts.googleapis.com/css?family=Lato:900,400italic);
*,
*::after,
*::before {
padding: 0;
margin: 0;
box-sizing: border-box;
}
main {
display: grid;
place-items: center;
min-height: 100vh;
background: #E3E7EA;
}
.book {
font-family: "Lato", Helvetica, sans-serif;
color: #fff;
position: relative;
width: 200px;
height: 280px;
border-radius: 2px 4px 4px 2px;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2), -1px 4px 4px 0 rgba(0, 0, 0, 0.3);
background: #1e1e1e;
background: linear-gradient(45deg, #1e1e1e 0%, #4f4f4f 100%);
}
.book:before {
content: "";
position: absolute;
width: 20px;
top: 0;
left: 0;
bottom: 0;
border-radius: 2px 0 0 2px;
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.1) 45%, rgba(0, 0, 0, 0.15) 49%, rgba(0, 0, 0, 0.15) 84%, rgba(0, 0, 0, 0) 100%);
}
.book:after {
content: "";
display: block;
position: absolute;
width: 10px;
top: -1px;
right: 25px;
bottom: -1px;
border-radius: 1px;
box-shadow: -1px 0px 1px 0 rgba(0, 0, 0, 0.4);
background: #a90329;
background: linear-gradient(to right, #a90329 0%, #8e0028 12%, #a90329 25%, #8e0028 37%, #a90329 50%, #8e0028 62%, #a90329 75%, #8e0028 87%, #a90329 100%);
}
.title {
margin-top: 50px;
margin-left: 30px;
}
.big {
font-size: 36px;
line-height: 100%;
text-transform: uppercase;
letter-spacing: 1px;
}
.small {
font-size: 13px;
line-height: 200%;
font-weight: 400;
font-style: italic;
padding-left: 2px;
color: #ccc;
}
</style>
</head>
<body>
<main>
<div class="book">
<div class="title">
<h1 class="big">Judge<br />this<br />book</h1>
<p class="small">by its cover</p>
</div>
</div>
</main>
</body>
</html>