mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 10:50:24 +00:00
notice: align styles with attachments #28
This commit is contained in:
parent
050837bc3f
commit
565cfbe03d
2 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,7 @@
|
|||
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||
<div class="notices {{ .Get 0 }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}>
|
||||
<div class="label">{{ .Get 0 | T }}</div>
|
||||
{{ .Inner }}
|
||||
{{ $style := .Get 0 }}
|
||||
{{ $title := $style | T }}
|
||||
<div class="notices {{ $style }}">
|
||||
<div class="label">{{ $title }}</div>
|
||||
{{ .Inner }}
|
||||
</div>
|
||||
|
|
|
@ -489,7 +489,7 @@ div.notices > * {
|
|||
}
|
||||
div.notices > div.label {
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
font-weight: normal;
|
||||
margin-bottom: 1rem;
|
||||
margin-top: -1.75rem;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue