_group.scss 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. $padding: 14px;
  2. .ui-group {
  3. &:not(:last-child) {
  4. margin-bottom: 20px;
  5. }
  6. &.control {
  7. > .group-title {
  8. .group-icon {
  9. transition: transform .1s ease;
  10. cursor: pointer;
  11. &.show {
  12. transform: rotateZ(180deg);
  13. }
  14. }
  15. }
  16. > div.group-title .group-icon.show {
  17. transform: translateY(-50%) rotateZ(180deg);
  18. }
  19. .group-content {
  20. overflow: hidden;
  21. &.ready {
  22. transition: max-height .1s ease;
  23. }
  24. }
  25. }
  26. > .group-title {
  27. font-size: var( --big-size);
  28. margin-bottom: $padding;
  29. color: var(--colors-color);
  30. .group-icon {
  31. display: inline-flex;
  32. align-items: center;
  33. }
  34. }
  35. > div.group-title {
  36. position: relative;
  37. .group-icon {
  38. position: absolute;
  39. width: 14px;
  40. right: 0;
  41. top: 50%;
  42. transform: translateY(-50%);
  43. }
  44. }
  45. > h3.group-title {
  46. display: flex;
  47. align-items: center;
  48. justify-content: space-between;
  49. }
  50. .border-bottom {
  51. padding-bottom: $padding;
  52. border-bottom: 1px solid var(--colors-border-color);
  53. }
  54. .border-top {
  55. padding-top: $padding;
  56. border-top: 1px solid var(--colors-border-color);
  57. }
  58. > .group-content {
  59. font-size: var( --medium-size);
  60. &.border-bottom {
  61. margin-bottom: 0;
  62. }
  63. &.border-top {
  64. margin-top: 0;
  65. }
  66. }
  67. }
  68. .group-option {
  69. &:not(:last-child) {
  70. margin-bottom: $padding;
  71. }
  72. > .group-option-label {
  73. display: block;
  74. margin-bottom: 10px;
  75. color: var(--colors-content-color);
  76. }
  77. }