forked from gndx/gndx-challenges
-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
106 lines (89 loc) · 1.49 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
105
106
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap');
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Roboto';
background: #000;
}
section {
position: relative;
text-align: center;
width: 100%;
min-height: 100vh;
}
section h2 {
position: absolute;
top: 50%;
left: 37%;
color: #fff;
font-size: 4em;
transform: translateY(0px);
animation: float 5s ease-in-out infinite;
}
section p {
position: absolute;
top: 60%;
left: 38%;
transform: translateY(0px);
color: #fff;
font-size: 1.4em;
font-weight: 300;
animation: float 5s ease-in-out infinite;
}
#bg{
max-width: 100%;
left: 0px;
top: 0px;
}
.luz {
position: fixed;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
}
@media only screen
and (min-device-width: 320px)
and (max-device-width: 480px)
and (-webkit-min-device-pixel-ratio: 2) {
section p {
top: 62%;
left: 7%;
}
#bg {
display: none;
}
section h2{
top: 39%;
left: -2%;
}
}
@media only screen
and (min-device-width: 768px)
and (max-device-width: 1024px)
and (-webkit-min-device-pixel-ratio: 2) {
section p {
top: 60%;
left: 21%;
}
#bg {
display: none;
}
section h2{
top: 50%;
left: 19%;
}
}
@keyframes float{
0%{
transform: translateY(0px);
}
50%{
transform: translateY(-20px);
}
100%{
transform: translateY(0px);
}
}