gitea/web_src/less
Martijn de Boer 89a8b3e163
Limit max-height of CodeMirror editors for issue comment and wiki (#18271)
* Make the wiki editor bar sticky for longer wiki edits

On codeberg community it was requested to make the wiki editor toolbar sticky for longer wiki posts, so one wouldn't have to scroll to the top to use it. (Reference; https://codeberg.org/Codeberg/Community/issues/533).

In order to make this happen, the .editor-toolbar class needs to become position: sticky, and we need to fix it's transparent background and border-bottom. Because the bottom disappears, we add it. This makes the border become a double border, because the CodeMirror area defines borders for all. As such I've added a border-top: none, on the wiki write tab for the CodeMirror class.

* Make the issue bar in the issue view sticky for issue #10675

In issue #10675 it's requested to make the issue bar sticky upon scrolling in the issue view. The proposed change changes inline html, which is not desirable. As such I've added the position sticky option to it's container, and fix the background upon scrolling.

* Make linter happy on _repository.less

Fix 0px -> 0 to make the linter happy.

* Make linter happy on _editor.less

Fix 0px -> 0 to make the linter happy.

* Change z-index to the lowest boundary of 1

As per review of @silverwind change the z-index to it's lowest requirement of 1.

* Change z-index to the lowest boundary of 1

As per review of @silverwind change the z-index to it's lowest requirement of 1.

* Revert changes made to wiki editor (unsticky) and add max-height

Fixes the max-height to 85vh, on the proposed 90vh it just came out just slightly too large.
Unstickies the changes from the sticky commits.

* Revert changes for the sticky title editor

Removes the changes as done by the sticky title editor.

* Add max-height definition to CodeMirror-scroll

Add the max-height definition for the CodeMirror-scroll class in order to generalize the changes spoken about in PR #18271

* Remove CodeMirror-scroll definition

Remove the max-height in CodeMirror-scroll definition, in order to generalize it in the CodeMirror less file. As per discussion in #18271.

* fine tune CodeMirror min-height/max-height

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-06-05 09:09:50 +01:00
..
chroma Make .cs highlighting legible on dark themes. (#19604) 2022-05-04 16:58:38 +08:00
code Fix and restyle menu on code line (#15913) 2021-05-18 23:16:02 -04:00
codemirror Extract CodeMirror styles (#17960) 2021-12-20 20:07:49 +00:00
features Feature: show issue assignee on project board (#15232) 2022-03-09 00:42:28 +08:00
markup Disallow selecting the text of buttons (#19330) 2022-04-14 16:57:19 +08:00
shared Show source/target branches on PR's list (#19747) 2022-05-25 15:33:35 +02:00
standalone Update JS dependencies, fix lint (#18389) 2022-02-01 13:21:08 -05:00
themes Remove fomantic progress module (#19760) 2022-05-20 05:04:45 +02:00
_admin.less Improve UI on mobile (#19546) 2022-05-01 18:11:21 +02:00
_base.less Limit max-height of CodeMirror editors for issue comment and wiki (#18271) 2022-06-05 09:09:50 +01:00
_dashboard.less Fix overflow label in mobile view (#17020) 2021-09-12 13:40:20 +02:00
_editor.less Extract CodeMirror styles (#17960) 2021-12-20 20:07:49 +00:00
_explore.less Ensure popup text is aligned left (#17327) 2021-10-17 11:14:32 +01:00
_font_i18n.less Prefer "Hiragino Kaku Gothic ProN" in system-ui-ja (#17954) 2021-12-13 00:04:18 +01:00
_form.less Remove customized (unmaintained) dropdown, improve aria a11y for dropdown (#19861) 2022-06-03 17:38:26 -04:00
_home.less fix media query edge case (#13546) 2020-11-17 00:33:19 -05:00
_install.less Refactor install page (db type) (#17919) 2021-12-07 13:44:08 +08:00
_organization.less Add RSS Feed buttons to Repo, User and Org pages (#19370) 2022-04-24 22:03:39 +02:00
_repository.less Limit max-height of CodeMirror editors for issue comment and wiki (#18271) 2022-06-05 09:09:50 +01:00
_review.less Allow to mark files in a PR as viewed (#19007) 2022-05-07 20:28:10 +02:00
_svg.less Update JS dependencies, fix lint (#18389) 2022-02-01 13:21:08 -05:00
_tribute.less Update JS dependencies (#15033) 2021-03-22 05:04:19 +01:00
_user.less Improve UI on mobile (#19546) 2022-05-01 18:11:21 +02:00
animations.less Improve reviewing PR UX (#19612) 2022-05-07 01:35:12 -04:00
helpers.less Fix Pull Request comment filename word breaks (#19535) 2022-04-29 12:30:54 +03:00
index.less Various Mermaid improvements (#18776) 2022-02-16 11:28:29 +08:00
misc.css Raw file view tweaks (#15520) 2021-04-22 23:43:44 +02:00
variables.less fix media query edge case (#13546) 2020-11-17 00:33:19 -05:00