-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
127 lines (115 loc) · 2.03 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
* {
margin: 0;
padding: 0;
box-sizing: inherit;
}
html {
font-size: 62.5%;
box-sizing: border-box;
}
body {
position: relative;
font-family: Verdana, Geneva, Tahoma, sans-serif;
color: #333;
line-height: 1.5;
height: 100vh;
display: flex;
align-items: flex-start;
justify-content: center;
background: linear-gradient(
45deg,
#f17c58,
#e94584,
#24aadb,
#27dbb1,
#ffdc18,
#ff3706
);
background-size: 600% 100%;
animation: gradient 16s linear infinite;
animation-direction: alternate;
}
@keyframes gradient {
0% {
background-position: 0%;
}
100% {
background-position: 100%;
}
}
header {
position: absolute;
display: inline-block;
margin-top: 5rem;
padding: 0.8rem 1.4rem 2rem;
border-radius: 5px;
font-size: 1rem;
font-weight: 700;
text-align: center;
color: #fff;
}
.header-txt:hover {
color: #000;
border-bottom: 2px solid #000;
cursor: pointer;
}
.html,
.css,
.js {
font-size: 2.2rem;
font-weight: 600;
margin: 20rem 1.5rem;
padding: 1.25rem 5rem;
color: #444;
background-color: #fff;
border: none;
border-radius: 2.5rem;
cursor: pointer;
}
.close-html-modal,
.close-css-modal,
.close-js-modal {
position: absolute;
top: 1.2rem;
right: 2rem;
font-size: 3.5rem;
color: #333;
background: none;
border: none;
cursor: pointer;
}
h1 {
font-size: 2.5rem;
margin-bottom: 2rem;
}
p {
font-size: 1.5rem;
}
/* Classes to make Modal work */
.hidden {
display: none;
}
.html-modal,
.css-modal,
.js-modal {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
padding: 6rem;
width: 70%;
background-color: #fff;
border-radius: 5px;
box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
z-index: 10;
}
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.6);
backdrop-filter: blur(3px);
z-index: 5;
}