index.less 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. @import (reference) './variable.less';
  2. @import '../style/mixins/hairline.less';
  3. @containerPrefix: ant-container;
  4. .@{containerPrefix} {
  5. border-radius: @container-radius;
  6. margin-bottom: 24 * @rpx;
  7. &-headerInBox {
  8. background-color: @container-background-color;
  9. .@{containerPrefix}-header {
  10. padding: 0 @container-spacing;
  11. .@{containerPrefix}-header-title,
  12. .@{containerPrefix}-header-right {
  13. position: relative;
  14. .hairline('bottom');
  15. }
  16. }
  17. }
  18. &-content {
  19. padding: @container-spacing;
  20. background-color: @container-background-color;
  21. border-radius: @container-radius;
  22. }
  23. &-header {
  24. display: flex;
  25. &-title {
  26. font-size: @container-header-size;
  27. font-weight: bold;
  28. color: @container-header-color;
  29. display: flex;
  30. align-items: center;
  31. height: 96 * @rpx;
  32. flex: 1;
  33. &:empty {
  34. display: none;
  35. }
  36. }
  37. &-right {
  38. color: @COLOR_TEXT_ASSIST;
  39. display: flex;
  40. align-items: center;
  41. height: 96 * @rpx;
  42. justify-content: flex-end;
  43. &:empty {
  44. display: none;
  45. }
  46. }
  47. .@{containerPrefix}-header-title:empty
  48. + .@{containerPrefix}-header-right:not(:empty) {
  49. flex: 1;
  50. }
  51. }
  52. }