Theme improvements

This commit is contained in:
Jarno Rankinen 2024-02-10 18:55:14 +02:00
parent c6cef7036f
commit e1e9c619e0
5 changed files with 31 additions and 7 deletions

View File

@ -4,13 +4,20 @@
--theme-color: #b5b5b5; --theme-color: #b5b5b5;
--thin-color: #bd93f9; --thin-color: #bd93f9;
--title-color: #F8F8F2; --title-color: #F8F8F2;
--section-title-color: #00d1b2;
--subtitle-color: #d9d9d4; } --subtitle-color: #d9d9d4; }
.title { .title {
color: var(--title-color); } color: var(--title-color); }
.section-title {
color: var(--section-title-color); }
.subtitle { .subtitle {
color: var(--subtitle-color); } color: var(--subtitle-color); }
.tag:not(body).is-primary { .tag:not(body).is-primary {
color: #2f2f2f; } color: #2f2f2f; }
.tag:not(body).is-success {
background-color: var(--section-title-color); }

View File

@ -2,6 +2,7 @@
--theme-color: #b5b5b5; --theme-color: #b5b5b5;
--thin-color: #bd93f9; --thin-color: #bd93f9;
--title-color: #F8F8F2; --title-color: #F8F8F2;
--section-title-color: #00d1b2;
--subtitle-color: #d9d9d4; --subtitle-color: #d9d9d4;
} }
@ -12,6 +13,10 @@
color: var(--title-color); color: var(--title-color);
} }
.section-title {
color: var(--section-title-color);
}
.subtitle { .subtitle {
color: var(--subtitle-color); color: var(--subtitle-color);
} }
@ -19,3 +24,7 @@
.tag:not(body).is-primary { .tag:not(body).is-primary {
color: #2f2f2f; color: #2f2f2f;
} }
.tag:not(body).is-success {
background-color: var(--section-title-color);
}

View File

@ -92,3 +92,6 @@ body {
page-break-inside: avoid; } page-break-inside: avoid; }
html { html {
color-adjust: exact; } } color-adjust: exact; } }
.tag:not(body).is-success {
background-color: var(--section-title-color); }

View File

@ -5,3 +5,7 @@
@import "bulma.css"; @import "bulma.css";
@import 'base.scss'; @import 'base.scss';
.tag:not(body).is-success {
background-color: var(--section-title-color);
}

View File

@ -25,6 +25,7 @@
<script>function printPage() { <script>function printPage() {
if ("{{ .Theme }}" == "dark") { if ("{{ .Theme }}" == "dark") {
alert("{{ translate "print_dark" $lang }}") alert("{{ translate "print_dark" $lang }}")
window.location.replace("/light")
} else { } else {
window.print(); window.print();
} }
@ -85,7 +86,7 @@
<section class="section"> <section class="section">
<div class="container"> <div class="container">
<div class="summary"> <div class="summary">
<div class="title is-size-5 has-text-primary has-text-weight-bold"> <div class="title section-title is-size-5 has-text-weight-bold">
{{ translate "summary" $lang }} {{ translate "summary" $lang }}
</div> </div>
<div class="wrapper">{{ .Profile.Summary | html }}</div> <div class="wrapper">{{ .Profile.Summary | html }}</div>
@ -98,7 +99,7 @@
{{ with .Profile.Experience }} {{ with .Profile.Experience }}
<div class="experience"> <div class="experience">
<div class="title is-size-5 has-text-primary has-text-weight-bold"> <div class="title section-title is-size-5 has-text-weight-bold">
{{ translate "experience" $lang }} {{ translate "experience" $lang }}
</div> </div>
@ -132,7 +133,7 @@
{{ with .Profile.Education }} {{ with .Profile.Education }}
<div class="education"> <div class="education">
<div class="title is-size-5 has-text-primary has-text-weight-bold"> <div class="title section-title is-size-5 has-text-weight-bold">
{{ translate "education" $lang }} {{ translate "education" $lang }}
</div> </div>
@ -160,7 +161,7 @@
<div class="column"> <div class="column">
{{ with .Profile.Projects }} {{ with .Profile.Projects }}
<div class="projects"> <div class="projects">
<div class="title is-size-5 has-text-primary has-text-weight-bold"> <div class="title section-title is-size-5 has-text-weight-bold">
{{ translate "projects" $lang }} {{ translate "projects" $lang }}
</div> </div>
@ -180,7 +181,7 @@
{{ with .Profile.Skills }} {{ with .Profile.Skills }}
<div class="skills item"> <div class="skills item">
<div class="title is-size-5 has-text-primary has-text-weight-bold"> <div class="title section-title is-size-5 has-text-weight-bold">
{{ translate "skills" $lang }} {{ translate "skills" $lang }}
</div> </div>
<div class="wrapper"> <div class="wrapper">
@ -202,7 +203,7 @@
{{ with .Profile.Languages }} {{ with .Profile.Languages }}
<div class="languages item"> <div class="languages item">
<div class="title is-size-5 has-text-primary has-text-weight-bold"> <div class="title section-title is-size-5 has-text-weight-bold">
{{ translate "languages" $lang }} {{ translate "languages" $lang }}
</div> </div>
<div class="wrapper"> <div class="wrapper">
@ -224,7 +225,7 @@
{{ with .Profile.Certificates }} {{ with .Profile.Certificates }}
<div class="certificates item"> <div class="certificates item">
<div class="title is-size-5 has-text-primary has-text-weight-bold"> <div class="title section-title is-size-5 has-text-weight-bold">
{{ translate "certificates" $lang }} {{ translate "certificates" $lang }}
</div> </div>