From b3d5d8708367aef395d5ad8eb9c0c1a4e0fc24b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 27 Apr 2020 00:34:31 +0200 Subject: Made btn shadow-height variable. --- static/style.css | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/static/style.css b/static/style.css index f51c75ce..76f68b6b 100644 --- a/static/style.css +++ b/static/style.css @@ -6,6 +6,7 @@ html { --editmode: 1.0; --event-font-size: 8pt; --gray: #757575; + --btn-height: 0.5ex; } html, body { @@ -107,7 +108,7 @@ html, body { background-color: #3399ff; color: white; - box-shadow: 1ex 1ex gray; + box-shadow: var(--btn-height) var(--btn-height) gray; /* if a */ text-decoration: none; @@ -117,7 +118,7 @@ html, body { } .btn:active { - transform: translate(1ex, 1ex); + transform: translate(var(--btn-height), var(--btn-height)); box-shadow: none; } -- cgit v1.2.3