bench-forgejo/public/less
silverwind da23041257 fix extra newlines when copying from diff in Firefox (#7288)
* fix extra newlines when copying from diff

See https://bugzilla.mozilla.org/show_bug.cgi?id=1273836

Basically, the <pre><code> seems to add a forced newline that is not
possible to get rid of via CSS, so I replaced it with just a <code>.

Secondly, .lines-type-marker also forced a newline in the copied text,
but that was possible to get rid of via user-select.

Safari still has a extraneous newline in the copied text of unknown
origin, but this should not block stop this PR.

* simplify .line-type-marker

* fix selector

* remove erronous ^^^

* Fix empty split diff

* Fix arc-theme-green

* fix add comment

* ensure line-num is copied too

* Update templates/repo/diff/box.tmpl

Co-Authored-By: zeripath <art27@cantab.net>

* attempt to fix safari via removing <code>

* remove useless whitespace at the end of 'class'

* remove inter-tag whitespace for code <td>s

* more inter-tag removal

* final inter-tag removal

* attempt to fix empty line copy

* move and comment getLineContent

* fix golint

* make background grey for missing added code
2019-06-26 22:35:07 +01:00
..
themes fix extra newlines when copying from diff in Firefox (#7288) 2019-06-26 22:35:07 +01:00
_admin.less Fix code overflow (#6914) 2019-05-14 12:02:59 -04:00
_base.less fix extra newlines when copying from diff in Firefox (#7288) 2019-06-26 22:35:07 +01:00
_dashboard.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_editor.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_emojify.less Allow labels to contain emoji (#6063) 2019-02-16 19:33:09 +02:00
_explore.less Repository avatars (#6986) 2019-05-29 22:22:26 -04:00
_form.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_home.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_install.less Clean less files (#6921) 2019-05-13 07:26:32 +01:00
_markdown.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_organization.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_repository.less fix extra newlines when copying from diff in Firefox (#7288) 2019-06-26 22:35:07 +01:00
_review.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_tribute.less Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
_user.less add .fa margin like .octicon (#7258) 2019-06-20 15:16:01 +08:00
index.less Pull request review/approval and comment on code (#3748) 2018-08-06 06:43:21 +02:00