/* # ----------------------------------------------------------------------------- # ~/assets/theme/j1/modules/amplitudejs/scss/theme/uno/player/compact.scss # AmplitudeJS v5.3.2 Mini Player for J1 templ # # Product/Info: # https://jekyll.one # # Copyright (C) 2023, 2024 Juergen Adams # # J1 Template is licensed under the MIT License. # See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE # ----------------------------------------------------------------------------- */ // Variables // --------------------------------------------------------- $font-family: "Lato", sans-serif; $color_1: var(--ajs-theme-uno--white); $color_2: var(--ajs-theme-uno--blue); $color_3: var(--ajs-theme-uno--gray-300); $background-color_1: var(--ajs-theme-uno--dark-silver); $background-color_2: var(--ajs-theme-uno--blue-gray-900); $background-color_3: var(--ajs-theme-uno--black); $background-color_4: var(--ajs-theme-uno--darker-silver); $background-color_5: var(--ajs-theme-uno--medium-silver); $border-color_1: var(--ajs-theme-uno--medium-silver); // Styles // --------------------------------------------------------- @-webkit-keyframes slide-in-top { 0% { -webkit-transform: translateY(-10px); transform: translateY(-10px); opacity: 0; } 100% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; } } @keyframes slide-in-top { 0% { -webkit-transform: translateY(-10px); transform: translateY(-10px); opacity: 0; } 100% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; } } @-webkit-keyframes slide-out-top { 0% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; } 100% { -webkit-transform: translateY(-10px); transform: translateY(-10px); opacity: 0; } } @keyframes slide-out-top { 0% { -webkit-transform: translateY(0); transform: translateY(0); opacity: 1; } 100% { -webkit-transform: translateY(-10px); transform: translateY(-10px); opacity: 0; } } .compact-player { max-width: 475px; border: solid 1px; border-color: $border-color_1; } .compact-player-container { position: relative; max-width: max-content; overflow-y: clip; } .meta-container.compact-player { height: 120px; } div.player-top { position: relative; img[data-amplitude-song-info="cover_art_url"] { width: 100%; } } div.compact-player-header { position: relative; padding: 15px; cursor: pointer; text-align: center; font-family: $font-family; color: $color_1; background-color: $background-color_1; } .compact-player-header-arrows { position: absolute; top: 23px; left: 15px; } .compact-player-header-arrows.arrow-down { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/up.svg") no-repeat; } .compact-player-header-arrows.arrow-up { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/down.svg") no-repeat; } div#compact_player_control_container { margin-top: 20px; margin-bottom: 20px; &:after { content: ""; display: table; clear: both; } div.volume-container { float: left; width: 88%; margin-top: 20px; margin-left: 12px; &:after { content: ""; display: table; clear: both; } div.volume-controls { input[type=range] { width: calc(100% - 45px); } } } div.amplitude-mute { float: left; cursor: pointer; width: 25px; height: 19px; margin-left: 20px; } div.amplitude-mute.amplitude-muted { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/mute.svg") no-repeat; } div.amplitude-mute.amplitude-not-muted { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/volume.svg") no-repeat; } } div#compact_player_controls { height: 65px; div.compact-player-controls-container { text-align: center; } } div.compact-player-middle { padding: 10px 10px 10px 10px; background-color: $background-color_2; div.compact-player-controls-container { display: block; div#compact_player_shuffle { display: inline-block; cursor: pointer; width: 24px; height: 24px; vertical-align: middle; margin-right: 25px; &:hover { opacity: 0.5; } } div#compact_player_shuffle.amplitude-shuffle-off { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/shuffle-off.svg") no-repeat; } div#compact_player_shuffle.amplitude-shuffle-on { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/shuffle-on.svg") no-repeat; } div#compact_player_previous { display: inline-block; cursor: pointer; vertical-align: middle; width: 24px; height: 24px; margin-right: 20px; margin-left: 20px; display: inline-block; cursor: pointer; height: 24px; width: 24px; margin-right: 20px; vertical-align: middle; background: url(/assets/theme/j1/modules/amplitudejs/icons/player/dark/previous.svg) no-repeat; } div#compact_player_play_pause { display: inline-block; cursor: pointer; width: 60px; height: 60px; vertical-align: middle; &:hover { opacity: .5; } } div#compact_player_play_pause.amplitude-paused { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/play.svg") no-repeat; } div#compact_player_play_pause.amplitude-playing { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/pause.svg") no-repeat; } div#compact_player_next { display: inline-block; cursor: pointer; height: 24px; width: 24px; margin-right: 25px; margin-left: 20px; vertical-align: middle; background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/next.svg") no-repeat; &:hover { opacity: .5; } } div#compact_player_repeat { display: inline-block; cursor: pointer; width: 24px; height: 24px; vertical-align: middle; margin-right: 25px; } div#compact_player_repeat.amplitude-repeat-off { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/repeat-off.svg") no-repeat; } div#compact_player_repeat.amplitude-repeat-on { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/repeat-on.svg") no-repeat; } &::after { content: ""; display: table; clear: both; } } div.large-player-controls-container { div#compact_player_repeat { &:hover { opacity: .5; } } } div.volume-container { img { display: block; float: left; } &:after { content: ""; display: table; clear: both; } } div.volume-controls { div.amplitude-mute.amplitude-not-muted { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/volume.svg") no-repeat; } div.amplitude-mute.amplitude-muted { background: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/mute.svg") no-repeat; } } } } { div.compact-player-middle { div.compact-player-controls-container { div#compact_player_previous { &:hover { opacity: 0.5; } } } } } div.player-bottom { background-color: $background-color_3; } .compact-player-title-list { display: block; height: 550px; overflow-y: scroll; } .playlist-screen-meta-container { float: left; width: calc(100% - 123px); } div.compact-player-volume-container { margin-top: 20px; } div.compact-player-playlist { background-color: $background-color_3; position: absolute; top: 0; right: 0; left: 0; bottom: 0; z-index: 9999; display: none; max-width: 475px; div.compact-player-title-list { height: 600px; overflow-y: scroll; div.song { padding: 15px; cursor: pointer; line-height: 24px; background-color: $background-color_4; span.song-number-now-playing { display: inline-block; width: 24px; text-align: center; span.number { opacity: 0.5; font-family: $font-family; font-size: 14px; letter-spacing: 0.5px; color: $color_1; } img.now-playing { display: none; } } div.song-meta-container { display: inline-block; margin-left: 20px; vertical-align: middle; width: calc(100% - 120px); span.song-name { display: block; font-family: $font-family; font-size: 20px; line-height: 20px; letter-spacing: 0.47px; color: $color_2; } span.song-artist-album { display: block; font-family: $font-family; font-size: 16px; line-height: 28px; letter-spacing: 0.47px; color: $color_3; } } span.audio-duration { font-family: $font-family; font-size: 16px; line-height: 28px; color: $color_3; } span.song-duration { display: inline-block; opacity: 0.5; width: 35px; font-family: $font-family; font-size: 18px; letter-spacing: 0.5px; text-align: center; color: $color_1; } img.audio-info-blue { float: right; display: block; margin-top: 10px; } img.audio-info-white { float: right; display: none; margin-top: 10px; } } div.song.amplitude-active-song-container { background-color: $background-color_5 !important; span.song-number-now-playing { img.now-playing { display: inline-block; height: 16px; width: 16px; margin-top: 5px; margin-left: 10px; } span.number { display: none; } } } } div.playlist-screen-controls { div.playlist-screen-meta-container { float: left; width: calc(100% - 123px); span.song-name { font-family: $font-family; font-size: 22px; letter-spacing: 0.5px; line-height: 24px; margin-left: 38px; color: $color_1; } div.song-artist-album { opacity: 0.5; font-family: $font-family; font-size: 16px; letter-spacing: 0.5px; line-height: 16px; margin-left: 38px; color: $color_1; } } div.list-controls { float: right; width: 90px; margin-top: 8px; div.list-previous { float: left; cursor: pointer; width: 15px; height: 17px; margin-right: 15px; margin-top: 4px; background-repeat: no-repeat; background-image: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/previous.svg"); &:hover { opacity: 0.5; } } div.list-play-pause { float: left; cursor: pointer; width: 17px; height: 24px; &:hover { opacity: 0.5; } } div.list-play-pause.amplitude-playing { background-repeat: no-repeat; background-image: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/pause.svg"); } div.list-play-pause.amplitude-paused { background-repeat: no-repeat; background-image: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/play.svg"); } div.list-next { float: left; cursor: pointer; width: 15px; height: 17px; margin-left: 15px; margin-top: 4px; background-repeat: no-repeat; background-image: url("/assets/theme/j1/modules/amplitudejs/icons/player/dark/small/next.svg"); &:hover { opacity: 0.5; } } } } } .slide-in-top { -webkit-animation: slide-in-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; animation: slide-in-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both; } .slide-out-top { -webkit-animation: slide-out-top 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both; animation: slide-out-top 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) both; } @media screen and (max-width: 39.9375em) { input[type=range].amplitude-volume-slider { width: calc(100% - 100px); } div.compact-player-playlist { div.playlist-screen-controls { div.playlist-screen-meta-container { span.song-name { margin-left: 0; } } } } }