mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2024-11-27 01:33:04 +00:00
theme: whitespace
This commit is contained in:
parent
8f2d1d75e2
commit
017f1004ab
2 changed files with 3 additions and 3 deletions
|
@ -5,7 +5,7 @@
|
||||||
<div class="expand
|
<div class="expand
|
||||||
{{- if $expanded }} expand-expanded{{ end -}}
|
{{- if $expanded }} expand-expanded{{ end -}}
|
||||||
">
|
">
|
||||||
{{/* things are getting complicated when search tries to open the expand box while jquery sets the display CSS on the element */}}
|
{{/* things are getting complicated when search tries to open the expand box while jquery sets the display CSS on the element */}}{{ "" -}}
|
||||||
<a class="expand-label" onclick="$t=$(this); if($t.parent('.expand-expanded.expand-marked').length){ $t.next().css('display','none') }else if($t.parent('.expand-marked').length){ $t.next().css('display','block') }else{ $t.next('.expand-content').slideToggle(100); } $t.parent().toggleClass('expand-expanded');">
|
<a class="expand-label" onclick="$t=$(this); if($t.parent('.expand-expanded.expand-marked').length){ $t.next().css('display','none') }else if($t.parent('.expand-marked').length){ $t.next().css('display','block') }else{ $t.next('.expand-content').slideToggle(100); } $t.parent().toggleClass('expand-expanded');">
|
||||||
<i class="fas fa-chevron-down"></i>
|
<i class="fas fa-chevron-down"></i>
|
||||||
<i class="fas fa-chevron-right"></i>
|
<i class="fas fa-chevron-right"></i>
|
||||||
|
@ -14,6 +14,6 @@
|
||||||
<div class="expand-content" style="display:
|
<div class="expand-content" style="display:
|
||||||
{{- if $expanded }} block{{ else }} none{{ end -}}
|
{{- if $expanded }} block{{ else }} none{{ end -}}
|
||||||
;">
|
;">
|
||||||
{{ $content }}
|
{{ $content }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
|
@ -3,5 +3,5 @@
|
||||||
{{- $title := .Get 1 | default ($style | T) }}
|
{{- $title := .Get 1 | default ($style | T) }}
|
||||||
<div class="notices {{ $style }}">
|
<div class="notices {{ $style }}">
|
||||||
<div class="label">{{ $title }}</div>
|
<div class="label">{{ $title }}</div>
|
||||||
{{- .Inner }}
|
{{ .Inner -}}
|
||||||
</div>
|
</div>
|
Loading…
Reference in a new issue