mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	css: Extract realm logo max width as a variable.
This commit is contained in:
		@@ -255,6 +255,7 @@
 | 
				
			|||||||
    --left-sidebar-max-width: calc(
 | 
					    --left-sidebar-max-width: calc(
 | 
				
			||||||
        20.6429em - var(--left-sidebar-right-margin)
 | 
					        20.6429em - var(--left-sidebar-right-margin)
 | 
				
			||||||
    );
 | 
					    );
 | 
				
			||||||
 | 
					    --realm-logo-max-width: 12.5em; /* 200px at 16px em */
 | 
				
			||||||
    /* Sidebar width is 1/3 of the screen at smaller
 | 
					    /* Sidebar width is 1/3 of the screen at smaller
 | 
				
			||||||
       sizes, but gets held to the left sidebar's max width.
 | 
					       sizes, but gets held to the left sidebar's max width.
 | 
				
			||||||
       This is very useful for areas in the CSS codebase
 | 
					       This is very useful for areas in the CSS codebase
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1068,7 +1068,7 @@ nav {
 | 
				
			|||||||
        .nav-logo {
 | 
					        .nav-logo {
 | 
				
			||||||
            display: inline-block;
 | 
					            display: inline-block;
 | 
				
			||||||
            height: 1.25em; /* 20px at 16px em */
 | 
					            height: 1.25em; /* 20px at 16px em */
 | 
				
			||||||
            max-width: 12.5em; /* 200px at 16px em */
 | 
					            max-width: var(--realm-logo-max-width);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            @media (height < $short_navbar_cutoff_height) {
 | 
					            @media (height < $short_navbar_cutoff_height) {
 | 
				
			||||||
                height: 0.9375em; /* 15px at 16px em */
 | 
					                height: 0.9375em; /* 15px at 16px em */
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user