-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
169 lines (169 loc) · 3.01 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
*{
margin:0;
padding:0;
box-sizing: border-box;
font-family: "Poppins","Gill sans MT";
}
ul{
list-style: none;
}
body{
display:flex;
min-height: 100vh;
align-items: center;
justify-content: center;
background:blueviolet;
position: relative;
}
.input-field{
position:absolute;
z-index:-1;
}
.wrapper{
background:#fff;
width:85%;
position:absolute;
border-radius:10px;
padding:1.5rem;
transition: 0.5s ease-in-out;
}
.wrapper .content-box{
padding:1rem 1rem 0;
border:1px solid #ccc;
border-radius:10px;
}
.wrapper .typing-text{
max-height:12rem;
overflow-y: auto;
}
.wrapper .typing-text::-webkit-scrollbar{
width:0px;
}
.typing-text{
position:relative;
}
.typing-text h2{
position: absolute;
width: 100%;
height: 100%;
top: 0;
display: flex;
align-items: center;
justify-content: center;
font-size: 4rem;
color: blueviolet;
opacity: 0;
scale:0;
transition:0.3s ease-in-out;
}
.typing-text h2.show{
opacity: 1;
scale: 1;
text-transform: uppercase;
text-shadow: 4px 4px 5px #3a3a3a;
animation: show 2s forwards;
}
.typing-text p{
font-size:1.3rem;
text-align: justify;
letter-spacing:1px;
word-break: break-all;
}
.typing-text p.hide{
filter: blur(3px);
opacity: 0.8;
animation: hide 5s forwards;
}
@keyframes show {
to{
opacity: 0;
scale: 0;
}
}
@keyframes hide {
to{
filter: blur(0px);
opacity:1;
}
}
.typing-text p span{
position:relative;
}
.typing-text p span.correct{
color:#8400ff;
}
.typing-text p span.wrong{
color:red;
background: #ff000033;
outline: 1px solid #fff;
border-radius: 5px;
}
.typing-text p span.active{
color:#00dfdf;
}
.typing-text p span.active::before{
content:'';
position:absolute;
left:0;
bottom:0;
width:100%;
height: 2px;
opacity: 0;
background:#00dfdf;
animation:blink 1s infinite ease;
}
@keyframes blink {
50% {
opacity:1;
}
}
.content-box .content{
display:flex;
margin-top:1rem;
padding: 0.5rem;
border-top:1px solid #ccc;
justify-content: space-between;
}
.content .result-details{
display: flex;
width:calc(100% - 140px);
align-items: center;
justify-content: space-between;
}
.result-details li{
height: 1.4rem;
display:flex;
align-items: center;
}
.result-details li:not(:first-child){
border-left:1px solid#aaa;
padding-left:1rem;
}
.result-details li p{
font-size:1.2rem;
}
.result-details li span{
margin-left:0.5rem;
display: block;
font-size: 1.3rem;
}
.result-details li:not(:first-child) span{
font-weight: 600;
}
.result-details li b{
font-weight: 600;
}
.content button{
color:#fff;
padding:0.5rem;
background-color: blueviolet;
border:none;
border-radius: 5px;
font-size:1.2rem;
cursor: pointer;
outline: none;
transition:scale 0.3s ease-in-out;
}
.content button:active{
scale:0.8;
}