Skip to content

Commit d29908e

Browse files
fix: vertical alignment of event sidebar (#15506)
1 parent a0b8bf8 commit d29908e

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

themes/devopsdays-theme/assets/scss/custom.scss

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,9 @@ b, strong {
118118
font-size: 9pt;
119119
text-transform: uppercase;
120120
color: #000000;
121+
margin-top: 1.5rem;
121122
}
123+
122124
/* set the current month style */
123125
.left-nav-months.current {
124126
font-weight: 900;
@@ -131,11 +133,18 @@ b, strong {
131133
font-size: 18pt;
132134
color: #000000;
133135
}
136+
137+
.left-nav-year + .left-nav-months {
138+
margin-top: 0;
139+
}
140+
134141
.left-nav-event {
142+
display: block;
135143
font-family: 'Roboto', sans-serif;
136144
font-weight: 100;
137145
font-size: 9pt;
138146
text-transform: capitalize;
147+
margin-bottom: .35rem;
139148
}
140149

141150
/* Footer */

themes/devopsdays-theme/layouts/partials/future.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
{{- if ne ($.Scratch.Get "month") (dateFormat "January" .startdate ) -}}
1313
{{- $.Scratch.Set "month" (dateFormat "January" .startdate ) -}}
1414
{{- $.Scratch.Set "month-displayed" "false" -}}
15-
<br />
15+
1616
{{- end -}}
1717
{{- if ne ($.Scratch.Get "year-displayed") "true" -}}
18-
<h3 class="left-nav-year">{{ dateFormat "2006" .startdate }}</h3>
18+
<h3 class="left-nav-year mt-4">{{ dateFormat "2006" .startdate }}</h3>
1919
{{- $.Scratch.Set "year-displayed" "true" -}}
2020
{{- end -}}
2121
{{- if ne ($.Scratch.Get "month-displayed") "true" -}}
@@ -27,21 +27,21 @@ <h4 class="left-nav-months">{{ dateFormat "January" .startdate }}</h4>
2727
<a href = "{{ (printf "/events/%s" .name ) }}" class = "left-nav-event">
2828
{{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "2" .enddate }}:
2929
{{ .city }}
30-
</a><br />
30+
</a>
3131
{{- else -}}
32-
<a href = "{{ (printf "/events/%s" .name) }}" class = "left-nav-event">
33-
{{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "Jan 2" .enddate }}:
34-
{{ .city }}
35-
</a><br />
32+
<a href = "{{ (printf "/events/%s" .name) }}" class = "left-nav-event">
33+
{{ dateFormat "Jan 2" .startdate }} - {{ dateFormat "Jan 2" .enddate }}:
34+
{{ .city }}
35+
</a>
3636
{{- end -}}
3737
{{- else -}}
38-
<a href = "{{ (printf "/events/%s" .name) }}" class = "left-nav-event">
39-
{{ dateFormat "Jan 2" .startdate }}:
40-
{{ .city }}
41-
</a><br />
38+
<a href = "{{ (printf "/events/%s" .name) }}" class = "left-nav-event">
39+
{{ dateFormat "Jan 2" .startdate }}:
40+
{{ .city }}
41+
</a>
4242
{{- end -}}
4343
{{- end -}}
44-
<h3 class="left-nav-year">TBD</h3>
44+
<h3 class="left-nav-year mt-3">TBD</h3>
4545
{{- range sort $tbd "city" -}}
46-
<a href = "{{ (printf "/events/%s" .name) }}" class = "left-nav-event">{{ .city }}</a><br />
46+
<a href = "{{ (printf "/events/%s" .name) }}" class = "left-nav-event">{{ .city }}</a>
4747
{{- end -}}

0 commit comments

Comments
 (0)