Projet

Général

Profil

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

Josué Kouka, 31 octobre 2017 17:55

Télécharger (1,77 ko)

Voir les différences:

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

 help/fr/misc-css-classes.page |  9 +++++++++
 static/includes/_cells.scss   | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+)
help/fr/misc-css-classes.page
48 48
  l'impression que des cellules consécutives font partie d'un unique
49 49
  bloc.</p></td>
50 50
 </tr>
51
 <tr>
52
   <td><p><code>foldable</code></p></td>
53
   <td><p>Rend le contenu d'une cellule pliable.</p></td>
54
 </tr>
55
 <tr>
56
   <td><p><code>folded</code></p></td>
57
   <td><p>Associée avec la classe foldable, définit le contenu
58
   d'une cellule comme étant plié par défaut.</p></td>
59
 </tr>
51 60
</table>
52 61

  
53 62
</section>
static/includes/_cells.scss
543 543
		}
544 544
	}
545 545
}
546

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