From b09f2029edf79101ed5f86828d9a48bf639708a8 Mon Sep 17 00:00:00 2001 From: Marvin Date: Mon, 21 Sep 2026 21:07:37 +0200 Subject: [PATCH] changed career section style --- styles/work_style.css | 58 +++++++++++++++++++++++++++++++------------ 1 file changed, 42 insertions(+), 16 deletions(-) diff --git a/styles/work_style.css b/styles/work_style.css index a17b898..30a92a7 100644 --- a/styles/work_style.css +++ b/styles/work_style.css @@ -1,34 +1,60 @@ -.work-date { - margin-top: 30px; - color: var(--muted); - font-size: 0.95rem; - line-height: 1.6; +/* Work / career sections. + DOM (see loadData in main_page.js): + .section-header > h1 + p.section-desc (role) + p.section-desc (dates, company) + .tags + .tasks-div > .task-div > span.task-title + span.task-content */ + +/* Header: tighter than the project headers, since the tasks follow directly */ + +.section-header:has(+ .tasks-div) { + margin-bottom: 40px; } +.section-header:has(+ .tasks-div) .section-desc { + margin: 0; +} + +.section-header:has(+ .tasks-div) .section-desc:first-of-type { + margin-top: 12px; + color: var(--text); + font-size: calc(var(--font-size) + 0.1rem); +} + +.section-header:has(+ .tasks-div) .section-desc + .section-desc { + margin-top: 4px; + font-size: calc(var(--font-size) - 0.05rem); +} + +.section-header:has(+ .tasks-div) .tags { + margin-top: 24px; +} + +/* Tasks */ + .tasks-div { - margin-top: 60px; display: flex; flex-direction: column; - gap: 35px; - margin-bottom: 120px; - margin-left: var(--margin-main-content); + gap: 28px; + max-width: 75ch; + margin: 0 var(--margin-main-content) 100px; } .task-div { - display: flex; - flex-direction: column; - gap: 0px; - align-items: baseline; + padding-left: 20px; + border-left: 2px solid var(--border); + transition: border-color 0.18s; +} + +@media (hover: hover) and (pointer: fine) { + .task-div:hover { + border-color: var(--text); + } } .task-title { color: var(--text); font-weight: 700; - font-size: 1rem; } .task-content { color: var(--muted); - font-size: 1rem; - line-height: 1.7; }