0001-cells-add-class-for-folded-and-foldable-cells-19496.patch
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'un cellule pliable</p></td> |
|
54 |
</tr> |
|
55 |
<tr> |
|
56 |
<td><p><code>folded</code></p></td> |
|
57 |
<td><p>Associé avec la classe foldable, cette classe 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 |
} |
|
558 |
> div > div { |
|
559 |
display: block; |
|
560 |
} |
|
561 |
} |
|
562 |
&.foldable.folded { |
|
563 |
h2:first-child { |
|
564 |
&::after { |
|
565 |
font-family: FontAwesome; |
|
566 |
content: "\f107"; /* angle-down */ |
|
567 |
position: absolute; |
|
568 |
right: 1em; |
|
569 |
} |
|
570 |
} |
|
571 |
> div > div { |
|
572 |
display: none; |
|
573 |
} |
|
574 |
} |
|
575 |
} |
|
546 |
- |