mirror of
				https://github.com/valentineus/popov.link.git
				synced 2025-11-04 06:49:45 +03:00 
			
		
		
		
	feat(css): Style navigation bar
Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
		@@ -1 +1,2 @@
 | 
			
		||||
@import 'components/core';
 | 
			
		||||
@import 'components/navigation';
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										42
									
								
								_scss/components/_navigation.scss
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								_scss/components/_navigation.scss
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,42 @@
 | 
			
		||||
.nav-pills {
 | 
			
		||||
  list-style-type: none;
 | 
			
		||||
  margin: 0;
 | 
			
		||||
  overflow: hidden;
 | 
			
		||||
  padding: 0;
 | 
			
		||||
  text-align: center;
 | 
			
		||||
 | 
			
		||||
  li {
 | 
			
		||||
    float: left;
 | 
			
		||||
    padding: .5em;
 | 
			
		||||
 | 
			
		||||
    &:first-child {
 | 
			
		||||
      padding-left: 0;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    &:last-child {
 | 
			
		||||
      padding-right: 0;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.nav-link {
 | 
			
		||||
  text-align: center;
 | 
			
		||||
  text-decoration: none;
 | 
			
		||||
 | 
			
		||||
  &:focus,
 | 
			
		||||
  &:hover {
 | 
			
		||||
    border: 0;
 | 
			
		||||
    text-decoration: underline;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
.nav-right {
 | 
			
		||||
  float: right;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@media (max-width: 382px) {
 | 
			
		||||
  .nav-right,
 | 
			
		||||
  .nav-pills li {
 | 
			
		||||
    float: none;
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user