Projet

Général

Profil

0001-cells-add-class-for-folded-and-foldable-cells-19496.patch

Josué Kouka, 30 octobre 2017 17:39

Télécharger (1,25 ko)

Voir les différences:

Subject: [PATCH] cells: add class for folded and foldable cells (#19496)

 static/includes/_cells.scss | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
static/includes/_cells.scss
543 543
		}
544 544
	}
545 545
}
546

  
547
/* foldable and folded cell style */
548
#content div.cell {
549
    &.foldable.folded {
550
        h2:first-child {
551
            &::after {
552
                font-family: FontAwesome;
553
                content: "\f107"; /* angle-down */
554
                position: absolute;
555
                right: 1em;
556
            }
557
        }
558
        > div > div {
559
            display: none;
560
        }
561
    }
562
    &.foldable {
563
        h2:first-child {
564
            &::after {
565
                font-family: FontAwesome;
566
                content: "\f106"; /* angle-up */
567
                position: absolute;
568
                right: 1em;
569
            }
570
        }
571
        > div > div {
572
            display: block;
573
        }
574
    }
575
}
546
-