| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243 |
- /* Scoped to the opt-in renderer. Existing OBS sources retain their styling. */
- .updated-overlay {
- --overlay-scale: 1;
- --overlay-space: clamp(12px, calc(2.5 * var(--overlay-vmin, 1vmin)), 32px);
- position: relative;
- isolation: isolate;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- min-height: var(--overlay-height, 100vh);
- color: #fff;
- background: rgb(16 23 27 / var(--overlay-background-alpha, 1));
- font-size: calc(clamp(14px, calc(2.2 * var(--overlay-vmin, 1vmin)), 28px) * var(--overlay-scale));
- line-height: 1.3;
- font-variant-numeric: tabular-nums;
- }
- .updated-overlay[data-size='small'] {
- --overlay-scale: 0.8;
- }
- .updated-overlay[data-size='large'] {
- --overlay-scale: 1.2;
- }
- .updated-overlay__header {
- display: flex;
- align-items: flex-start;
- justify-content: space-between;
- gap: var(--overlay-space);
- padding: var(--overlay-space);
- z-index: 1;
- }
- .updated-overlay__identity {
- display: flex;
- align-items: center;
- gap: 0.7em;
- min-width: 0;
- padding: 0.65em 0.9em;
- border-radius: 0.7em;
- background: rgb(12 19 23 / var(--overlay-identity-alpha, 0.9));
- }
- .updated-overlay__identity svg {
- flex-shrink: 0;
- width: 2em;
- height: 2em;
- }
- .updated-overlay__identity div {
- min-width: 0;
- overflow-wrap: anywhere;
- }
- .updated-overlay__identity strong {
- display: block;
- font-size: 1.35em;
- }
- .updated-overlay__identity span {
- display: block;
- color: #b8c0c7;
- }
- .updated-overlay__logo {
- flex-shrink: 0;
- margin-left: auto;
- }
- .updated-overlay__logo > a img {
- width: clamp(100px, calc(19 * var(--overlay-vmin, 1vmin)), 230px);
- height: auto;
- }
- .updated-overlay__camera {
- position: absolute;
- inset: 0;
- z-index: -1;
- overflow: hidden;
- }
- .updated-overlay__camera img {
- position: absolute;
- top: 50%;
- left: 50%;
- width: 100%;
- height: 100%;
- max-width: none;
- object-fit: cover;
- }
- .updated-overlay__panel {
- padding: var(--overlay-space);
- background: rgb(12 19 23 / var(--overlay-panel-alpha, 0.88));
- }
- .updated-overlay__summary {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 1em;
- margin-bottom: 0.8em;
- }
- .updated-overlay__summary h1 {
- font-size: 1.65em;
- font-weight: 700;
- line-height: 1.2;
- overflow-wrap: anywhere;
- min-width: 0;
- }
- .updated-overlay__status {
- display: flex;
- align-items: center;
- gap: 0.5em;
- font-size: 1.15em;
- font-weight: 600;
- color: #b8c0c7;
- }
- .updated-overlay__status > span {
- width: 0.75em;
- height: 0.75em;
- border-radius: 50%;
- background: currentColor;
- flex-shrink: 0;
- }
- .updated-overlay[data-state='RUNNING'] .updated-overlay__status,
- .updated-overlay[data-state='FINISH'] .updated-overlay__status {
- color: #00d76a;
- }
- .updated-overlay[data-state='PAUSE'] .updated-overlay__status {
- color: #fbbf24;
- }
- .updated-overlay[data-state='FAILED'] .updated-overlay__status {
- color: #f87171;
- }
- .updated-overlay__progress {
- display: flex;
- align-items: center;
- gap: 1em;
- }
- .updated-overlay__progress > span {
- color: #b8c0c7;
- font-size: 0.8em;
- text-transform: uppercase;
- }
- .updated-overlay__progress > strong {
- color: #00d76a;
- font-size: 1.4em;
- }
- .updated-overlay__progress > div {
- flex: 1;
- height: 0.65em;
- border-radius: 1em;
- overflow: hidden;
- background: #3c454c;
- }
- .updated-overlay__progress > div > div {
- height: 100%;
- border-radius: inherit;
- background: #00d76a;
- transition: width 0.5s;
- }
- .updated-overlay__readings {
- display: flex;
- flex-wrap: wrap;
- gap: 1em;
- margin-top: 0.8em;
- padding-top: 0.8em;
- border-top: 1px solid #ffffff35;
- }
- .updated-overlay__stats,
- .updated-overlay__temperatures {
- display: flex;
- flex: 1 1 auto;
- flex-wrap: wrap;
- gap: 1em;
- }
- .updated-overlay__reading {
- display: flex;
- align-items: center;
- gap: 0.6em;
- flex: 1 1 auto;
- min-width: 0;
- }
- .updated-overlay__reading svg {
- width: 1.8em;
- height: 1.8em;
- flex-shrink: 0;
- }
- .updated-overlay__reading > div > span {
- display: block;
- color: #b8c0c7;
- font-size: 0.7em;
- text-transform: uppercase;
- }
- .updated-overlay__reading strong {
- display: block;
- font-size: 1.3em;
- overflow-wrap: anywhere;
- }
- .updated-overlay__reading small {
- font-size: 0.65em;
- color: #b8c0c7;
- }
- .updated-overlay[data-layout='portrait'] {
- display: grid;
- font-size: calc(clamp(14px, calc(3 * var(--overlay-vmin, 1vmin)), 36px) * var(--overlay-scale));
- grid-template-columns: minmax(0, 1fr);
- grid-template-rows: auto 1fr auto;
- min-height: var(--overlay-height, 100vh);
- }
- .updated-overlay[data-layout='portrait'] .updated-overlay__header {
- grid-row: 1;
- align-items: center;
- background: rgb(16 23 27 / var(--overlay-background-alpha, 1));
- }
- .updated-overlay[data-layout='portrait'] .updated-overlay__identity {
- background: none;
- padding: 0;
- }
- .updated-overlay[data-layout='portrait'] .updated-overlay__camera {
- position: relative;
- grid-row: 2;
- min-height: calc(var(--overlay-height, 100vh) * 0.3);
- z-index: 0;
- }
- .updated-overlay[data-layout='portrait'] .updated-overlay__panel {
- grid-row: 3;
- background: rgb(16 23 27 / var(--overlay-background-alpha, 1));
- }
- .updated-overlay[data-layout='portrait'] .updated-overlay__summary {
- flex-direction: column-reverse;
- align-items: stretch;
- gap: 0.65em;
- }
- .updated-overlay[data-layout='portrait'] .updated-overlay__progress {
- flex-wrap: wrap;
- justify-content: space-between;
- gap: 0.3em;
- }
- .updated-overlay[data-layout='portrait'] .updated-overlay__progress > div {
- flex: 0 0 100%;
- order: 1;
- }
- .updated-overlay[data-layout='portrait'] .updated-overlay__readings {
- flex-direction: column;
- }
- .updated-overlay[data-layout='portrait'] .updated-overlay__temperatures:not(:first-child) {
- border-top: 1px solid #ffffff35;
- padding-top: 0.8em;
- }
- @media (prefers-reduced-motion: reduce) {
- .updated-overlay__progress > div > div {
- transition: none;
- }
- }
|