Task drawer sexification

This commit is contained in:
Zaid Abdulla committed 2018-12-26 00:22:07 -08:00
1 parent 6ae61b2763
commit 41938b4667
1 file changed
+30 -20
+30 -20
View File
@@ -13,6 +13,10 @@
--fade: 0.2s; --fade: 0.2s;
--disabled: #666; --disabled: #666;
--status-red: hsl(0, 80%, 80%);
--status-green: hsl(125, 80%, 80%);
--status-gray: hsl(58, 3%, 80%);
} }
body, body,
@@ -47,12 +51,12 @@ i {
font-style: italic; font-style: italic;
} }
@keyframes blink { @keyframes pending-blink {
from { from {
opacity: 1; background-color: color(var(--status-green) a(90%));
} }
to { to {
opacity: 0.3; background-color: transparent;
} }
} }
@@ -64,12 +68,13 @@ i {
& > .drawer-wrapper { & > .drawer-wrapper {
position: fixed; position: fixed;
z-index: 10;
width: 720px; width: 720px;
margin-left: -360px; margin-left: -360px;
top: 0; top: 0;
left: 50%; left: 50%;
& > .drawer { & > .drawer {
background-color: rgba(255, 255, 255, 0.8); background-color: rgba(255, 255, 255, 0.9);
border-bottom-left-radius: 6px; border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px; border-bottom-right-radius: 6px;
border-bottom: 1px solid var(--color1); border-bottom: 1px solid var(--color1);
@@ -88,20 +93,22 @@ i {
display: flex; display: flex;
& > span { & > span {
margin-right: 1em; margin-right: 1em;
padding-left: 0.2em;
padding-right: 0.2em;
border-radius: 0.4em;
} }
& > .pending { & > .pending.active {
color: #770;
&.active { &.active {
animation: 0.5s linear 0s infinite alternate blink; animation: 0.5s linear 0s infinite alternate pending-blink;
} }
} }
& > .stale { & > .stale.active {
color: #777; background-color: color(var(--status-gray) a(90%));
} }
& > .fault { & > .fault.active {
color: #700; background-color: color(var(--status-red) a(90%));
} }
& > .active { & > .queued.active {
font-weight: bold; font-weight: bold;
} }
@@ -134,13 +141,16 @@ i {
& > .queue { & > .queue {
& > .pending { & > .pending {
color: #770; animation: 0.5s linear 0s infinite alternate pending-blink;
border-radius: 0.4em;
} }
& > .stale { & > .stale {
color: #777; background-color: color(var(--status-gray) a(90%));
border-radius: 0.4em;
} }
& > .fault { & > .fault {
color: #700; background-color: color(var(--status-red) a(90%));
border-radius: 0.4em;
} }
& .parameter { & .parameter {
font-style: italic; font-style: italic;
@@ -172,19 +182,19 @@ i {
padding: 0.3em; padding: 0.3em;
left: 0; left: 0;
right: 0; right: 0;
background-color: rgba(255, 255, 255, 0.8); background-color: rgba(255, 255, 255, 0.9);
border: 1px solid var(--color1); border: 1px solid var(--color1);
border-radius: 6px; border-radius: 6px;
box-shadow: 0 0 10px #ccc; box-shadow: 0 0 10px #ccc;
transition: opacity var(--fade), top var(--fade); transition: opacity var(--fade), top var(--fade);
&.error { &.error {
background-color: rgba(255, 200, 200, 0.8); background-color: color(var(--status-red) a(90%));
border: 1px solid rgb(255, 200, 200); border: 1px solid var(--status-red);
} }
&.success { &.success {
background-color: rgba(200, 255, 200, 0.8); background-color: color(var(--status-green) a(90%));
border: 1px solid rgb(200, 255, 200); border: 1px solid var(--status-green);
} }
} }
} }