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.
forgejo/templates
wxiaoguang d306ab2b8f
Remove Fomantic-UI's `.hidden` CSS class for menu elements (#22895)
* Like #22851
* All other dropdown menu elements do not have such `hidden` class.
* Actually the dropdown menu elements do not need it in HTML, so this PR
removes it.
* There is already `.ui.dropdown .menu { display: none; }`, so when
loading the page, the menu is correctly hidden initially, no need to add
any more CSS classes.
* The Fomantic UI's `.hidden` class should still exist until there is no
its checkbox/dropdown module anymore. The Fomantic UI JS code still
addes `hidden` for `ui checkbox` and addes `transition hidden` for `ui
menu` at the moment.
* This PR also cleans the legacy inline `style`, which is quite hacky
and no need anymore.

All these dropdown menus work well.

I have tested these 5 places:

* The code search from User Profile
* The issue sidebar to lock issue
* The repo search form
* The repo setting page: branch list
* The repo setting page: merge option list

Screenshot:

![image](https://user-images.githubusercontent.com/2114189/218534515-e7dfe291-6765-4e0b-833c-b74f17e30117.png)
1 year ago
..
admin Move helpers to be prefixed with `gt-` (#22879) 1 year ago
api/packages/pypi Add Package Registry (#16510) 2 years ago
base Move helpers to be prefixed with `gt-` (#22879) 1 year ago
code Remove Fomantic-UI's `.hidden` CSS class for menu elements (#22895) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
explore Move helpers to be prefixed with `gt-` (#22879) 1 year ago
mail Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 1 year ago
org Move helpers to be prefixed with `gt-` (#22879) 1 year ago
package Move helpers to be prefixed with `gt-` (#22879) 1 year ago
projects Move helpers to be prefixed with `gt-` (#22879) 1 year ago
repo Remove Fomantic-UI's `.hidden` CSS class for menu elements (#22895) 1 year ago
shared Move helpers to be prefixed with `gt-` (#22879) 1 year ago
status Move helpers to be prefixed with `gt-` (#22879) 1 year ago
swagger Pull Requests: setting to allow edits by maintainers by default, tweak UI (#22862) 1 year ago
user Move helpers to be prefixed with `gt-` (#22879) 1 year ago
home.tmpl Add main landmark to templates and adjust titles (#22670) 1 year ago
install.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
post-install.tmpl Add main landmark to templates and adjust titles (#22670) 1 year ago