index.less 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. @import "~assets/less/variable";
  2. .overview-container {
  3. padding: 20px;
  4. flex: 1;
  5. display: flex;
  6. flex-direction: column;
  7. .charts {
  8. margin-top: 20px;
  9. flex: 1;
  10. display: flex;
  11. > div {
  12. flex: 1;
  13. background-color: #fff;
  14. margin-right: 20px;
  15. padding: 20px;
  16. display: flex;
  17. flex-direction: column;
  18. border-radius: 6px;
  19. transition: all .2s ease;
  20. &:hover {
  21. box-shadow: 0 3px 8px -3px rgba(0,0,0,0.1);
  22. }
  23. &:last-child {
  24. margin-right: 0;
  25. }
  26. &>div:last-child {
  27. flex: 1;
  28. }
  29. .chart-title {
  30. font-size: 16px;
  31. }
  32. .chart-desc {
  33. font-size: 12px;
  34. opacity: .8;
  35. }
  36. }
  37. }
  38. .card-list {
  39. display: flex;
  40. width: 100%;
  41. justify-content: space-between;
  42. .item {
  43. background-color: #fff;
  44. height: 120px;
  45. padding: 10px 20px;
  46. flex: 1;
  47. margin-right: 20px;
  48. position: relative;
  49. background-repeat: no-repeat;
  50. background-position: center;
  51. background-size: cover;
  52. border-radius: 6px;
  53. transition: all .2s ease;
  54. &:hover {
  55. box-shadow: 0 3px 8px -3px rgba(0,0,0,0.1);
  56. }
  57. &:last-child {
  58. margin-right: 0;
  59. }
  60. .title {
  61. font-size: 16px;
  62. padding-bottom: 10px;
  63. }
  64. .num {
  65. font-size: 30px ;
  66. font-weight: bold;
  67. color: #fff;
  68. padding-right: 8px;
  69. }
  70. img {
  71. position: absolute;
  72. right: 20px;
  73. bottom: 30px;
  74. width: 40px;
  75. }
  76. }
  77. }
  78. }