-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathstyles.css
More file actions
118 lines (106 loc) · 2.38 KB
/
styles.css
File metadata and controls
118 lines (106 loc) · 2.38 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
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
body, html {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
font-family: 'Special Elite', monospace;
background-color: #2E3440;
}
.header {
position: relative;
width: 100%;
height: 300px;
overflow: hidden;
}
.code-container {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
overflow: hidden;
}
.code-wrapper {
display: flex;
flex-direction: column;
padding: 20px;
box-sizing: border-box;
color: #D8DEE9;
font-size: 1em;
line-height: 1.2;
transform: translateY(0);
transition: transform 0.1s linear;
}
.code-line-wrapper {
display: flex;
align-items: center;
position: relative;
margin-bottom: 5px;
}
.code-line {
height: 12px;
margin: 5px 0;
display: inline-block;
margin-right: 5px; /* Space between words */
vertical-align: middle; /* Align text vertically */
line-height: 12px;
font-family: 'Special Elite', monospace;
padding-top: 5px; /* Adjust padding to align text with blocks */
}
.line-number {
width: 12px;
height: 12px;
background-color: #5E81AC;
margin-right: 10px;
vertical-align: middle; /* Align text vertically */
line-height: 12px; /* Ensure line-height matches the height */
font-family: 'Special Elite', monospace;
padding-top: 1px;
}
.vertical-line {
width: 5px;
height: 100%;
background-color: #5E81AC;
position: absolute;
left: 55px;
top: 0;
}
.header-content {
position: absolute;
top: 0;
right: 20px;
z-index: 1;
color: #D8DEE9;
text-align: right;
padding: 20px;
box-sizing: border-box;
}
.header-content h1 {
margin: 0;
font-size: 3em;
font-family: 'Special Elite', monospace;
white-space: nowrap; /* Prevent line break */
overflow: hidden;
border-right: 0.15em solid #D8DEE9; /* Cursor */
animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}
.bio {
position: absolute;
color: #D8DEE9;
bottom: 0px;
right: 20px;
text-align: right;
font-family: 'Special Elite', monospace;
white-space: nowrap; /* Prevent line break */
overflow: hidden;
}
/* Typing effect */
@keyframes typing {
from { width: 0 }
to { width: 100% }
}
/* Blinking cursor */
@keyframes blink-caret {
from, to { border-color: transparent }
50% { border-color: #D8DEE9 }
}