Repository navigation
Expand file tree
/
Copy pathindex.css
More file actions
60 lines (60 loc) · 1.39 KB
/
Copy pathindex.css
File metadata and controls
60 lines (60 loc) · 1.39 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
* {
margin: 0;
box-sizing: border-box;
font-family: Arial, Helvetica, sans-serif;
}
body {
background-color: hsl(212, 45%, 89%);
}
.container {
position: absolute;
padding: 20px;
background-color: white;
width: 320px;
height: 550px;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
-webkit-transform: translate(-50%, -50%);
-moz-transform: translate(-50%, -50%);
-ms-transform: translate(-50%, -50%);
-o-transform: translate(-50%, -50%);
display: flex;
justify-content: center;
}
.container,
.container div:first-child {
border-radius: 9px;
-webkit-border-radius: 9px;
-moz-border-radius: 9px;
-ms-border-radius: 9px;
-o-border-radius: 9px;
}
.container div:first-child {
width: 100%;
height: 65%;
position: relative;
background-image: url("./images/image-qr-code.png");
background-position: center;
background-size: contain;
}
.container div:first-child::after {
position: absolute;
content: "Improve your front-end skills by building projects";
font-weight: bold;
font-size: 1.5rem;
bottom: -95px;
}
.container div:first-child::after,
.container div:first-child::before {
left: 5px;
}
.container div:first-child::before {
position: absolute;
content: "Scan the QR code to visit Frontend Mentor and take your coding skills to the next level";
font-size: 1.2rem;
font-weight: bold;
width: 95%;
bottom: -190px;
color: hsl(207, 7%, 75%);
}