Skip to content
Snippets Groups Projects
Commit 248fdc5a authored by Olivia206's avatar Olivia206
Browse files

added css to single volume

parent 354d8335
No related branches found
No related tags found
No related merge requests found
.volume .volume
@include article @include article
.suptitle
@include meta
.volumes .volumes
@include grid(2, md) @include grid(2, md)
@include grid(3, lg) @include grid(3, lg)
.volumes__taxonomy
.volume
.media
img
aspect-ratio: 1 / 1.2
.volumes__term
.document-content
.container
@include media-breakpoint-up(desktop)
@include grid
.content
@include media-breakpoint-up(desktop)
grid-column: 1 / 9
> div
margin-bottom: $spacing4
.volume-table
list-style: none
margin-block-start: half($spacing3)
li
+ li
margin-top: $spacing3
a
text-decoration-color: rgba(0,0,0,0)
&:hover
text-decoration-color: rgba(0,0,0,1)
.item--informations
a, button
@include meta
background-color: white
border: 1px solid $color-border
cursor: pointer
* + *
margin-left: $spacing0
.modal
display: none
.document-aside
@include media-breakpoint-up(desktop)
grid-column: 9 / 12
dt
@include meta
\ No newline at end of file
<div>
{{- if (partial "GetTextFromHTML" .Content) -}} {{- if (partial "GetTextFromHTML" .Content) -}}
<div itemprop="description"> <div itemprop="description">
{{ partial "PrepareHTML" .Content }} {{ partial "PrepareHTML" .Content }}
</div> </div>
{{- end -}} {{- end -}}
</div> \ No newline at end of file
<div class="modal fade" id="{{ .modalId }}" tabindex="-1" aria-labelledby="{{ .modalId }}Label" aria-hidden="true"> <div class="modal fade" id="{{ .modalId }}" tabindex="-1" aria-labelledby="{{ .modalId }}Label" aria-hidden="true" aria-modal="true">
<div class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable"> <div class="modal-dialog modal-lg modal-dialog-centered modal-dialog-scrollable">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
......
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
<span itemprop="author" itemscope itemtype="https://schema.org/Person"><a href="{{ $author.Permalink }}" itemprop="url"><span itemprop="name">{{ trim $author.Title "\n" }}</span></a></span> <span itemprop="author" itemscope itemtype="https://schema.org/Person"><a href="{{ $author.Permalink }}" itemprop="url"><span itemprop="name">{{ trim $author.Title "\n" }}</span></a></span>
{{- end -}} {{- end -}}
</p> </p>
<div role="group"> <div class="item--informations" role="group">
<a href="{{ .Permalink }}" itemprop="url">{{ i18n "commons.read" }}</a> {{/* <a href="{{ .Permalink }}" itemprop="url">{{ i18n "commons.read" }}</a> */}}
<button type="button" data-bs-toggle="modal" data-bs-target="#{{ $modalId }}">{{ i18n "volumes.abstract" }}</button> <button type="button" data-bs-toggle="modal" data-bs-target="#{{ $modalId }}">{{ i18n "volumes.abstract" }}</button>
{{ if .Params.pdf }} {{ if .Params.pdf }}
{{- $pdf := partial "GetMedia" .Params.pdf -}} {{- $pdf := partial "GetMedia" .Params.pdf -}}
......
...@@ -12,12 +12,17 @@ ...@@ -12,12 +12,17 @@
{{- end -}} {{- end -}}
<div class="container"> <div class="container">
<div class="content"> <div class="content">
{{ partial "volumes/image.html" . }}
{{ partial "volumes/description.html" . }} {{ partial "volumes/description.html" . }}
{{ partial "volumes/document-aside.html" . }}
{{ partial "volumes/table-contents.html" . }} {{ partial "volumes/table-contents.html" . }}
</div> </div>
{{ partial "volumes/document-aside.html" . }}
</div> </div>
{{ partial "blocks/list.html" . }}
</div> </div>
{{ end }} {{ end }}
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