change-plan-modal.less 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #change-plan {
  2. .modal-dialog {
  3. &:extend(.modal-lg);
  4. }
  5. table {
  6. @media only screen and (min-width: @screen-md-min) {
  7. th:last-child,
  8. td:last-child {
  9. width: 1%; // will expand to fit the content
  10. text-align: center;
  11. }
  12. }
  13. @media only screen and (max-width: @screen-sm-max) {
  14. display: block;
  15. thead {
  16. display: none;
  17. }
  18. tbody,
  19. td,
  20. tr {
  21. display: inline-block;
  22. padding-top: 0;
  23. padding-bottom: 0;
  24. text-align: center;
  25. width: 100%;
  26. }
  27. td:first-child {
  28. padding-top: @padding-md;
  29. }
  30. td:last-child {
  31. padding-top: @padding-sm;
  32. padding-bottom: @padding-md;
  33. }
  34. tr:first-child {
  35. td:first-child {
  36. padding-top: @padding-sm;
  37. }
  38. }
  39. tr {
  40. border-bottom: 1px solid @table-border-color;
  41. td,
  42. th {
  43. border: 0 !important;
  44. }
  45. }
  46. tr:last-child {
  47. border-bottom: 0;
  48. }
  49. }
  50. }
  51. }