mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Revert "Fix wrapping long code lines in UI" (#6074)
This reverts commit e5cd80e021
.
Fixes: https://github.com/go-gitea/gitea/issues/6064
This commit is contained in:
committed by
techknowlogick
parent
7ae59567a2
commit
ec540294a1
File diff suppressed because one or more lines are too long
@@ -30,15 +30,26 @@ pre, code {
|
||||
line-height: 1.5;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
/* Wrap long lines of code. This will also apply to Markdown code boxes. */
|
||||
pre > code {
|
||||
white-space: pre-wrap !important;
|
||||
word-break: break-all !important;
|
||||
overflow-wrap: break-word !important;
|
||||
&.wrap {
|
||||
white-space: pre-wrap; /* CSS 3 */
|
||||
// white-space: -moz-normal; /* Mozilla, since 1999 */
|
||||
// white-space: -normal; /* Opera 4-6 */
|
||||
// white-space: -o-normal; /* Opera 7 */
|
||||
|
||||
-ms-word-break: break-all;
|
||||
word-break: break-all;
|
||||
|
||||
/* These are technically the same, but use both */
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
}
|
||||
.dont-break-out {
|
||||
/* These are technically the same, but use both */
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
|
||||
-ms-word-break: break-all;
|
||||
word-break: break-all;
|
||||
|
||||
/* Adds a hyphen where the word breaks, if supported (No Blink) */
|
||||
|
@@ -364,10 +364,13 @@
|
||||
padding: 0 !important;
|
||||
li {
|
||||
display: block;
|
||||
padding: 0 .25em;
|
||||
width: 100%;
|
||||
&.active {
|
||||
background: #ffffdd;
|
||||
}
|
||||
&:before {
|
||||
content: ' ';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user