_expand.scss 1.6 KB

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