I fixed it it now looks like a card

This commit is contained in:
minster586
2026-09-29 17:46:12 -04:00
parent c2f1bbda46
commit 7d6ad0aaa0
+68 -57
View File
@@ -1,38 +1,36 @@
body { background-color: rgba(0, 0, 0, 0); margin: 0px auto; overflow: hidden; }
/* OBS Default Reset & Transparent Canvas */
body {
background-color: rgba(0, 0, 0, 0) !important;
margin: 0 auto;
overflow: visible !important;
display: flex;
justify-content: center;
align-items: flex-start;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
background: transparent;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
/* Main Vertical Card Container */
/* Main widget container */
.widget-container {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
width: 320px;
height: auto; /* Lets container naturally expand to fit all text */
width: 100%;
max-width: 400px;
height: auto !important;
border-radius: 20px;
overflow: hidden;
box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
box-shadow: 0 12px 40px rgba(0, 0, 0, 0.95);
margin: 20px;
background: rgba(18, 18, 18, 0.88);
backdrop-filter: blur(25px) brightness(0.6);
border: 1px solid rgba(255, 255, 255, 0.12);
padding: 16px 16px 24px 16px; /* Extra bottom padding creates the stretched height naturally */
}
/* Blurred background layer */
/* Blurred background layer using album art */
.background-blur {
position: absolute;
top: 0;
@@ -44,20 +42,25 @@ body {
}
.background-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
filter: blur(35px) brightness(0.4);
filter: blur(25px) brightness(0.4); /* Strong blur and dimmed for readability */
transform: scale(1.2); /* Prevents hard/unblurred edges around borders */
z-index: 0;
}
/* Dark overlay layer */
/* Dark overlay to ensure text contrast */
.overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.75) 100%);
background: rgba(0, 0, 0, 0.35);
z-index: 1;
pointer-events: none;
}
@@ -67,24 +70,30 @@ body {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
gap: 16px; /* Spacing between image box and song info */
gap: 16px;
padding: 24px;
z-index: 2;
width: 100%;
height: auto !important;
align-items: center;
}
/* Large Square Album Art (Top) */
/* Album art box & Fallback Image Handler */
.album-art-box {
position: relative;
flex-shrink: 0;
width: 100%;
aspect-ratio: 1 / 1;
border-radius: 14px;
height: auto;
border-radius: 15px;
overflow: hidden;
background: rgba(40, 40, 40, 0.6);
/* REPLACE URL WITH YOUR CUSTOM FALLBACK IMAGE */
background: #1e1e1e url('https://i.imgur.com/8Q9Z4Zm.png') center/cover no-repeat;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.6);
z-index: 2;
}
.album-art {
@@ -93,55 +102,57 @@ body {
object-fit: cover;
}
/* Song Info Box (Bottom, Centered Stack) */
/* Hides broken image icons so background fallback shows cleanly */
.album-art[src=""],
.album-art:not([src]) {
opacity: 0;
}
/* Song info box */
.song-info {
display: flex;
width: 100%;
display: flex !important;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 6px;
width: 100%;
min-width: 0;
align-items: center;
text-align: center;
padding: 4px 0;
gap: 6px;
min-width: 0;
padding: 4px 0 8px 0;
z-index: 3;
}
/* Song Title */
/* Song title */
.song-title {
font-size: 18px;
font-weight: 700;
color: #ffffff;
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
width: 100%;
font-size: 20px;
font-weight: 600;
color: #ffffff !important;
text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
letter-spacing: -0.2px;
line-height: 1.3;
line-height: 1.2;
}
.song-title::after {
display: none !important;
}
/* Song Artist */
/* Song artist */
.song-artist {
font-size: 14px;
font-weight: 500;
color: rgba(255, 255, 255, 0.75);
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
width: 100%;
font-size: 15px;
font-weight: 400;
color: #ffffff !important;
opacity: 0.75;
text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.9);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
letter-spacing: -0.1px;
line-height: 1.3;
line-height: 1.2;
}
/* Smooth fade animation for updates */
@keyframes fadeIn {
from {
opacity: 0.4;
opacity: 0.5;
}
to {
opacity: 1;