Changeset - 9005c37dbe21
[Not reviewed]
default
0 1 0
Thomas De Schampheleire - 8 years ago 2018-05-06 14:31:15
thomas.de_schampheleire@nokia.com
style: use monospace for 'formatted-fixed' class

The 'formatted-fixed' class is applied to PR comments, PR descriptions and
repository descriptions. It already preserves whitespace via 'whitespace:
pre-wrap', but the font is not monospace. As a result, diagrams or other
ASCII art do not display well.

Use monospace on this class to fix that.
1 file changed with 1 insertions and 0 deletions:
0 comments (0 inline, 0 general)
kallithea/public/less/style.less
Show inline comments
 
body {
 
  background: url("../images/background.png") repeat scroll 0 0 #B0B0B0;
 
}
 

	
 
/* pseude content that should not be selected or copied by the user */
 
[data-pseudo-content]:before {
 
  content: attr(data-pseudo-content);
 
}
 

	
 
/* class for texts where newlines should be preserved, for very light-weight ascii art markup (like pull request descriptions) */
 
.formatted-fixed {
 
  font-family: @font-family-monospace;
 
  white-space: pre-wrap;
 
}
 

	
 
/* use monospace for changeset hashes */
 
.changeset_hash {
 
  font-family: @font-family-monospace;
 
}
 

	
 
/* Note: class 'icon-empty' or 'icon-gravatar' can be used to get icon-ish styling without an actual glyph */
 
i[class^='icon-empty'],
 
i[class^='icon-gravatar'] {
 
  background-repeat: no-repeat;
 
  background-position: center;
 
  display: inline-block;
 
  min-width: 16px;
 
  min-height: 16px;
 
  margin: -2px 0 -4px 0;
 
}
 

	
 
.inline-comments-general.show-general-status .hidden.general-only {
 
  display: block !important;
 
}
 
.truncate {
 
  white-space: nowrap;
0 comments (0 inline, 0 general)