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.
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>
11 months ago
..
chroma Fix dark theme highlight for "NameNamespace" (#26519) 11 months ago
codemirror Remove EasyMDE focus outline on text (#25328) 1 year ago
editor Unify `border-radius` behavior (#26770) 11 months ago
features Unify `border-radius` behavior (#26770) 11 months ago
markup Unify `border-radius` behavior (#26770) 11 months ago
modules Fix notification circle (border-radius) (#26794) 11 months ago
repo Unify `border-radius` behavior (#26770) 11 months ago
shared Improve flex list item padding (#26779) 11 months ago
standalone Add toasts to UI (#25449) 1 year ago
themes Replace box-shadow for `floating` dropdown as well (#26581) 11 months ago
actions.css Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 12 months ago
admin.css Fix various line-height styles (#26553) 11 months ago
base.css Fix notification circle (border-radius) (#26794) 11 months ago
dashboard.css Unify `border-radius` behavior (#26770) 11 months ago
explore.css Introduce `flex-list` & `flex-item` elements for Gitea UI (#25790) 12 months ago
font_i18n.css Fix `@font-face` overrides (#24855) 1 year ago
form.css Unify `border-radius` behavior (#26770) 11 months ago
helpers.css Remove some transition related code (#26755) 11 months ago
home.css avoid hard-coding height in language dropdown menu (#25986) 12 months ago
index.css Refactor project templates (#26448) 11 months ago
install.css Make "install page" respect environment config (#25648) 1 year ago
org.css Remove incorrect CSS helper classes (#26712) 11 months ago
repo.css Unify `border-radius` behavior (#26770) 11 months ago
review.css Unify `border-radius` behavior (#26770) 11 months ago
user.css Unify `border-radius` behavior (#26770) 11 months ago