cyp/app/app.css

899 lines
16 KiB
CSS
Raw Normal View History

2019-03-27 00:07:52 +08:00
*,
*::before,
*::after {
box-sizing: inherit;
}
2019-03-26 19:35:47 +08:00
html {
2019-03-29 23:28:26 +08:00
background-color: var(--fg);
2019-03-26 19:35:47 +08:00
}
2019-03-20 05:56:39 +08:00
body {
2020-03-09 05:11:46 +08:00
margin: 0;
}
cyp-app {
2019-04-03 01:19:46 +08:00
flex-direction: column;
2019-03-27 00:07:52 +08:00
box-sizing: border-box;
2019-03-26 22:40:23 +08:00
font-family: lato, sans-serif;
2019-04-01 04:02:26 +08:00
line-height: 1.25;
2019-03-29 23:28:26 +08:00
background-color: var(--bg);
color: var(--fg);
2019-04-16 15:03:42 +08:00
text-shadow: var(--text-shadow);
2019-03-26 17:09:26 +08:00
max-width: 800px;
margin: 0 auto;
overflow: hidden;
2019-03-20 05:56:39 +08:00
height: 100vh;
}
2020-03-09 05:11:46 +08:00
cyp-app:not([hidden]) {
display: flex;
}
2019-04-16 15:03:42 +08:00
header,
footer {
z-index: 1;
box-shadow: var(--box-shadow);
2019-03-22 23:17:10 +08:00
}
2019-03-26 22:40:23 +08:00
input,
select,
button {
color: inherit;
2019-04-01 04:02:26 +08:00
font: inherit;
2019-03-26 22:40:23 +08:00
}
button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
2019-04-03 01:19:46 +08:00
flex-direction: row;
align-items: center;
display: inline-flex;
2019-04-15 03:02:21 +08:00
white-space: nowrap;
2019-03-26 22:40:23 +08:00
background-color: transparent;
padding: 0;
border: none;
line-height: 1;
cursor: pointer;
}
2020-03-09 05:11:46 +08:00
button:not([hidden]) {
display: flex;
}
2019-04-03 01:52:53 +08:00
select {
background-color: transparent;
border: 1px solid var(--fg);
border-radius: 4px;
padding: 2px 4px;
}
2019-03-26 19:35:47 +08:00
@font-face {
2019-10-01 21:20:38 +08:00
font-family: "Lato";
src: url("font/LatoLatin-Regular.woff2") format("woff2");
2019-03-26 19:35:47 +08:00
font-style: normal;
font-weight: normal;
}
@font-face {
2019-10-01 21:20:38 +08:00
font-family: "Lato";
src: url("font/LatoLatin-Bold.woff2") format("woff2");
2019-03-26 19:35:47 +08:00
font-style: bold;
font-weight: normal;
}
2019-03-28 22:23:28 +08:00
.icon {
width: 24px;
2019-04-16 14:40:16 +08:00
flex-shrink: 0;
2019-03-28 22:23:28 +08:00
}
.icon path:not([fill]),
.icon polygon:not([fill]),
.icon circle:not([fill]) {
fill: currentColor;
}
2019-04-03 01:19:46 +08:00
.flex-row {
flex-direction: row;
align-items: center;
}
2020-03-09 05:11:46 +08:00
.flex-row:not([hidden]) {
2019-04-03 01:19:46 +08:00
display: flex;
2020-03-09 05:11:46 +08:00
}
.flex-column {
2019-04-03 01:19:46 +08:00
flex-direction: column;
}
2020-03-09 05:11:46 +08:00
.flex-column:not([hidden]) {
display: flex;
}
2019-04-03 01:19:46 +08:00
.long-line {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.multiline {
flex-direction: row;
align-items: center;
}
2020-03-09 05:11:46 +08:00
.multiline:not([hidden]) {
display: flex;
}
2019-04-03 01:19:46 +08:00
.multiline h2 {
font-weight: normal;
}
2019-04-25 22:09:48 +08:00
x-range {
2019-04-26 19:48:23 +08:00
--thumb-size: 8px;
--thumb-color: #fff;
--thumb-shadow: #000;
2019-04-30 16:02:34 +08:00
--thumb-hover-color: #ddd;
2019-04-26 19:48:23 +08:00
--track-size: 4px;
2019-04-30 16:02:34 +08:00
--track-color: #888;
--track-shadow: #000;
--elapsed-color: #ddd;
2019-04-26 19:48:23 +08:00
--remaining-color: transparent;
--radius: calc(var(--track-size)/2);
2019-10-01 21:20:38 +08:00
display: inline-block;
position: relative;
2019-04-30 15:42:16 +08:00
width: 192px;
2019-04-25 22:09:48 +08:00
height: 16px;
}
x-range .-track,
2019-04-26 19:48:23 +08:00
x-range .-elapsed,
x-range .-remaining {
2019-04-25 22:09:48 +08:00
position: absolute;
2019-04-26 19:48:23 +08:00
top: calc(50% - var(--track-size)/2);
height: var(--track-size);
border-radius: var(--radius);
2019-04-25 22:09:48 +08:00
}
x-range .-track {
width: 100%;
2019-04-26 19:48:23 +08:00
left: 0;
2019-04-30 16:02:34 +08:00
background-color: var(--track-color);
box-shadow: 0 0 1px var(--thumb-shadow);
2019-04-26 19:48:23 +08:00
}
x-range .-elapsed {
left: 0;
background-color: var(--elapsed-color);
}
x-range .-remaining {
right: 0;
background-color: var(--remaining-color);
}
x-range .-inner {
position: absolute;
left: var(--thumb-size);
right: var(--thumb-size);
top: 0;
bottom: 0;
2019-04-25 22:09:48 +08:00
}
x-range .-thumb {
2019-04-26 19:48:23 +08:00
all: unset;
2019-04-25 22:09:48 +08:00
position: absolute;
top: 50%;
transform: translate(-50%, -50%);
2019-04-26 19:48:23 +08:00
border-radius: 50%;
width: calc(2*var(--thumb-size));
height: calc(2*var(--thumb-size));
background-color: var(--thumb-color);
box-shadow: 0 0 2px var(--thumb-shadow);
}
x-range[disabled] {
opacity: 0.5;
2019-04-25 22:09:48 +08:00
}
2019-04-30 16:02:34 +08:00
x-range:not([disabled]) .-thumb:hover {
background-color: var(--thumb-hover-color);
}
2019-03-21 17:32:58 +08:00
main {
flex-grow: 1;
2020-03-09 05:11:46 +08:00
overflow: auto;
2019-03-21 17:32:58 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-menu {
2019-03-20 05:56:39 +08:00
flex-direction: row;
2019-04-03 01:19:46 +08:00
align-items: center;
2020-03-09 05:11:46 +08:00
height: 56px;
2019-03-20 05:56:39 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-menu:not([hidden]) {
2019-04-15 14:47:40 +08:00
display: flex;
2020-03-09 05:11:46 +08:00
}
cyp-menu button {
flex: 1 0 0;
height: 100%;
2019-04-15 14:47:40 +08:00
flex-direction: column;
align-items: center;
2020-03-09 05:11:46 +08:00
padding-top: 4px;
2019-03-29 03:28:55 +08:00
border-top: 4px solid transparent;
2019-04-15 14:47:40 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-menu button:not([hidden]) {
display: flex;
}
cyp-menu button .icon {
2019-04-16 14:40:16 +08:00
margin-right: var(--icon-spacing);
2019-03-20 05:56:39 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-menu button.active {
2019-03-29 23:28:26 +08:00
border-top-color: var(--primary);
2019-04-12 19:34:28 +08:00
color: var(--primary);
2019-04-15 15:48:27 +08:00
background-color: rgb(var(--primary-raw), 0.1);
2019-03-22 22:35:04 +08:00
}
2019-04-15 14:47:40 +08:00
@media (max-width: 480px) {
2020-03-09 05:11:46 +08:00
cyp-menu button {
2019-04-15 14:47:40 +08:00
flex-direction: row;
justify-content: center;
}
2020-03-09 05:11:46 +08:00
cyp-menu button:not([data-for=queue]) .icon {
2019-04-16 04:32:40 +08:00
margin-right: 0;
}
2020-03-09 05:11:46 +08:00
cyp-menu button span:not([id]) {
2019-04-15 14:47:40 +08:00
display: none;
}
}
2020-03-09 05:11:46 +08:00
cyp-player {
2019-03-22 23:17:10 +08:00
flex-direction: row;
2019-03-29 05:52:57 +08:00
align-items: center;
2019-04-12 19:34:28 +08:00
align-items: stretch;
2019-03-22 23:17:10 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player:not([hidden]) {
display: flex;
}
cyp-player:not([data-state=play]) .pause {
2019-03-21 17:32:58 +08:00
display: none;
}
2020-03-09 05:11:46 +08:00
cyp-player[data-state=play] .play {
2019-03-21 17:32:58 +08:00
display: none;
2019-03-20 05:56:39 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player:not([data-flags~=random]) .random,
cyp-player:not([data-flags~=repeat]) .repeat {
2019-03-21 17:32:58 +08:00
opacity: 0.5;
2019-03-20 05:56:39 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player x-range {
2019-04-15 22:00:59 +08:00
flex-grow: 1;
2019-04-26 19:48:23 +08:00
--elapsed-color: var(--primary);
2019-04-15 15:48:27 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player .art {
2019-04-15 15:13:39 +08:00
margin-right: 0;
2019-04-09 22:08:09 +08:00
height: 96px;
}
2020-03-09 05:11:46 +08:00
cyp-player .art img,
cyp-player .art .icon {
2019-04-09 22:08:09 +08:00
width: 96px;
2019-04-01 04:02:26 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player .info {
2019-04-15 22:00:59 +08:00
flex-grow: 2;
flex-basis: 0;
2019-04-16 14:40:16 +08:00
padding: 0 var(--icon-spacing);
2019-04-01 04:02:26 +08:00
overflow: hidden;
2019-04-10 20:37:02 +08:00
flex-direction: column;
2019-04-12 19:34:28 +08:00
justify-content: space-around;
2019-04-01 04:02:26 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player .info:not([hidden]) {
display: flex;
}
cyp-player .info h2 {
2019-04-15 15:48:27 +08:00
font-size: 125%;
margin: 0;
}
2020-03-09 05:11:46 +08:00
cyp-player .info .title,
cyp-player .info .subtitle {
2019-03-29 05:52:57 +08:00
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
2020-03-09 05:11:46 +08:00
cyp-player .timeline {
2019-04-11 19:34:24 +08:00
flex-direction: row;
align-items: center;
}
2020-03-09 05:11:46 +08:00
cyp-player .timeline:not([hidden]) {
display: flex;
}
cyp-player .timeline .duration,
cyp-player .timeline .elapsed {
2019-04-11 19:34:24 +08:00
flex-basis: 5ch;
2019-04-12 19:34:28 +08:00
text-align: center;
2019-04-11 19:34:24 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player .controls {
2019-04-15 22:00:59 +08:00
flex-grow: 1;
flex-basis: 0;
max-width: 220px;
2019-04-11 19:34:24 +08:00
flex-direction: column;
2019-04-12 19:34:28 +08:00
justify-content: space-around;
2019-04-11 19:34:24 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player .controls:not([hidden]) {
2019-04-10 20:37:02 +08:00
display: flex;
2020-03-09 05:11:46 +08:00
}
cyp-player .controls .playback {
2019-04-10 20:37:02 +08:00
flex-direction: row;
align-items: center;
2019-04-11 19:34:24 +08:00
justify-content: space-around;
2019-03-29 05:52:57 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player .controls .playback:not([hidden]) {
display: flex;
}
cyp-player .controls .playback .icon {
2019-04-15 15:48:27 +08:00
width: 40px;
2019-04-11 19:34:24 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player .controls .playback .icon-play,
cyp-player .controls .playback .icon-pause {
2019-04-15 15:48:27 +08:00
width: 64px;
2019-04-11 19:34:24 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player .controls .volume {
2019-04-11 19:34:24 +08:00
flex-direction: row;
align-items: center;
}
2020-03-09 05:11:46 +08:00
cyp-player .controls .volume:not([hidden]) {
display: flex;
}
cyp-player .controls .volume .mute {
2019-04-11 19:34:24 +08:00
margin-right: 4px;
}
2020-03-09 05:11:46 +08:00
cyp-player .misc {
2019-03-27 00:07:52 +08:00
display: flex;
flex-direction: column;
2019-04-01 04:02:26 +08:00
align-self: stretch;
justify-content: space-around;
2019-03-27 00:07:52 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-player .misc .icon {
2019-04-01 04:02:26 +08:00
width: 32px;
2019-03-26 22:40:23 +08:00
}
2019-04-15 15:13:39 +08:00
@media (max-width: 519px) {
2020-03-09 05:11:46 +08:00
cyp-player {
2019-04-15 15:13:39 +08:00
flex-wrap: wrap;
justify-content: space-between;
}
2020-03-09 05:11:46 +08:00
cyp-player .info {
2019-04-15 15:13:39 +08:00
order: 1;
2019-04-15 22:00:59 +08:00
flex-basis: 100%;
2019-04-15 15:13:39 +08:00
height: 96px;
}
}
2019-04-01 17:18:28 +08:00
.component header {
2019-04-03 01:19:46 +08:00
flex-direction: row;
align-items: center;
2019-04-16 14:40:16 +08:00
padding: var(--spacing);
2019-04-03 01:19:46 +08:00
}
2020-03-09 05:11:46 +08:00
.component header:not([hidden]) {
display: flex;
}
2019-04-03 01:19:46 +08:00
.component header button {
font-size: var(--font-size-large);
font-weight: bold;
2019-04-16 14:40:16 +08:00
overflow: hidden;
2019-04-03 01:19:46 +08:00
}
.component header button .icon {
margin-right: var(--icon-spacing);
2019-04-01 17:18:28 +08:00
}
2019-03-26 19:35:47 +08:00
.component ul {
flex-grow: 1;
overflow: auto;
list-style: none;
margin: 0;
padding: 0;
}
2019-03-30 19:57:01 +08:00
.component li {
2019-03-26 19:35:47 +08:00
flex-direction: row;
2019-03-26 22:40:23 +08:00
align-items: center;
2019-03-26 19:35:47 +08:00
}
2020-03-09 05:11:46 +08:00
.component li:not([hidden]) {
display: flex;
}
2019-04-01 04:02:26 +08:00
.component li .info {
2019-03-26 19:35:47 +08:00
flex-grow: 1;
2019-04-01 04:02:26 +08:00
overflow: hidden;
}
.component li .info .icon {
color: var(--primary);
margin-right: var(--icon-spacing);
2019-04-16 15:03:42 +08:00
filter: drop-shadow(var(--text-shadow));
2019-04-01 04:02:26 +08:00
}
.component li .info h2 {
font-size: var(--font-size-large);
2019-03-26 19:35:47 +08:00
margin: 0;
2019-04-01 04:02:26 +08:00
}
.component li .info h2,
.component li .info div {
white-space: nowrap;
2019-03-26 19:35:47 +08:00
overflow: hidden;
text-overflow: ellipsis;
}
2019-04-01 04:02:26 +08:00
.component li:not(.has-art) {
padding: 8px;
2019-03-29 05:52:57 +08:00
}
2019-04-03 01:19:46 +08:00
.component li button .icon {
width: 32px;
}
2019-03-30 19:57:01 +08:00
.component li:nth-child(odd) {
2019-04-03 01:52:53 +08:00
background-color: var(--bg-alt);
2019-03-28 22:23:28 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-queue header {
2019-04-03 01:19:46 +08:00
flex-direction: row;
align-items: center;
2019-04-16 14:40:16 +08:00
padding: var(--spacing);
2019-04-03 01:19:46 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-queue header:not([hidden]) {
display: flex;
}
cyp-queue header button {
2019-04-03 01:19:46 +08:00
font-size: var(--font-size-large);
font-weight: bold;
2019-04-16 14:40:16 +08:00
overflow: hidden;
2019-04-03 01:19:46 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-queue header button .icon {
2019-04-03 01:19:46 +08:00
margin-right: var(--icon-spacing);
2019-04-01 17:18:28 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-queue ul {
2019-03-25 22:49:23 +08:00
flex-grow: 1;
overflow: auto;
2019-03-22 23:17:10 +08:00
list-style: none;
margin: 0;
padding: 0;
}
2020-03-09 05:11:46 +08:00
cyp-queue li {
2019-03-26 19:35:47 +08:00
flex-direction: row;
2019-03-26 22:40:23 +08:00
align-items: center;
2019-03-26 19:35:47 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-queue li:not([hidden]) {
display: flex;
}
cyp-queue li .info {
2019-03-26 19:35:47 +08:00
flex-grow: 1;
2019-04-01 04:02:26 +08:00
overflow: hidden;
}
2020-03-09 05:11:46 +08:00
cyp-queue li .info .icon {
2019-04-01 04:02:26 +08:00
color: var(--primary);
margin-right: var(--icon-spacing);
2019-04-16 15:03:42 +08:00
filter: drop-shadow(var(--text-shadow));
2019-04-01 04:02:26 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-queue li .info h2 {
2019-04-01 04:02:26 +08:00
font-size: var(--font-size-large);
2019-03-26 19:35:47 +08:00
margin: 0;
2019-04-01 04:02:26 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-queue li .info h2,
cyp-queue li .info div {
2019-04-01 04:02:26 +08:00
white-space: nowrap;
2019-03-26 19:35:47 +08:00
overflow: hidden;
text-overflow: ellipsis;
}
2020-03-09 05:11:46 +08:00
cyp-queue li:not(.has-art) {
2019-04-01 04:02:26 +08:00
padding: 8px;
2019-03-29 05:52:57 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-queue li button .icon {
2019-04-03 01:19:46 +08:00
width: 32px;
}
2020-03-09 05:11:46 +08:00
cyp-queue li:nth-child(odd) {
2019-04-03 01:52:53 +08:00
background-color: var(--bg-alt);
2019-03-28 22:23:28 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-queue .current {
2019-04-01 04:02:26 +08:00
color: var(--primary);
2019-03-22 22:35:04 +08:00
}
2019-04-01 17:18:28 +08:00
#library header {
2019-04-03 01:19:46 +08:00
flex-direction: row;
align-items: center;
2019-04-16 14:40:16 +08:00
padding: var(--spacing);
2019-04-03 01:19:46 +08:00
}
2020-03-09 05:11:46 +08:00
#library header:not([hidden]) {
display: flex;
}
2019-04-03 01:19:46 +08:00
#library header button {
font-size: var(--font-size-large);
font-weight: bold;
2019-04-16 14:40:16 +08:00
overflow: hidden;
2019-04-03 01:19:46 +08:00
}
#library header button .icon {
margin-right: var(--icon-spacing);
2019-04-01 17:18:28 +08:00
}
2019-03-25 22:49:23 +08:00
#library ul {
flex-grow: 1;
overflow: auto;
list-style: none;
margin: 0;
padding: 0;
}
2019-03-30 19:57:01 +08:00
#library li {
2019-03-26 19:35:47 +08:00
flex-direction: row;
2019-03-26 22:40:23 +08:00
align-items: center;
2019-03-26 19:35:47 +08:00
}
2020-03-09 05:11:46 +08:00
#library li:not([hidden]) {
display: flex;
}
2019-04-01 04:02:26 +08:00
#library li .info {
2019-03-26 19:35:47 +08:00
flex-grow: 1;
2019-04-01 04:02:26 +08:00
overflow: hidden;
}
#library li .info .icon {
color: var(--primary);
margin-right: var(--icon-spacing);
2019-04-16 15:03:42 +08:00
filter: drop-shadow(var(--text-shadow));
2019-04-01 04:02:26 +08:00
}
#library li .info h2 {
font-size: var(--font-size-large);
2019-03-26 19:35:47 +08:00
margin: 0;
2019-04-01 04:02:26 +08:00
}
#library li .info h2,
#library li .info div {
white-space: nowrap;
2019-03-26 19:35:47 +08:00
overflow: hidden;
text-overflow: ellipsis;
}
2019-04-01 04:02:26 +08:00
#library li:not(.has-art) {
padding: 8px;
2019-03-29 05:52:57 +08:00
}
2019-04-03 01:19:46 +08:00
#library li button .icon {
width: 32px;
}
2019-03-30 19:57:01 +08:00
#library li:nth-child(odd) {
2019-04-03 01:52:53 +08:00
background-color: var(--bg-alt);
2019-03-28 22:23:28 +08:00
}
2019-04-03 01:19:46 +08:00
#library header {
white-space: pre;
}
#library .search {
order: 1;
}
#library .search.open ~ * {
display: none;
2019-03-28 22:23:28 +08:00
}
2019-04-01 04:02:26 +08:00
#library .art img,
#library .art .icon {
2019-03-31 06:15:32 +08:00
width: 64px;
2019-04-01 17:18:28 +08:00
}
#library .art .icon {
2019-04-16 15:03:42 +08:00
filter: drop-shadow(var(--text-shadow));
2019-04-01 04:02:26 +08:00
}
#library .group {
cursor: pointer;
}
#library .group h2 {
font-weight: normal;
2019-03-31 05:05:33 +08:00
}
2019-03-30 06:36:06 +08:00
#library .tiles {
display: grid;
2019-03-30 19:57:01 +08:00
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
grid-gap: 2px;
2019-03-30 06:36:06 +08:00
}
#library .tiles li {
2019-03-30 19:57:01 +08:00
text-align: center;
cursor: pointer;
background-color: rgba(255, 255, 255, 0.08);
2019-03-30 06:36:06 +08:00
height: 200px;
}
2019-03-30 19:57:01 +08:00
#library .tiles li h2 {
font-size: 150%;
margin: 4px 0;
}
2019-04-01 17:18:28 +08:00
#fs header {
2019-04-03 01:19:46 +08:00
flex-direction: row;
align-items: center;
2019-04-16 14:40:16 +08:00
padding: var(--spacing);
2019-04-03 01:19:46 +08:00
}
2020-03-09 05:11:46 +08:00
#fs header:not([hidden]) {
display: flex;
}
2019-04-03 01:19:46 +08:00
#fs header button {
font-size: var(--font-size-large);
font-weight: bold;
2019-04-16 14:40:16 +08:00
overflow: hidden;
2019-04-03 01:19:46 +08:00
}
#fs header button .icon {
margin-right: var(--icon-spacing);
2019-04-01 17:18:28 +08:00
}
2019-03-26 19:35:47 +08:00
#fs ul {
flex-grow: 1;
overflow: auto;
list-style: none;
margin: 0;
padding: 0;
}
2019-03-30 19:57:01 +08:00
#fs li {
2019-03-26 19:35:47 +08:00
flex-direction: row;
2019-03-26 22:40:23 +08:00
align-items: center;
2019-03-26 19:35:47 +08:00
}
2020-03-09 05:11:46 +08:00
#fs li:not([hidden]) {
display: flex;
}
2019-04-01 04:02:26 +08:00
#fs li .info {
2019-03-26 19:35:47 +08:00
flex-grow: 1;
2019-04-01 04:02:26 +08:00
overflow: hidden;
}
#fs li .info .icon {
color: var(--primary);
margin-right: var(--icon-spacing);
2019-04-16 15:03:42 +08:00
filter: drop-shadow(var(--text-shadow));
2019-04-01 04:02:26 +08:00
}
#fs li .info h2 {
font-size: var(--font-size-large);
2019-03-26 19:35:47 +08:00
margin: 0;
2019-04-01 04:02:26 +08:00
}
#fs li .info h2,
#fs li .info div {
white-space: nowrap;
2019-03-26 19:35:47 +08:00
overflow: hidden;
text-overflow: ellipsis;
}
2019-04-01 04:02:26 +08:00
#fs li:not(.has-art) {
padding: 8px;
2019-03-29 05:52:57 +08:00
}
2019-04-03 01:19:46 +08:00
#fs li button .icon {
width: 32px;
}
2019-03-30 19:57:01 +08:00
#fs li:nth-child(odd) {
2019-04-03 01:52:53 +08:00
background-color: var(--bg-alt);
2019-03-28 22:23:28 +08:00
}
2019-04-03 01:19:46 +08:00
#fs header {
white-space: pre;
}
#fs .search {
order: 1;
}
#fs .search.open ~ * {
display: none;
2019-03-28 22:23:28 +08:00
}
2019-03-29 23:28:26 +08:00
#fs .group {
cursor: pointer;
}
2019-04-01 04:02:26 +08:00
#fs .info {
flex-direction: row;
align-items: center;
}
2020-03-09 05:11:46 +08:00
#fs .info:not([hidden]) {
display: flex;
}
2019-04-01 04:02:26 +08:00
#fs .info h2 {
font-weight: normal;
}
2020-03-09 16:26:10 +08:00
cyp-playlists header {
2019-04-03 01:19:46 +08:00
flex-direction: row;
align-items: center;
2019-04-16 14:40:16 +08:00
padding: var(--spacing);
2019-04-03 01:19:46 +08:00
}
2020-03-09 16:26:10 +08:00
cyp-playlists header:not([hidden]) {
2020-03-09 05:11:46 +08:00
display: flex;
}
2020-03-09 16:26:10 +08:00
cyp-playlists header button {
2019-04-03 01:19:46 +08:00
font-size: var(--font-size-large);
font-weight: bold;
2019-04-16 14:40:16 +08:00
overflow: hidden;
2019-04-03 01:19:46 +08:00
}
2020-03-09 16:26:10 +08:00
cyp-playlists header button .icon {
2019-04-03 01:19:46 +08:00
margin-right: var(--icon-spacing);
2019-04-01 17:18:28 +08:00
}
2020-03-09 16:26:10 +08:00
cyp-playlists ul {
2019-03-28 22:23:28 +08:00
flex-grow: 1;
overflow: auto;
list-style: none;
margin: 0;
padding: 0;
}
2020-03-09 16:26:10 +08:00
cyp-playlists li {
2019-03-28 22:23:28 +08:00
flex-direction: row;
align-items: center;
}
2020-03-09 16:26:10 +08:00
cyp-playlists li:not([hidden]) {
2020-03-09 05:11:46 +08:00
display: flex;
}
2020-03-09 16:26:10 +08:00
cyp-playlists li .info {
2019-03-28 22:23:28 +08:00
flex-grow: 1;
2019-04-01 04:02:26 +08:00
overflow: hidden;
}
2020-03-09 16:26:10 +08:00
cyp-playlists li .info .icon {
2019-04-01 04:02:26 +08:00
color: var(--primary);
margin-right: var(--icon-spacing);
2019-04-16 15:03:42 +08:00
filter: drop-shadow(var(--text-shadow));
2019-04-01 04:02:26 +08:00
}
2020-03-09 16:26:10 +08:00
cyp-playlists li .info h2 {
2019-04-01 04:02:26 +08:00
font-size: var(--font-size-large);
2019-03-28 22:23:28 +08:00
margin: 0;
2019-04-01 04:02:26 +08:00
}
2020-03-09 16:26:10 +08:00
cyp-playlists li .info h2,
cyp-playlists li .info div {
2019-04-01 04:02:26 +08:00
white-space: nowrap;
2019-03-28 22:23:28 +08:00
overflow: hidden;
text-overflow: ellipsis;
}
2020-03-09 16:26:10 +08:00
cyp-playlists li:not(.has-art) {
2019-04-01 04:02:26 +08:00
padding: 8px;
2019-03-29 05:52:57 +08:00
}
2020-03-09 16:26:10 +08:00
cyp-playlists li button .icon {
2019-04-03 01:19:46 +08:00
width: 32px;
}
2020-03-09 16:26:10 +08:00
cyp-playlists li:nth-child(odd) {
2019-04-03 01:52:53 +08:00
background-color: var(--bg-alt);
2019-03-26 19:35:47 +08:00
}
2020-03-09 16:26:10 +08:00
cyp-playlists .info {
2019-04-01 04:02:26 +08:00
flex-direction: row;
align-items: center;
}
2020-03-09 16:26:10 +08:00
cyp-playlists .info:not([hidden]) {
2020-03-09 05:11:46 +08:00
display: flex;
}
2020-03-09 16:26:10 +08:00
cyp-playlists .info h2 {
2019-04-01 04:02:26 +08:00
font-weight: normal;
2019-03-28 22:23:28 +08:00
}
2019-04-01 17:18:28 +08:00
#yt header {
2019-04-03 01:19:46 +08:00
flex-direction: row;
align-items: center;
2019-04-16 14:40:16 +08:00
padding: var(--spacing);
2019-04-03 01:19:46 +08:00
}
2020-03-09 05:11:46 +08:00
#yt header:not([hidden]) {
display: flex;
}
2019-04-03 01:19:46 +08:00
#yt header button {
font-size: var(--font-size-large);
font-weight: bold;
2019-04-16 14:40:16 +08:00
overflow: hidden;
2019-04-03 01:19:46 +08:00
}
#yt header button .icon {
margin-right: var(--icon-spacing);
2019-04-01 17:18:28 +08:00
}
2019-03-31 05:05:33 +08:00
#yt ul {
flex-grow: 1;
overflow: auto;
list-style: none;
margin: 0;
padding: 0;
}
#yt li {
flex-direction: row;
align-items: center;
}
2020-03-09 05:11:46 +08:00
#yt li:not([hidden]) {
display: flex;
}
2019-04-01 04:02:26 +08:00
#yt li .info {
2019-03-31 05:05:33 +08:00
flex-grow: 1;
2019-04-01 04:02:26 +08:00
overflow: hidden;
}
#yt li .info .icon {
color: var(--primary);
margin-right: var(--icon-spacing);
2019-04-16 15:03:42 +08:00
filter: drop-shadow(var(--text-shadow));
2019-04-01 04:02:26 +08:00
}
#yt li .info h2 {
font-size: var(--font-size-large);
2019-03-31 05:05:33 +08:00
margin: 0;
2019-04-01 04:02:26 +08:00
}
#yt li .info h2,
#yt li .info div {
white-space: nowrap;
2019-03-31 05:05:33 +08:00
overflow: hidden;
text-overflow: ellipsis;
}
2019-04-01 04:02:26 +08:00
#yt li:not(.has-art) {
padding: 8px;
2019-03-31 05:05:33 +08:00
}
2019-04-03 01:19:46 +08:00
#yt li button .icon {
width: 32px;
}
2019-03-31 05:05:33 +08:00
#yt li:nth-child(odd) {
2019-04-03 01:52:53 +08:00
background-color: var(--bg-alt);
2019-03-31 05:05:33 +08:00
}
2019-04-15 03:02:21 +08:00
#yt header {
border-bottom: 1px solid var(--fg);
2019-03-31 05:05:33 +08:00
}
2019-04-15 03:02:21 +08:00
#yt header button + button {
margin-left: 16px;
2019-03-31 05:05:33 +08:00
}
2019-04-15 03:02:21 +08:00
#yt .clear {
margin-left: auto;
}
#yt pre {
2019-04-15 21:13:38 +08:00
margin: 0.5em 0.5ch;
2019-04-15 03:02:21 +08:00
flex-grow: 1;
overflow: auto;
2019-04-15 21:13:38 +08:00
white-space: pre-wrap;
2019-03-31 05:05:33 +08:00
}
2019-04-15 03:02:21 +08:00
#yt.pending header {
background-image: linear-gradient(var(--primary), var(--primary));
background-repeat: no-repeat;
background-size: 25% 4px;
animation: bar ease-in-out 3s alternate infinite;
}
@keyframes bar {
2019-03-31 05:05:33 +08:00
0% {
2019-04-15 03:02:21 +08:00
background-position: 0 100%;
2019-03-31 05:05:33 +08:00
}
100% {
2019-04-15 03:02:21 +08:00
background-position: 100% 100%;
2019-03-31 05:05:33 +08:00
}
}
2020-03-09 05:11:46 +08:00
cyp-settings {
2019-04-09 22:08:09 +08:00
font-size: var(--font-size-large);
}
2020-03-09 05:11:46 +08:00
cyp-settings dl {
2019-04-16 14:40:16 +08:00
margin: var(--spacing);
2019-04-03 01:52:53 +08:00
display: grid;
grid-template-columns: max-content 1fr;
align-items: center;
2019-04-16 14:40:16 +08:00
grid-gap: var(--spacing);
2019-04-03 01:52:53 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-settings dt {
2019-04-03 01:52:53 +08:00
font-weight: bold;
}
2020-03-09 05:11:46 +08:00
cyp-settings dd {
2019-04-03 01:52:53 +08:00
margin: 0;
flex-direction: column;
align-items: start;
}
2020-03-09 05:11:46 +08:00
cyp-settings dd:not([hidden]) {
2019-04-03 01:52:53 +08:00
display: flex;
2020-03-09 05:11:46 +08:00
}
cyp-settings label {
2019-04-03 01:52:53 +08:00
flex-direction: row;
align-items: center;
}
2020-03-09 05:11:46 +08:00
cyp-settings label:not([hidden]) {
display: flex;
}
cyp-settings label [type=radio],
cyp-settings label [type=checkbox] {
2019-04-12 19:34:28 +08:00
margin: 0 4px 0 0;
}
2019-04-01 17:18:28 +08:00
.search {
2019-04-03 01:19:46 +08:00
flex-direction: row;
2019-04-01 17:18:28 +08:00
align-items: center;
margin-left: auto;
2019-04-03 01:19:46 +08:00
transition: all 300ms;
width: 32px;
max-width: 20ch;
2019-04-01 17:18:28 +08:00
}
2020-03-09 05:11:46 +08:00
.search:not([hidden]) {
display: flex;
}
2019-04-01 04:02:26 +08:00
.search .icon {
width: 32px;
2019-04-01 17:18:28 +08:00
cursor: pointer;
2019-04-01 04:02:26 +08:00
}
.search input {
border: none;
2019-04-03 01:19:46 +08:00
outline: none;
2019-04-01 04:02:26 +08:00
color: inherit;
background-color: inherit;
border-bottom: 1px solid var(--fg);
2019-04-01 17:18:28 +08:00
width: 0;
2019-04-01 04:02:26 +08:00
padding: 0;
2019-04-03 01:19:46 +08:00
flex-grow: 1;
2019-04-01 04:02:26 +08:00
}
2019-04-03 01:19:46 +08:00
.search.open {
flex: 1;
2019-04-01 17:18:28 +08:00
}
.art {
margin-right: var(--icon-spacing);
}
.art .icon,
.art img {
vertical-align: top;
2019-04-01 04:02:26 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-app {
2019-04-03 01:52:53 +08:00
--font-size-large: 112.5%;
--icon-spacing: 4px;
2019-04-15 15:48:27 +08:00
--primary: rgb(var(--primary-raw));
2019-04-16 14:40:16 +08:00
--spacing: 8px;
2019-04-16 15:03:42 +08:00
--box-shadow: 0 0 3px #000;
2019-04-03 01:52:53 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-app[theme=light] {
2019-04-12 19:34:28 +08:00
--fg: #333;
--bg: #f0f0f0;
--bg-alt: #e0e0e0;
2019-04-16 15:03:42 +08:00
--text-shadow: none;
2019-04-03 01:52:53 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-app[theme=dark] {
2019-04-12 19:34:28 +08:00
--fg: #f0f0f0;
2019-03-29 23:28:26 +08:00
--bg: #333;
2019-04-03 01:52:53 +08:00
--bg-alt: #555;
2019-04-16 15:03:42 +08:00
--text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
2019-04-03 01:52:53 +08:00
}
2020-03-09 05:11:46 +08:00
@media (prefers-color-scheme: dark) {
cyp-app[theme=auto] {
--fg: #f0f0f0;
--bg: #333;
--bg-alt: #555;
--text-shadow: 0 1px 1px rgba(0, 0, 0, 0.8);
}
}
@media (prefers-color-scheme: light) {
cyp-app[theme=auto] {
--fg: #333;
--bg: #f0f0f0;
--bg-alt: #e0e0e0;
--text-shadow: none;
}
}
cyp-app[color=dodgerblue] {
2019-04-15 15:48:27 +08:00
--primary-raw: 30, 144, 255;
2019-04-03 01:52:53 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-app[color=darkorange] {
2019-04-15 15:48:27 +08:00
--primary-raw: 255, 140, 0;
2019-04-03 01:52:53 +08:00
}
2020-03-09 05:11:46 +08:00
cyp-app[color=limegreen] {
2019-04-15 15:48:27 +08:00
--primary-raw: 50, 205, 50;
2019-03-29 23:28:26 +08:00
}
2019-04-16 14:40:16 +08:00
@media (max-width: 480px) {
:root {
--spacing: var(--icon-spacing);
}
}