1
0
Fork 0
forked from forgejo/forgejo

Use flex to align SVG and text (#25163)

The code can be as simple as:

```html
<div class="flex-text-block">{{svg "octicon-alert"}} {{svg "octicon-x"}} text (block)</div>
<div><div class="flex-text-inline">{{svg "octicon-alert"}} {{svg "octicon-x"}} text</div> (inline)</div>
<div><button class="ui red button">{{svg "octicon-alert" 24}} {{svg "octicon-x" 24}} text</button></div>
```


![image](1d3c10f1-0bc7-4c26-b236-bad537d5c465)

---------

Co-authored-by: Giteabot <teabot@gitea.io>
This commit is contained in:
wxiaoguang 2023-06-15 00:40:15 +08:00 committed by GitHub
parent 4c290e9209
commit 46c17c8029
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 247 additions and 131 deletions

View file

@ -24,10 +24,6 @@
color: var(--color-text);
}
.ui.button.no-text .icon {
margin: 0 !important;
}
.delete-button,
.delete-button:hover {
color: var(--color-red);