mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50:24 +00:00
expand: make expander more visible #24
This commit is contained in:
parent
5f7cba3d97
commit
a9a081903a
2 changed files with 12 additions and 5 deletions
|
@ -1,16 +1,14 @@
|
|||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
<div class="expand">
|
||||
<div class="expand-label" style="cursor: pointer;" onclick="$h = $(this);$h.next('div').slideToggle(100,function () {$h.children('i').attr('class',function () {return $h.next('div').is(':visible') ? 'fas fa-chevron-down' : 'fas fa-chevron-right';});});">
|
||||
<i style="font-size:x-small;" class="fas fa-chevron-right"></i>
|
||||
<span>
|
||||
<a class="expand-label" onclick="$h = $(this);$h.next('div').slideToggle(100,function () {$h.children('i').attr('class',function () {return $h.next('div').is(':visible') ? 'fas fa-chevron-down' : 'fas fa-chevron-right';});});">
|
||||
<i class="fas fa-chevron-right"></i>
|
||||
{{$expandMessage := T "Expand-title"}}
|
||||
{{ if .IsNamedParams }}
|
||||
{{.Get "default" | default $expandMessage}}
|
||||
{{else}}
|
||||
{{.Get 0 | default $expandMessage}}
|
||||
{{end}}
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
<div class="expand-content" style="display: none;">
|
||||
{{.Inner | safeHTML}}
|
||||
</div>
|
||||
|
|
|
@ -1133,3 +1133,12 @@ pre .copy-to-clipboard:hover {
|
|||
option {
|
||||
color: initial;
|
||||
}
|
||||
|
||||
.expand-label {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.expand-label i{
|
||||
font-size: x-small;
|
||||
width: 8px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue