aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-04-27 00:34:31 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2020-04-27 00:34:31 +0200
commitb3d5d8708367aef395d5ad8eb9c0c1a4e0fc24b5 (patch)
treeb2a5c820453eccb20e39e0526e07ab4ae677894c
parentExport ICS interval. (diff)
downloadcalp-b3d5d8708367aef395d5ad8eb9c0c1a4e0fc24b5.tar.gz
calp-b3d5d8708367aef395d5ad8eb9c0c1a4e0fc24b5.tar.xz
Made btn shadow-height variable.
-rw-r--r--static/style.css5
1 files 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;
}