You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-04 11:51:45 +03:00 
			
		
		
		
	apply monospace font correctly
This commit is contained in:
		@@ -32,6 +32,10 @@ body {
 | 
			
		||||
    margin: 0px;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
code {
 | 
			
		||||
    font-family: $monospace-font-family;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.error, .warning {
 | 
			
		||||
    color: $warning-color;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -411,6 +411,7 @@ limitations under the License.
 | 
			
		||||
 | 
			
		||||
.mx_EventTile_content .markdown-body {
 | 
			
		||||
    pre, code {
 | 
			
		||||
        font-family: $monospace-font-family ! important;
 | 
			
		||||
        // deliberate constants as we're behind an invert filter
 | 
			
		||||
        color: #333;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -7,6 +7,10 @@
 | 
			
		||||
   to native Emoji fonts (if any) to ensure cross-browser consistency */
 | 
			
		||||
$font-family: Nunito, Arial, Helvetica, Sans-Serif, 'Twemoji Mozilla';
 | 
			
		||||
 | 
			
		||||
// XXX: In theory this should be Fira, but it's a bit ugly.
 | 
			
		||||
// TODO: make it consistent cross-browser
 | 
			
		||||
$monospace-font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace, 'Twemoji Mozilla';
 | 
			
		||||
 | 
			
		||||
// unified palette
 | 
			
		||||
// try to use these colors when possible
 | 
			
		||||
$accent-color: #03b381;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user