radius.less 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // ================================================================
  2. // = Border Radius =
  3. // ================================================================
  4. .@{table-prefix-cls} {
  5. /* title + table */
  6. &-title {
  7. border-radius: @table-border-radius-base @table-border-radius-base 0 0;
  8. }
  9. &-title + &-container {
  10. border-top-left-radius: 0;
  11. border-top-right-radius: 0;
  12. table {
  13. border-radius: 0;
  14. > thead > tr:first-child {
  15. th:first-child {
  16. border-radius: 0;
  17. }
  18. th:last-child {
  19. border-radius: 0;
  20. }
  21. }
  22. }
  23. }
  24. /* table */
  25. &-container {
  26. border-top-left-radius: @table-border-radius-base;
  27. border-top-right-radius: @table-border-radius-base;
  28. table > thead > tr:first-child {
  29. th:first-child {
  30. border-top-left-radius: @table-border-radius-base;
  31. }
  32. th:last-child {
  33. border-top-right-radius: @table-border-radius-base;
  34. }
  35. }
  36. }
  37. /* table + footer */
  38. &-footer {
  39. border-radius: 0 0 @table-border-radius-base @table-border-radius-base;
  40. }
  41. }