Skip to content

Commit

Permalink
Merge pull request #40 from acend/changes
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
fintinc authored Sep 23, 2024
2 parents 78f2304 + 8f9bd93 commit adddd82
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 16 deletions.
6 changes: 4 additions & 2 deletions site/assets/js/views/on-every-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default function() {



// needs to be fixed:


// still needed?
const anmeldeToggler = document.querySelector(".anmelde-toggler");
Expand All @@ -92,7 +92,9 @@ if (anmeldeToggler) {




document.querySelectorAll('video[autoplay]').forEach( video => {
video.play();
});


const popoverTriggerList = document.querySelectorAll('[data-bs-toggle="popover"]');
Expand Down
25 changes: 14 additions & 11 deletions site/assets/scss/layouts/_trainings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,20 @@
object-position: top right;
}

@include media-breakpoint-up(lg) {
top: auto;
right: auto;
width: 33%;
height: 10rem;
bottom: 0.1rem;
left: 3.1rem;

img {
transform: translate(-1.5rem, 1.5rem);
object-position: bottom left;
.box-training.box-large & {

@include media-breakpoint-up(lg) {
top: auto;
right: auto;
width: 33%;
height: 10rem;
bottom: 0.1rem;
left: 3.1rem;

img {
transform: translate(-1.5rem, 1.5rem);
object-position: bottom left;
}
}
}
}
Expand Down
2 changes: 2 additions & 0 deletions site/hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@
"border-top",
"bottom-0",
"box-anmelden",
"box-large",
"box-small",
"box-training",
"btn",
"btn-filter",
Expand Down
2 changes: 1 addition & 1 deletion site/layouts/partials/box-training-small.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div data-scroll class="col box-training {{ .Title | urlize}} {{ range $key, $value := .Params.categories }}{{ (replace $value "/" "-") | urlize }} {{ end }} ">
<div data-scroll class="col box-training {{ .Title | urlize}} {{ range $key, $value := .Params.categories }}{{ (replace $value "/" "-") | urlize }} {{ end }} ">



Expand Down
2 changes: 1 addition & 1 deletion site/layouts/partials/box-training.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div data-scroll class="col-lg-6 box-training item {{ .Title | urlize}} {{ range $key, $value := .Params.categories }}{{ (replace $value "/" "-") | urlize }} {{ end }} ">
<div data-scroll class="col-lg-6 box-training box-large item {{ .Title | urlize}} {{ range $key, $value := .Params.categories }}{{ (replace $value "/" "-") | urlize }} {{ end }} ">

<div class="inner border light p-4 px-lg-10 py-lg-8 d-flex flex-column h-100 position-relative">
{{ if in .Params.categories "New" }}
Expand Down
2 changes: 1 addition & 1 deletion site/layouts/stories/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<div class="col-lg-2">
<div data-scroll class="mb-3 bold small">Gebuchte Kurse</div>
{{ range . }}
<a class="btn btn-sm btn-outline-primary border-1 py-0 mb-2" href="{{ .link }}"> {{ .title }} </a>
<a class="btn btn-sm btn-outline-primary border-1 py-0 mb-2 me-2" href="{{ .link }}"> {{ .title }} </a>
{{ end }}
</div>
{{ end }}
Expand Down

0 comments on commit adddd82

Please sign in to comment.