You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
2.3 KiB

  1. /**
  2. * Lists
  3. * --------------------------------------------------
  4. */
  5. .list {
  6. position: relative;
  7. padding-top: $item-border-width;
  8. padding-bottom: $item-border-width;
  9. padding-left: 0; // reset padding because ul and ol
  10. margin-bottom: 20px;
  11. }
  12. .list:last-child {
  13. margin-bottom: 0px;
  14. &.card{
  15. margin-bottom:40px;
  16. }
  17. }
  18. /**
  19. * List Header
  20. * --------------------------------------------------
  21. */
  22. .list-header {
  23. margin-top: $list-header-margin-top;
  24. padding: $list-header-padding;
  25. background-color: $list-header-bg;
  26. color: $list-header-color;
  27. font-weight: bold;
  28. }
  29. // when its a card make sure it doesn't duplicate top and bottom borders
  30. .card.list .list-item {
  31. padding-right: 1px;
  32. padding-left: 1px;
  33. }
  34. /**
  35. * Cards and Inset Lists
  36. * --------------------------------------------------
  37. * A card and list-inset are close to the same thing, except a card as a box shadow.
  38. */
  39. .card,
  40. .list-inset {
  41. overflow: hidden;
  42. margin: ($content-padding * 2) $content-padding;
  43. border-radius: $card-border-radius;
  44. background-color: $card-body-bg;
  45. }
  46. .card {
  47. padding-top: $item-border-width;
  48. padding-bottom: $item-border-width;
  49. box-shadow: $card-box-shadow;
  50. .item {
  51. border-left: 0;
  52. border-right: 0;
  53. }
  54. .item:first-child {
  55. border-top: 0;
  56. }
  57. .item:last-child {
  58. border-bottom: 0;
  59. }
  60. }
  61. .padding {
  62. .card, .list-inset {
  63. margin-left: 0;
  64. margin-right: 0;
  65. }
  66. }
  67. .card .item,
  68. .list-inset .item,
  69. .padding > .list .item
  70. {
  71. &:first-child {
  72. border-top-left-radius: $card-border-radius;
  73. border-top-right-radius: $card-border-radius;
  74. .item-content {
  75. border-top-left-radius: $card-border-radius;
  76. border-top-right-radius: $card-border-radius;
  77. }
  78. }
  79. &:last-child {
  80. border-bottom-right-radius: $card-border-radius;
  81. border-bottom-left-radius: $card-border-radius;
  82. .item-content {
  83. border-bottom-right-radius: $card-border-radius;
  84. border-bottom-left-radius: $card-border-radius;
  85. }
  86. }
  87. }
  88. .card .item:last-child,
  89. .list-inset .item:last-child {
  90. margin-bottom: $item-border-width * -1;
  91. }
  92. .card .item,
  93. .list-inset .item,
  94. .padding > .list .item,
  95. .padding-horizontal > .list .item {
  96. margin-right: 0;
  97. margin-left: 0;
  98. &.item-input input {
  99. padding-right: 44px;
  100. }
  101. }
  102. .padding-left > .list .item {
  103. margin-left: 0;
  104. }
  105. .padding-right > .list .item {
  106. margin-right: 0;
  107. }