Commit 4c87b94e authored by Zachary Seguin's avatar Zachary Seguin
Browse files

fix: Fix layout of highlights on support for pages

parent 52bf2dbd
Pipeline #256 passed with stages
in 11 seconds
......@@ -21,7 +21,7 @@
{{- range .Params.highlighted }}
{{- $highlight := . }}
{{- with $.GetPage .link }}
<div class="highlight container-md">
<div class="highlight">
<a href="{{ .Permalink }}">
<div class="card{{if $highlight.style.background }} bg-{{ $highlight.style.background }}{{ end }}{{if $highlight.style.text }} text-{{ $highlight.style.text }}{{ end }}">
<div class="card-body">
......
......@@ -93,11 +93,19 @@ body > footer {
display: flex;
align-items: stretch;
flex-wrap: wrap;
justify-content: space-between;
@media (max-width: map-get($grid-breakpoints, md)) {
.highlight {
min-width: 100%;
max-width: 100%;
}
}
.highlight {
flex-grow: 1;
margin: 10px 0;
width: 50%;
max-width: 48%;
.card {
height: 100%;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment