Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

custom-section.css 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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-header {
  42. @apply py-2;
  43. }
  44. & .fi-section-content-ctn {
  45. @apply grid gap-y-4;
  46. }
  47. &.fi-compact {
  48. @apply gap-y-2.5;
  49. & .fi-section-content-ctn {
  50. @apply gap-y-2.5;
  51. }
  52. }
  53. }
  54. &.fi-aside {
  55. @apply grid grid-cols-1 items-start gap-x-6 gap-y-4 md:grid-cols-3;
  56. }
  57. &.fi-collapsible {
  58. & .fi-section-header {
  59. @apply cursor-pointer;
  60. }
  61. }
  62. &.fi-collapsed {
  63. & .fi-section-collapse-btn {
  64. @apply rotate-180;
  65. }
  66. & .fi-section-content-ctn {
  67. @apply invisible absolute h-0 overflow-hidden border-none;
  68. }
  69. }
  70. &.fi-section-has-content-before {
  71. & .fi-section-content-ctn {
  72. @apply md:order-first;
  73. }
  74. }
  75. & .fi-section-header {
  76. @apply flex items-center gap-3;
  77. }
  78. & .fi-section-header-icon {
  79. @apply size-6 self-start text-gray-400 dark:text-gray-500;
  80. &.fi-color-custom {
  81. @apply text-custom-500 dark:text-custom-400;
  82. }
  83. &.fi-size-sm {
  84. @apply mt-1 size-4;
  85. }
  86. &.fi-size-md {
  87. @apply mt-0.5 size-5;
  88. }
  89. }
  90. & .fi-section-header-text-ctn {
  91. @apply grid flex-1 gap-y-1;
  92. }
  93. & .fi-section-header-heading {
  94. @apply text-base font-semibold leading-6 text-gray-950 dark:text-white;
  95. }
  96. & .fi-section-header-description {
  97. @apply overflow-hidden break-words text-sm text-gray-500 dark:text-gray-400;
  98. }
  99. }