color.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. .demo-color-box {
  2. position: relative;
  3. border-radius: 4px;
  4. padding: 20px;
  5. margin: 5px 0;
  6. height: 114px;
  7. box-sizing: border-box;
  8. color: #fff;
  9. font-size: 14px;
  10. & .value {
  11. font-size: 12px;
  12. opacity: 0.69;
  13. line-height: 24px;
  14. }
  15. }
  16. .demo-color-box-other {
  17. height: 74px;
  18. margin: 10px 0 !important;
  19. border-radius: 4px 4px 4px 4px !important;
  20. padding: 15px 20px;
  21. }
  22. .demo-color-box-group {
  23. .demo-color-box {
  24. border-radius: 0;
  25. margin: 0;
  26. }
  27. .demo-color-box:first-child {
  28. border-radius: 4px 4px 0 0;
  29. }
  30. .demo-color-box:last-child {
  31. border-radius: 0 0 4px 4px;
  32. }
  33. }
  34. .bg-color-sub {
  35. width: 100%;
  36. height: 40px;
  37. left: 0;
  38. bottom: 0;
  39. position: absolute;
  40. border-radius: 0 0 4px 4px;
  41. }
  42. .bg-blue-sub-item {
  43. width: 11.1111111%;
  44. height: 100%;
  45. display: inline-block;
  46. }
  47. .bg-blue-sub-item:first-child {
  48. border-radius: 0 0 0 4px;
  49. }
  50. .bg-success-sub-item {
  51. width: 50%;
  52. height: 100%;
  53. display: inline-block;
  54. }
  55. .bg-success-sub-item:first-child {
  56. border-radius: 0 0 0 4px;
  57. }
  58. .bg-success-sub-item:last-child {
  59. border-radius: 0 0 4px 0;
  60. }
  61. .bg-transparent {
  62. border: 1px solid #fcc3c3;
  63. color: #303133;
  64. background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' preserveAspectRatio='none' viewBox='0 0 100 100'><path d='M0 98 L100 0 L100 1 L1 98' fill='%23FCC3C3' /></svg>");
  65. background-repeat: no-repeat;
  66. background-position: center center;
  67. background-size: 100% 100%, auto;
  68. }
  69. .demo-color-box-lite {
  70. color: #303133;
  71. }