-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
198 lines (171 loc) · 3.59 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
/* General styles */
body {
font-family: 'Helvetica Neue', sans-serif;
margin: 0;
padding: 0;
background-color: #f5f5f5;
color: #333;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 20px;
}
h1, h2, .ctitle {
color: #222;
margin-bottom: 20px;
}
a {
color: #007bff;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* Header Section */
#dhead {
display: flex;
align-items: center;
justify-content: center;
padding: 50px 0;
background: #f5f5f5;
color: #fff;
}
#dpic img {
border-radius: 50%;
width: 150px;
height: 150px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
#ddesc {
padding-left: 30px;
}
#ddesc h1 {
font-size: 2.5em;
margin: 0;
}
#typed-text {
font-size: 2.5em;
font-weight: bold;
color: #222;
display: inline-block;
border-right: 2px solid #000;
white-space: nowrap;
overflow: hidden;
animation: blink-caret 0.75s step-end infinite;
}
@keyframes blink-caret {
from, to {
border-color: transparent;
}
50% {
border-color: black;
}
}
#ddesc h2 {
font-size: 1.5em;
margin: 10px 0 20px;
}
/* Icon section - turns all icons black */
#dico img {
filter: brightness(0) invert(0); /* This turns the icon color black */
width: 30px;
height: 30px;
cursor: pointer;
transition: transform 0.3s ease;
}
#dico img:hover {
transform: scale(1.1);
}
#demail {
color: #000; /* This sets the text color to black */
margin-top: 10px;
font-size: 16px;
transition: opacity 0.7s;
opacity: 1; /* Ensure the text is visible when displayed */
}
/* History Section */
#history {
margin-top: 20px; /* Reduced margin to move it closer to the header */
padding-bottom: 20px;
}
.entry {
display: grid;
grid-template-columns: 1fr 1fr 8fr;
margin-bottom: 30px;
align-items: flex-start; /* Aligns content to the top */
padding-left: 15px;
}
.timespan {
font-size: 14px;
text-align: right;
color: #bbb;
padding-right: 10px;
}
.ico {
text-align: center;
position: relative;
padding-left: 10px;
border-left: 2px solid #cfcfcf;
}
.entry-dot {
position: absolute;
top: -10px; /* Moves the dot to align at the top of the vertical line */
left: -8px;
width: 10px;
height: 10px;
border-radius: 50%;
background-color: #cfcfcf;
border: 2px solid white;
}
.ico img {
border-radius: 5px;
width: 60px;
height: 60px;
}
.desc {
font-size: 16px;
padding-left: 20px;
color: #333;
}
/* Mobile Adjustments */
@media (max-width: 768px) {
.entry {
grid-template-columns: 1fr 9fr;
padding: 10px 0;
}
.timespan {
text-align: left;
padding-right: 0;
}
.ico {
display: none;
}
}
.pico_start img {
width: 100%; /* Make the image responsive */
max-width: 500px; /* Set a fixed max width */
height: 200px; /* Set a fixed height */
object-fit: cover; /* Ensure the image covers the div without distortion */
border-radius: 10px; /* Optional: add rounded corners */
margin-bottom: 15px; /* Optional: add space between the image and description */
}
.pico img {
width: 100%; /* Make the image responsive */
max-width: 500px; /* Set a fixed max width */
height: 200px; /* Set a fixed height */
object-fit: cover; /* Ensure the image covers the div without distortion */
border-radius: 10px; /* Optional: add rounded corners */
margin-bottom: 15px; /* Optional: add space between the image and description */
margin-top: 25px;
}
/* Footer Section */
footer {
background-color: #222;
color: #fff;
text-align: center;
padding: 20px 0;
}
footer p {
margin: 0;
}