Skip to content

Commit

Permalink
CSS for collapsible snippets: metanorma/metanorma-ogc#331
Browse files Browse the repository at this point in the history
  • Loading branch information
opoudjis committed Aug 16, 2024
1 parent cdd8f0a commit c1630cc
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions lib/isodoc/base_style/reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,12 @@ visibility:visible;
transition: max-height 0.2s ease-out;
}

.collapsible {
.collapsible {
background-color: #777;
color: white;
cursor: pointer;
padding: 18px;
padding: 12px 0;
margin: 0;
width: 100%;
border: none;
text-align: left;
Expand All @@ -252,9 +253,20 @@ visibility:visible;
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
margin-left: 12px;
margin-right: 12px;
}

.active:after {
content: "\25b2";
}

/* collapsible: */
.collapsible + .hidable {
margin-top: 0;
}

.collapsible:not(.active) + .hidable {
overflow: hidden;
padding: 0;
}

0 comments on commit c1630cc

Please sign in to comment.