aboutsummaryrefslogtreecommitdiffstats
path: root/static/timeVisualizer.css
diff options
context:
space:
mode:
authorMitsuo Tokumori <[email protected]>2025-03-08 01:30:17 +0900
committerMitsuo Tokumori <[email protected]>2025-03-08 01:30:17 +0900
commitec80766af5e2f59f3842b613f271c1100705af5e (patch)
tree4798439deb8b0a951ebb924d4739b05ca27577b3 /static/timeVisualizer.css
parent304d0a2c3e0e1eea58d6db1762c1b96e450b5843 (diff)
downloadmasu-ec80766af5e2f59f3842b613f271c1100705af5e.tar.gz
masu-ec80766af5e2f59f3842b613f271c1100705af5e.tar.bz2
masu-ec80766af5e2f59f3842b613f271c1100705af5e.zip
Change block layout, add time visualization
Block layout is now flex.
Diffstat (limited to 'static/timeVisualizer.css')
-rw-r--r--static/timeVisualizer.css44
1 files changed, 44 insertions, 0 deletions
diff --git a/static/timeVisualizer.css b/static/timeVisualizer.css
new file mode 100644
index 0000000..600ec4b
--- /dev/null
+++ b/static/timeVisualizer.css
@@ -0,0 +1,44 @@
+#timeVisualizer .grid {
+ display: grid;
+ grid-template-columns: repeat(8, 42px);
+ grid-template-rows: repeat(3, 42px);
+ gap: 2px;
+ background: #f0f0f0;
+ padding: 5px;
+ width: fit-content;
+ margin: 0 auto;
+}
+
+#timeVisualizer .cell {
+ width: 42px;
+ height: 42px;
+ background: #ffffff;
+ position: relative;
+ border: 1px solid #ddd;
+}
+
+#timeVisualizer .sleep {
+ background: #e6f3ff;
+}
+
+#timeVisualizer .past {
+ background: #cccccc;
+}
+
+#timeVisualizer .current::after {
+ content: '';
+ position: absolute;
+ left: 0;
+ top: 0;
+ height: 100%;
+ width: var(--fill);
+ background: #cccccc;
+}
+
+#timeVisualizer .timeline {
+ position: absolute;
+ width: 2px;
+ height: 100%;
+ background: #000000;
+ z-index: 1;
+}