mirror of
https://github.com/McShelby/hugo-theme-relearn.git
synced 2025-01-18 19:00: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 }` }}
|
{{ $_hugo_config := `{ "version": 1 }` }}
|
||||||
<div class="notices {{ .Get 0 }}" {{ if len .Params | eq 2 }} id="{{ .Get 1 }}" {{ end }}>
|
{{ $style := .Get 0 }}
|
||||||
<div class="label">{{ .Get 0 | T }}</div>
|
{{ $title := $style | T }}
|
||||||
{{ .Inner }}
|
<div class="notices {{ $style }}">
|
||||||
|
<div class="label">{{ $title }}</div>
|
||||||
|
{{ .Inner }}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -489,7 +489,7 @@ div.notices > * {
|
||||||
}
|
}
|
||||||
div.notices > div.label {
|
div.notices > div.label {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-weight: bold;
|
font-weight: normal;
|
||||||
margin-bottom: 1rem;
|
margin-bottom: 1rem;
|
||||||
margin-top: -1.75rem;
|
margin-top: -1.75rem;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue