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 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
..
actions Move helpers to be prefixed with `gt-` (#22879) 1 year ago
branch Move helpers to be prefixed with `gt-` (#22879) 1 year ago
cite Copy citation file content, in APA and BibTex format, on repo home page (#19999) 2 years ago
diff Move helpers to be prefixed with `gt-` (#22879) 1 year ago
editor Move helpers to be prefixed with `gt-` (#22879) 1 year ago
find Move helpers to be prefixed with `gt-` (#22879) 1 year ago
graph Move helpers to be prefixed with `gt-` (#22879) 1 year ago
issue Remove Fomantic-UI's `.hidden` CSS class for menu elements (#22895) 1 year ago
migrate Move helpers to be prefixed with `gt-` (#22879) 1 year ago
projects Move helpers to be prefixed with `gt-` (#22879) 1 year ago
pulls Add main landmark to templates and adjust titles (#22670) 1 year ago
release Move helpers to be prefixed with `gt-` (#22879) 1 year ago
settings Remove Fomantic-UI's `.hidden` CSS class for menu elements (#22895) 1 year ago
wiki Move helpers to be prefixed with `gt-` (#22879) 1 year ago
activity.tmpl Add main landmark to templates and adjust titles (#22670) 1 year ago
blame.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
branch_dropdown.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
clone_buttons.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
clone_script.tmpl Make clone URL use current page's host (#22808) 1 year ago
commit_page.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
commit_status.tmpl Change commit status icons to SVG (#20736) 2 years ago
commit_statuses.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
commits.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
commits_list.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
commits_list_small.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
commits_table.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
create.tmpl Remove Fomantic-UI's `.hidden` CSS class for checkbox elements (#22851) 1 year ago
create_helper.tmpl Add templates to customize text when creating and migrating repositories 1 year ago
empty.tmpl Add main landmark to templates and adjust titles (#22670) 1 year ago
file_info.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
forks.tmpl Add main landmark to templates and adjust titles (#22670) 1 year ago
graph.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
header.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
home.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
icon.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
packages.tmpl Add main landmark to templates and adjust titles (#22670) 1 year ago
search.tmpl Remove Fomantic-UI's `.hidden` CSS class for menu elements (#22895) 1 year ago
shabox_badge.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
sub_menu.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
unicode_escape_prompt.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
upload.tmpl Refactor `i18n` to `locale` (#20153) 2 years ago
user_cards.tmpl Localize all timestamps (#21440) 2 years ago
view_file.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
view_list.tmpl Move helpers to be prefixed with `gt-` (#22879) 1 year ago
watchers.tmpl Add main landmark to templates and adjust titles (#22670) 1 year ago