mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-18 17:54:41 -04:00
Improve admonition semantics
This commit is contained in:
parent
1ca6a27636
commit
190dcb592a
File diff suppressed because one or more lines are too long
@ -1,8 +1,8 @@
|
|||||||
<div class="admonition note">
|
<aside class="admonition note">
|
||||||
<div class="note-icon">
|
<div class="note-icon">
|
||||||
{{partial "svg-icons/exclamation.svg" .}}
|
{{partial "svg-icons/exclamation.svg" .}}
|
||||||
</div>
|
</div>
|
||||||
<!-- <h2 id="{{if .Get 0}}{{.Get 0 | urlize}}{{else}}note{{end}}">{{if .Get 0}}{{.Get 0 | markdownify}}{{else}}Note{{end}}</h2> -->
|
<!-- <h2 id="{{if .Get 0}}{{.Get 0 | urlize}}{{else}}note{{end}}">{{if .Get 0}}{{.Get 0 | markdownify}}{{else}}Note{{end}}</h2> -->
|
||||||
<!-- <h3>Note</h3> -->
|
<!-- <h3>Note</h3> -->
|
||||||
<div class="admonition-content">{{- .Inner -}}</div>
|
<div class="admonition-content">{{- .Inner -}}</div>
|
||||||
</div>
|
</aside>
|
@ -1,8 +1,8 @@
|
|||||||
<div class="admonition warning">
|
<aside class="admonition warning">
|
||||||
<div class="admonition-icon">
|
<div class="admonition-icon">
|
||||||
{{partial "svg-icons/exclamation.svg" .}}
|
{{partial "svg-icons/exclamation.svg" .}}
|
||||||
</div>
|
</div>
|
||||||
<!-- <h2 id="{{if .Get 0}}{{.Get 0 | urlize}}{{else}}warning{{end}}">{{if .Get 0}}{{.Get 0 | markdownify}}{{else}}Warning{{end}}</h2> -->
|
<!-- <h2 id="{{if .Get 0}}{{.Get 0 | urlize}}{{else}}warning{{end}}">{{if .Get 0}}{{.Get 0 | markdownify}}{{else}}Warning{{end}}</h2> -->
|
||||||
<!-- <h3>Warning</h3> -->
|
<!-- <h3>Warning</h3> -->
|
||||||
<div class="admonition-content">{{- .Inner -}}</div>
|
<div class="admonition-content">{{- .Inner -}}</div>
|
||||||
</div>
|
</aside>
|
@ -1,5 +1,5 @@
|
|||||||
.admonition {
|
.admonition {
|
||||||
padding: 1em;
|
padding: .75em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.note,
|
.note,
|
||||||
|
2
static/css/style.min.css
vendored
2
static/css/style.min.css
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user