Skip to content
Snippets Groups Projects
Commit d034eaf1 authored by alexisben's avatar alexisben
Browse files

Merge branch 'main' of github.com:noesya/osuny-hugo-theme-aaa

parents dc324892 7cb21ff7
No related branches found
No related tags found
No related merge requests found
......@@ -3,43 +3,44 @@
h2, h3
+ .description
margin-top: $spacing0
ul
.files
@include list-reset
li
@include icon("download", before)
align-items: start
display: flex
position: relative
&::before
align-items: center
border: 1px solid $color-border
li
@include icon("download", before)
align-items: start
display: flex
flex-shrink: 0
font-size: px2rem(18)
height: px2rem(60)
justify-content: center
margin-right: $spacing0
transition: background 0.3s ease, border 0.3s ease
width: px2rem(60)
&:hover
position: relative
&::before
background-color: $color-border
border-color: transparent
a
@include stretched-link(before)
@include small
text-decoration: none
&::after
content: none !important // Remove default icon _blank
align-items: center
border: 1px solid $color-border
display: flex
flex-shrink: 0
font-size: px2rem(18)
height: px2rem(60)
justify-content: center
margin-right: $spacing0
transition: background 0.3s ease, border 0.3s ease
width: px2rem(60)
&:hover
&::before
background-color: $color-border
border-color: transparent
a
@include stretched-link(before)
@include small
text-decoration: none
&::after
content: none !important // Remove default icon _blank
figcaption
@include meta
@include media-breakpoint-down(desktop)
li + li
margin-top: $spacing1
.files
li + li
margin-top: $spacing1
@include media-breakpoint-up(desktop)
@include in-page-with-sidebar
ul
.files
@include grid(2, desktop, half($grid-gutter))
@include in-page-without-sidebar
.top
......@@ -50,5 +51,5 @@
margin-top: 0
width: col(8)
margin-left: $grid-gutter
ul
.files
@include grid(3, desktop, half($grid-gutter))
......@@ -67,7 +67,7 @@
@include media-breakpoint-up(desktop)
ul
padding-top: $spacing1
.next:first-child
gap: $spacing1
@include media-breakpoint-down(desktop)
ul
......
......@@ -18,9 +18,13 @@
{{ $crop := "" }}
{{ if .crop }}
{{ range $cropValues }}
{{ if eq .crop . }}
{{ $crop = . }}
{{ if eq (string .crop) "true" }}
{{ $crop = "center" }}
{{ else }}
{{ range $cropValues }}&
{{ if eq .crop . }}
{{ $crop = . }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
......
......@@ -19,7 +19,7 @@
</div>
{{ end -}}
<ul>
<ul class="files">
{{- range .files }}
{{ if ne .id "" }}
{{- $file := partial "GetMedia" .id -}}
......
......@@ -20,11 +20,11 @@
</div>
{{ end -}}
{{ if (modBool $figures 2)}}
<ul class="even-items">
{{ else }}
<ul class="odd-items">
{{ $list_class := "odd-items" }}
{{ if (modBool $figures 2) }}
{{ $list_class = "even-items" }}
{{ end }}
<ul class="{{ $list_class }}">
{{- range .figures }}
<li>
<dl>
......
......@@ -2,6 +2,5 @@
class="dailymotion"
src="https://www.dailymotion.com/embed/video/{{ .id }}"
title="{{ .title }}"
frameborder="0"
loading="lazy">
</iframe>
......@@ -2,6 +2,5 @@
class="vimeo"
src="https://player.vimeo.com/video/{{ .id }}"
title="{{ .title }}"
frameborder="0"
loading="lazy">
</iframe>
......@@ -2,6 +2,5 @@
class="youtube"
src="https://www.youtube.com/embed/{{ .id }}"
title="{{ .title }}"
frameborder="0"
loading="lazy">
</iframe>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment