A mirror of my website's source code.

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

Change codeblock font-size to be slightly smaller

steve0greatness,
created on Saturday, 27 January 2024, 03:41:13 (1706326873), received on Monday, 6 May 2024, 02:55:36 (1714964136)
Author identity: Steve0Greatness <75220768+Steve0Greatness@users.noreply.github.com>

8727d829e9f25032e499535a2219be5f62a278a2

static/src/code-blocks.css

@@ -1,7 +1,7 @@

                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            @import url("/fonts/mononoki/mononoki.css");
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            .codehilite .hll { background-color: #49483e }
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        .codehilite, pre:not(.codehilite pre) code { font-size: 1rem; font-family: "mononoki", monospace; background: #272822; color: #f8f8f2; padding: 10px; display: block; }
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        code:not(.codehilite code):not(pre code) { font-size: 1rem; font-family: "mononoki", monospace; background: #272822; color: #f8f8f2; padding: 5px }
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        .codehilite, pre:not(.codehilite pre) code { font-size: .85rem; font-family: "mononoki", monospace; background: #272822; color: #f8f8f2; padding: 10px; display: block; }
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                        code:not(.codehilite code):not(pre code) { font-family: "mononoki", monospace; background: #272822; color: #f8f8f2; padding: 5px }
                                        
                                        
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            .codehilite pre { margin: 0; }
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            .codehilite .c { color: #75715e } /* Comment */
                                        
                                        
                                            
                                            
                                            
                                            
                                        
                                    
                                
                                
                                
                            
                                
                                    
                                        
                                            
                                            .codehilite .err { color: #960050; background-color: #1e0010 } /* Error */