Fossil SCM

For expanded view, use max-height:initial instead of some arbitrarily large value. That will effectively disable max-height. Change the pointer for the expand toggle to 'cursor'.

stephan 2020-07-09 18:06 forum-expand-poc
Commit c824d1dc3e1c3fd5269767204445456002b63e7320840397d6bb0d6b2a3ccdec
1 file changed +2 -1
+2 -1
--- src/default.css
+++ src/default.css
@@ -798,13 +798,14 @@
798798
label.forum-post-collapser {
799799
align-self: flex-start;
800800
padding: 0.1em 0.5em;
801801
border: 1px outset;
802802
border-radius: 0.25em;
803
+ cursor: pointer;
803804
}
804805
input[type=checkbox].forum-post-collapser:checked ~ div.forumPostBody {
805
- max-height: 10000em /* some "absurdly large" value */;
806
+ max-height: initial;
806807
}
807808
808809
#capabilitySummary {
809810
text-align: center;
810811
}
811812
--- src/default.css
+++ src/default.css
@@ -798,13 +798,14 @@
798 label.forum-post-collapser {
799 align-self: flex-start;
800 padding: 0.1em 0.5em;
801 border: 1px outset;
802 border-radius: 0.25em;
 
803 }
804 input[type=checkbox].forum-post-collapser:checked ~ div.forumPostBody {
805 max-height: 10000em /* some "absurdly large" value */;
806 }
807
808 #capabilitySummary {
809 text-align: center;
810 }
811
--- src/default.css
+++ src/default.css
@@ -798,13 +798,14 @@
798 label.forum-post-collapser {
799 align-self: flex-start;
800 padding: 0.1em 0.5em;
801 border: 1px outset;
802 border-radius: 0.25em;
803 cursor: pointer;
804 }
805 input[type=checkbox].forum-post-collapser:checked ~ div.forumPostBody {
806 max-height: initial;
807 }
808
809 #capabilitySummary {
810 text-align: center;
811 }
812

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button