Skip to content

Commit 7c2439c

Browse files
committed
Better feel for Action Bar on Resume
1 parent eca0860 commit 7c2439c

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

resume-generator/template.pug

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,6 @@ html(lang="en")
4040
| gtag('config', 'G-PVEKKHWL6B');
4141
body
4242
.a4-page
43-
.action-bar.no-print
44-
button(onclick="window.print()")
45-
svg(xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='#000000' viewbox='0 0 256 256')
46-
path(d='M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z')
47-
a(download="" href="/Resume-CraigWayneGovender.pdf" target="_blank")
48-
svg(xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='#000000' viewbox='0 0 256 256')
49-
path(d='M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z')
5043
header
5144
h1 #{first_names} #{last_name}
5245
h2 #{latest_role}
@@ -104,6 +97,14 @@ html(lang="en")
10497
span= skill
10598
if index < sorted_skills.length - 1
10699
| ,
100+
.overlay
101+
.action-bar.no-print
102+
button(onclick="window.print()")
103+
svg(xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='#000000' viewbox='0 0 256 256')
104+
path(d='M214.67,72H200V40a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8V72H41.33C27.36,72,16,82.77,16,96v80a8,8,0,0,0,8,8H56v32a8,8,0,0,0,8,8H192a8,8,0,0,0,8-8V184h32a8,8,0,0,0,8-8V96C240,82.77,228.64,72,214.67,72ZM72,48H184V72H72ZM184,208H72V160H184Zm40-40H200V152a8,8,0,0,0-8-8H64a8,8,0,0,0-8,8v16H32V96c0-4.41,4.19-8,9.33-8H214.67c5.14,0,9.33,3.59,9.33,8Zm-24-52a12,12,0,1,1-12-12A12,12,0,0,1,200,116Z')
105+
a(download="" href="/Resume-CraigWayneGovender.pdf" target="_blank")
106+
svg(xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='#000000' viewbox='0 0 256 256')
107+
path(d='M224,144v64a8,8,0,0,1-8,8H40a8,8,0,0,1-8-8V144a8,8,0,0,1,16,0v56H208V144a8,8,0,0,1,16,0Zm-101.66,5.66a8,8,0,0,0,11.32,0l40-40a8,8,0,0,0-11.32-11.32L136,124.69V32a8,8,0,0,0-16,0v92.69L93.66,98.34a8,8,0,0,0-11.32,11.32Z')
107108
.supported-brands.muted.no-print
108109
.title ATS Friendly
109110
svg.active(viewbox='0 0 51.4 107.7' xmlns='http://www.w3.org/2000/svg')

src/public/resume/styles.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ body {
2626
position: relative;
2727
}
2828

29+
.a4-page .overlay {
30+
position: absolute;
31+
top: 0;
32+
left: 0;
33+
width: 100%;
34+
height: 100%;
35+
}
36+
2937
h1, h2, h3, h4, p {
3038
margin: 0;
3139
}
@@ -202,7 +210,6 @@ ul li::marker {
202210
}
203211

204212
.action-bar {
205-
position: absolute;
206213
top: 0;
207214
right: 0;
208215
transform: translate(50%, 50%);
@@ -215,6 +222,9 @@ ul li::marker {
215222
box-shadow: 0 4px 8px 3px rgba(0,0,0,0.15);
216223
border-radius: 41px;
217224
overflow: hidden;
225+
position: sticky;
226+
max-width: 40px;
227+
margin-left: auto;
218228
}
219229

220230
.action-bar > * {
@@ -249,6 +259,7 @@ ul li::marker {
249259
transform: translate(50%, -50%);
250260
position: fixed;
251261
flex-direction: row;
262+
max-width: unset;
252263
}
253264
.action-bar > * {
254265
padding: 8px 10px;

0 commit comments

Comments
 (0)