_expand.scss 1.8 KB

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