githaven/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)
2023-02-14 19:53:54 +08:00
..
admin Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
api/packages/pypi Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
base Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
code Remove Fomantic-UI's .hidden CSS class for menu elements (#22895) 2023-02-14 19:53:54 +08:00
custom Add footer extra links template (#9576) 2020-01-03 20:41:56 +02:00
explore Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
mail Use link in UI which returned a relative url but not html_url which contains an absolute url (#21986) 2023-02-06 12:09:18 -06:00
org Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
package Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
projects Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
repo Remove Fomantic-UI's .hidden CSS class for menu elements (#22895) 2023-02-14 19:53:54 +08:00
shared Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
status Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
swagger Pull Requests: setting to allow edits by maintainers by default, tweak UI (#22862) 2023-02-13 14:09:52 +08:00
user Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
home.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00
install.tmpl Move helpers to be prefixed with gt- (#22879) 2023-02-13 17:59:59 +00:00
post-install.tmpl Add main landmark to templates and adjust titles (#22670) 2023-02-01 22:56:10 +00:00