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

287 lines
5.3 KiB
SCSS
Raw Normal View History

2022-02-19 06:18:01 +01:00
@charset "utf-8";
2024-09-09 20:55:41 +02:00
@import 'bulma/bulma';
@import 'bulma/sass/utilities/mixins';
.fd-is-not-allowed {
cursor: not-allowed;
}
.fd-is-movable {
cursor: move;
}
.fd-is-text-clipped {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.fd-tabs-section {
padding-bottom: 0;
padding-top: 0;
2024-09-09 20:55:41 +02:00
background: var(--bulma-body-background-color);
z-index: 20;
position: fixed;
width: 100%;
}
.fd-has-shadow img {
2023-11-21 17:09:06 +01:00
box-shadow:
2024-09-09 20:55:41 +02:00
0 0.25rem 0.5rem 0 var(--bulma-background-active),
0 0.375rem 1.25rem 0 var(--bulma-background-active);
2022-02-19 06:18:01 +01:00
}
.is-full-height {
2024-09-09 20:55:41 +02:00
min-height: calc(100vh - calc(2 * var(--bulma-navbar-height)));
2020-10-07 09:03:02 +02:00
}
2024-03-28 15:45:39 +01:00
.is-disabled {
cursor: not-allowed;
opacity: 0.5;
> * {
pointer-events: none;
}
}
.fd-cover {
align-items: center;
display: flex;
justify-content: center;
&-small-image {
width: 4rem;
height: 4rem;
img {
2024-09-09 20:55:41 +02:00
border-radius: var(--bulma-radius-small);
max-width: 4rem;
max-height: 4rem;
}
}
&-medium-image {
2024-09-09 20:55:41 +02:00
@include tablet {
justify-content: right;
}
img {
2024-09-09 20:55:41 +02:00
border-radius: var(--bulma-radius);
max-height: calc(150px - 1.5rem);
}
}
&-normal-image {
img {
2024-09-09 20:55:41 +02:00
border-radius: var(--bulma-radius-large);
width: 100%;
}
}
&-big-image {
@include mobile {
@media screen and (orientation: landscape) {
img {
display: none;
}
}
}
img {
2024-09-09 20:55:41 +02:00
border-radius: var(--bulma-radius-large);
max-height: calc(100vh - 26rem);
}
&.is-masked {
filter: blur(0.5rem) opacity(0.2);
}
}
}
.media:first-of-type {
padding-top: 1rem;
}
/* Transition effect */
2022-02-19 06:18:01 +01:00
.fade-leave-active {
transition: opacity 0.2s ease;
}
2022-02-19 06:18:01 +01:00
.fade-enter-active {
transition: opacity 0.5s ease;
}
.fade-enter-from,
.fade-leave-to {
2022-02-19 06:18:01 +01:00
opacity: 0;
}
.fade-enter-to,
.fade-leave-from {
2022-02-19 06:18:01 +01:00
opacity: 1;
}
/* Only scroll content if modal contains a card component */
2024-03-05 13:25:07 +01:00
.modal-content .card-content {
max-height: calc(100vh - 200px);
overflow: auto;
}
/* Show scrollbar for navbar menu in desktop mode if content exceeds the screen size */
@include desktop {
.navbar-dropdown {
2024-09-09 20:55:41 +02:00
max-height: calc(100vh - calc(2 * var(--bulma-navbar-height)) - 2rem);
overflow: auto;
}
}
.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;
}
}
}
}
}
2024-09-09 20:55:41 +02:00
.heading {
display: block;
font-size: 0.75rem;
letter-spacing: 1px;
margin-bottom: 0px !important;
text-transform: uppercase;
}
.column {
&.fd-has-cover {
@include mobile {
margin: auto;
}
2024-09-09 20:55:41 +02:00
@include 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 13:54:24 +02:00
}
.hero-body {
padding: 1.5rem !important;
}
2024-09-09 20:55:41 +02:00
.dropdown-menu {
@include mobile {
width: 100vw;
}
}
.dropdown-content {
max-height: calc(100vh - calc(2 * var(--bulma-navbar-height)));
overflow: auto;
}
/* Slider */
@mixin thumb {
-webkit-appearance: none;
width: var(--th);
height: var(--th);
box-sizing: border-box;
border-radius: 50%;
2024-09-09 20:55:41 +02:00
background: var(--bulma-light);
border: 1px solid var(--bulma-grey-light);
2024-02-26 21:14:36 +01:00
@media (prefers-color-scheme: dark) {
2024-09-09 20:55:41 +02:00
background: var(--bulma-grey-light);
border: 1px solid var(--bulma-grey-dark);
2024-02-26 21:14:36 +01:00
}
}
@mixin thumb-inactive {
box-sizing: border-box;
2024-09-09 20:55:41 +02:00
background-color: var(--bulma-light);
2024-02-26 21:14:36 +01:00
@media (prefers-color-scheme: dark) {
2024-09-09 20:55:41 +02:00
background-color: var(--bulma-grey-dark);
border: 1px solid var(--bulma-grey-darker);
2024-02-26 21:14:36 +01:00
}
}
@mixin track {
height: calc(var(--sh));
border-radius: calc(var(--sh) / 2);
2024-09-09 20:55:41 +02:00
background: linear-gradient(
90deg,
var(--bulma-dark) var(--sx),
var(--bulma-grey-light) var(--sx)
);
2024-02-26 21:14:36 +01:00
@media (prefers-color-scheme: dark) {
background: linear-gradient(
90deg,
2024-09-09 20:55:41 +02:00
var(--bulma-grey-light) var(--sx),
var(--bulma-grey-dark) var(--sx)
2024-02-26 21:14:36 +01:00
);
}
}
@mixin track-inactive {
2024-09-09 20:55:41 +02:00
background: linear-gradient(
90deg,
var(--bulma-grey-light) var(--sx),
var(--bulma-light) var(--sx)
);
2024-02-26 21:14:36 +01:00
@media (prefers-color-scheme: dark) {
background: linear-gradient(
90deg,
2024-09-09 20:55:41 +02:00
var(--bulma-grey-dark) var(--sx),
var(--bulma-black-ter) var(--sx)
2024-02-26 21:14:36 +01:00
);
}
}
input[type='range'].slider {
--sh: 0.25rem;
--th: calc(var(--sh) * 4);
2024-02-26 21:14:36 +01:00
background-color: transparent;
@include mobile {
--th: calc(var(--sh) * 5);
}
2024-08-22 21:34:40 +02:00
& {
--sx: calc(var(--th) / 2 + (var(--ratio) * (100% - var(--th))));
-webkit-appearance: none;
min-width: 250px;
height: calc(var(--sh) * 5);
width: 100% !important;
cursor: grab;
}
&:active {
cursor: grabbing;
}
&::-webkit-slider-thumb {
@include thumb;
2024-08-22 21:34:40 +02:00
& {
margin-top: calc((var(--th) - var(--sh)) / -2);
}
}
&::-moz-range-thumb {
@include thumb;
}
&::-webkit-slider-runnable-track {
@include track;
}
&::-moz-range-track {
@include track;
}
&.is-inactive {
cursor: var(--cursor, not-allowed);
&::-webkit-slider-thumb {
2024-02-26 21:14:36 +01:00
@include thumb-inactive;
}
&::-webkit-slider-runnable-track {
2024-02-26 21:14:36 +01:00
@include track-inactive;
}
&::-moz-range-thumb {
2024-02-26 21:14:36 +01:00
@include thumb-inactive;
}
&::-moz-range-track {
2024-02-26 21:14:36 +01:00
@include track-inactive;
}
}
}