style: improve readability of list

This commit is contained in:
cv
2023-09-01 22:07:39 +02:00
parent c9976c7fe8
commit b46a22c964
3 changed files with 21 additions and 4 deletions
@@ -6,16 +6,19 @@
@include block(); @include block();
background-color: $gray-1300; background-color: $gray-1300;
opacity: 1; opacity: 1;
border-top: 1px solid $white-1;
&.subscribed { &.subscribed {
background-color: $gray-1250; background-color: $gray-1250;
} }
&.running { &.running {
border-top: 1px solid $white-10;
background-color: $red-700; background-color: $red-700;
} }
&.past { &.past {
border-top: 1px solid transparent;
opacity: 0.2; opacity: 0.2;
} }
} }
@@ -28,6 +31,7 @@
.title { .title {
font-size: 1.5rem; font-size: 1.5rem;
letter-spacing: 0.5px; letter-spacing: 0.5px;
color: $ui-white;
} }
.cue { .cue {
@@ -44,6 +48,7 @@
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
font-size: calc(1rem - 1px); font-size: calc(1rem - 1px);
color: $white-90;
.runtime { .runtime {
display: flex; display: flex;
@@ -54,8 +59,19 @@
.fields { .fields {
font-size: 1.25rem; font-size: 1.25rem;
font-weight: 500; font-weight: 600;
color: $orange-500; color: $ui-black;
margin-top: 0.25rem;
.field {
padding: 0 0.25rem;
background-color: $orange-600;
margin-right: 0.5rem;
}
.value {
color: $orange-500
}
letter-spacing: 0.5px; letter-spacing: 0.5px;
height: fit-content; height: fit-content;
@@ -64,8 +64,8 @@ export default function OperatorEvent(props: OperatorEventProps) {
{subscribedData && ( {subscribedData && (
<div className={style.fields}> <div className={style.fields}>
{subscribedAlias && <span>{`${subscribedAlias} - `}</span>} {subscribedAlias && <span className={style.field}>{`${subscribedAlias}`}</span>}
<span>{subscribedData}</span> <span className={style.value}>{subscribedData}</span>
</div> </div>
)} )}
</div> </div>
@@ -8,6 +8,7 @@ $white-10: rgba(255, 255, 255, 0.10);
$white-13: rgba(255, 255, 255, 0.13); $white-13: rgba(255, 255, 255, 0.13);
$white-20: rgba(255, 255, 255, 0.20); $white-20: rgba(255, 255, 255, 0.20);
$white-60: rgba(255, 255, 255, 0.60); $white-60: rgba(255, 255, 255, 0.60);
$white-90: rgba(255, 255, 255, 0.90);
$black-10: rgba(0, 0, 0, 0.10); $black-10: rgba(0, 0, 0, 0.10);