Add small-screen layout for main navigation
This commit is contained in:
		
							parent
							
								
									c62ce00184
								
							
						
					
					
						commit
						9372ea7343
					
				| @ -1,4 +1,5 @@ | |||||||
| @import "variables"; | @import "variables"; | ||||||
|  | @import "mediaqueries"; | ||||||
| 
 | 
 | ||||||
| #main-nav { | #main-nav { | ||||||
|   width: 100%; |   width: 100%; | ||||||
| @ -12,15 +13,34 @@ | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   ul { |   ul { | ||||||
|  |     @include media-max(large) { | ||||||
|  |       display: grid; | ||||||
|  |       grid-template-columns: repeat(1fr); | ||||||
|  |       grid-template-columns: 1fr 1fr 1fr; | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     li { |     li { | ||||||
|  |       @include media-min(large) { | ||||||
|         display: inline; |         display: inline; | ||||||
|  |       } | ||||||
|  | 
 | ||||||
|  |       @include media-max(large) { | ||||||
|  |         display: block; | ||||||
|  |       } | ||||||
| 
 | 
 | ||||||
|       a { |       a { | ||||||
|         display: inline-block; |         display: inline-block; | ||||||
|         padding: 1.5rem; |         padding: 1.5rem 2rem; | ||||||
|         text-decoration: none; |         text-decoration: none; | ||||||
|         color: $text-color-discreet; |         color: $text-color-discreet; | ||||||
| 
 | 
 | ||||||
|  |         @include media-max(large) { | ||||||
|  |           display: block; | ||||||
|  |           text-align: center; | ||||||
|  |           padding-left: 0; | ||||||
|  |           padding-right: 0; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|         &.active { |         &.active { | ||||||
|           color: $text-color-body; |           color: $text-color-body; | ||||||
|           border-bottom: 2px solid #ffd000; |           border-bottom: 2px solid #ffd000; | ||||||
|  | |||||||
| @ -1,7 +1,5 @@ | |||||||
| <nav id="main-nav"> | <nav id="main-nav"> | ||||||
|   <div class="wrapper"> |   <div class="wrapper"> | ||||||
|     <div class="site"> |  | ||||||
|     </div> |  | ||||||
|     <ul class="pages"> |     <ul class="pages"> | ||||||
|       <li> |       <li> | ||||||
|         <%= link_to "Services", root_path, |         <%= link_to "Services", root_path, | ||||||
| @ -16,7 +14,5 @@ | |||||||
|               class: @current_section == "invitations" ? "active" : nil %> |               class: @current_section == "invitations" ? "active" : nil %> | ||||||
|       </li> |       </li> | ||||||
|     </ul> |     </ul> | ||||||
|     <div class="user"> |  | ||||||
|     </div> |  | ||||||
|   </div> |   </div> | ||||||
| </nav> | </nav> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user