mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-31 19:49:01 +01:00 
			
		
		
		
	style(mobile): improve sidebar animation
This commit is contained in:
		
							parent
							
								
									8568e4b898
								
							
						
					
					
						commit
						cd0df29307
					
				| @ -1177,20 +1177,26 @@ body:not(.mobile) #launcher-pane.horizontal .dropdown-submenu > .dropdown-menu { | |||||||
|     position: absolute; |     position: absolute; | ||||||
|     top: 0; |     top: 0; | ||||||
|     left: 0;    |     left: 0;    | ||||||
|  |     right: 0;  | ||||||
|     bottom: var(--launcher-pane-size); |     bottom: var(--launcher-pane-size); | ||||||
|  |     z-index: -1000; | ||||||
|  | } | ||||||
|  | 
 | ||||||
|  | #mobile-sidebar-container.show { | ||||||
|     padding-top: env(safe-area-inset-top); |     padding-top: env(safe-area-inset-top); | ||||||
|     z-index: 1000;         |     z-index: 1000;         | ||||||
|     transform: translateX(-100%); |     background-color: rgba(0, 0, 0, 0.3); | ||||||
|     transition: transform 250ms ease-in-out; |     transition: background-color 250ms ease-in-out; | ||||||
|     backdrop-filter: blur(20px); |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #mobile-sidebar-wrapper { | #mobile-sidebar-wrapper { | ||||||
|     width: 85vw; |     width: 85vw; | ||||||
|  |     transform: translateX(-100%); | ||||||
|  |     transition: transform 250ms ease-in-out; | ||||||
|     background: var(--main-background-color); |     background: var(--main-background-color); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| #mobile-sidebar-container.show { | #mobile-sidebar-container.show #mobile-sidebar-wrapper { | ||||||
|     transform: translateX(0); |     transform: translateX(0); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran