aboutsummaryrefslogtreecommitdiff
path: root/static/style.css
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2020-03-19 14:16:12 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2020-03-19 14:16:12 +0100
commit8bb51556b8870fd894f12085171165ac82794eee (patch)
tree2a9e239894101aa153337172443eb4bf87aef114 /static/style.css
parentHTML fix big table week day start. (diff)
downloadcalp-8bb51556b8870fd894f12085171165ac82794eee.tar.gz
calp-8bb51556b8870fd894f12085171165ac82794eee.tar.xz
Change calendar table to be css grid.
Diffstat (limited to 'static/style.css')
-rw-r--r--static/style.css26
1 files changed, 18 insertions, 8 deletions
diff --git a/static/style.css b/static/style.css
index 11565ff7..810fa0b4 100644
--- a/static/style.css
+++ b/static/style.css
@@ -117,20 +117,30 @@ body {
flex-grow: 1;
}
-main table {
- width: 100%;
- height: 90%; /* TODO */
- border-collapse: collapse;
+/* ---------------------------------------- */
+
+.caltable {
+ flex-grow: 10;
+
+ display: grid;
+ grid-template-columns: repeat(7, 1fr);
+ /* This is for the first name, the week days.
+ NOTE that I'm not sure this is actually the
+ correct way to do it. */
+ grid-template-rows: 2em;
}
-main table thead {
- height: 1em;
+.caltable .thead {
+ font-weight: bold;
+ text-align: center;
}
-main table td {
- width: calc(100%/7);
+.caltable div {
+ border: 1px solid gray;
}
+/* ---------------------------------------- */
+
.calendar {
width: 100%;
height: 100%;