Skip to content

Commit

Permalink
Add joy green border
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Apr 16, 2024
1 parent b060265 commit 4d64fc7
Showing 1 changed file with 32 additions and 1 deletion.
33 changes: 32 additions & 1 deletion packages/studio-base/src/panels/Joy/styles.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
@property --rotate {
syntax: "<angle>";
initial-value: 132deg;
inherits: false;
}

:root {
--card-height: 65vh;
--card-width: calc(var(--card-height) / 1.5);
}

body {
/* https://coolors.co/f06449-ede6e3-7d82b8-36382e-613f75 */
--background-color: #ede6e3;
Expand Down Expand Up @@ -36,6 +47,26 @@ body {
grid-row: 2;
}

#joystick::before {
content: "";
width: 104%;
height: 104%;
border-radius: 50%;
background-image: linear-gradient(var(--rotate), #5dffdc, #3ce367 43%, #4ec200);
position: absolute;
z-index: -1;
animation: spin 2.5s linear infinite;
}

@keyframes spin {
0% {
--rotate: 0deg;
}
100% {
--rotate: 360deg;
}
}

#joystick-head {
position: relative;
background-color: var(--joystick-head-color);
Expand All @@ -57,7 +88,7 @@ body {
transform: scale(1);
}
100% {
transform: scale(1.2);
transform: scale(1.1);
}
}

Expand Down

0 comments on commit 4d64fc7

Please sign in to comment.