From a5178cb7b3d9bf2e28ade18ddb8723c6450171a0 Mon Sep 17 00:00:00 2001 From: Luke Watts Date: Fri, 26 Sep 2025 14:20:36 +0200 Subject: [PATCH] fix: vertical alignment of event sidebar --- .../devopsdays-theme/assets/scss/custom.scss | 9 +++++++ .../layouts/partials/future.html | 26 +++++++++---------- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/themes/devopsdays-theme/assets/scss/custom.scss b/themes/devopsdays-theme/assets/scss/custom.scss index a3359b60e10..a4dcf47012c 100644 --- a/themes/devopsdays-theme/assets/scss/custom.scss +++ b/themes/devopsdays-theme/assets/scss/custom.scss @@ -118,7 +118,9 @@ b, strong { font-size: 9pt; text-transform: uppercase; color: #000000; + margin-top: 1.5rem; } + /* set the current month style */ .left-nav-months.current { font-weight: 900; @@ -131,11 +133,18 @@ b, strong { font-size: 18pt; color: #000000; } + +.left-nav-year + .left-nav-months { + margin-top: 0; +} + .left-nav-event { + display: block; font-family: 'Roboto', sans-serif; font-weight: 100; font-size: 9pt; text-transform: capitalize; + margin-bottom: .35rem; } /* Footer */ diff --git a/themes/devopsdays-theme/layouts/partials/future.html b/themes/devopsdays-theme/layouts/partials/future.html index 03b3f3a012e..2171823f82d 100644 --- a/themes/devopsdays-theme/layouts/partials/future.html +++ b/themes/devopsdays-theme/layouts/partials/future.html @@ -12,10 +12,10 @@ {{- if ne ($.Scratch.Get "month") (dateFormat "January" .startdate ) -}} {{- $.Scratch.Set "month" (dateFormat "January" .startdate ) -}} {{- $.Scratch.Set "month-displayed" "false" -}} -
+ {{- end -}} {{- if ne ($.Scratch.Get "year-displayed") "true" -}} -

{{ dateFormat "2006" .startdate }}

+

{{ dateFormat "2006" .startdate }}

{{- $.Scratch.Set "year-displayed" "true" -}} {{- end -}} {{- if ne ($.Scratch.Get "month-displayed") "true" -}} @@ -27,21 +27,21 @@

{{ dateFormat "January" .startdate }}

{{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "2" .enddate }}: {{ .city }} -
+ {{- else -}} - - {{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "Jan 2" .enddate }}: - {{ .city }} -
+ + {{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "Jan 2" .enddate }}: + {{ .city }} + {{- end -}} {{- else -}} - - {{ dateFormat "Jan 2" .startdate }}: - {{ .city }} -
+ + {{ dateFormat "Jan 2" .startdate }}: + {{ .city }} + {{- end -}} {{- end -}} -

TBD

+

TBD

{{- range sort $tbd "city" -}} - {{ .city }}
+ {{ .city }} {{- end -}}