您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

custom-section.css 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. .fi-custom-section {
  2. &:not(.fi-section-not-contained) {
  3. & .fi-section-content {
  4. @apply p-6;
  5. }
  6. & .fi-section-footer {
  7. @apply border-t border-gray-200 px-6 py-4 dark:border-white/10;
  8. }
  9. &:not(.fi-aside) {
  10. @apply rounded-xl bg-white shadow-sm ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10;
  11. & .fi-section-header {
  12. @apply px-6 py-4;
  13. }
  14. &.fi-section-has-header {
  15. & .fi-section-content-ctn {
  16. @apply border-t border-gray-200 dark:border-white/10;
  17. }
  18. }
  19. }
  20. &.fi-aside {
  21. & .fi-section-content-ctn {
  22. @apply rounded-xl bg-white shadow-sm ring-1 ring-gray-950/5 dark:bg-gray-900 dark:ring-white/10 md:col-span-2;
  23. }
  24. }
  25. &.fi-compact {
  26. &:not(.fi-aside) {
  27. & .fi-section-header {
  28. @apply px-4 py-2.5;
  29. }
  30. }
  31. & .fi-section-content {
  32. @apply p-4;
  33. }
  34. & .fi-section-footer {
  35. @apply px-4 py-2.5;
  36. }
  37. }
  38. }
  39. &.fi-section-not-contained:not(.fi-aside) {
  40. @apply grid gap-y-4;
  41. & .fi-section-content-ctn {
  42. @apply grid gap-y-4;
  43. }
  44. &.fi-compact {
  45. @apply gap-y-2.5;
  46. & .fi-section-content-ctn {
  47. @apply gap-y-2.5;
  48. }
  49. }
  50. }
  51. &.fi-aside {
  52. @apply grid grid-cols-1 items-start gap-x-6 gap-y-4 md:grid-cols-3;
  53. }
  54. &.fi-collapsible {
  55. & .fi-section-header {
  56. @apply cursor-pointer;
  57. }
  58. }
  59. &.fi-collapsed {
  60. & .fi-section-collapse-btn {
  61. @apply rotate-180;
  62. }
  63. & .fi-section-content-ctn {
  64. @apply invisible absolute h-0 overflow-hidden border-none;
  65. }
  66. }
  67. &.fi-section-has-content-before {
  68. & .fi-section-content-ctn {
  69. @apply md:order-first;
  70. }
  71. }
  72. & .fi-section-header {
  73. @apply flex items-center gap-3;
  74. }
  75. & .fi-section-header-icon {
  76. @apply size-6 self-start text-gray-400 dark:text-gray-500;
  77. &.fi-color-custom {
  78. @apply text-custom-500 dark:text-custom-400;
  79. }
  80. &.fi-size-sm {
  81. @apply mt-1 size-4;
  82. }
  83. &.fi-size-md {
  84. @apply mt-0.5 size-5;
  85. }
  86. }
  87. & .fi-section-header-text-ctn {
  88. @apply grid flex-1 gap-y-1;
  89. }
  90. & .fi-section-header-heading {
  91. @apply text-base font-semibold leading-6 text-gray-950 dark:text-white;
  92. }
  93. & .fi-section-header-description {
  94. @apply overflow-hidden break-words text-sm text-gray-500 dark:text-gray-400;
  95. }
  96. }