css changes to make scrollbar sticky
This commit is contained in:
		
							parent
							
								
									73b2b493a4
								
							
						
					
					
						commit
						3f6a74a45d
					
				
							
								
								
									
										3
									
								
								.vs/ProjectSettings.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.vs/ProjectSettings.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,3 @@ | ||||
| { | ||||
|   "CurrentProjectSetting": null | ||||
| } | ||||
							
								
								
									
										6
									
								
								.vs/VSWorkspaceState.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.vs/VSWorkspaceState.json
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,6 @@ | ||||
| { | ||||
|   "ExpandedNodes": [ | ||||
|     "" | ||||
|   ], | ||||
|   "PreviewInSolutionExplorer": false | ||||
| } | ||||
							
								
								
									
										
											BIN
										
									
								
								.vs/slnx.sqlite
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								.vs/slnx.sqlite
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										14995
									
								
								package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										14995
									
								
								package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -18,65 +18,73 @@ | ||||
|     </b-sidebar> | ||||
|   </div> | ||||
| </template> | ||||
| <style> | ||||
|   .sidebar-container .sidebar-fixed { | ||||
| <style lang="scss"> | ||||
| .sidebar-container { | ||||
|   .nav { | ||||
|     overflow-y: auto; | ||||
|     scrollbar-width: thin; | ||||
|     scrollbar-color: white transparent; | ||||
|     max-height: 100vh; | ||||
|     padding-bottom: 80px; | ||||
|     flex-wrap: nowrap; | ||||
|   } | ||||
|   .sidebar-fixed { | ||||
|     position: sticky; | ||||
|     top: 0; | ||||
|     padding-left: 0.5rem; | ||||
|     padding-right: 0.5rem; | ||||
|     padding-bottom: 180px; | ||||
|     width: 250px; | ||||
|   } | ||||
| 
 | ||||
|   .sidebar-container .sidebar-brand { | ||||
|   .sidebar-brand { | ||||
|     padding: 1rem 1rem 0.75rem; | ||||
|   } | ||||
| 
 | ||||
|   .sidebar-container .sidebar-heading { | ||||
|   .sidebar-heading { | ||||
|     padding: 0.5rem 1rem; | ||||
|     font-weight: bold; | ||||
|     text-transform: uppercase; | ||||
|     display: block; | ||||
|   } | ||||
| 
 | ||||
|   .sidebar-container .nav-link { | ||||
|   a.nav-link { | ||||
|     flex-shrink: 0; | ||||
|     width: calc(100%); | ||||
|     overflow: hidden; | ||||
|     text-overflow: ellipsis; | ||||
|     white-space: nowrap; | ||||
|   } | ||||
| 
 | ||||
|   .sidebar-container a.nav-link .b-icon { | ||||
|     .b-icon { | ||||
|       margin-right: 0.75rem; | ||||
|     } | ||||
| 
 | ||||
|   .sidebar-container .nav-link:not(.router-link-active) .b-icon { | ||||
|     &:not(.router-link-active) .b-icon { | ||||
|       color: var(--text-muted); | ||||
|     } | ||||
|   .sidebar-container .nav-link:hover { | ||||
|     &:hover { | ||||
|       color: inherit; | ||||
|       background-color: rgba(255, 255, 255, 0.045); | ||||
|     } | ||||
|   .sidebar-container .nav-link.router-link-active { | ||||
|     &.router-link-active { | ||||
|       color: var(--primary); | ||||
|       background-color: rgba(255, 255, 255, 0.045); | ||||
|   } | ||||
|   .sidebar-container .nav-link.router-link-active:hover { | ||||
|       &:hover { | ||||
|         color: var(--primary); | ||||
|       } | ||||
|     } | ||||
|   } | ||||
| } | ||||
| </style> | ||||
| <script lang="ts"> | ||||
|   import Vue from 'vue' | ||||
|   import Nav from './Nav.vue' | ||||
|   import { mapState, mapActions } from 'vuex' | ||||
| import Vue from "vue"; | ||||
| import Nav from "./Nav.vue"; | ||||
| import { mapState, mapActions } from "vuex"; | ||||
| 
 | ||||
| export default Vue.extend({ | ||||
|   components: { | ||||
|     Nav, | ||||
|   }, | ||||
|   computed: { | ||||
|       ...mapState(['showMenu']) | ||||
|     ...mapState(["showMenu"]), | ||||
|   }, | ||||
|   methods: { | ||||
|       ...mapActions(['hideMenu']), | ||||
|     ...mapActions(["hideMenu"]), | ||||
|   }, | ||||
|   }) | ||||
| }); | ||||
| </script> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user