_box.scss 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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: 1rem;
  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. padding: .1rem;
  23. }
  24. }
  25. .box-header.with-border {
  26. border-bottom: 1px solid $divider-color;
  27. }
  28. .box, .panel {
  29. transition: .3s cubic-bezier(.25,.8,.5,1);
  30. }
  31. .box-shadow {
  32. box-shadow: 0 2px 4px 0 rgba(0,0,0,.05);
  33. }
  34. .box.box-solid {
  35. border-top: 0;
  36. }
  37. .box-footer {
  38. display: inherit;
  39. border-top-left-radius: 0;
  40. border-top-right-radius: 0;
  41. border-bottom-right-radius: 3px;
  42. border-bottom-left-radius: 3px;
  43. padding: 10px;
  44. }
  45. .box-body {
  46. border-top-left-radius: 0;
  47. border-top-right-radius: 0;
  48. border-bottom-right-radius: 3px;
  49. border-bottom-left-radius: 3px;
  50. padding: 10px;
  51. .box-footer {
  52. margin: -10px;
  53. }
  54. }
  55. .box.box-solid.box-default {
  56. border: 1px solid lighten($input-border-color, 2%);
  57. box-shadow: 0 1px 1px rgba(0,0,0,.1);
  58. }
  59. .form-group .box {
  60. margin-bottom: 0;
  61. }