-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
98 lines (86 loc) · 1.46 KB
/
main.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
@import url('https://fonts.googleapis.com/css?family=Poppins');
html {
font-family: 'Poppins', sans-serif;
letter-spacing: 1px;
}
.row {
display: flex;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.column {
flex: 50%;
}
body {
background-color: #81c784;
}
div {
margin: auto;
width: 50%;
line-height: 50px;
}
img {
position: relative;
display: block;
width: 90%;
margin-left: auto;
margin-right: auto;
}
.demo {
background-image: url("images/demo.gif");
background-position: center;
background-repeat: no-repeat;
background-size: 95%;
}
h1 {
position: relative;
text-align: center;
line-height: 0px;
font-size: 5vw;
color: #FFF
}
p {
position: relative;
text-align: center;
line-height: 0px;
font-size: 3vw;
color: #FFF;
}
.copyright {
position: absolute;
top: 95%;
left: 50%;
transform: translate(-50%, -50%);
}
.copyright p {
font-size: 10px;
}
@media screen and (max-width: 600px) {
div {
width: 300px;
}
h1 {
font-size: 30px;
/* 600 * 5% */
}
p {
font-size: 18px;
/* 600 * 3% */
}
}
@media screen and (min-width: 900px) {
img {
width: 202.5px;
/* 900 * 50% * 45% */
}
h1 {
font-size: 45px;
/* 900 * 5% */
}
p {
font-size: 27px;
/* 900 * 3% */
}
}