From 16be5029919da6f4a1f42dca629a2bbd03c96380 Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 19 May 2021 23:43:21 -0700 Subject: [PATCH] Add explanation to common.css --wide --narrow. --- frontends/ycdl_flask/static/css/common.css | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontends/ycdl_flask/static/css/common.css b/frontends/ycdl_flask/static/css/common.css index bd32129..8ac5554 100644 --- a/frontends/ycdl_flask/static/css/common.css +++ b/frontends/ycdl_flask/static/css/common.css @@ -1,3 +1,7 @@ +/* +These properties are used by javascript functions. +getComputedStyle(document.documentElement).getPropertyValue("--narrow").trim() === "1" +*/ @media screen and (min-width: 800px) { :root @@ -5,7 +9,6 @@ --wide: 1; } } - @media screen and (max-width: 800px) { :root