aboutsummaryrefslogtreecommitdiff
path: root/static/style.css
diff options
context:
space:
mode:
Diffstat (limited to 'static/style.css')
-rw-r--r--static/style.css67
1 files changed, 48 insertions, 19 deletions
diff --git a/static/style.css b/static/style.css
index 8ac46785..4509dc95 100644
--- a/static/style.css
+++ b/static/style.css
@@ -1,19 +1,33 @@
-/*
- * TODO
- * the positioning of the meta information for each day is
- * quite badly done, and mostly a hack.
- */
-
-body {
- /* This is for the day meta information */
- padding-top: 50px;
-}
-
.calendar {
- height: calc(90vh - 50px);
+ height: 100%;
+ display: flex;
+}
+.clockbar {
/* This is relative for the .clock */
position: relative;
+ height: calc(100% - 50px - 10px);
+ width: 2.5em;
+}
+
+.sideclock {
+ /* border-right: 2px solid gray; */
+ z-index: 1;
+ height: 100%;
+ padding: 0;
+}
+
+.sideclock .meta {
+ border-bottom: 2px solid transparent;
+}
+
+.sideclock .day {
+ border: 1px transparent;
+ min-width: 0;
+}
+
+.days .meta {
+ border-bottom: 2px solid gray;
}
.days {
@@ -21,6 +35,14 @@ body {
width: 100%;
height: 100%;
padding: 0;
+ overflow-x: scroll;
+ scroll-snap-type: x mandatory;
+}
+
+.events {
+ position: relative;
+ width: 100%;
+ height: calc(100% - 50px);
}
/*
@@ -37,29 +59,36 @@ body {
.clock {
color: gray;
border-top: 1px dotted gray;
- width: 100000; /* calc(100% + 5ex); */
}
-.days > :first-child {
- margin-left: 6ex;
+.sideclock .clock {
+ border: none;
+}
+
+.clocktext {
+ z-index: 1;
+ text-align: right;
}
.day {
position: relative;
- height: 100%;
+ height: 99%;
width: 100%;
min-width: 300px;
margin-left: 0.5em;
border: 1px solid black;
+
+ scroll-snap-align: start;
+}
+
+.day .clock {
+ width: calc(100% + 0.5em);
}
.meta {
- position: absolute;
height: 50px;
- top: -50px;
-
width: 100%;
}