mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 05:52:56 +00:00 
			
		
		
		
	Move scrollbar nicener mixin to separate file
This commit is contained in:
		@@ -21,24 +21,6 @@
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@mixin set-scrollbar-style() {
 | 
			
		||||
  ::-webkit-scrollbar-track
 | 
			
		||||
  {
 | 
			
		||||
    background-color: #F5F5F5;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ::-webkit-scrollbar
 | 
			
		||||
  {
 | 
			
		||||
    width: 4px;
 | 
			
		||||
    background-color: #F5F5F5;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ::-webkit-scrollbar-thumb
 | 
			
		||||
  {
 | 
			
		||||
    background-color: gray;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.tfw-grid-main-components {
 | 
			
		||||
  display: grid;
 | 
			
		||||
  width: 100vw;
 | 
			
		||||
@@ -74,13 +56,10 @@
 | 
			
		||||
    div[class="terminal-ide-web"] & {
 | 
			
		||||
      max-height: 55vmin;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @include set-scrollbar-style();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .tfw-ide {
 | 
			
		||||
    background-color: $tao-plum-900;
 | 
			
		||||
    @include set-scrollbar-style();
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  .tfw-sidebar {
 | 
			
		||||
@@ -97,8 +76,6 @@
 | 
			
		||||
  .tfw-terminal {
 | 
			
		||||
    overflow-y: hidden;
 | 
			
		||||
    background-color: $tao-gray-800;
 | 
			
		||||
    @include set-scrollbar-style();
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
    div[class*="web"] & {
 | 
			
		||||
      border-top: 1px solid $tao-plum-100;
 | 
			
		||||
 
 | 
			
		||||
@@ -5,9 +5,8 @@
 | 
			
		||||
  'variables',
 | 
			
		||||
  'grid';
 | 
			
		||||
 | 
			
		||||
@import
 | 
			
		||||
  'mixins/scrollbar';
 | 
			
		||||
 | 
			
		||||
@import
 | 
			
		||||
  'shared/buttons';
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										17
									
								
								src/assets/scss/mixins/_scrollbar.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								src/assets/scss/mixins/_scrollbar.scss
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
@mixin set-scrollbar-style() {
 | 
			
		||||
  ::-webkit-scrollbar-track
 | 
			
		||||
  {
 | 
			
		||||
    background-color: #F5F5F5;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ::-webkit-scrollbar
 | 
			
		||||
  {
 | 
			
		||||
    width: 4px;
 | 
			
		||||
    background-color: #F5F5F5;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  ::-webkit-scrollbar-thumb
 | 
			
		||||
  {
 | 
			
		||||
    background-color: gray;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user