owntone-server/web-src/src/mystyles.scss

317 lines
5.7 KiB
SCSS
Raw Normal View History

2022-02-19 00:18:01 -05:00
@charset "utf-8";
2022-02-19 00:18:01 -05:00
@import 'bulma/bulma.sass';
@import 'bulma-switch';
2022-02-19 00:18:01 -05:00
/* Volume slider */
.slider {
min-width: 250px;
width: 100%;
2022-02-19 00:18:01 -05:00
margin-top: 16px;
margin-bottom: 16px;
--slider-height: 4px;
--slider-connect-bg: hsl(0, 0%, 21%);
--slider-tooltip-bg: hsl(0, 0%, 21%);
--slider-handle-ring-color: #3b82f630;
--slider-handle-shadow: 0.5px 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.32);
--slider-handle-shadow-active: 0.5px 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.42);
}
2022-02-19 00:18:01 -05:00
/* Now playing progress bar */
.seek-slider {
min-width: 250px;
2022-02-19 00:18:01 -05:00
max-width: 500px;
width: 100% !important;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
margin: 0 auto 16px auto;
--slider-height: 4px;
--slider-connect-bg: hsl(171, 100%, 41%);
--slider-tooltip-bg: hsl(171, 100%, 41%);
--slider-handle-bg: hsl(171, 100%, 41%);
--slider-handle-border: 0;
--slider-handle-width: 10px;
--slider-handle-height: 10px;
--slider-handle-radius: 9999px;
--slider-handle-shadow: 0.5px 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.32);
--slider-handle-shadow-active: 0.5px 0.5px 0.5px 0.5px rgba(0, 0, 0, 0.42);
2022-02-19 00:18:01 -05:00
--slider-handle-ring-width: 3px;
}
.progress-bar {
background-color: $info;
border-radius: 9999px;
height: 4px;
}
.media.with-progress h2:last-of-type {
margin-bottom: 6px;
}
.media.with-progress {
margin-top: 0px;
}
a.navbar-item {
outline: 0;
line-height: 1.5;
padding: 0.5rem 1rem;
}
.fd-expanded {
flex-grow: 1;
flex-shrink: 1;
}
.fd-margin-left-auto {
margin-left: auto;
}
.fd-has-action {
cursor: pointer;
}
.fd-is-movable {
cursor: move;
}
.fd-has-margin-top {
margin-top: 24px;
}
.fd-has-margin-bottom {
margin-bottom: 24px;
}
.fd-remove-padding-bottom {
padding-bottom: 0;
}
.fd-has-padding-left-right {
padding-left: 24px;
padding-right: 24px;
}
.fd-is-square .button {
height: 27px;
min-width: 27px;
padding-left: 0.25rem;
padding-right: 0.25rem;
}
.fd-is-text-clipped {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.fd-tabs-section {
padding-bottom: 3px;
padding-top: 3px;
background: white;
top: 3.25rem;
z-index: 20;
position: fixed;
width: 100%;
}
section.fd-tabs-section + section.fd-content {
margin-top: 24px;
}
2020-05-16 07:54:24 -04:00
section.hero + section.fd-content {
padding-top: 0;
}
.fd-progress-bar {
top: 52px !important;
}
.fd-has-shadow img {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
2022-02-19 00:18:01 -05:00
.fd-page {
margin-top: 3.25rem;
margin-bottom: 3.25rem;
2022-02-19 00:18:01 -05:00
}
.fd-page-with-tabs {
margin-top: 6.25rem !important;
margin-bottom: 3.25rem;
2022-02-19 00:18:01 -05:00
}
2020-10-07 03:03:02 -04:00
/* Set minimum height to hide "option" section */
.fd-content-with-option {
min-height: calc(100vh - 3.25rem - 3.25rem);
2020-10-07 03:03:02 -04:00
}
/* Now playing page */
.fd-is-fullheight {
height: calc(100vh - 3.25rem - 3.25rem);
display: flex;
flex-direction: column;
justify-content: center;
}
.fd-is-fullheight .fd-is-expanded {
padding: 1.5rem;
overflow: hidden;
}
.fd-cover {
display: flex;
justify-content: center;
&-small-image {
width: 64px;
height: 64px;
img {
border-radius: $radius-small;
max-width: 64px;
max-height: 64px;
}
}
&-medium-image {
@include from($tablet) {
justify-content: right;
}
img {
border-radius: $radius;
max-height: calc(150px - 1.5rem);
}
}
&-normal-image {
img {
border-radius: $radius-large;
width: 100%;
}
}
&-big-image {
@include mobile {
@media screen and (orientation: landscape) {
img {
display: none;
}
}
}
img {
border-radius: $radius-large;
max-height: calc(100vh - 26rem);
}
}
}
.sortable-chosen .media-right {
visibility: hidden;
}
.sortable-ghost h1,
.sortable-ghost h2 {
color: hsl(348, 100%, 61%) !important;
}
.media:first-of-type {
padding-top: 17px;
margin-top: 16px;
}
/* Transition effect */
2022-02-19 00:18:01 -05:00
.fade-leave-active {
transition: opacity 0.2s ease;
}
2022-02-19 00:18:01 -05:00
.fade-enter-active {
transition: opacity 0.5s ease;
}
.fade-enter-from,
.fade-leave-to {
2022-02-19 00:18:01 -05:00
opacity: 0;
}
.fade-enter-to,
.fade-leave-from {
2022-02-19 00:18:01 -05:00
opacity: 1;
}
/* Add a little bit of spacing between title and subtitle */
.title:not(.is-spaced) + .subtitle {
margin-top: -1.3rem !important;
}
.title:not(.is-spaced) + .subtitle + .subtitle {
margin-top: -1.3rem !important;
}
/* Only scroll content if modal contains a card component */
.fd-modal-card {
overflow: visible;
}
.fd-modal-card .card-content {
max-height: calc(100vh - 200px);
overflow: auto;
}
.fd-modal-card .card {
margin-left: 16px;
margin-right: 16px;
}
.dropdown-item a {
display: block;
}
.dropdown-item:hover {
background-color: hsl(0, 0%, 96%);
}
.navbar-item .fd-navbar-item-level2 {
padding-left: 1.5rem;
}
hr.fd-navbar-divider {
margin: 12px 0;
}
/* Show scrollbar for navbar menu in desktop mode if content exceeds the screen size */
@media only screen and (min-width: 1024px) {
.navbar-dropdown {
max-height: calc(100vh - 3.25rem - 3.25rem - 2rem);
overflow: auto;
}
}
/* Limit the size of the bottom navbar menu to not be displayed behind the Safari browser menu on iOS */
.fd-bottom-navbar .navbar-menu {
max-height: calc(100vh - 3.25rem - 3.25rem - 1rem);
overflow: scroll;
}
.buttons {
@include mobile {
&.fd-is-centered-mobile {
justify-content: center;
&:not(.has-addons) {
.button:not(.is-fullwidth) {
margin-left: 0.25rem;
margin-right: 0.25rem;
}
}
}
}
}
.column {
&.fd-has-cover {
@include mobile {
margin: auto;
}
@include from($tablet) {
margin-right: 0;
}
}
}
.fd-overlay-fullscreen {
@extend .is-overlay;
z-index: 25;
background-color: rgba(10, 10, 10, 0.2);
position: fixed;
2020-05-16 07:54:24 -04:00
}
.hero-body {
padding: 1.5rem !important;
}