Verified Commit d08d0aa5 authored by Camil Staps's avatar Camil Staps 🚀

Enhancements to collapsables

parent 02e3b1e6
Pipeline #14655 failed with stage
in 54 seconds
......@@ -8,6 +8,10 @@ a.hidden {
text-decoration: none;
}
.flush-right {
float: right;
}
/* Main boxes */
#container {
position: relative;
......@@ -136,6 +140,24 @@ a.hidden {
border-color: #e3890b;
}
.collapsable-indicator:after {
color: #666;
content: '\2304';
}
.collapsable.uncollapsed > .collapsable-indicator:after {
content: '\2303';
}
.collapsable-link {
color: #666;
margin: 0 .5em;
text-decoration: none;
}
.collapsable-link:hover {
color: #111;
}
.collapsable-body {
border-radius: 2px;
display: none;
......
......@@ -146,6 +146,8 @@ where
[ DivTag [ClassAttr ("collapsable-head collapsable-head-" +++ icon)]
[ SpanTag [ClassAttr ("icon icon-" +++ icon)] []
, Text title
, SpanTag [ClassAttr "flush-right collapsable-indicator"] []
, ATag [ClassAttr "flush-right collapsable-link", HrefAttr ("#" +++ id), TitleAttr "URL to this item"] [Text "#"]
]
, DivTag [ClassAttr "collapsable-body"] [html body]
]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment