summaryrefslogtreecommitdiff
path: root/style.css
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2021-04-13 11:37:51 -0500
committersanine-a <sanine.not@pm.me>2021-04-13 11:37:51 -0500
commitc9c1b78ed805371615d3ca8b54c86da9a35db8ce (patch)
tree1af9063f2e30392fc039738105f86461dddec576 /style.css
parentbc594a2d3839d1d0a3cc76eed23ec8535c72f6bf (diff)
implement basic user input and button styling
Diffstat (limited to 'style.css')
-rw-r--r--style.css57
1 files changed, 57 insertions, 0 deletions
diff --git a/style.css b/style.css
index 485a1a1..d9873ad 100644
--- a/style.css
+++ b/style.css
@@ -21,3 +21,60 @@ body {
font-size: 200px;
}
+@-webkit-keyframes shake
+{
+ 0%, 100% { transform: translateX(0); }
+ 25%, 75% { transform: translateX(10px); }
+ 50% { transform: translateX(-10px); }
+}
+
+@keyframes shake
+{
+ 0%, 100% { transform: translateX(0); }
+ 25%, 75% { transform: translateX(10px); }
+ 50% { transform: translateX(-10px); }
+}
+
+
+.shake
+{
+ animation-name: shake;
+ animation-duration: 0.3s;
+ animation-iteration-count: 1;
+}
+
+.unselectable
+{
+ -webkit-user-select: none; /* Safari */
+ -moz-user-select: none; /* Firefox */
+ -ms-user-select: none; /* IE10+/Edge */
+ user-select: none; /* Standard */
+}
+
+.StyleButton
+{
+ padding: 10px;
+ border-radius: 8px;
+ border-style: solid;
+ border-width: 2px;
+ display: inline;
+}
+
+
+.StyleButtonEnabled
+{
+ color: white;
+ background-color: #2af;
+}
+
+.StyleButtonEnabled:hover
+{
+ background-color: #6af;
+}
+
+
+.StyleButtonDisabled
+{
+ color: white;
+ background-color: #444;
+}