compact-item-vertical.less 784 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .compact-item-vertical-border-radius(@prefix-cls) {
  2. &-item:not(&-first-item):not(&-last-item) {
  3. border-radius: 0;
  4. }
  5. &-item&-first-item:not(&-last-item) {
  6. border-bottom-right-radius: 0;
  7. border-bottom-left-radius: 0;
  8. }
  9. &-item&-last-item:not(&-first-item) {
  10. border-top-left-radius: 0;
  11. border-top-right-radius: 0;
  12. }
  13. }
  14. .compact-item-vertical-border(@prefix-cls) {
  15. // border collapse
  16. &-item:not(&-last-item) {
  17. margin-bottom: -@border-width-base;
  18. }
  19. &-item {
  20. &:hover,
  21. &:focus,
  22. &:active {
  23. z-index: 2;
  24. }
  25. &[disabled] {
  26. z-index: 0;
  27. }
  28. }
  29. }
  30. .compact-item-vertical(@prefix-cls) {
  31. &-compact-vertical {
  32. .compact-item-vertical-border(@prefix-cls);
  33. .compact-item-vertical-border-radius(@prefix-cls);
  34. }
  35. }