aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/css
Commit message (Collapse)AuthorAgeFilesLines
* Add support for 3D/CAD file formats preview (#34794)Kerwin Bryant20 hours3-42/+31
| | | | | | | Fix #34775 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Improve tags list page (#34898)wxiaoguang26 hours1-4/+0
|
* Optimize flex layout of release attachment area (#34885)Kerwin Bryant3 days1-1/+5
| | | | | | | | | before: ![b975dce7-d5b1-43e0-b6f4-94557758e30e](https://github.com/user-attachments/assets/c33f3fd0-ce1a-457c-97fe-942b86cf09c1) after: ![682ce03c-9d2c-4b5d-9ba0-fb759fd98088](https://github.com/user-attachments/assets/55304b19-a3c3-4a91-b07a-0c9868dbe3eb)
* Improve `labels-list` rendering (#34846)silverwind4 days7-82/+105
| | | | | | | Make labels list use consistent gap --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor wiki (#34805)wxiaoguang9 days3-5/+4
| | | Remove unclear code
* Rework delete org and rename org UI (#34762)Lunny Xiao9 days3-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | # What's the problem of the original implementation Renaming organization will mix with organization's information change make the operation difficult to keep consistent. This PR created a danger zone like what's repository setting. It also moved organization's `rename` and `delete` operations to this zone. The original updating repository will not change the name any more. This is also a step to extract the `updaterepository` function completely. Before: ![image](https://github.com/user-attachments/assets/d097dfdf-07be-4d79-8fcf-e78822515575) ![image](https://github.com/user-attachments/assets/42ee832c-cb44-41ec-9fe3-92a1c94747d2) After: ![image](https://github.com/user-attachments/assets/f7700ed7-f104-4302-a924-09e118f24be3) ![image](https://github.com/user-attachments/assets/4c49952a-578e-4d14-bd01-4a68c9e02412) ![image](https://github.com/user-attachments/assets/814829d3-00fe-4e87-ae05-625c129170d2) ![image](https://github.com/user-attachments/assets/b067b263-c909-4b48-b23c-73481c32d350) --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Refactor editor (#34780)wxiaoguang10 days2-10/+1
| | | A complete rewrite
* Fix the issue of abnormal interface when there is no issue-item on the ↵Kerwin Bryant10 days1-0/+1
| | | | project page (#34791)
* Refactor packages (func name & UI) (#34773)wxiaoguang12 days3-4/+26
| | | | | | 1. Use `OpenXxx` instead of `GetXxx` because the returned readers should be correctly closed, and clarify the behaviors of the functions: they increase the download counter 2. Use `packages-content` styles instead of `issue-content`
* Fix markdown wrap (#34697)wxiaoguang2025-06-122-1/+2
| | | Fix #34696
* Fix commit message rendering and some UI problems (#34680)wxiaoguang2025-06-101-0/+1
| | | | | | * Fix #34679 * Fix #34676 * Fix #34674 * Fix #34526
* Add `--color-logo` for text that should match logo color (#34639)silverwind2025-06-073-2/+4
| | | | | | | | | Add a new color that indicates the logo's primary color and use it in the frontpage over previous green color. This will be useful for customization. <img width="1347" alt="Screenshot 2025-06-07 at 16 53 34" src="https://github.com/user-attachments/assets/496aa81f-c910-4c28-bd12-f2473a68bbab" />
* Misc CSS fixes (#34638)silverwind2025-06-074-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | 1. apply [`text-wrap: balance`](https://developer.mozilla.org/en-US/docs/Web/CSS/text-wrap#balance) to various places making the text wrapping nicer, moving `empty-placeholder` CSS to base because it's not repo-specific. <img width="537" alt="Screenshot 2025-06-07 at 15 09 00" src="https://github.com/user-attachments/assets/8b37d031-269d-4ab3-ba59-2ac469c431e4" /> <img width="514" alt="Screenshot 2025-06-07 at 15 11 16" src="https://github.com/user-attachments/assets/27a63117-be1d-4797-80f7-9ed14cca41dc" /> <img width="346" alt="Screenshot 2025-06-07 at 15 22 26" src="https://github.com/user-attachments/assets/2f371384-0330-4a00-bb79-bc3c50ba5c91" /> 2. fix overflow-related bug on actions run list, before: <img width="302" alt="Screenshot 2025-06-07 at 15 26 26" src="https://github.com/user-attachments/assets/d6607eeb-288b-4e81-a770-45a421c9c68c" /> After: <img width="299" alt="Screenshot 2025-06-07 at 15 26 59" src="https://github.com/user-attachments/assets/b0ddb66f-d4fe-4711-8ed9-eca08ce608f3" />
* Fix notification count positioning for variable-width elements (#34597)65432025-06-051-2/+2
| | | | | | | | | | | | | | | | | The notification count is currently positioned using top/left coordinates from its container's top/left corner. This works fine for fixed-size containers like the bell icon. This PR changes the positioning to use bottom/left coordinates from the container's top/right corner instead. This improvement is needed when placing notification counts on text that can vary in size due to different languages or fonts. The bell and stopwatch should look the same after this change. --- *Sponsored by Kithara Software GmbH* Co-authored-by: Marcel Haß <m.hass@kithara.com>
* Fix margin issue in markup paragraph rendering (#34599)silverwind2025-06-051-0/+5
| | | | The Fomantic-inherited `p:last-child` rule in base.css interferes with this markdown rendering.
* Make pull request and issue history more compact (#34588)silverwind2025-06-031-5/+6
| | | Reduced spacing around history entries and inside the commits list, also fixed unequal horizontal spacing inside the commit badge.
* Fix line-button issue after file selection in file tree (#34574)Kerwin Bryant2025-06-021-1/+5
| | | | | | | | Fix the issue where the line-button fails to work after selecting a file from the file tree. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Clean up "file-view" related styles (#34558)wxiaoguang2025-05-286-77/+73
| | | | Move "file-view" and "code-view" related styles to their own file, remove unnecessary `!important`
* Fix project board view (#34470)wxiaoguang2025-05-151-17/+9
| | | Fix #34469
* Merge and tweak markup editor expander CSS (#34409)silverwind2025-05-094-97/+97
| | | | | | | | | | | | | | | | | | | | | | | - Merge the CSS for the two expanders (text-expander-element and tribute.js) into one file - Fix overflow issues - Remove min-width - Various other tweaks like borders, colors, padding, gaps. text-expander: <img width="645" alt="Screenshot 2025-05-09 at 02 21 24" src="https://github.com/user-attachments/assets/33276dc4-38e8-45e1-8216-2a4baa9bc039" /> tribute: <img width="624" alt="Screenshot 2025-05-09 at 02 21 37" src="https://github.com/user-attachments/assets/91fbcd1a-9bfc-40fd-93f0-a05b4bd4c98d" /> --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix "The sidebar of the repository file list does not have a fixed height ↵Kerwin Bryant2025-05-071-0/+5
| | | | | | | | | | #34298" (#34321) There is a known issue where scrolling to the bottom of the page is affected by unknown elements in the footer area: https://github.com/go-gitea/gitea/blob/24145f811069295b9727f25469f1dd3a7c2c5dd7/templates/base/footer.tmpl#L11-L18 ![after](https://github.com/user-attachments/assets/4cdbce32-d22e-4907-a78b-c8e301017fac)
* Fix some dropdown problems on the issue sidebar (#34308)wxiaoguang2025-04-302-14/+14
| | | Also fix #34300
* Fix button alignments (#34276)Kerwin Bryant2025-04-271-0/+1
| | | | | | | | Continue with #34206. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Introduce `--page-space-bottom` at 64px (#30692)silverwind2025-04-251-1/+2
| | | | | | | | | Previously we would always leave 80px space before the page footer, but this is problematic with small viewport heights on projects page for example. I think it' ideal that we use `--page-spacing` which is already in use for spacing on top of the page. The `secondary-nav` margin is also adjusted as I see no value why this shouldn't be the same value.
* Option to delay conflict checking of old pull requests until page view (#27779)Brecht Van Lommel2025-04-242-8/+2
| | | | | | | | | | | | | | | | | | | | | | `[repository.pull-request] DELAY_CHECK_FOR_INACTIVE_DAYS` is a new setting to delay the mergeable check for pull requests that have been inactive for the specified number of days. This avoids potentially long delays for big repositories with many pull requests. and reduces system load overall when there are many repositories or pull requests. When viewing the PR, checking will start immediately and the PR merge box will automatically reload when complete. Accessing the PR through the API will also start checking immediately. The default value of `7` provides a balance between system load, and keeping behavior similar to what it was before both for users and API access. With `0` all conflict checking will be delayed, while `-1` always checks immediately to restore the previous behavior. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix various trivial frontend problems (#34263)wxiaoguang2025-04-241-1/+4
| | | | | | | | | | 1. Fix #20606 2. Fix #34246 3. Fix missing spaces, fix misspells, no visual change. 4. Fix missing "not-mobile", fix #34265 --------- Co-authored-by: silverwind <me@silverwind.io>
* Fix runner list tmpl (#34270)wxiaoguang2025-04-231-8/+0
| | | | | Fix #34269 And fix some layout problems.
* Add fullscreen mode as a more efficient operation way to view projects (#34081)Kerwin Bryant2025-04-232-24/+54
| | | | | | | Maybe fix #33482, maybe fix #34015 --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Display when a release attachment was uploaded (#34261)wxiaoguang2025-04-221-6/+9
| | | Fix #34260
* Fix various UI problems (#34243)wxiaoguang2025-04-196-33/+19
| | | Also fix #34242
* markup: improve code block readability and isolate copy button (#34009)D2025-04-192-17/+19
| | | | | | | | Fix #33197 Improve the rendering of code blocks in markdown content for better readability and UI stability across screen sizes. Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix various misalignments and overflows (#34227)Kerwin Bryant2025-04-172-9/+8
| | | | | --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix button alignments and remove unnecessary styles (#34206)Kerwin Bryant2025-04-167-125/+57
| | | | Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix empty repo clone panel border (#34219)Kerwin Bryant2025-04-161-3/+6
| | | | | | | Remove duplicate border --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Optimize overflow-menu (#34183)Kerwin Bryant2025-04-131-0/+8
| | | | | | | | | | Optimized the overflow-menu: 1. Close the tippy when a menu item inside the tippy is clicked. 2. When a menu item inside the tippy is selected, move the active state of the menu to the tippy's button. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* feat: Add sorting by exclusive labels (issue priority) (#33206)Thomas E Lackey2025-04-102-0/+7
| | | | | | | | | | | | | Fix #2616 This PR adds a new sort option for exclusive labels. For exclusive labels, a new property is exposed called "order", while in the UI options are populated automatically in the `Sort` column (see screenshot below) for each exclusive label scope. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix vertical centering of file tree icons and use entryIcon for ↵Kerwin Bryant2025-04-093-11/+22
| | | | | | | | | | | | | | | | | | | | | | submodules/symlinks (#34137) In the file tree, the icons are not vertically centered, which affects the overall visual consistency. Currently, the icons of submodules and symlinks do not adopt the value of entryIcon, resulting in inconsistent icon display. before: ![3000-gogitea-gitea-y4ulxr46c4k ws-us118 gitpod io_test_test gitea_src_branch_main_README md (3)](https://github.com/user-attachments/assets/d521b89f-909a-43f9-8f39-787b0243b159) after: ![3000-gogitea-gitea-y4ulxr46c4k ws-us118 gitpod io_test_test gitea_src_branch_main_README md (2)](https://github.com/user-attachments/assets/4866807f-c890-4709-b595-7086011e5231) --------- Co-authored-by: silverwind <me@silverwind.io>
* Use `overflow-wrap: anywhere` to replace `word-break: break-all` (#34126)wxiaoguang2025-04-063-5/+2
|
* Refactor dropdown ellipsis (#34123)wxiaoguang2025-04-051-18/+12
| | | Remove legacy `truncated-item-container` and `truncated-item-name`.
* Fix markdown frontmatter rendering (#34102)wxiaoguang2025-04-031-0/+12
| | | Fix #34101
* Fix markup content overflow (#34072)Kerwin Bryant2025-03-311-5/+1
| | | | Fix #34069: use `overflow-wrap: anywhere` to correctly wrap overflowed content.
* Simplify emoji rendering (#34048)silverwind2025-03-282-13/+1
| | | | | | | | | | | | | | | | It seems like most of our custom styles around the .emoji class are useless and we can just make them render like any other text. Rendering should now match GitHub. Fixes: https://github.com/go-gitea/gitea/issues/34019 Also see https://github.com/go-gitea/gitea/pull/11541 and https://github.com/go-gitea/gitea/pull/12317 for some context. I think browser emoji rendering has improved in recent years so these hacks are no longer needed. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Adjust the layout of the toolbar on the Issues/Projects page (#33667)Kerwin Bryant2025-03-282-12/+5
| | | | | | | | | | | On the list page, labels and milestones do not serve as a switch-tab. Instead, they function as page navigation. The switch-tab is only appropriate for use on the labels and milestones pages. And fix projects page layout. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Optimize Layout Styles of Filelist (#33920)Kerwin Bryant2025-03-191-4/+14
| | | | | | | Align items --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Fix file tree issues (#33916)Kerwin Bryant2025-03-172-2/+1
|
* Remove unused or abused styles (#33918)wxiaoguang2025-03-172-32/+0
| | | | | | * `top aligned` => `tw-align-top` * label list: it was broken, this PR fixes it * reference link: simplified * settings/repos: not affected
* Replace text-align classes with tailwind (#33905)silverwind2025-03-166-64/+1
| | | | | | | Small refactor to remove these CSS classes in favor of tailwind. --------- Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add file tree to file view page (#32721)Kerwin Bryant2025-03-151-0/+15
| | | | | | | | | | | Resolve #29328 This pull request introduces a file tree on the left side when reviewing files of a repository. --------- Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
* Add old svg class name to git entry icon (#33884)wxiaoguang2025-03-141-1/+1
| | | Fix https://github.com/go-gitea/gitea/pull/33837#discussion_r1995521288
* Drop fomantic build (#33845)wxiaoguang2025-03-113-0/+12
| | | | | | | | | | | | We would never update or build fomantic again, we have forked it as a private library long time ago. So just put the JS and CSS files in "fomantic/build" into git. And use "import" to use them. Remove "form.js", rewrite "tab" component. All source code is from official Fomantic UI build. Will apply patches in separate PRs.