mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-19 03:54:23 +02:00
add initial support for more integrations in the now playing panel
This commit is contained in:
@@ -909,6 +909,30 @@ select {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.astra-scope__placeholder {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
gap: 8px;
|
||||
max-width: min(100%, 360px);
|
||||
padding: 12px;
|
||||
white-space: normal;
|
||||
text-transform: none;
|
||||
letter-spacing: 0;
|
||||
font-family: 'Inter', sans-serif;
|
||||
line-height: 1.45;
|
||||
}
|
||||
|
||||
.astra-scope__empty-title {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--astra-text);
|
||||
}
|
||||
|
||||
.astra-scope__empty-detail {
|
||||
font-size: 11px;
|
||||
color: var(--astra-subtext);
|
||||
}
|
||||
|
||||
.astra-scope__status.is-ok {
|
||||
color: var(--astra-status-ok);
|
||||
}
|
||||
@@ -1514,8 +1538,9 @@ select {
|
||||
min-width: 420px;
|
||||
}
|
||||
|
||||
.bottom-bar__section--astra {
|
||||
min-width: 520px;
|
||||
.bottom-bar__section--astra,
|
||||
.bottom-bar__section--now-playing {
|
||||
min-width: 420px;
|
||||
}
|
||||
|
||||
.bottom-bar__section--source {
|
||||
@@ -1575,6 +1600,10 @@ select {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.bottom-bar__inline--now-playing {
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.bottom-bar__theme-credit {
|
||||
color: var(--text-tertiary);
|
||||
font-size: 10px;
|
||||
@@ -1679,6 +1708,26 @@ select {
|
||||
max-width: 360px;
|
||||
}
|
||||
|
||||
.bottom-bar__section-header--now-playing {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.bottom-bar__now-playing-summary {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
color: var(--text-tertiary);
|
||||
font-size: 10px;
|
||||
line-height: 1.2;
|
||||
text-align: right;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.bottom-bar__now-playing-summary.is-error {
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.bottom-bar__actions {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -1888,6 +1937,332 @@ select {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.now-playing-config {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
background: var(--bg-primary);
|
||||
color: var(--text-primary);
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.now-playing-config__shell {
|
||||
height: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.now-playing-config__toolbar {
|
||||
cursor: grab;
|
||||
padding-right: 12px;
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 1px solid var(--divider);
|
||||
}
|
||||
|
||||
.now-playing-config__toolbar:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.now-playing-config__toolbar-copy {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.now-playing-config__toolbar-title {
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
font-size: 10px;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.now-playing-config__toolbar-subtitle {
|
||||
font-size: 10px;
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
.now-playing-config__content {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
padding: 14px 16px 16px;
|
||||
}
|
||||
|
||||
.now-playing-config__stack {
|
||||
width: min(820px, 100%);
|
||||
margin: 0 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.now-playing-config__intro,
|
||||
.now-playing-config__provider-body-copy,
|
||||
.now-playing-config__coming-soon {
|
||||
font-size: 11px;
|
||||
line-height: 1.5;
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.now-playing-config__intro {
|
||||
padding: 0 2px;
|
||||
}
|
||||
|
||||
.now-playing-config__list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.now-playing-config__provider {
|
||||
border-radius: 14px;
|
||||
border: 1px solid var(--panel-outline);
|
||||
background: linear-gradient(180deg, var(--panel-surface), var(--panel-surface-soft));
|
||||
box-shadow: inset 0 1px 0 var(--glass-highlight);
|
||||
transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
|
||||
}
|
||||
|
||||
.now-playing-config__provider.is-live {
|
||||
border-color: color-mix(in srgb, var(--accent) 28%, var(--panel-outline));
|
||||
}
|
||||
|
||||
.now-playing-config__provider.is-drop-target {
|
||||
border-color: var(--control-border-active);
|
||||
box-shadow:
|
||||
inset 0 1px 0 var(--glass-highlight),
|
||||
inset 0 0 0 1px rgba(var(--accent-rgb), 0.16);
|
||||
}
|
||||
|
||||
.now-playing-config__provider-header {
|
||||
display: flex;
|
||||
align-items: stretch;
|
||||
gap: 6px;
|
||||
padding: 6px;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-handle {
|
||||
width: 28px;
|
||||
flex: 0 0 28px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
align-self: center;
|
||||
min-height: 28px;
|
||||
border-radius: 999px;
|
||||
color: var(--text-muted);
|
||||
cursor: grab;
|
||||
transition: background-color 140ms ease, color 140ms ease, opacity 140ms ease;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-handle:hover {
|
||||
background: var(--control-bg-hover);
|
||||
color: var(--text-secondary);
|
||||
}
|
||||
|
||||
.now-playing-config__provider-handle:active {
|
||||
cursor: grabbing;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-handle.is-dragging {
|
||||
opacity: 0.42;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-handle svg {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-summary {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
padding: 8px 10px 8px 8px;
|
||||
border: 0;
|
||||
border-radius: 10px;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
text-align: left;
|
||||
cursor: pointer;
|
||||
transition: background-color 140ms ease;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-summary:hover {
|
||||
background: rgba(255, 255, 255, 0.025);
|
||||
}
|
||||
|
||||
.now-playing-config__provider-icon-shell {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
flex: 0 0 34px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
border-radius: 12px;
|
||||
border: 1px solid color-mix(in srgb, var(--provider-brand) 28%, var(--control-border));
|
||||
background: color-mix(in srgb, var(--provider-brand) 10%, var(--control-bg));
|
||||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||||
color: var(--provider-brand);
|
||||
}
|
||||
|
||||
.now-playing-config__provider-icon-shell svg {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-icon-shell svg[viewBox="0 0 1024 1024"] {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-copy {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-name-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-name {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: var(--text-primary);
|
||||
}
|
||||
|
||||
.now-playing-config__provider-live {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
min-height: 18px;
|
||||
padding: 0 7px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--control-border));
|
||||
color: var(--accent);
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
font-size: 9px;
|
||||
letter-spacing: 0.12em;
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-meta {
|
||||
font-size: 11px;
|
||||
color: var(--text-secondary);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-status {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-chevron {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
flex: 0 0 16px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--text-muted);
|
||||
transition: transform 140ms ease, color 140ms ease;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-chevron.is-expanded {
|
||||
color: var(--text-primary);
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
|
||||
.now-playing-config__provider-chevron svg {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-body {
|
||||
padding: 0 16px 14px 50px;
|
||||
border-top: 1px solid var(--divider);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-body-copy,
|
||||
.now-playing-config__coming-soon {
|
||||
padding-top: 12px;
|
||||
}
|
||||
|
||||
.now-playing-config__form-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.now-playing-config__field {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
}
|
||||
|
||||
.now-playing-config__field-label {
|
||||
font-size: 10px;
|
||||
font-family: 'JetBrains Mono', monospace;
|
||||
letter-spacing: 0.1em;
|
||||
text-transform: uppercase;
|
||||
color: var(--text-tertiary);
|
||||
}
|
||||
|
||||
.now-playing-config__input {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-actions {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-error {
|
||||
margin-top: -2px;
|
||||
}
|
||||
|
||||
@media (max-width: 760px) {
|
||||
.now-playing-config__toolbar {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.now-playing-config__content {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.now-playing-config__toolbar-subtitle {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-summary {
|
||||
gap: 8px;
|
||||
padding-right: 8px;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-status {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.now-playing-config__provider-body {
|
||||
padding: 0 12px 12px;
|
||||
}
|
||||
|
||||
.now-playing-config__form-grid {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
::-webkit-scrollbar {
|
||||
width: 6px;
|
||||
height: 6px;
|
||||
|
||||
Reference in New Issue
Block a user