theme update

This commit is contained in:
Ewen 2023-08-02 10:48:05 +02:00
parent 8521f5df31
commit 59e911e05d
18 changed files with 94 additions and 25 deletions

View file

@ -34,7 +34,7 @@ img {
a,
a:hover,
a:focus {
text-decoration: none;
text-decoration: underline;
color: $primary-color;
}
@ -43,6 +43,11 @@ a.text-primary:hover{
color: $primary-color !important;
}
a.btn {
text-decoration: none;
}
a,
button,

View file

@ -1,8 +1,41 @@
/* typography */
// TODO To be served locally later
@import url('https://fontlibrary.org//face/gen-light');
@import url('https://fontlibrary.org//face/kallaikos-revve-kallaikosrevve');
@font-face {
font-family: 'KallaikosrevveRegular';
src: url('/webfonts/KallaikosrevveRegular.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'GenLight';
src: url('/webfonts/Gen-Light.otf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'PanameraLight';
src: url('/webfonts/Panamera/Panamera-Light.otf') format('truetype');
font-weight: 300;
font-style: normal;
}
@font-face {
font-family: 'PanameraRegular';
src: url('/webfonts/Panamera/Panamera-Regular.otf') format('truetype');
font-weight: 500;
font-style: normal;
}
@font-face {
font-family: 'PanameraBold';
src: url('/webfonts/Panamera/Panamera-Bold.otf') format('truetype');
font-weight: 700;
font-style: normal;
}
body {
line-height: 1.4;
@ -24,19 +57,23 @@ p, .paragraph {
.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
color: $text-color-dark;
font-weight: 400;
line-height: 1.3 !important;
line-height: 0.8!important;
&:not([class^='ti-']) {
font-family: $primary-font;
}
text-decoration: none;
&:hover {
text-decoration: none;
}
}
.section-header {
font-variant: small-caps;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
font-weight: 600 !important;
font-family: PanameraRegular, Gen-Light, Tahoma, Geneva, Verdana, sans-serif !important;
font-weight: 500 !important;
}
a{
a {
&.h1,&.h2,&.h3,&.h4,&.h5,&.h6{
color: $text-color-dark;
}

View file

@ -10,6 +10,5 @@ $white: #fff;
$gray: #f4fcff;
// Font Variables
//$primary-font: 'GenLight', sans-serif;
$primary-font: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
$primary-font: 'GenLight','Segoe UI', Geneva, Verdana, sans-serif;
$icon-font: 'fontawesome';

View file

@ -7,3 +7,9 @@
max-height: 100px;
}
}
.card {
&-body {
padding: 1em;
}
}

View file

@ -1,4 +1,10 @@
/* card */
.card {
&-body {
padding: 0px;
}
}
.posts {
border: 0;
border-radius: 0;
@ -15,6 +21,15 @@
object-fit: cover;
width: 100%;
height: 100%;
max-height: 250px;
}
}
.post {
&-img {
display: block;
max-height: 400px;
margin: auto;
}
}
@ -103,6 +118,7 @@
line-height: 40px;
border: 1px solid transparent;
font-size: 20px;
text-decoration: underline;
&:hover {
background-color: $white;
@ -161,6 +177,7 @@
border: 1px solid transparent;
font-size: 15px;
padding: 5px;
text-decoration: none;
&:hover,

View file

@ -22,6 +22,10 @@
font-weight: bold;
font-size: 26px;
color: $text-color-dark;
text-decoration: none;
&:hover {
text-decoration: none;
}
}
/* Collapses */

View file

@ -2,7 +2,7 @@
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
{{- $pages = where $pctx.RegularPages "Section" "blog" -}}
{{- else -}}
{{- $pages = $pctx.Pages -}}
{{- end -}}

View file

@ -2,7 +2,7 @@
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-lg-8 mb-100 mb-lg-0">
<div class="col-lg-8 mb-10 mb-lg-0">
{{- $pctx := . -}}

View file

@ -4,20 +4,20 @@
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-lg-8 mb-100 mb-lg-0">
<div class="col-lg-8 mb-10 mb-lg-0">
<article>
<div class="tags-list">
{{ if .Params.tags }}
{{ partial "tags" .Params.tags }}
{{ end }}
</div>
<h1 class="mb-0">{{ .Title }}</h1>
<h1 class="mb-0 mt-2">{{ .Title }}</h1>
<p class="mb-1">{{ i18n "published" }} {{ i18n "on" }} {{ (time .Date) | time.Format (.Params.date_format | default "2 January 2006") }}. {{ i18n "readingTime" }} {{ i18n "readingTimeValue" .ReadingTime }}.</p>
{{ if .Params.Image }}
{{ $article := .Permalink | relURL }}
{{ $image := .Params.Image | relURL }}
<img src="{{ print $article $image }}" class="img-fluid w-100 mb-4" alt="{{ .Title | markdownify }}">
<img src="{{ print $article $image }}" class="mb-4 post-img" alt="{{ .Title | markdownify }}">
{{ end }}
{{ .Content }}

View file

@ -3,7 +3,7 @@
<div class="container">
{{ .Page.Content }}
<div class="row">
<div class="col-lg-8 mb-100 mb-lg-0">
<div class="col-lg-8 mb-10 mb-lg-0">
{{ $cv_sections := where .Pages "Params.Widget" "cv"}}
{{ range $ids, $item := sort $cv_sections ".Params.weight" "asc" }}
{{ $items_len := len .Params.items }}

View file

@ -4,7 +4,7 @@
<section class="section-sm">
<div class="container">
<div class="row">
<div class="col-lg-8 mb-100 mb-lg-0">
<div class="col-lg-8 mb-10 mb-lg-0">
<h3 class="section-header">{{ i18n "lastPosts" }}</h3>
{{ range first 5 (where .Site.RegularPages "Type" "blog") }}
<article class="posts featured-post">

View file

@ -0,0 +1 @@
<iframe width="100%" height="112" scrolling="no" frameborder="no" style="width: 100%; height: 112px; overflow: hidden;" src="{{ with .Get "playerUrl" }}{{ . }}{{ end }}"></iframe>

Binary file not shown.

Binary file not shown.

BIN
static/webfonts/Panamera/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.