_box.scss 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. .box {
  2. position: relative;
  3. border-radius: .5rem;
  4. background: #ffffff;
  5. margin-bottom: 10px;
  6. width: 100%;
  7. box-shadow: $shadow;
  8. display: flex;
  9. flex-direction: column;
  10. }
  11. .box .box-footer, .card .box-footer {
  12. border-top: 1px solid $divider-color;
  13. }
  14. .box-header {
  15. padding: 14px;
  16. display: inherit;
  17. justify-content: space-between;
  18. align-items: center;
  19. h3, .h3 {
  20. font-size: 1.15rem;
  21. margin-bottom: 0;
  22. }
  23. }
  24. .box-header.with-border {
  25. border-bottom: 1px solid $divider-color;
  26. }
  27. .box, .panel {
  28. transition: .3s cubic-bezier(.25,.8,.5,1);
  29. }
  30. .box-shadow {
  31. box-shadow: 0 2px 4px 0 rgba(0,0,0,.05);
  32. }
  33. .box.box-solid {
  34. border-top: 0;
  35. }
  36. .box-footer {
  37. display: inherit;
  38. border-top-left-radius: 0;
  39. border-top-right-radius: 0;
  40. border-bottom-right-radius: 3px;
  41. border-bottom-left-radius: 3px;
  42. padding: 10px;
  43. }
  44. .box-body {
  45. border-top-left-radius: 0;
  46. border-top-right-radius: 0;
  47. border-bottom-right-radius: 3px;
  48. border-bottom-left-radius: 3px;
  49. padding: 10px;
  50. .box-footer {
  51. margin: -10px;
  52. }
  53. }
  54. .box.box-solid.box-default {
  55. border: 1px solid $input-border-color;
  56. box-shadow: 0 1px 1px rgba(0,0,0,.1);
  57. }
  58. .form-group .box {
  59. margin-bottom: 0;
  60. }