button: fix visuals #577

This commit is contained in:
Sören Weber 2023-06-28 22:13:16 +02:00
parent 2835ef004a
commit 1381995bac
No known key found for this signature in database
GPG key ID: BEC6D55545451B6D
2 changed files with 20 additions and 0 deletions

View file

@ -115,6 +115,22 @@ Once the button is clicked, it opens another browser tab for the given URL.
### Icon
#### Empty
````go
{{%/* button href="https://gohugo.io/" icon=" " %}}{{% /button */%}}
````
{{% button href="https://gohugo.io/" icon=" " %}}{{% /button %}}
#### Only
````go
{{%/* button href="https://gohugo.io/" icon="download" %}}{{% /button */%}}
````
{{% button href="https://gohugo.io/" icon="download" %}}{{% /button %}}
#### To the Left
````go

View file

@ -1365,6 +1365,10 @@ html[dir="rtl"] .expand > .expand-label > i.fa-chevron-right {
user-select: none;
}
.btn > a {
display: block;
}
.btn > :where(button) {
-webkit-appearance: none;
appearance: none;