mirror of
1
Fork 0
forgejo/templates/repo/wiki
Giteabot 5191ab6445
Use flex to align SVG and text (#25163) (#25260)
Backport #25163 by @wxiaoguang

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](https://github.com/go-gitea/gitea/assets/2114189/1d3c10f1-0bc7-4c26-b236-bad537d5c465)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-06-14 13:21:48 -04:00
..
new.tmpl Add placeholder and aria attributes to release and wiki edit page (#24031) 2023-04-10 11:56:57 -04:00
pages.tmpl Don't display creating page button in a mirror wiki repository (#24395) 2023-05-04 15:27:15 +08:00
revision.tmpl Improve dropdown menus, remove inline styles (#24954) 2023-05-29 14:10:06 +00:00
start.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
view.tmpl Use flex to align SVG and text (#25163) (#25260) 2023-06-14 13:21:48 -04:00