home.less 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. [home]{
  2. @blue:#1890ff;
  3. @main-color: #3da0e3;
  4. @row-height:290/100rem;
  5. h3{
  6. color: #888;
  7. font-size: 0.18rem;
  8. font-weight: bold;
  9. }
  10. .home-grid{
  11. padding: 0.15rem;
  12. width: 100%;
  13. height: 100%;
  14. display: grid;
  15. grid-gap: 0.2rem;
  16. grid-template-columns: 1fr 1fr 1fr;
  17. grid-template-rows: 1fr 1fr 2fr;
  18. // grid-template-areas: ". . user-map"
  19. // ". . user-map"
  20. // "port-map port-map port-map"
  21. // "port-map port-map port-map";
  22. .home-grid-item{
  23. background: #fff;
  24. .plg-flex{
  25. height: 100%;
  26. align-items: center;
  27. justify-content: space-between;
  28. }
  29. &-wrap{
  30. width: 50%;
  31. display: inline-block;
  32. .title{
  33. flex: 0 0 0;
  34. padding:0 0 20px 0;
  35. }
  36. .value{
  37. font-size:0.38rem;
  38. font-weight: bold;
  39. }
  40. }
  41. }
  42. .user-map{
  43. // grid-area:user-map;
  44. grid-column: ~"3 / 4";
  45. grid-row: ~"1 / 3";
  46. }
  47. .port-map{
  48. //grid-area:port-map
  49. grid-column: 1 e("/") 4;
  50. grid-row: ~"3 / 3";
  51. }
  52. };
  53. [class^="home-icon-"]{
  54. margin-left: 25%;
  55. display: inline-block;
  56. width: 0.80rem;
  57. height: 0.80rem;
  58. background: no-repeat center center;
  59. background-size: cover;
  60. }
  61. .home-icon-a{
  62. background-image: url(/ops/images/home/ill_registration.png)
  63. }
  64. .home-icon-b{
  65. background-image: url(/ops/images/home/ill_service.png)
  66. }
  67. .home-icon-c{
  68. background-image: url(/ops/images/home/ill_instance.png)
  69. }
  70. .home-icon-d{
  71. background-image: url(/ops/images/home/ill_interface.png)
  72. }
  73. .title{
  74. padding: 15/100rem
  75. }
  76. }