You've already forked matrix-react-sdk
							
							
				mirror of
				https://github.com/matrix-org/matrix-react-sdk.git
				synced 2025-11-03 00:33:22 +03:00 
			
		
		
		
	apply monospace font correctly
This commit is contained in:
		@@ -32,6 +32,10 @@ body {
 | 
				
			|||||||
    margin: 0px;
 | 
					    margin: 0px;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					code {
 | 
				
			||||||
 | 
					    font-family: $monospace-font-family;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.error, .warning {
 | 
					.error, .warning {
 | 
				
			||||||
    color: $warning-color;
 | 
					    color: $warning-color;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -411,6 +411,7 @@ limitations under the License.
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
.mx_EventTile_content .markdown-body {
 | 
					.mx_EventTile_content .markdown-body {
 | 
				
			||||||
    pre, code {
 | 
					    pre, code {
 | 
				
			||||||
 | 
					        font-family: $monospace-font-family ! important;
 | 
				
			||||||
        // deliberate constants as we're behind an invert filter
 | 
					        // deliberate constants as we're behind an invert filter
 | 
				
			||||||
        color: #333;
 | 
					        color: #333;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,6 +7,10 @@
 | 
				
			|||||||
   to native Emoji fonts (if any) to ensure cross-browser consistency */
 | 
					   to native Emoji fonts (if any) to ensure cross-browser consistency */
 | 
				
			||||||
$font-family: Nunito, Arial, Helvetica, Sans-Serif, 'Twemoji Mozilla';
 | 
					$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
 | 
					// unified palette
 | 
				
			||||||
// try to use these colors when possible
 | 
					// try to use these colors when possible
 | 
				
			||||||
$accent-color: #03b381;
 | 
					$accent-color: #03b381;
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user