Mercurial > kallithea
changeset 6987:d69d258c1403
less: use more generic selector for formatted-fixed
Why should this only be usable on <div>!
Also add comment.
author | domruf <dominikruf@gmail.com> |
---|---|
date | Fri, 27 Oct 2017 00:25:37 +0200 |
parents | 7c0f072dfc1e |
children | 97a99ced3b85 |
files | kallithea/public/css/style.css kallithea/public/less/style.less |
diffstat | 2 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/public/css/style.css Fri Oct 27 20:15:27 2017 +0200 +++ b/kallithea/public/css/style.css Fri Oct 27 00:25:37 2017 +0200 @@ -43,7 +43,8 @@ font-size: 12px; font-family: Lucida Console, Consolas, Monaco, Inconsolata, Liberation Mono, monospace; } -div.formatted-fixed { +/* class for texts where newlines should be preserved, for very light-weight ascii art markup (like pull request descriptions) */ +.formatted-fixed { white-space: pre-wrap; } .changeset_hash {
--- a/kallithea/public/less/style.less Fri Oct 27 20:15:27 2017 +0200 +++ b/kallithea/public/less/style.less Fri Oct 27 00:25:37 2017 +0200 @@ -45,9 +45,12 @@ font-size: 12px; font-family: Lucida Console, Consolas, Monaco, Inconsolata, Liberation Mono, monospace; } -div.formatted-fixed { + +/* class for texts where newlines should be preserved, for very light-weight ascii art markup (like pull request descriptions) */ +.formatted-fixed { white-space: pre-wrap; } + .changeset_hash { font-family: Lucida Console, Consolas, Monaco, Inconsolata, Liberation Mono, monospace; }