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

fix block files

parent 9029bee2
No related branches found
No related tags found
No related merge requests found
...@@ -3,43 +3,44 @@ ...@@ -3,43 +3,44 @@
h2, h3 h2, h3
+ .description + .description
margin-top: $spacing0 margin-top: $spacing0
ul .files
@include list-reset @include list-reset
li li
@include icon("download", before) @include icon("download", before)
align-items: start align-items: start
display: flex
position: relative
&::before
align-items: center
border: 1px solid $color-border
display: flex display: flex
flex-shrink: 0 position: relative
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 &::before
background-color: $color-border align-items: center
border-color: transparent border: 1px solid $color-border
a display: flex
@include stretched-link(before) flex-shrink: 0
@include small font-size: px2rem(18)
text-decoration: none height: px2rem(60)
&::after justify-content: center
content: none !important // Remove default icon _blank 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 figcaption
@include meta @include meta
@include media-breakpoint-down(desktop) @include media-breakpoint-down(desktop)
li + li .files
margin-top: $spacing1 li + li
margin-top: $spacing1
@include media-breakpoint-up(desktop) @include media-breakpoint-up(desktop)
@include in-page-with-sidebar @include in-page-with-sidebar
ul .files
@include grid(2, desktop, half($grid-gutter)) @include grid(2, desktop, half($grid-gutter))
@include in-page-without-sidebar @include in-page-without-sidebar
.top .top
...@@ -50,5 +51,5 @@ ...@@ -50,5 +51,5 @@
margin-top: 0 margin-top: 0
width: col(8) width: col(8)
margin-left: $grid-gutter margin-left: $grid-gutter
ul .files
@include grid(3, desktop, half($grid-gutter)) @include grid(3, desktop, half($grid-gutter))
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</div> </div>
{{ end -}} {{ end -}}
<ul> <ul class="files">
{{- range .files }} {{- range .files }}
{{ if ne .id "" }} {{ if ne .id "" }}
{{- $file := partial "GetMedia" .id -}} {{- $file := partial "GetMedia" .id -}}
......
...@@ -20,11 +20,11 @@ ...@@ -20,11 +20,11 @@
</div> </div>
{{ end -}} {{ end -}}
{{ if (modBool $figures 2)}} {{ $list_class := "odd-items" }}
<ul class="even-items"> {{ if (modBool $figures 2) }}
{{ else }} {{ $list_class = "even-items" }}
<ul class="odd-items">
{{ end }} {{ end }}
<ul class="{{ $list_class }}">
{{- range .figures }} {{- range .figures }}
<li> <li>
<dl> <dl>
......
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