# HG changeset patch # User domruf # Date 2017-10-27 00:25:37 # Node ID d69d258c1403ab68a2be3aca15f34a180a16ed0a # Parent 7c0f072dfc1ee0b1fc4d3a76f48a5598fcd17639 less: use more generic selector for formatted-fixed Why should this only be usable on
! Also add comment. diff --git a/kallithea/public/css/style.css b/kallithea/public/css/style.css --- a/kallithea/public/css/style.css +++ b/kallithea/public/css/style.css @@ -43,7 +43,8 @@ div.formatted-fixed, 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 { diff --git a/kallithea/public/less/style.less b/kallithea/public/less/style.less --- a/kallithea/public/less/style.less +++ b/kallithea/public/less/style.less @@ -45,9 +45,12 @@ div.formatted-fixed, 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; }