Skip to content

Commit 47e77fd

Browse files
committed
small fix
1 parent 229e8b3 commit 47e77fd

2 files changed

Lines changed: 47 additions & 73 deletions

File tree

resume.css

Lines changed: 46 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ button { font: inherit; }
132132
letter-spacing: .02em;
133133
}
134134
html[data-layout="modern"] .layout-toggle {
135-
animation: cv-gentle-pulse 5.5s ease-out 1.2s infinite;
135+
width: 44px;
136+
height: 44px;
137+
color: var(--mint);
138+
border-color: color-mix(in srgb, var(--mint) 52%, var(--line));
139+
animation: cv-gentle-pulse 3.8s ease-out .8s infinite;
136140
}
137141
html[data-layout="modern"] .layout-toggle:hover,
138142
html[data-layout="modern"] .layout-toggle:focus-visible {
@@ -145,31 +149,36 @@ html[data-layout="modern"] .layout-toggle:focus-visible {
145149
}
146150
@keyframes cv-gentle-pulse {
147151
0%,
148-
72%,
152+
58%,
149153
100% {
150-
color: var(--paper);
151-
border-color: var(--line);
154+
color: var(--mint);
155+
border-color: color-mix(in srgb, var(--mint) 52%, var(--line));
156+
background: transparent;
152157
box-shadow: 0 0 0 0 transparent;
153158
}
154-
78% {
155-
color: var(--lime);
156-
border-color: var(--lime);
157-
box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 28%, transparent);
159+
66% {
160+
color: var(--mint);
161+
border-color: var(--mint);
162+
background: color-mix(in srgb, var(--mint) 10%, transparent);
163+
box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 42%, transparent);
158164
}
159-
86% {
160-
color: var(--lime);
161-
border-color: var(--lime);
162-
box-shadow: 0 0 0 6px transparent;
165+
75% {
166+
color: var(--mint);
167+
border-color: var(--mint);
168+
background: transparent;
169+
box-shadow: 0 0 0 7px transparent;
163170
}
164-
92% {
165-
color: var(--lime);
166-
border-color: var(--lime);
167-
box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 20%, transparent);
171+
82% {
172+
color: var(--mint);
173+
border-color: var(--mint);
174+
background: color-mix(in srgb, var(--mint) 8%, transparent);
175+
box-shadow: 0 0 0 0 color-mix(in srgb, var(--mint) 32%, transparent);
168176
}
169-
98% {
170-
color: var(--paper);
171-
border-color: var(--line);
172-
box-shadow: 0 0 0 5px transparent;
177+
92% {
178+
color: var(--mint);
179+
border-color: var(--mint);
180+
background: transparent;
181+
box-shadow: 0 0 0 6px transparent;
173182
}
174183
}
175184
.resume-theme-icon {
@@ -187,42 +196,21 @@ html[data-layout="modern"] .layout-toggle:focus-visible {
187196
.back-link { display: flex; gap: 10px; align-items: center; }
188197

189198
.pdf-viewer {
199+
position: relative;
190200
width: min(940px, calc(100vw - 48px));
191201
display: none;
192-
margin: 48px auto 80px;
193-
}
194-
.pdf-viewer-heading {
195-
display: flex;
196-
align-items: end;
197-
justify-content: space-between;
198-
gap: 28px;
199-
margin-bottom: 22px;
200-
padding-bottom: 20px;
201-
border-bottom: 1px solid var(--line);
202-
}
203-
.pdf-viewer-heading p {
204-
margin: 0;
205-
color: var(--mint);
206-
font: 400 9px/1 var(--mono);
207-
letter-spacing: .1em;
208-
text-transform: uppercase;
209-
}
210-
.pdf-viewer-heading h2 {
211-
margin: 10px 0 0;
212-
font: 500 34px/1 var(--display);
213-
text-transform: uppercase;
214-
}
215-
.pdf-viewer-heading > a {
216-
padding: 12px 16px;
217-
color: var(--accent-text);
218-
border-radius: 999px;
219-
background: var(--lime);
220-
font: 500 9px/1 var(--mono);
221-
letter-spacing: .08em;
222-
text-transform: uppercase;
202+
margin: 40px auto 80px;
203+
padding-top: 16px;
223204
}
224-
.pdf-viewer-heading > a span {
225-
margin-left: 7px;
205+
.pdf-viewer::before {
206+
position: absolute;
207+
top: 0;
208+
left: 0;
209+
width: min(180px, 36%);
210+
height: 2px;
211+
content: "";
212+
background: linear-gradient(90deg, var(--mint), var(--lime));
213+
box-shadow: 12px 0 24px color-mix(in srgb, var(--mint) 24%, transparent);
226214
}
227215
.pdf-document {
228216
display: grid;
@@ -518,7 +506,7 @@ html[data-layout="pdf"] .pdf-viewer {
518506
}
519507
.resume-footer p { color: var(--muted); }
520508

521-
/* Plain ATS-friendly résumé view */
509+
/* Legacy classic résumé styles */
522510
html[data-layout="classic"] .resume-shell {
523511
--ink: #fff;
524512
--paper: #111;
@@ -774,6 +762,10 @@ html[data-layout="classic"] .resume-footer {
774762
width: 38px;
775763
height: 38px;
776764
}
765+
html[data-layout="modern"] .layout-toggle {
766+
width: 42px;
767+
height: 42px;
768+
}
777769
.download-button {
778770
width: 38px;
779771
height: 38px;
@@ -782,14 +774,6 @@ html[data-layout="classic"] .resume-footer {
782774
width: calc(100vw - 28px);
783775
margin: 28px auto 48px;
784776
}
785-
.pdf-viewer-heading {
786-
align-items: flex-start;
787-
flex-direction: column;
788-
gap: 18px;
789-
}
790-
.pdf-viewer-heading h2 {
791-
font-size: 28px;
792-
}
793777
.pdf-document {
794778
gap: 22px;
795779
}

resume.html

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -404,17 +404,7 @@ <h3>Virtual Career Fair Platform</h3>
404404
</footer>
405405
</main>
406406

407-
<section class="pdf-viewer" aria-labelledby="pdf-viewer-title">
408-
<header class="pdf-viewer-heading">
409-
<div>
410-
<p>ATS-friendly document</p>
411-
<h2 id="pdf-viewer-title">Professional résumé</h2>
412-
</div>
413-
<a
414-
href="assets/Tharuka-Chathura-Resume.pdf"
415-
download="Tharuka-Chathura-Resume.pdf"
416-
>Download PDF <span aria-hidden="true"></span></a>
417-
</header>
407+
<section class="pdf-viewer" aria-label="Tharuka Chathura résumé">
418408
<div
419409
class="pdf-document"
420410
id="pdf-document"

0 commit comments

Comments
 (0)