forgejo/templates
wxiaoguang 1a9998ce91
Improve flex list item padding (#26779)
Replace #26761

It's better to keep children elements simple, and let parent containers
layout the necessary padding/margin.

The old `not(:last-child)` and `.flex-item + .flex-item` are not easy to
maintain (for example, what if the developer would like to use a "tiny
height" item?)

The old approach also makes some UI look strange because the first item
doesn't have proper padding-top.

In this PR, we just simply use `.flex-item { padding: ... }`:

* Developers could manually set the item height they want easily
* It's easier to make it work with various containers -- with padding
(`ui segment`) and without padding (`div`)

And added more samples/examples.


![image](https://github.com/go-gitea/gitea/assets/2114189/719ea712-0241-4426-b67f-5723993c4ed7)

Co-authored-by: Giteabot <teabot@gitea.io>
2023-08-29 23:13:30 +00:00
..
admin Simplify helper CSS classes and avoid abuse (#26728) 2023-08-26 01:35:10 +02:00
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2023-03-27 18:05:51 +02:00
base Use docs.gitea.com instead of docs.gitea.io (#26739) 2023-08-27 11:59:12 +00:00
code Refactor some CSS styles and simplify code (#26771) 2023-08-28 22:14:51 +08:00
custom
devtest Improve flex list item padding (#26779) 2023-08-29 23:13:30 +00:00
explore remove unnecessary explore org template (#26459) 2023-08-11 16:07:04 -04:00
mail Add template linting via djlint (#25212) 2023-06-14 18:17:58 +00:00
org Fix incorrect "tabindex" attributes (#26733) 2023-08-26 10:44:00 +08:00
package Use docs.gitea.com instead of docs.gitea.io (#26739) 2023-08-27 11:59:12 +00:00
projects Refactor some CSS styles and simplify code (#26771) 2023-08-28 22:14:51 +08:00
repo Add default label in branch select list (#26697) 2023-08-29 12:15:19 +00:00
shared Fix typo of RunerOwnerID (#26508) 2023-08-15 23:10:40 +00:00
status Replace fomantic divider module with our own (#25539) 2023-06-29 20:24:22 +08:00
swagger feat(API): add route and implementation for creating/updating repository secret (#26766) 2023-08-29 20:54:49 +00:00
user Use docs.gitea.com instead of docs.gitea.io (#26739) 2023-08-27 11:59:12 +00:00
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2023-04-01 13:47:54 +08:00
install.tmpl Use docs.gitea.com instead of docs.gitea.io (#26739) 2023-08-27 11:59:12 +00:00
post-install.tmpl Remove incorrect element ID on "post-install" page (#25104) 2023-06-08 12:23:39 +08:00