4 changed files with 81 additions and 21 deletions
			
			
		- 
					2src/components/layout/Layout.tsx
- 
					13src/components/layout/MagicImage.tsx
- 
					46src/components/layout/Sidebar.module.sass
- 
					41src/components/layout/Sidebar.tsx
| @ -1,25 +1,49 @@ | |||
| div.sidebar | |||
| .sidebar | |||
|   position: fixed | |||
|   width: 4ch | |||
|   height: calc(100%) | |||
|   width: 4.5ch | |||
|   height: 100% | |||
|   background-color: black | |||
|   display: flexbox | |||
|   flex-direction: row | |||
|   justify-content: center | |||
|   display: flex | |||
|   flex-direction: column | |||
| 
 | |||
|   &:hover .sidebarItem | |||
|     color: #777 | |||
|   transition: 250ms | |||
| 
 | |||
|   &:hover | |||
|     width: 20ch; | |||
| 
 | |||
|     .sidebarItem | |||
|       color: #777 | |||
| 
 | |||
|       .sidebarItemText | |||
|         opacity: 1 | |||
| 
 | |||
| div.sidebarItem | |||
|   color: white | |||
|   padding: 0.5em | |||
|   padding-bottom: 0 | |||
|   padding-top: 0.333em | |||
|   transition: 250ms | |||
|   color: #333 | |||
|   white-space: nowrap | |||
| 
 | |||
|   svg | |||
|     margin-left: 0.5ch | |||
|     height: 1.5em | |||
| 
 | |||
|   &:hover | |||
|     background-color: #222 | |||
|     color: #fc1 !important | |||
| 
 | |||
| 
 | |||
|   .sidebarItemIcon | |||
|     display: inline-block | |||
|     height: 2em | |||
|     width: 3.5ch | |||
|     text-align: center | |||
|   .sidebarItemText | |||
|     display: inline-block | |||
|     vertical-align: top | |||
|     opacity: 0 | |||
|     height: 2em | |||
|     margin-left: 1ch | |||
| 
 | |||
| div.sidebarItemSkip | |||
|   margin-top: auto | |||
|   margin: auto 0 0 0 | |||
						Write
						Preview
					
					
					Loading…
					
					Cancel
						Save
					
		Reference in new issue