summaryrefslogtreecommitdiffstats
path: root/web_src
Commit message (Collapse)AuthorAgeFilesLines
* Better vertical align of buttons in headers (#13932)silverwind2020-12-101-7/+5
| | | | | | | | | | | The previous method used `transform` which formed a CSS stacking context which caused issues with dropdowns appearing behind other elements which made `position: static` necessary but that again caused even more issues. This method achieves the same as before, but without the additional stacking context. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Remove JS globals related to timetracking and due date (#13921)silverwind2020-12-101-24/+29
| | | Refactor to avoid these globals. Should work exactly as before.
* Add pull request manually merge instruction (#13840)Lunny Xiao2020-12-104-5/+17
| | | | | | | | | | | | | | | | | | | | | | | * add pull request command line instructions * Add pull request manually merge instuction * Fix styles * Fix lint * Move inline style to class file * add space between merge button and hint text * Add sentence end charcter * Change the language file * adjust secondary bg * further adjustment Co-authored-by: silverwind <me@silverwind.io>
* Replace more icons with SVG, repo search tweaks (#13860)silverwind2020-12-094-6/+29
| | | | | | | | | | | | | | | | * Replace more icons with SVG - Replace remaining icons on admin page with SVG - Fix vertical menu background on arc-green - Minor improvments to frontpage repo search - More icon replacements here and there * fix integration * whitespace tweak * add comment Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Markdown: Enable wrapping in code blocks and a color tweak (#13894)silverwind2020-12-092-6/+6
| | | | | | | | - Enable wrapping of long lines in code blocks like already done in code view. - Slightly lighten the background of code blocks on default theme - Darken the background on inline code and kbd elements on arc-green Co-authored-by: 6543 <6543@obermui.de>
* Fix frontpage avatars (#13853)silverwind2020-12-092-11/+12
| | | | | | | | | | The frontpage uses a rather strange method to obtain the commit's avatar which I've overlooked earlier. I don't exactly understand how it works but this change fixes the wrong default avatars by using the function that was in previous use. Also introduced a few constants for size an size increase factor. Fixes: https://github.com/go-gitea/gitea/issues/13844
* Fix Quote Reply button on review diff (#13830)Jimmy Praet2020-12-081-15/+15
| | | | | | | * Fix Quote Reply #13762 * requestAnimationFrame() instead of setTimeout() Co-authored-by: 6543 <6543@obermui.de>
* Repo avatar fixes (#13891)silverwind2020-12-073-35/+28
| | | | | | | | | - Split up avatar rendering helpers for performance - Fix showing repo SVG icon when no avatar is set - Make repo SVG and avatar same size at 32px - Fix fork line by adding vertical flexbox on repo title Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix issue participants (#13893)silverwind2020-12-071-7/+0
| | | | | | | | | | | | | | | * Fix issue participants * use list class for margin * remove wrapper and don't render on zero participants * keep whitespace * remove participants class * add some margin for timetracking stuff Co-authored-by: 6543 <6543@obermui.de>
* Fix mermaid chart size (#13863)silverwind2020-12-061-1/+2
| | | | | | | | | | * Fix mermaid chart size Seems like one of the recent updates to the module unexpectedly shrunk these charts, bring them back up to full width. * don't stretch to full width Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Font weight tweaks (#13854)silverwind2020-12-056-12/+8
| | | | | | | | Font weight 500 is not discernible from 400 on some fonts/operating systems so push them back to previous value 600 except for fomantic-ui elements which stay at 500. Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: 6543 <6543@obermui.de>
* Improve migrate page and add card CSS (#13751)silverwind2020-12-055-35/+56
| | | | | | | - Use original gitea logo on migrate page - Add card styles and map colors to css vars - Tweak migrate page, adding hover effect to cards Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Remove Noto Color Emoji fallback (#13838)silverwind2020-12-043-209/+0
| | | | | It's causing browser errors logged in Firefox under certain circumstances, and I think we're better off recommending Linux users to install a proper emoji font into their system.
* Style and template tweaks (#13828)silverwind2020-12-046-88/+58
| | | | | | | | | | | | | | | * Style and template tweaks - Get red and green buttons on arc green closer to base theme - EasyMDE adjustments, toolbar and focus border - Fix header on 404 repo page - Tweaks to frontpage search, add 'Create Repo' button - Fix misaligned box headers - Fix pagination on arc-green - Fix background and footer on explore and repo search * better fix for header button alignment * add label hover for reactions
* Update font stack to bootstrap's latest (#13834)silverwind2020-12-041-4/+4
| | | | | | | | | Update to latest Bootstrap font stack [1]. Should fix https://github.com/go-gitea/gitea/issues/13784. [1] https://github.com/twbs/bootstrap/blob/bf3c4d0b6891c21377e6b1fb7962f5fbf198325f/scss/_variables.scss#L396 Co-authored-by: 6543 <6543@obermui.de>
* Direct avatar rendering (#13649)silverwind2020-12-036-13/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Direct avatar rendering This adds new template helpers for avatar rendering which output image elements with direct links to avatars which makes them cacheable by the browsers. This should be a major performance improvment for pages with many avatars. * fix avatars of other user's profile pages * fix top border on user avatar name * uncircle avatars * remove old incomplete avatar selector * use title attribute for name and add it back on blame * minor refactor * tweak comments * fix url path join and adjust test to new result * dedupe functions
* Fix various CSS issues (#13769)silverwind2020-12-031-5/+14
| | | | | | | | | - Fix black text being white on base theme - Fix file/blame button group - Fix label margin in dropdown (regression from graph pr) Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Reply button is not removed when deleting a code review comment (#13774)Jimmy Praet2020-12-031-0/+4
| | | Co-authored-by: mrsdizzie <info@mrsdizzie.com>
* Swap swagger-ui with swagger-ui-dist (#13777)silverwind2020-12-011-2/+2
| | | | | | | | | * Swap swagger-ui with swagger-ui-dist The prebuilt version of swagger-ui is identical to the regular one but brings the benefit of faster webpack compilation and less npm dependencies so it npm installs will speed up too. * use bundle file directly
* Add class to page content to unify top margin (#13766)silverwind2020-11-305-8/+14
| | | | | | | | | | | | | | | | | | | * Add class to page content to unify top margin Previously pages would individually set this margin but some didn't so content would stick to the header without any space. Resolve this by adding a new class that is added on all pages. The only place where we remove this margin again is on the pages with menu or wrapper in the header. * fix admin notices * fix team pages * fix loading segment on gitgraph for arc-green * fix last missing case Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix bogus http requests on diffs (#13760)silverwind2020-11-301-0/+1
| | | | | | | | | The .blob-excerpt elements don't have these data attributes in some cases resulting in bogus http request when expanding a diff and clicking into the expanded area. This prevents those. Should backport to 1.13. Fixes: https://github.com/go-gitea/gitea/issues/13759
* Fix avatar offset on PR/issue timeline view (#13753)Cirno the Strongest2020-11-301-2/+6
| | | | | | | | | * Fix avatar offset on PR/issue timeline view * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io>
* Update JS dependencies and misc tweaks (#13741)silverwind2020-11-292-14/+9
| | | | | | | | | | | | | | | | | * Update JS dependencies and misc tweaks - Update all JS dependencies minus webpack - Adapt CodeMirrors styling to new CSS parent introduced by EasyMDE - Set eslint parser to latest and add new eslint 7.14 rule - Speed up npm install by disabling audit and fund checks - Move fomantic-ui to optional dependencies to further speed up npm - Enable syntax highlighting on GH for .eslintrc and .stylelintrc - Makefile cleanups * disable audit in npmrc * add missing dash Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Markdown and Repo header tweaks (#13744)silverwind2020-11-294-82/+84
| | | | | | | | | | | | | | | | * Markdown and Repo header tweaks - Use CSS vars for all markdown colors - Tweak repo header, removing double borders and adjust sizes - Use menu instead of buttons for issue open/close switcher - Add emoji inversion for select emoji glyphs in arc-green - Use border over box-shadow for all buttons - Add spacing element to login form without openid * repo settings navbar fix * use shared template in more places and adjust dashboard * fix remaining open/close combos
* Dropdowns, Labels fixes and more CSS tweaks (#13733)silverwind2020-11-297-387/+252
| | | | | | | | | | | | | | | | | | * Dropdowns and Labels fixes - Rework dropdown, menu and label styles - Improve issue sidebar milestone and label sections - Fix archived repo and private org badge - Move more colors to CSS vars - Move issue number to end of title on issue page * more dropdown fixes * fix basic blue labels - fixes #13731 * improve class setting on svg Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix label styles affecting shabox (#13734)silverwind2020-11-281-21/+6
| | | | | | | | | | | | | | * Fix label styles affecting shabox Add common parent .labels-list to issue labels lists to prevent affecting other elements. Fixes: https://github.com/go-gitea/gitea/issues/13704 * Update templates/shared/issuelist.tmpl * Update templates/shared/issuelist.tmpl Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Prevent clone protocol button flash on page load (#13626)silverwind2020-11-262-20/+6
| | | | | | | | | | | | | * Prevent clone protocol button flash on page load Previously, the saved active buttons would flash on page load because if delay involved in JS execution. Prevent these flashes bydisabling transitions on page load and run the script right after. It's not an ideal solution (which would require server-side storage of user settings like this) but I'd say better than before. * add defer Co-authored-by: zeripath <art27@cantab.net>
* CSS navbar and color tweaks (#13609)silverwind2020-11-269-165/+127
| | | | | | | | | | | | | | | | | | | * CSS and color tweaks - Unify navbar-style menus - Fix admin bar overlapping menu bar - Fixes file edit comment box - Fix double border on review box - Fix review timeline icons * Many fixes to new-menu and navbar layout enhancements * misc settings fixes * navbar tweak * fix pr tabs * branch tag and arc color tweaks
* Issue and Pulls lists rework (#13594)silverwind2020-11-256-136/+167
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Issue and Pulls lists rework Reorganized and restyled the issue and pull request lists. * color and layout tweaks * use new issue list on dashboard as well * move pagination into template * misc tweaks * fix label hover * fix milestone list * fix discrepancies between issue and milestone list, add new 'merge' helper * fmt * simplify merge helper * remove whitespace * fix startIndex * further simplify dict merging * rename helper to 'mergeinto' for clarity * allow bottom-row to wrap Co-authored-by: Lauris BH <lauris@nix.lv>
* CSS table fixes (#13692)silverwind2020-11-242-15/+8
| | | | | | | | | * CSS table fixes Override the right fomantic selectors. Fixes: https://github.com/go-gitea/gitea/issues/13690 * use flexbox
* Fix heatmap rendering in Chrome and Safari (#13645)silverwind2020-11-231-8/+23
| | | | | | | | | | | | | | | | | | * Fix heatmap rendering in Chrome and Safari Apparently SVG inside flexbox renders slightly different across browsers where Firefox would stretch to fit the parent while Chrome and safari wouldn't. Stretch the SVG to the width of the parent for consistent rendering. Also did a few minor tweaks on the min-height of the box so it takes up less space on smaller responsive breakpoints. Fixes: https://github.com/go-gitea/gitea/issues/13634 Fixes: https://github.com/go-gitea/gitea/pull/13637 * position tweak Co-authored-by: zeripath <art27@cantab.net>
* Update _repository.less (#13672)Cirno the Strongest2020-11-231-6/+2
| | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Remove fetch request from heatmap (#13623)silverwind2020-11-185-56/+61
| | | | | | | | | | | | | | | | | | | * Remove fetch request from heatmap Render heatmap data directly to HTML, eliminating one HTTP request on frontpage and user profile. Also added min-height to the container so the page content will no longer move after loading. * rename and error display * also log the js error * add error handler * remove useless inline style and hide divider on small screens * Update routers/user/home.go * Update routers/user/profile.go
* fix media query edge case (#13546)Norwin2020-11-1712-51/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | * fix media query edge case was failing for 768px width before * code review * define responsive breakpoints as less variables * add missing variables.less * rename variables, drop screen constraints * fix less import * Apply suggestions from code review Co-authored-by: silverwind <me@silverwind.io> * code review altough it doesnt matter, LESS lazy evals variables Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix label display on new issues (#13590)silverwind2020-11-171-8/+5
| | | | | | | | | | | | | | | | | | * Fix label display on new issues PR #13570 broke label rendering for new issues and pulls because missed the fact that the code was relying on the DOM elements being toggled by JavaScript. On top of that, the label rendering for new issues and pull was using an outdated template which I consolidated in a new shared template. * remove wrapper element and style tweaks * style tweaks * use shared template for whole label list Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Change markdown font weight to 600 (#13584)silverwind2020-11-161-4/+4
| | | | | | | Previously it was reduced globally from 700 to 500 but it actually needs to be 600 to match GitHub's rendering. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: zeripath <art27@cantab.net>
* Fix comment triangles and tweak inline comment margins (#13554)silverwind2020-11-163-46/+18
| | | | - Fix various miscolored comment bubble triangles - Tweak padding on inline comment boxes
* Add tab-size support for Firefox (#13576)Dmitry Doroshev2020-11-151-0/+1
| | | | Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Render diff stats server-side (#13579)silverwind2020-11-151-11/+0
| | | Eliminates a flash on page load on the diff stat bars.
* CSS color variables, less bold font weight and more (#13567)silverwind2020-11-1516-200/+196
| | | | | | | | | | | | | | | | | * CSS color variables, less bold font weight - Define color variables for fully saturated colors and apply them where it made sense - Add background color helper classes - Globally reduce bold font weight from 700 to 500 - Remove border from timeline icons - Unify dropzone styling - Various border style consolidations * attempt to fix test * another attempt at tests * fix contains
* Fix issue label rendering (#13570)silverwind2020-11-151-0/+14
| | | | | | | | | | | * Fix issue label rendering Prevent rendering of inactive labels and make them wrap inline. Fixes: https://github.com/go-gitea/gitea/issues/13566 * also don't render the placeholder Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Use monaco for the git hook editor (#13552)silverwind2020-11-133-56/+67
| | | | | | | Migrate git hook editor to monaco, replacing CodeMirror. Had to do a few refactors to make the monaco instantiation generic enough to be of use. Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* unify layout between auth pages (#13547)Norwin2020-11-132-4/+1
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix issue label spacing and hover (#13553)silverwind2020-11-132-7/+1
| | | | Fixes: https://github.com/go-gitea/gitea/issues/13545 Regressed by: https://github.com/go-gitea/gitea/pull/13458
* Make heatmap colors more distinct (#13533)silverwind2020-11-131-4/+4
| | | | | | | | | | | * Make heatmap colors more distinct Fixes: https://github.com/go-gitea/gitea/issues/13529 * use opaque colors * make first color less opaque Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix blame line alignment (#13542)silverwind2020-11-131-0/+1
| | | | | | | | | We can't wrap code in blame because it's essentially two tables side-by-side which will misalign them when one line gets larger. Fixes: https://github.com/go-gitea/gitea/issues/13540 Regressed by: https://github.com/go-gitea/gitea/pull/13415 Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Various style fixes (#13534)silverwind2020-11-136-57/+37
| | | | | | | | | | | * Various style fixes - Fix the rest of the monochrome borders for arc-green - Fix close icon position on system notice modal and padding - Fix selectable table color for arc-green * proper fix for close icon Co-authored-by: Lauris BH <lauris@nix.lv>
* Form styling adjustments (#13501)silverwind2020-11-125-205/+155
| | | | | | | | | | | | | | * Form styling adjustments - Move all form-related styling to _forms.less - Defined new form-related variables - Fix spinner on frontpage repo search - Add new rounded-* helpers and fix repo search radius * misc arc green tweaks Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-authored-by: Lauris BH <lauris@nix.lv>
* Make heatmap shades linear (#13500)silverwind2020-11-101-1/+1
| | | | | | Previously, shades were 50%, 60%, 70%, 80%, 100%. Make them linearily increasing instead at 60%, 70%, 80%, 90%, 100%. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Switch from SimpleMDE to EasyMDE (#13333)zeripath2020-11-103-4/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Switch from SimpleMDE to EasyMDE Signed-off-by: Andrew Thornton <art27@cantab.net> * use webpack to webpack the easymde css Signed-off-by: Andrew Thornton <art27@cantab.net> * move css to only css Signed-off-by: Andrew Thornton <art27@cantab.net> * move loading codemirror modes and addons back in to footer.tmpl Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix arc-green Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @silverwind * reinstall codemirror Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>