_panels.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. .panel-group {
  2. @each $key, $val in $colors {
  3. .panel-col-#{$key} {
  4. border: 1px solid $val;
  5. .panel-title {
  6. background-color: $val !important;
  7. color: #fff;
  8. }
  9. .panel-body {
  10. border-top-color: transparent !important;
  11. }
  12. }
  13. }
  14. .panel {
  15. @include border-radius(0);
  16. .panel-title {
  17. .material-icons {
  18. float: left;
  19. line-height: 16px;
  20. margin-right: 8px;
  21. }
  22. }
  23. .panel-heading {
  24. padding: 0;
  25. @include border-radius(0);
  26. a {
  27. display: block;
  28. padding: 10px 15px;
  29. &:hover,
  30. &:focus,
  31. &:active {
  32. text-decoration: none;
  33. }
  34. }
  35. }
  36. .panel-body {
  37. color: #555;
  38. }
  39. }
  40. .panel-primary {
  41. border: 1px solid #1f91f3;
  42. .panel-title {
  43. background-color: #1f91f3;
  44. }
  45. }
  46. .panel-success {
  47. border: 1px solid #2b982b;
  48. .panel-title {
  49. background-color: #2b982b;
  50. color: #fff;
  51. }
  52. }
  53. .panel-warning {
  54. border: 1px solid #ff9600;
  55. .panel-title {
  56. background-color: #ff9600;
  57. color: #fff;
  58. }
  59. }
  60. .panel-danger {
  61. border: 1px solid #fb483a;
  62. .panel-title {
  63. background-color: #fb483a;
  64. color: #fff;
  65. }
  66. }
  67. }
  68. .full-body {
  69. @each $key, $val in $colors {
  70. .panel-col-#{$key} {
  71. .panel-body {
  72. border-top-color: #fff !important;
  73. background-color: $val;
  74. color: #fff;
  75. }
  76. }
  77. }
  78. .panel-primary {
  79. .panel-body {
  80. border-top-color: #fff !important;
  81. background-color: #1f91f3;
  82. color: #fff;
  83. }
  84. }
  85. .panel-success {
  86. .panel-body {
  87. border-top-color: #fff !important;
  88. background-color: #2b982b;
  89. color: #fff;
  90. }
  91. }
  92. .panel-warning {
  93. .panel-body {
  94. border-top-color: #fff !important;
  95. background-color: #ff9600;
  96. color: #fff;
  97. }
  98. }
  99. .panel-danger {
  100. .panel-body {
  101. border-top-color: #fff !important;
  102. background-color: #fb483a;
  103. color: #fff;
  104. }
  105. }
  106. }