Add Python FastAPI service, cheap hotels page, and Tailwind theme refactor
Deploy with Docker Compose / deploy (push) Successful in 1m29s
Deploy with Docker Compose / deploy (push) Successful in 1m29s
- Replace searxng and open-webui with a FastAPI `python/` service proxied at /py/ (Travelodge hotel search, rate-limited in nginx) - Add CheapHotels view and CreateToggle component - Move design tokens into Tailwind @theme in styles.css and migrate components/views to utility classes; CVLayout re-points tokens for light theme - Update README, CLAUDE.md, and .gitignore accordingly Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01Dphx7LL5JC8dAFYU7MMpoA
This commit is contained in:
+3
-32
@@ -62,7 +62,7 @@ function print() {
|
||||
|
||||
<style scoped>
|
||||
.cv-root {
|
||||
background: white;
|
||||
background: var(--color-paper);
|
||||
}
|
||||
|
||||
.cv-selector {
|
||||
@@ -74,30 +74,8 @@ function print() {
|
||||
justify-content: center;
|
||||
gap: 0.5rem;
|
||||
padding: 0.5rem;
|
||||
background: white;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
||||
.cv-btn {
|
||||
padding: 0.4rem 1rem;
|
||||
border: 1px solid #333;
|
||||
border-radius: 4px;
|
||||
background: white;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
font-size: 0.9rem;
|
||||
transition:
|
||||
background 0.15s,
|
||||
color 0.15s;
|
||||
}
|
||||
|
||||
.cv-btn:hover {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.cv-btn.active {
|
||||
background: #333;
|
||||
color: white;
|
||||
background: var(--color-paper);
|
||||
border-bottom: 1px solid var(--color-line);
|
||||
}
|
||||
|
||||
.cv-print-btn {
|
||||
@@ -105,7 +83,6 @@ function print() {
|
||||
}
|
||||
|
||||
.cv-jobs-btn {
|
||||
text-decoration: none;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
@@ -125,12 +102,6 @@ function print() {
|
||||
opacity: 0;
|
||||
transform: translateY(-6px);
|
||||
}
|
||||
|
||||
@media print {
|
||||
.no-print {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<style src="./cv-shared.css"></style>
|
||||
|
||||
@@ -5,7 +5,7 @@ import Project from "./Project.vue";
|
||||
<template>
|
||||
<main class="cv-template">
|
||||
<div class="no-print w-full h-20"></div>
|
||||
<div class="a4page justify-between">
|
||||
<div class="cv-page justify-between">
|
||||
<section>
|
||||
<div class="flex flex-col sm:flex-row sm:justify-between">
|
||||
<h1 class="name">Adam French</h1>
|
||||
@@ -185,7 +185,7 @@ import Project from "./Project.vue";
|
||||
|
||||
<div class="no-print w-full h-20"></div>
|
||||
|
||||
<div class="a4page gap-10">
|
||||
<div class="cv-page gap-10">
|
||||
<section>
|
||||
<h2>Experience</h2>
|
||||
<Project>
|
||||
|
||||
@@ -5,7 +5,7 @@ import Project from "./Project.vue";
|
||||
<template>
|
||||
<main class="cv-template">
|
||||
<div class="no-print w-full h-20"></div>
|
||||
<div class="a4page justify-between">
|
||||
<div class="cv-page justify-between">
|
||||
<section>
|
||||
<div class="flex flex-col sm:flex-row sm:justify-between">
|
||||
<h1 class="name">Adam French</h1>
|
||||
@@ -185,7 +185,7 @@ import Project from "./Project.vue";
|
||||
|
||||
<div class="no-print w-full h-20"></div>
|
||||
|
||||
<div class="a4page gap-10">
|
||||
<div class="cv-page gap-10">
|
||||
<section>
|
||||
<h2>Experience</h2>
|
||||
<Project>
|
||||
|
||||
@@ -5,7 +5,7 @@ import Project from "./Project.vue";
|
||||
<template>
|
||||
<main class="cv-template">
|
||||
<div class="no-print w-full h-20"></div>
|
||||
<div class="a4page justify-between">
|
||||
<div class="cv-page justify-between">
|
||||
<section>
|
||||
<div class="flex flex-col sm:flex-row sm:justify-between">
|
||||
<h1 class="name">Adam French</h1>
|
||||
|
||||
@@ -5,7 +5,7 @@ import Project from "./Project.vue";
|
||||
<template>
|
||||
<main class="cv-template">
|
||||
<div class="no-print w-full h-20"></div>
|
||||
<div class="a4page justify-between">
|
||||
<div class="cv-page justify-between">
|
||||
<section>
|
||||
<div class="flex flex-col sm:flex-row sm:justify-between">
|
||||
<h1 class="name">Adam French</h1>
|
||||
@@ -182,7 +182,7 @@ import Project from "./Project.vue";
|
||||
|
||||
<div class="no-print w-full h-20"></div>
|
||||
|
||||
<div class="a4page gap-10">
|
||||
<div class="cv-page gap-10">
|
||||
<section>
|
||||
<h2>Experience</h2>
|
||||
<Project>
|
||||
|
||||
@@ -5,7 +5,7 @@ import Project from "./Project.vue";
|
||||
<template>
|
||||
<main class="cv-template">
|
||||
<div class="no-print w-full h-20"></div>
|
||||
<div class="a4page place-content-between">
|
||||
<div class="cv-page place-content-between">
|
||||
<section>
|
||||
<div class="flex flex-col sm:flex-row sm:justify-between">
|
||||
<h1 class="name">Adam French</h1>
|
||||
|
||||
@@ -5,7 +5,7 @@ import Project from "./Project.vue";
|
||||
<template>
|
||||
<main class="cv-template">
|
||||
<div class="no-print w-full h-20"></div>
|
||||
<div class="a4page justify-between">
|
||||
<div class="cv-page justify-between">
|
||||
<section>
|
||||
<div class="flex flex-col sm:flex-row sm:justify-between">
|
||||
<h1 class="name">Adam French</h1>
|
||||
|
||||
@@ -5,7 +5,7 @@ import Project from "./Project.vue";
|
||||
<template>
|
||||
<main class="cv-template">
|
||||
<div class="no-print w-full h-20"></div>
|
||||
<div class="a4page justify-around">
|
||||
<div class="cv-page justify-around">
|
||||
<section>
|
||||
<div class="flex flex-col sm:flex-row sm:justify-between">
|
||||
<h1 class="name">Adam French</h1>
|
||||
@@ -216,7 +216,7 @@ import Project from "./Project.vue";
|
||||
|
||||
<div class="no-print w-full h-20"></div>
|
||||
|
||||
<div class="a4page justify-around">
|
||||
<div class="cv-page justify-around">
|
||||
<section>
|
||||
<h2>Secondary Education</h2>
|
||||
<div
|
||||
|
||||
@@ -5,7 +5,7 @@ import Project from "./Project.vue";
|
||||
<template>
|
||||
<main class="cv-template">
|
||||
<div class="no-print w-full h-20"></div>
|
||||
<div class="a4page justify-between">
|
||||
<div class="cv-page justify-between">
|
||||
<section>
|
||||
<div class="flex flex-col sm:flex-row sm:justify-between">
|
||||
<h1 class="flex-1 name">Adam French</h1>
|
||||
@@ -183,7 +183,7 @@ import Project from "./Project.vue";
|
||||
|
||||
<div class="no-print w-full h-20"></div>
|
||||
|
||||
<div class="a4page gap-10">
|
||||
<div class="cv-page gap-10">
|
||||
<section>
|
||||
<h2>Experience</h2>
|
||||
<Project>
|
||||
|
||||
@@ -5,7 +5,7 @@ import Project from "./Project.vue";
|
||||
<template>
|
||||
<main class="cv-template">
|
||||
<div class="no-print w-full h-20"></div>
|
||||
<div class="a4page justify-between">
|
||||
<div class="cv-page justify-between">
|
||||
<section class="flex flex-col sm:flex-row sm:justify-between">
|
||||
<h1 class="name">Adam French</h1>
|
||||
<div class="contact-details">
|
||||
@@ -147,7 +147,7 @@ import Project from "./Project.vue";
|
||||
|
||||
<div class="no-print w-full h-20"></div>
|
||||
|
||||
<div class="a4page gap-10">
|
||||
<div class="cv-page gap-10">
|
||||
<div class="w-full flex flex-col sm:flex-row gap-5">
|
||||
<section class="flex-1">
|
||||
<h2>
|
||||
|
||||
@@ -254,14 +254,14 @@ function copyToClipboard(text) {
|
||||
|
||||
function statusClass(status) {
|
||||
const map = {
|
||||
Applied: "status-applied",
|
||||
Screening: "status-screening",
|
||||
Interview: "status-interview",
|
||||
Offer: "status-offer",
|
||||
Rejected: "status-rejected",
|
||||
Withdrawn: "status-withdrawn",
|
||||
Applied: "bg-blue-100 text-blue-800",
|
||||
Screening: "bg-yellow-100 text-yellow-800",
|
||||
Interview: "bg-violet-100 text-violet-800",
|
||||
Offer: "bg-green-100 text-green-800",
|
||||
Rejected: "bg-red-100 text-red-800",
|
||||
Withdrawn: "bg-gray-100 text-gray-500",
|
||||
};
|
||||
return map[status] ?? "";
|
||||
return map[status] ?? "bg-gray-200 text-gray-700";
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
@@ -278,7 +278,7 @@ onMounted(() => {
|
||||
<h2 class="ja-heading">Job Applications</h2>
|
||||
</div>
|
||||
<button
|
||||
class="ja-btn"
|
||||
class="cv-btn"
|
||||
@click="exportCsv"
|
||||
:disabled="!applications.length"
|
||||
>
|
||||
@@ -299,17 +299,17 @@ onMounted(() => {
|
||||
<span class="ja-ref-label">{{ ref.label }}</span>
|
||||
<span class="ja-ref-value" :title="ref.value">{{ ref.value }}</span>
|
||||
<button
|
||||
class="ja-btn ja-btn-sm"
|
||||
class="cv-btn cv-btn-sm"
|
||||
@click="copyToClipboard(ref.value)"
|
||||
title="Copy"
|
||||
>
|
||||
Copy
|
||||
</button>
|
||||
<button class="ja-btn ja-btn-sm" @click="startRefEdit(ref)">
|
||||
<button class="cv-btn cv-btn-sm" @click="startRefEdit(ref)">
|
||||
Edit
|
||||
</button>
|
||||
<button
|
||||
class="ja-btn ja-btn-sm ja-btn-danger"
|
||||
class="cv-btn cv-btn-sm cv-btn-danger"
|
||||
@click="deleteReference(ref.id)"
|
||||
>
|
||||
Delete
|
||||
@@ -335,12 +335,12 @@ onMounted(() => {
|
||||
placeholder="Value"
|
||||
/>
|
||||
<button
|
||||
class="ja-btn ja-btn-sm ja-btn-primary"
|
||||
class="cv-btn cv-btn-sm cv-btn-primary"
|
||||
@click="saveRefEdit(ref.id)"
|
||||
>
|
||||
Save
|
||||
</button>
|
||||
<button class="ja-btn ja-btn-sm" @click="cancelRefEdit">
|
||||
<button class="cv-btn cv-btn-sm" @click="cancelRefEdit">
|
||||
Cancel
|
||||
</button>
|
||||
</template>
|
||||
@@ -367,7 +367,7 @@ onMounted(() => {
|
||||
placeholder="Value *"
|
||||
required
|
||||
/>
|
||||
<button type="submit" class="ja-btn ja-btn-primary">Add</button>
|
||||
<button type="submit" class="cv-btn cv-btn-primary">Add</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
@@ -411,7 +411,7 @@ onMounted(() => {
|
||||
class="ja-input ja-textarea"
|
||||
placeholder="Notes"
|
||||
/>
|
||||
<button type="submit" class="ja-btn ja-btn-primary">Add</button>
|
||||
<button type="submit" class="cv-btn cv-btn-primary">Add</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -451,11 +451,11 @@ onMounted(() => {
|
||||
<td>{{ app.appliedAt ? app.appliedAt.substring(0, 10) : "—" }}</td>
|
||||
<td class="ja-notes-cell">{{ app.notes ?? "" }}</td>
|
||||
<td class="ja-actions">
|
||||
<button class="ja-btn ja-btn-sm" @click="startEdit(app)">
|
||||
<button class="cv-btn cv-btn-sm" @click="startEdit(app)">
|
||||
Edit
|
||||
</button>
|
||||
<button
|
||||
class="ja-btn ja-btn-sm ja-btn-danger"
|
||||
class="cv-btn cv-btn-sm cv-btn-danger"
|
||||
@click="deleteApplication(app.id)"
|
||||
>
|
||||
Delete
|
||||
@@ -510,12 +510,12 @@ onMounted(() => {
|
||||
</td>
|
||||
<td class="ja-actions">
|
||||
<button
|
||||
class="ja-btn ja-btn-sm ja-btn-primary"
|
||||
class="cv-btn cv-btn-sm cv-btn-primary"
|
||||
@click="saveEdit(app.id)"
|
||||
>
|
||||
Save
|
||||
</button>
|
||||
<button class="ja-btn ja-btn-sm" @click="cancelEdit">
|
||||
<button class="cv-btn cv-btn-sm" @click="cancelEdit">
|
||||
Cancel
|
||||
</button>
|
||||
</td>
|
||||
@@ -528,10 +528,11 @@ onMounted(() => {
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
/* Colours are the paper palette from CVLayout.vue; buttons are .cv-btn from there too. */
|
||||
.ja-root {
|
||||
padding: 1.5rem;
|
||||
border-top: 2px solid #333;
|
||||
background: #fafafa;
|
||||
border-top: 2px solid var(--color-ink-soft);
|
||||
background: var(--color-paper-tint);
|
||||
}
|
||||
|
||||
.ja-header {
|
||||
@@ -549,21 +550,21 @@ onMounted(() => {
|
||||
|
||||
.ja-back {
|
||||
font-size: 0.85rem;
|
||||
color: #555;
|
||||
color: var(--color-ink-muted);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.ja-back:hover {
|
||||
color: #111;
|
||||
color: var(--color-ink);
|
||||
}
|
||||
|
||||
.ja-heading {
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
margin: 0;
|
||||
color: #333;
|
||||
color: var(--color-ink-soft);
|
||||
}
|
||||
|
||||
/* Forms */
|
||||
.ja-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -579,17 +580,17 @@ onMounted(() => {
|
||||
|
||||
.ja-input {
|
||||
padding: 0.35rem 0.6rem;
|
||||
border: 1px solid #ccc;
|
||||
border: 1px solid var(--color-line);
|
||||
border-radius: 4px;
|
||||
font-size: 0.85rem;
|
||||
background: white;
|
||||
background: var(--color-paper);
|
||||
flex: 1;
|
||||
min-width: 120px;
|
||||
}
|
||||
|
||||
.ja-input:focus {
|
||||
outline: none;
|
||||
border-color: #555;
|
||||
border-color: var(--color-ink-muted);
|
||||
}
|
||||
|
||||
.ja-select {
|
||||
@@ -608,47 +609,7 @@ onMounted(() => {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.ja-btn {
|
||||
padding: 0.35rem 0.8rem;
|
||||
border: 1px solid #333;
|
||||
border-radius: 4px;
|
||||
background: white;
|
||||
color: #333;
|
||||
cursor: pointer;
|
||||
font-size: 0.85rem;
|
||||
white-space: nowrap;
|
||||
transition:
|
||||
background 0.15s,
|
||||
color 0.15s;
|
||||
}
|
||||
|
||||
.ja-btn:hover {
|
||||
background: #eee;
|
||||
}
|
||||
|
||||
.ja-btn-sm {
|
||||
padding: 0.2rem 0.55rem;
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
|
||||
.ja-btn-primary {
|
||||
background: #333;
|
||||
color: white;
|
||||
}
|
||||
|
||||
.ja-btn-primary:hover {
|
||||
background: #555;
|
||||
}
|
||||
|
||||
.ja-btn-danger {
|
||||
border-color: #c00;
|
||||
color: #c00;
|
||||
}
|
||||
|
||||
.ja-btn-danger:hover {
|
||||
background: #fee;
|
||||
}
|
||||
|
||||
/* Applications table */
|
||||
.ja-table {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
@@ -659,18 +620,18 @@ onMounted(() => {
|
||||
.ja-table td {
|
||||
text-align: left;
|
||||
padding: 0.45rem 0.6rem;
|
||||
border-bottom: 1px solid #e0e0e0;
|
||||
border-bottom: 1px solid var(--color-line-soft);
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.ja-table th {
|
||||
font-weight: 600;
|
||||
color: #555;
|
||||
background: #f0f0f0;
|
||||
color: var(--color-ink-muted);
|
||||
background: var(--color-paper-shade);
|
||||
}
|
||||
|
||||
.ja-table tr:hover td {
|
||||
background: #f5f5f5;
|
||||
background: var(--color-paper-shade);
|
||||
}
|
||||
|
||||
.ja-edit-row td {
|
||||
@@ -691,7 +652,7 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.ja-link {
|
||||
color: #0066cc;
|
||||
color: var(--color-ink-link);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
@@ -699,59 +660,34 @@ onMounted(() => {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Status pill; colour classes come from statusClass() */
|
||||
.ja-badge {
|
||||
display: inline-block;
|
||||
padding: 0.15rem 0.5rem;
|
||||
border-radius: 10px;
|
||||
font-size: 0.78rem;
|
||||
font-weight: 500;
|
||||
background: #e0e0e0;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.status-applied {
|
||||
background: #dbeafe;
|
||||
color: #1e40af;
|
||||
}
|
||||
.status-screening {
|
||||
background: #fef9c3;
|
||||
color: #854d0e;
|
||||
}
|
||||
.status-interview {
|
||||
background: #ede9fe;
|
||||
color: #5b21b6;
|
||||
}
|
||||
.status-offer {
|
||||
background: #dcfce7;
|
||||
color: #166534;
|
||||
}
|
||||
.status-rejected {
|
||||
background: #fee2e2;
|
||||
color: #991b1b;
|
||||
}
|
||||
.status-withdrawn {
|
||||
background: #f3f4f6;
|
||||
color: #6b7280;
|
||||
}
|
||||
|
||||
.ja-empty {
|
||||
color: #888;
|
||||
color: var(--color-ink-faint);
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
/* Quick-reference box */
|
||||
.ja-ref-section {
|
||||
margin-bottom: 1.5rem;
|
||||
padding: 1rem;
|
||||
border: 1px solid #e0e0e0;
|
||||
border: 1px solid var(--color-line-soft);
|
||||
border-radius: 6px;
|
||||
background: #fff;
|
||||
background: var(--color-paper);
|
||||
}
|
||||
|
||||
.ja-ref-heading {
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
margin: 0 0 0.75rem 0;
|
||||
color: #333;
|
||||
margin-bottom: 0.75rem;
|
||||
color: var(--color-ink-soft);
|
||||
}
|
||||
|
||||
.ja-ref-category {
|
||||
@@ -761,9 +697,9 @@ onMounted(() => {
|
||||
.ja-ref-cat-label {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 600;
|
||||
color: #555;
|
||||
color: var(--color-ink-muted);
|
||||
text-transform: capitalize;
|
||||
margin: 0 0 0.35rem 0;
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
.ja-ref-item {
|
||||
@@ -776,13 +712,13 @@ onMounted(() => {
|
||||
.ja-ref-label {
|
||||
font-size: 0.85rem;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
color: var(--color-ink-soft);
|
||||
min-width: 80px;
|
||||
}
|
||||
|
||||
.ja-ref-value {
|
||||
font-size: 0.85rem;
|
||||
color: #555;
|
||||
color: var(--color-ink-muted);
|
||||
flex: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -791,7 +727,7 @@ onMounted(() => {
|
||||
|
||||
.ja-ref-empty {
|
||||
font-size: 0.8rem;
|
||||
color: #999;
|
||||
color: var(--color-ink-faint);
|
||||
margin: 0.2rem 0;
|
||||
}
|
||||
|
||||
|
||||
+130
-136
@@ -1,214 +1,208 @@
|
||||
/*
|
||||
* Shared styles for CV templates.
|
||||
* Loaded once (unscoped) by CV.vue. Each CV template tags its root <main>
|
||||
* with class="cv-template"; per-template variation is done by overriding
|
||||
* the CSS variables defined here in the template's own scoped <style>.
|
||||
* Shared styles for the CV templates (src/views/CV/CV*.vue).
|
||||
*
|
||||
* @font-face declarations live in /src/assets/styles.css.
|
||||
* Loaded once, unscoped, by CV.vue. Each template wraps itself in
|
||||
* <main class="cv-template"> and lays out each sheet as <div class="cv-page">.
|
||||
*
|
||||
* Colours are the site tokens from src/assets/styles.css. CVLayout.vue has
|
||||
* already switched them to ink-on-paper; this file only adds the template's
|
||||
* own accents (blue links, red table rules). Sizes are exposed as --cv-*
|
||||
* variables so a template can tune them from its own scoped <style>.
|
||||
*/
|
||||
|
||||
.cv-template {
|
||||
/* Color palette — overrides global :root vars within CV scope */
|
||||
--primary: black;
|
||||
--secondary: #000088;
|
||||
--tertiary: #ff0000;
|
||||
--quaternary: #cccccc;
|
||||
--background: white;
|
||||
--color-primary: black;
|
||||
--color-secondary: #000088; /* links, table text */
|
||||
--color-tertiary: #ff0000; /* link hover, table rules */
|
||||
--color-quaternary: #cccccc; /* table header background */
|
||||
--color-surface: white;
|
||||
|
||||
/* Fonts */
|
||||
--font-heading: big_noodle_titling;
|
||||
--font-text: CreatoDisplay;
|
||||
|
||||
/* Variation hooks — defaults match Hospitality/Frontend/Backend/Temp */
|
||||
--cv-page-padding: 8mm;
|
||||
--cv-line-height: 1.4;
|
||||
--cv-page-gap: 0;
|
||||
--cv-name-size: 3.1em;
|
||||
--cv-heading-size: 2.1em;
|
||||
--cv-subheading-size: 1.7em;
|
||||
--cv-subsubheading-size: 1.4em;
|
||||
--cv-text-size: 1em;
|
||||
--cv-small-size: 1em;
|
||||
--cv-list-size: 0.92em;
|
||||
--cv-heading-transform: capitalize;
|
||||
--cv-heading-margin: 0;
|
||||
--cv-page-padding: 8mm;
|
||||
--cv-line-height: 1.4;
|
||||
--cv-page-gap: 0;
|
||||
--cv-name-size: 3.1em;
|
||||
--cv-heading-size: 2.1em;
|
||||
--cv-subheading-size: 1.7em;
|
||||
--cv-subsubheading-size: 1.4em;
|
||||
--cv-text-size: 1em;
|
||||
--cv-small-size: 1em;
|
||||
--cv-list-size: 0.92em;
|
||||
--cv-heading-transform: capitalize;
|
||||
--cv-heading-margin: 0;
|
||||
}
|
||||
|
||||
.cv-template main {
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: fit-content;
|
||||
background-color: var(--background);
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: fit-content;
|
||||
background-color: var(--color-surface);
|
||||
}
|
||||
|
||||
.cv-template .a4page {
|
||||
width: 210mm;
|
||||
height: 297mm;
|
||||
padding: var(--cv-page-padding);
|
||||
line-height: var(--cv-line-height);
|
||||
gap: var(--cv-page-gap);
|
||||
box-sizing: border-box;
|
||||
background-color: var(--background);
|
||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid var(--primary);
|
||||
overflow: hidden;
|
||||
margin: auto auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-family: var(--font-text);
|
||||
/* One A4 sheet */
|
||||
.cv-template .cv-page {
|
||||
width: 210mm;
|
||||
height: 297mm;
|
||||
padding: var(--cv-page-padding);
|
||||
line-height: var(--cv-line-height);
|
||||
gap: var(--cv-page-gap);
|
||||
box-sizing: border-box;
|
||||
background-color: var(--color-surface);
|
||||
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
|
||||
border: 1px solid var(--color-primary);
|
||||
overflow: hidden;
|
||||
margin: auto auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
font-family: var(--font-body);
|
||||
}
|
||||
|
||||
/* Typography */
|
||||
.cv-template .name {
|
||||
font-size: var(--cv-name-size);
|
||||
font-size: var(--cv-name-size);
|
||||
}
|
||||
|
||||
.cv-template h1,
|
||||
.cv-template h2,
|
||||
.cv-template h3,
|
||||
.cv-template h4 {
|
||||
margin: var(--cv-heading-margin);
|
||||
color: var(--primary);
|
||||
font-family: var(--font-heading);
|
||||
text-transform: var(--cv-heading-transform);
|
||||
margin: var(--cv-heading-margin);
|
||||
color: var(--color-primary);
|
||||
font-family: var(--font-heading);
|
||||
text-transform: var(--cv-heading-transform);
|
||||
}
|
||||
|
||||
.cv-template h1 {
|
||||
font-size: var(--cv-heading-size);
|
||||
font-size: var(--cv-heading-size);
|
||||
}
|
||||
|
||||
.cv-template h2 {
|
||||
border-bottom: 1px solid var(--primary);
|
||||
margin-bottom: 2px;
|
||||
font-size: var(--cv-subheading-size);
|
||||
}
|
||||
|
||||
.cv-template h3 {
|
||||
font-size: var(--cv-subsubheading-size);
|
||||
border-bottom: 1px solid var(--color-primary);
|
||||
margin-bottom: 2px;
|
||||
font-size: var(--cv-subheading-size);
|
||||
}
|
||||
|
||||
.cv-template h3,
|
||||
.cv-template h4 {
|
||||
font-size: var(--cv-subsubheading-size);
|
||||
font-size: var(--cv-subsubheading-size);
|
||||
}
|
||||
|
||||
.cv-template p {
|
||||
margin-bottom: 0.2em;
|
||||
color: var(--primary);
|
||||
font-size: var(--cv-text-size);
|
||||
margin-bottom: 0.2em;
|
||||
color: var(--color-primary);
|
||||
font-size: var(--cv-text-size);
|
||||
}
|
||||
|
||||
.cv-template a {
|
||||
background-color: transparent;
|
||||
color: var(--secondary);
|
||||
font-family: inherit;
|
||||
background-color: transparent;
|
||||
color: var(--color-secondary);
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
.cv-template a:hover {
|
||||
color: var(--tertiary);
|
||||
color: var(--color-tertiary);
|
||||
}
|
||||
|
||||
.cv-template small {
|
||||
font-size: var(--cv-small-size);
|
||||
color: var(--primary);
|
||||
font-size: var(--cv-small-size);
|
||||
color: var(--color-primary);
|
||||
}
|
||||
|
||||
.cv-template ul {
|
||||
font-size: var(--cv-list-size);
|
||||
margin: 0;
|
||||
padding-left: 1.2em;
|
||||
font-size: var(--cv-list-size);
|
||||
margin: 0;
|
||||
padding-left: 1.2em;
|
||||
}
|
||||
|
||||
.cv-template li {
|
||||
font-size: var(--cv-list-size);
|
||||
color: var(--primary);
|
||||
list-style: disc;
|
||||
font-size: var(--cv-list-size);
|
||||
color: var(--color-primary);
|
||||
list-style: disc;
|
||||
}
|
||||
|
||||
/* Grids */
|
||||
.cv-template .skills-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 0.3em 1em;
|
||||
margin-bottom: 0.2em;
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr 1fr;
|
||||
gap: 0.3em 1em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
|
||||
.cv-template .grades-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, auto 1fr);
|
||||
column-gap: 0.5em;
|
||||
row-gap: 0.1em;
|
||||
font-size: var(--cv-text-size);
|
||||
color: var(--primary);
|
||||
margin: 0.15em 0;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, auto 1fr);
|
||||
column-gap: 0.5em;
|
||||
row-gap: 0.1em;
|
||||
font-size: var(--cv-text-size);
|
||||
color: var(--color-primary);
|
||||
margin: 0.15em 0;
|
||||
}
|
||||
|
||||
.cv-template .grades-grid > span:nth-child(4n + 2),
|
||||
.cv-template .grades-grid > span:nth-child(4n) {
|
||||
font-weight: 600;
|
||||
padding-right: 1.5em;
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
.cv-template .grades-grid {
|
||||
grid-template-columns: auto 1fr;
|
||||
}
|
||||
font-weight: 600;
|
||||
padding-right: 1.5em;
|
||||
}
|
||||
|
||||
/* Tables */
|
||||
.cv-template table {
|
||||
color: var(--secondary);
|
||||
border-collapse: collapse;
|
||||
border: 1px solid black;
|
||||
color: var(--color-secondary);
|
||||
border-collapse: collapse;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
.cv-template td {
|
||||
color: var(--secondary);
|
||||
border-top: 1px solid var(--tertiary);
|
||||
padding: 1px 10px;
|
||||
font-size: var(--cv-text-size);
|
||||
text-align: left;
|
||||
color: var(--color-secondary);
|
||||
border-top: 1px solid var(--color-tertiary);
|
||||
padding: 1px 10px;
|
||||
font-size: var(--cv-text-size);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.cv-template th {
|
||||
color: var(--secondary);
|
||||
border: 2px solid var(--tertiary);
|
||||
padding: 1px 0 1px 7px;
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--cv-subsubheading-size);
|
||||
background-color: var(--quaternary);
|
||||
text-align: left;
|
||||
color: var(--color-secondary);
|
||||
border: 2px solid var(--color-tertiary);
|
||||
padding: 1px 0 1px 7px;
|
||||
font-family: var(--font-heading);
|
||||
font-size: var(--cv-subsubheading-size);
|
||||
background-color: var(--color-quaternary);
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
/* Phone */
|
||||
@media (max-width: 640px) {
|
||||
.cv-template .a4page {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
overflow: visible;
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
}
|
||||
.cv-template .cv-page {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
overflow: visible;
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
}
|
||||
|
||||
.cv-template .skills-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.cv-template .skills-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.cv-template .grades-grid {
|
||||
grid-template-columns: auto 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
/* Print: one sheet per page */
|
||||
@page {
|
||||
size: A4;
|
||||
margin: 0;
|
||||
size: A4;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@media print {
|
||||
.cv-template .no-print {
|
||||
display: none !important;
|
||||
}
|
||||
.cv-template .cv-page {
|
||||
margin: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
break-after: page;
|
||||
}
|
||||
|
||||
.cv-template .a4page {
|
||||
margin: 0;
|
||||
border: none;
|
||||
box-shadow: none;
|
||||
break-after: page;
|
||||
}
|
||||
|
||||
.cv-template .a4page:last-of-type {
|
||||
break-after: auto;
|
||||
}
|
||||
.cv-template .cv-page:last-of-type {
|
||||
break-after: auto;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user