From 431a509c0277c39ffcef9d18d65ab52ee45dcb92 Mon Sep 17 00:00:00 2001 From: Josue Kouka Date: Wed, 18 Oct 2017 11:33:22 +0200 Subject: [PATCH] cells: add class for folded and foldable cells (#19496) --- static/includes/_cells.scss | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/static/includes/_cells.scss b/static/includes/_cells.scss index adc98db..37bafdc 100644 --- a/static/includes/_cells.scss +++ b/static/includes/_cells.scss @@ -543,3 +543,33 @@ div.familyinfoscell { } } } + +/* foldable and folded cell style */ +#content div.cell { + &.foldable.folded { + h2:first-child { + &::after { + font-family: FontAwesome; + content: "\f107"; /* angle-down */ + position: absolute; + right: 1em; + } + } + > div > div { + display: none; + } + } + &.foldable { + h2:first-child { + &::after { + font-family: FontAwesome; + content: "\f106"; /* angle-up */ + position: absolute; + right: 1em; + } + } + > div > div { + display: block; + } + } +} -- 2.11.0