_expand.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. .expand {
  2. position: relative;
  3. border-radius: 0.25rem;
  4. &__content {
  5. overflow: hidden;
  6. max-height: 0;
  7. border-bottom-left-radius: 0.25rem;
  8. border-bottom-right-radius: 0.25rem;
  9. @include transition(all, 0.2s, ease);
  10. li {
  11. font-size: 15.2px;
  12. margin: 0 0 0.525rem 2rem !important;
  13. &:first-child {
  14. margin-top: 0.25rem !important;
  15. }
  16. li {
  17. font-size: 14.4px;
  18. margin: 0 0 0.25rem 1.25rem !important;
  19. }
  20. }
  21. &--toc {
  22. font-family: $title-font;
  23. font-size: 15.2px;
  24. li {
  25. list-style-type: '📂 ';
  26. li {
  27. list-style-type: '📄 ';
  28. }
  29. }
  30. }
  31. }
  32. &__button {
  33. cursor: pointer;
  34. width: 100%;
  35. padding: 0.5rem;
  36. text-align: left;
  37. outline: none;
  38. border: none;
  39. font-size: 1rem;
  40. font-family: $title-font;
  41. @include flexbox();
  42. @include align-items(center);
  43. @include themify($themes) {
  44. color: inherit;
  45. border-top: 1px solid themed('border-line-color');
  46. background-color: themed('expand-background-color');
  47. @include on-event {
  48. background-color: themed('expand-background-color-hover');
  49. }
  50. }
  51. }
  52. &-label {
  53. cursor: pointer;
  54. @include flexbox();
  55. @include align-items(center);
  56. }
  57. &-icon {
  58. padding-top: 0.125rem;
  59. padding-right: 0.5rem;
  60. &__down {
  61. @include rotate(90);
  62. @include transition(all, 0.15s, ease);
  63. }
  64. &__right {
  65. @include rotate(0);
  66. @include transition(all, 0.15s, ease);
  67. }
  68. }
  69. }