# HG changeset patch # User Paul Boddie # Date 1443390067 -7200 # Node ID bbf4ff470062d88bd15e73b3be77b5679b416c66 # Parent 71ff0157387ba678e3dcfd811a37f0db66b6bb23 Make calendar selection labels occupy table cells completely. diff -r 71ff0157387b -r bbf4ff470062 htdocs/styles.css --- a/htdocs/styles.css Sun Sep 27 23:39:58 2015 +0200 +++ b/htdocs/styles.css Sun Sep 27 23:41:07 2015 +0200 @@ -215,6 +215,25 @@ display: block; } +/* Make calendar labels occupy cells completely. + See: http://stackoverflow.com/questions/2841484/how-can-a-label-completely-fill-its-parent-td +*/ + +tr.slot { + height: 0; +} + +th.timeslot, +td.empty { + height: 100%; +} + +label.timepoint, +label.newevent { + display: block; + min-height: 100%; +} + /* Style the labels. */ label.day,