// sass --watch css/admin.sass:css/admin.css @import "variables.sass" $header-height: 60px $aside-width: 220px .nav-bar.flex-row z-index: 7 position: fixed height: $header-height background-color: $c-accent box-shadow: $box-shadow justify-content: space-between a width: 200px transition: box-shadow $transition, background-color $transition &:hover div box-shadow: $box-shadow &:focus, &:active div box-shadow: $box-shadow background-color: $c-accent-light div cursor: pointer transition: box-shadow $transition, background-color $transition height: $header-height min-width: 0 width: 100% line-height: $header-height text-align: center font-size: 20px &.active border-bottom: 2px solid white box-sizing: border-box a:first-child, a:last-child width: $header-height div width: $header-height background-repeat: no-repeat background-position: center background-image: url("/cdn/icons/menu.png") a:last-child div background-image: url("/cdn/icons/logout.png") body > div.loading width: 100% height: 100% position: fixed background-color: $c-darker z-index: 99 aside z-index: 7 position: fixed width: $aside-width height: 100% background-color: $c-darkest top: $header-height box-shadow: $box-shadow transform: translateX(-$aside-width - 5px) transition: transform $transition-l &.loading transition: none &.open transform: translateX(0px) div.current-page border-left: 2px solid $c-contrast div.search input width: calc(#{$aside-width} - #{$input-padding} * 2 - 20px) margin: 10px background-color: $c-darker border-radius: 3px font-size: 15px transition: box-shadow $transition-l, background-color $transition-l &:hover box-shadow: $box-shadow-min &:focus, &:active box-shadow: $box-shadow-min background-color: $c-dark div.artist, div.track cursor: pointer transition: background-color $transition, box-shadow .15s &:hover box-shadow: $box-shadow-min background-color: $c-darker &:focus, &:active box-shadow: $box-shadow-min background-color: $c-dark &.active border-right: 2px solid white p padding: 10px div.track p:first-child padding: 10px 10px 1px 10px p:last-child padding: 1px 10px 10px 10px color: $c-contrast-slightly-dark font-size: 14px main z-index: 3 overflow: scroll padding-top: 15px height: calc(100% - #{$header-height} - 15px) position: fixed left: $aside-width top: $header-height min-width: 580px width: 100% transform: translateX(-220px) transition: transform $transition-l, width $transition-l &.loading transition: none &.open width: calc(100% - #{$aside-width}) transform: translateX(0px) section.artist-track-info form box-shadow: $box-shadow-min &::before width: 100% height: 10px background-color: $c-darker content: "" position: absolute transform: translateY(-10px) section.track-links input font-size: 15px input font-size: 16px transition: box-shadow $transition, background-color $transition-l &:hover box-shadow: $box-shadow-min &:focus, &:active box-shadow: $box-shadow background-color: $c-dark div.static max-width: 1000px margin: 0px auto justify-content: space-between flex-direction: row-reverse &.description padding-top: 10px justify-content: center flex-direction: row max-width: 560px input margin: 0px 5px &:nth-child(1) margin-left: 0px width: 100% &:nth-child(2) width: 130px font-size: 15px &:nth-child(3) margin-right: 0px width: 85px text-align: center font-size: 15px div width: auto min-width: 290px input margin: 0px 5px width: 204px min-width: 75px &.catnum min-width: 60px width: 60px text-align: center font-size: 15px &:first-child margin-left: 0px &:last-child margin-right: 0px input background-color: $c-dark &:hover, &:active, &:focus background-color: $c-accent-secondary &.submit cursor: pointer margin: 0px 20px min-width: 43px width: 43px height: 43px background-repeat: no-repeat background-position: center border-radius: 50px background-color: $c-accent-secondary &:hover, &:active, &:focus background-color: $c-accent-secondary &.update background-image: url("/cdn/icons/save.png") &.delete background-image: url("/cdn/icons/delete.png") &.create background-image: url("/cdn/icons/plus.png") &.spacer visibility: hidden section.artist-links, section.track-links padding-top: 15px p, input.linkname width: 90px text-align: right p min-width: 90px padding: $input-link-list-padding font-size: 16px color: $c-contrast-dark div.icon width: 20px background-size: contain margin-right: 10px background-repeat: no-repeat background-position: center &.website background-image: url("/cdn/icons/sm/home.png") &.download background-image: url("/cdn/icons/download.png") &.soundcloud background-image: url("/cdn/icons/sm/soundcloud.png") &.youtube background-image: url("/cdn/icons/sm/youtube.png") &.facebook background-image: url("/cdn/icons/sm/facebook.png") &.twitter background-image: url("/cdn/icons/sm/twitter.png") &.instagram background-image: url("/cdn/icons/sm/instagram.png") &.spotify background-image: url("/cdn/icons/sm/spotify.png") &.beatport background-image: url("/cdn/icons/sm/beatport.png") &.itunes background-image: url("/cdn/icons/sm/apple.png") &.googleplaymusic background-image: url("/cdn/icons/sm/googleplaymusic.png") &.bandcamp background-image: url("/cdn/icons/sm/bandcamp.png") input padding: $input-link-list-padding &.link width: 500px min-width: 150px > div padding: 0px 15px width: calc(100% - 30px) transition: box-shadow $transition, background-color $transition &:hover box-shadow: $box-shadow-min background-color: $c-dark-25 a.file button, label font-size: 14px cursor: pointer display: block width: 100px border-radius: 3px padding: $button-padding padding-left: 34px color: $c-contrast background-color: $c-dark text-align: left background-repeat: no-repeat background-position: 6px &.upload background-image: url("/cdn/icons/upload.png") &.download background-image: url("/cdn/icons/download.png") transition: box-shadow $transition, background-color $transition &:hover box-shadow: $box-shadow-min background-color: $c-accent &:focus, &:active box-shadow: $box-shadow background-color: $c-accent button.filee width: 140px border-radius: 3px padding: $button-padding padding-left: calc(34px) color: $c-contrast background-color: $c-dark text-align: left background-repeat: no-repeat background-position: 6px &.upload background-image: url("/cdn/icons/upload.png") &.download background-image: url("/cdn/icons/download.png") &.js-textareacopybtn background-image: url("/cdn/icons/copy.png") transition: box-shadow $transition, background-color $transition &:hover box-shadow: $box-shadow-min background-color: $c-accent &:focus, &:active box-shadow: $box-shadow background-color: $c-accent textarea.description position: fixed transform: translateY(-90px) z-index: -1 opacity: 0 section.darker-section overflow-x: scroll background-color: $c-darkest-50 padding: 30px 0px &.artists-page justify-content: flex-start div.card width: 200px padding: 0px 15px div transition: box-shadow $transition &:hover, &:active, &:focus box-shadow: $box-shadow > a color: $c-contrast-slightly-dark height: 100% width: 100% div padding: 5px 5px 0px 5px p.artists padding: 0px 5px 5px 5px background-color: $c-dark color: $c-contrast-slightly-dark &.tracks-page padding: 5px a color: $c-contrast transition: color $transition &:hover, &:active, &:focus color: $c-link img width: 200px height: 200px display: block div background-color: $c-dark height: 19px white-space: nowrap overflow: hidden text-overflow: ellipsis display: flex flex-wrap: nowrap justify-content: flex-start &.tracks-page div.card margin: 0px 15px div justify-content: space-around height: 200px img width: 200px height: 200px display: block button.eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee &:nth-child(1) background-image: url("/cdn/icons/upload.png") background-color: $c-accent display: block &:focus, &:active, &:hover background-color: $c-accent-light display: none &.media-exists &:nth-child(1) background-color: $c-darker &:focus, &:active, &:hover background-color: $c-accent-dark display: block p text-align: center padding: $button-padding font-size: 14px section.other-files // NOT FOR PRODUCTION margin-top: 10px button margin: 0px 5px 10px 5px z-index: 5 section.bottom-filler height: 10px transform: rotateZ(180deg) box-shadow: $box-shadow-min &:last-child height: 20px &::after width: 100% height: 10px background-color: $c-darker content: "" position: absolute transform: translateY(-10px) .login div background-color: $c-darker margin: 10px input width: 160px text-align: center font-size: 20px transition: box-shadow $transition, background-color $transition &:hover, &:focus, &:active background-color: $c-accent box-shadow: $box-shadow &.incorrect border: 1px solid #c63535 main.sitemap div justify-content: space-around max-width: 1300px margin: auto div width: 300px p text-align: center