card.less 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. .card {
  2. background-color: white;
  3. border-radius: @border-radius-base;
  4. box-shadow: @card-box-shadow;
  5. padding: @line-height-computed;
  6. .page-header {
  7. margin: 0 0 1.5625rem;
  8. h1,
  9. h2,
  10. h3 {
  11. margin-top: 0;
  12. }
  13. }
  14. > .container-fluid {
  15. padding: 0;
  16. }
  17. .card-header {
  18. border-bottom: 1px solid @gray-lighter;
  19. padding-bottom: @line-height-computed;
  20. margin-bottom: @line-height-computed;
  21. h2 {
  22. margin: 0;
  23. }
  24. }
  25. > :first-child {
  26. margin-top: 0;
  27. }
  28. > :last-child {
  29. margin-bottom: 0;
  30. }
  31. }
  32. .card-thin {
  33. padding: @line-height-computed / 2;
  34. }
  35. .card-group {
  36. .card {
  37. margin: @line-height-computed -15px 0 -15px;
  38. border-radius: 0;
  39. &.card-highlighted {
  40. // Make it taller and card like
  41. margin-top: 0;
  42. border-radius: @border-radius-base;
  43. }
  44. &.card-first {
  45. border-top-left-radius: @border-radius-base;
  46. border-bottom-left-radius: @border-radius-base;
  47. }
  48. &.card-last {
  49. border-top-right-radius: @border-radius-base;
  50. border-bottom-right-radius: @border-radius-base;
  51. }
  52. }
  53. }
  54. .card-border {
  55. border: @border-width-base solid @border-color-base;
  56. }
  57. .card-content {
  58. padding: @padding-md;
  59. }