@import "constants"; @import "fonts"; .sidebar-text, .sidebar-links { h1 { margin: 0; :hover { color: lighten($primary-highlight, 14%); } } h6 { text-transform: uppercase; color: $text-colour-light; } a { text-decoration: none; color: $primary-highlight; &:hover, &:focus { color: lighten($primary-highlight, 14%); } } } #sidebar { display: flex; top: 0; position: fixed; z-index: 9999; background: $sidebar-colour; color: $text-colour-light; transition: all .35s ease; } @media only screen and (orientation: portrait) { #sidebar { flex-direction: row; justify-content: space-between; align-items: center; text-align: center; } .sidebar { width: 100%; height: $sidebar-height; } .sidebar-minimised { width: 100%; height: $sidebar-height-min; } .sidebar-header { display: flex; margin-left: 1em; } .sidebar-image-container { margin-right: 1em; } .sidebar-image { width: 80px; height: 80px; border-radius: 50%; } .sidebar-text { h1 { font-size: 2.5em; margin-top: -0.3em; } h6 { font-size: 1.3em; margin: 0; } text-align: start; } .sidebar-links { font-size: 1.5em; margin-right: 1em; text-align: end; } .content { flex: 1; max-width: 100%; margin: 190px 1em 1em 1em; display: flex; flex-direction: column; align-items: center; } #content-fader { position: fixed; bottom: 0; right: 0; height: calc(100% - #{$sidebar-height}); width: 100%; z-index: 9999; pointer-events: none; background: white; opacity: 1; animation-duration: .35s; animation-timing-function: ease; } #sidebar-fader { position: fixed; top: 0; left: 0; height: $sidebar-height; width: 100%; z-index: 9999; pointer-events: none; background: $sidebar-colour; opacity: 1; animation-duration: .35s; animation-timing-function: ease; } } @media only screen and (orientation: landscape) { #sidebar { flex-direction: column; text-align: center; justify-content: center; } .sidebar, .sidebar-minimised { width: $sidebar-width; height: 100%; } .sidebar-image { width: 200px; height: 200px; border-radius: 50%; } .content { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: space-between; margin: 1em 1em 1em calc(1em + #{$sidebar-width}); } .sidebar-links { margin-top: 1.67em; } #content-fader { position: fixed; top: 0; right: 0; width: calc(100% - #{$sidebar-width}); height: 100%; z-index: 9999; pointer-events: none; background: white; opacity: 1; animation-duration: .35s; animation-timing-function: ease; } #sidebar-fader { position: fixed; bottom: 0; left: 0; height: 100%; width: $sidebar-width; z-index: 9999; pointer-events: none; background: $sidebar-colour; opacity: 1; animation-duration: .35s; animation-timing-function: ease; } } @keyframes fade-out { from { opacity: 1 } to { opacity: 0 } } @keyframes fade-in { from { opacity: 0 } to { opacity: 1 } } #content-fader.fade-out { opacity: 0; animation-name: fade-out; } #content-fader.fade-in { opacity: 1; animation-name: fade-in; } #sidebar-fader.fade-out { opacity: 0; animation-name: fade-out; } #sidebar-fader.fade-in { opacity: 1; animation-name: fade-in; }