diff --git a/html-client/cryps.css b/html-client/cryps.css index 65140d09..39a3da7a 100755 --- a/html-client/cryps.css +++ b/html-client/cryps.css @@ -19,15 +19,29 @@ button, input { border-color: whitesmoke; border-radius: 0; letter-spacing: 0.25em; + box-sizing: border-box; + + /*the transitions */ + transition-property: box-shadow; + transition-duration: 0.5s; + transition-delay: 0; + transition-timing-function: ease; } -/*colour necesary to bash skellington*/ button:hover { + /*colour necesary to bash skellington*/ color: whitesmoke; - animation: whiteglow 2000ms infinite; border-color: whitesmoke; } +button.right:hover { + box-shadow: inset -0.5em 0 0 0 whitesmoke; +} + +button.left:hover { + box-shadow: inset 0.5em 0 0 0 whitesmoke; +} + /* MENU */ @@ -51,7 +65,7 @@ button:hover { height: 100%; margin: 0.5em; box-sizing: border-box; - border-width: 2px solid whitesmoke; + border: 1px solid black; } .background { @@ -91,62 +105,29 @@ button:hover { fill: none; stroke-width: 4px; stroke-dasharray: 121, 242; - animation: pulse 2s infinite linear; + animation: saw 2s infinite linear; } -@keyframes pulse { - 0% { - stroke-dashoffset: 363; - } - 100% { - stroke-dashoffset: 0; - } -} - - -@keyframes whiteglow { +@keyframes saw { 0% { - box-shadow: 0 0 0px whitesmoke; - } - 20% { - box-shadow: 0 0 20px whitesmoke; - } - 60% { - box-shadow: 0 0 20px whitesmoke; + stroke-dashoffset: 363; } 100% { - box-shadow: 0 0 0px whitesmoke; - } -} - -@keyframes greenglow { - 0% { - box-shadow: 0 0 -20px forestgreen; - } - 100% { - box-shadow: 0 0 30px forestgreen; - color: forestgreen; - border-color: forestgreen; - } -} - -@keyframes whiteblackglow { - 0% { - box-shadow: 0 0 0px black; - } - 100% { - background: whitesmoke; - color: black; - box-shadow: 0 0 -30px black; + stroke-dashoffset: 0; } } /* INSTANCE */ + .green-btn:hover { - animation: greenglow 2s ease 0s 1 normal forwards; - animation-iteration-count: 1; + transition-property: all; + transition-duration: 2s; + transition-timing-function: ease; + color: forestgreen; + border-color: forestgreen; + /*box-shadow: inset -0.5em 0 0 0 forestgreen;*/ } .instance-btn { @@ -185,7 +166,6 @@ button:hover { .vbox-btn:hover { color: black; - animation: whiteblackglow 2s ease 0s 1 normal forwards; } .vbox-table { @@ -304,13 +284,7 @@ button:hover { flex: 1 1 60%; } -.cryp-skill-btn.active { - animation: whiteblackglow 1s ease 0s 1 normal forwards; - animation-iteration-count: 1; -} - .cryp-skill-btn[disabled] { - animation: none; color: #333333; } diff --git a/html-client/src/components/game.component.jsx b/html-client/src/components/game.component.jsx index 2d50ee0f..074341d7 100644 --- a/html-client/src/components/game.component.jsx +++ b/html-client/src/components/game.component.jsx @@ -177,7 +177,7 @@ function GamePanel(props) {