diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-15 00:52:17 +0200 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2020-07-15 00:52:17 +0200 |
commit | 61ea4f649919d8fef95c98a22d6ff65e4c8cf95b (patch) | |
tree | 6e46c6467c801669f42ca78b2ca175f6c4e08818 | |
parent | Repair jump to date. (diff) | |
download | calp-61ea4f649919d8fef95c98a22d6ff65e4c8cf95b.tar.gz calp-61ea4f649919d8fef95c98a22d6ff65e4c8cf95b.tar.xz |
Move --editmode width for generated events to fix css.
Diffstat (limited to '')
-rw-r--r-- | module/output/html.scm | 7 | ||||
-rw-r--r-- | static/style.css | 8 |
2 files changed, 9 insertions, 6 deletions
diff --git a/module/output/html.scm b/module/output/html.scm index 2d113b35..2d485791 100644 --- a/module/output/html.scm +++ b/module/output/html.scm @@ -845,12 +845,7 @@ summary: "New Event"))))) (caddar ; strip <a> tag (make-block (car (children cal)) - `((class " generated ") - ;; TODO currently without this the event is always - ;; full width. Adding this however completely breaks - ;; creation of long events. - ;; (style "width:calc(100%*var(--editmode));") - ) + `((class " generated ")) element-id: "GENERATED"))))))))) diff --git a/static/style.css b/static/style.css index a413ce83..36f1a0c3 100644 --- a/static/style.css +++ b/static/style.css @@ -621,6 +621,14 @@ along with their colors. transition: none; } +.longevents .event.generated { + bottom: 0; + height: calc(100% * var(--editmode)); +} +.events .event.generated { + width: calc(100% * var(--editmode)); +} + .clock-0 { top: calc(100%/24 * 0); } .clock-2 { top: calc(100%/24 * 2); } .clock-4 { top: calc(100%/24 * 4); } |