back to remote _vendor

This commit is contained in:
Marcell Mars 2020-12-06 02:14:25 +01:00
parent 503ea77275
commit 4ccb565055
4 changed files with 22 additions and 36 deletions

View file

@ -886,36 +886,25 @@ details {
} }
.gloss { .gloss {
display: grid;
grid-template-columns: 1fr;
/*grid-template-rows: repeat(3, 1fr);*/
gap: 0px 0px;
grid-template-areas:
"glosstop"
"glossmiddle"
"glossbottom";
grid-area: gloss; grid-area: gloss;
} }
.glosstop { grid-area: glosstop; }
.glossbottom { grid-area: glossbottom; }
.glossmiddle { grid-area: glossmiddle; }
.glossnumber { .glossnumber {
grid-area: glossnumber; grid-area: glossnumber;
}
.glossnumber::before {
counter-increment: glossN;
content: "(" counter(glossN) ")";
padding-right: 0.3rem; padding-right: 0.3rem;
} }
.glossnumberAuto::before {
counter-increment: glossN;
content: "(" counter(glossN) ")";
}
.glossline {
border-bottom: lightgray solid 1px;
border-top: lightgray solid 1px;
}
.glosswords { .glosswords {
display: inline-block; display: inline-block;
margin-left: -0.3rem; padding-left: -0.3rem;
} padding-right: 1rem;
.glossword {
margin-left: 0.3rem;
margin-right: 0.5rem;
} }
@media (max-width: 767px) { @media (max-width: 767px) {

View file

@ -1,28 +1,25 @@
{{ $inn := .Inner | $.Page.RenderString }}
<div class="glosscontainer"> <div class="glosscontainer">
<div class="gloss"> <div class="gloss">
{{- range $g := split .Inner "\n" -}} {{- range $g := (split $inn "\n") -}}
{{- if hasPrefix $g "{t}" -}} {{- if hasPrefix $g "{r}" -}}
<div class="glosstop"> <div class="glossregular">
{{- substr $g 3 -}} {{- substr $g 3 | htmlUnescape | safeHTML -}}
</div> </div>
{{- else if hasPrefix $g "{m}" -}} {{- else if hasPrefix $g "{g}" -}}
<div class="glossmiddle"> <div class="glossline">
{{- range (split (substr $g 3) "|") -}} {{- range (split (substr $g 3) "|") -}}
{{- with . -}} {{- with . -}}
<div class="glosswords"> <div class="glosswords">
{{- range (split . "," ) -}} {{- range (split . "," ) -}}
<div class="glossword">{{- . -}}</div> <div class="glossword">{{- . | htmlUnescape | safeHTML -}}</div>
{{- end -}} {{- end -}}
</div> </div>
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
</div> </div>
{{- else if hasPrefix $g "{b}" -}}
<div class="glossbottom">
{{- substr $g 3 -}}
</div>
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
</div> </div>
<div class="glossnumber"></div> <div class="glossnumber {{ with $.Page.Params.glossnumberAuto }}glossnumberAuto{{ end }}">{{ with .Get 0 }}{{ . }}{{ end}}</div>
</div> </div>

File diff suppressed because one or more lines are too long

View file

@ -1 +1 @@
# git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201205011125-598ed03c9bad # git.sandpoints.org/Drawwell/SandpointsTheme v0.0.0-20201205235831-9aec1be1e37a