-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.css
More file actions
54 lines (47 loc) · 1.09 KB
/
Copy pathindex.css
File metadata and controls
54 lines (47 loc) · 1.09 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
.terminal {
--cursorwait: 10;
border: 4px solid #333333;
border-top: 50px solid #333333;
background-color: #0c0c0c ;
color: #FFF;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
padding: 10px;
gap: 4px;
flex-direction: column;
display: flex;
border-radius: 10px;
container: terminal / inline-size;
}
@keyframes blink {
0%, 100% { opacity: 0; }
50% { opacity: 1; }
}
@keyframes reveal {
to {
opacity: 1;
}
}
.terminal::before {
content: "Title";
font-weight: 600;
background-color: #0c0c0c;
margin-bottom: 10px;
margin-top: -48px;
padding: 10px;
border-radius: 10px;
width: 30cqw;
overflow: hidden;
}
.terminal::after {
content: "|";
opacity: 0;
animation: blink 1.5s step-end calc(var(--cursorwait) * 0.02s) infinite;
}
.terminal > span > span {
animation: reveal calc(var(--i) * 0.02s) step-end forwards;
}
#terminal {
position: absolute;
width: 750px;
height: 400px;
}