-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove fomantic transition module #26469
Conversation
e0d07fa
to
487cbf5
Compare
Has bugs with menu hiding in the navbar because of interference from our own styles, wip. |
Hiding bug fixed. Fomantic apparently never removes the |
It breaks the modal dialogs. |
Problem is the |
IIRC Fomantic use some "visibility" tricks for showing/hiding some elements (with animation), but I can't tell the details at the moment .... too complex 😄 |
Modal should be fixed. This replacement function is likely not 100% equivalent to the removed module, but it appears to work well enough. |
TBH, I am not a fan of removing all animations. According to modern web sites:
So I do not think it's right to remove the animations totally. |
I like them nowhere and selectively allowing some would be a much more deeper dive into the internals of Fomantic that I'm not interested in doing. Is it really so bad to not have the modal backdrop fade-in? Maybe if you really want, you could try adding a CSS transition to it, but I suppose without support in the function, it won't transition. |
Have tested it. |
Checked how GitHub does it, they have a 300ms fade-in (assume it's just opacity 0 to 1) |
73ba874
to
29ffe24
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tested, while it might be worth to try.
* upstream/main: Sync repo's IsEmpty status correctly (go-gitea#26517) [skip ci] Updated translations via Crowdin Remove fomantic transition module (go-gitea#26469) Explain SearchOptions and fix ToSearchOptions (go-gitea#26542) Update go dependencies (go-gitea#26534) Differentiate better between user settings and admin settings (go-gitea#26538) Add missing triggers to update issue indexer (go-gitea#26539) Improve deadline icon location in milestone list page (go-gitea#26532) Use unique class for breadcrumb divider (go-gitea#26524) Fix typo of RunerOwnerID (go-gitea#26508) Improve clickable area in repo action view page (go-gitea#26115) Fix dark theme highlight for "NameNamespace" (go-gitea#26519) Remove duplicate CSS import for chroma/base.css (go-gitea#26523) Fix project filter bugs (go-gitea#26490) Fix display problems of members and teams unit (go-gitea#26363) Use `hidden` over `clip` for text truncation (go-gitea#26520) Add API route to list org secrets (go-gitea#26485) Set "type=button" for editor's toolbar buttons (go-gitea#26510) Apply to become a maintainer (go-gitea#26514) Detect ogg mime-type as audio or video (go-gitea#26494)
Add `box-shadow` replacement to the `floating` dropdown variant as well, which was missed in #26469. The Fomantic style has `!important`, so this has to have too. Also made a tiny adjustment to shadow color on dark theme. <img width="305" alt="Screenshot 2023-08-18 at 16 40 34" src="https://github.com/go-gitea/gitea/assets/115237/a0aac9cb-6393-4d69-b0b3-00eaac5ccf9f"> <img width="202" alt="Screenshot 2023-08-18 at 16 40 22" src="https://github.com/go-gitea/gitea/assets/115237/0a5fa3aa-7452-4dbd-86ed-ccbc1c872ebb"> Co-authored-by: Giteabot <[email protected]>
Remove transition related code because the transition module has been removed by #26469
1. Fine tune the CSS styles, and add more examples 2. Add necessary "dimmer" animation for modal dialogs, otherwise the UI seems flicking (follow #26469)
Removes all dropdown and dimmer animations. Works everywhere as far as I can tell, but need to give this thorough testing. Removes around 70kb JS/CSS.
Note, I'm not 100% sure regarding the various callbacks, those will need more investigation, but it appears to work nonetheless.
Fixes: #15709