diff options
author | silverwind <me@silverwind.io> | 2019-02-15 08:23:20 +0100 |
---|---|---|
committer | techknowlogick <matti@mdranta.net> | 2019-02-15 02:23:20 -0500 |
commit | ec540294a16353817fbd85d8cddc875722ac778a (patch) | |
tree | c97d1c61dfa7b21089c8cdb5a38fdcb1c8cbcf0f /public/less | |
parent | 7ae59567a2ec3065b10b75aff545edb06aac4790 (diff) | |
download | gitea-ec540294a16353817fbd85d8cddc875722ac778a.tar.gz gitea-ec540294a16353817fbd85d8cddc875722ac778a.zip |
Revert "Fix wrapping long code lines in UI" (#6074)
This reverts commit e5cd80e0219f10818f43e8cab6b9c814cb1cd796.
Fixes: https://github.com/go-gitea/gitea/issues/6064
Diffstat (limited to 'public/less')
-rw-r--r-- | public/less/_base.less | 23 | ||||
-rw-r--r-- | public/less/_repository.less | 5 |
2 files changed, 21 insertions, 7 deletions
diff --git a/public/less/_base.less b/public/less/_base.less index e435d942b7..bdf56f4eab 100644 --- a/public/less/_base.less +++ b/public/less/_base.less @@ -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) */ diff --git a/public/less/_repository.less b/public/less/_repository.less index ea9df9687c..8345c308b2 100644 --- a/public/less/_repository.less +++ b/public/less/_repository.less @@ -364,10 +364,13 @@ padding: 0 !important; li { display: block; - padding: 0 .25em; + width: 100%; &.active { background: #ffffdd; } + &:before { + content: ' '; + } } } } |