You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/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>
1 year ago
..
admin Simplify helper CSS classes and avoid abuse (#26728) 1 year ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 2 years ago
base Use docs.gitea.com instead of docs.gitea.io (#26739) 1 year ago
code Refactor some CSS styles and simplify code (#26771) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
devtest Improve flex list item padding (#26779) 1 year ago
explore remove unnecessary explore org template (#26459) 2 years ago
mail Add template linting via djlint (#25212) 2 years ago
org Fix incorrect "tabindex" attributes (#26733) 1 year ago
package Use docs.gitea.com instead of docs.gitea.io (#26739) 1 year ago
projects Refactor some CSS styles and simplify code (#26771) 1 year ago
repo Add default label in branch select list (#26697) 1 year ago
shared Fix typo of RunerOwnerID (#26508) 1 year ago
status Replace fomantic divider module with our own (#25539) 2 years ago
swagger feat(API): add route and implementation for creating/updating repository secret (#26766) 1 year ago
user Use docs.gitea.com instead of docs.gitea.io (#26739) 1 year ago
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 2 years ago
install.tmpl Use docs.gitea.com instead of docs.gitea.io (#26739) 1 year ago
post-install.tmpl Remove incorrect element ID on "post-install" page (#25104) 2 years ago