mainpage.less 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. // 容器样式
  2. .containers {
  3. width: 100%;
  4. max-height: 100vh;
  5. background-color: #333;
  6. overflow: hidden;
  7. font-weight: 500;
  8. font-family: "微软雅黑";
  9. // 列表项样式
  10. .signal_item {
  11. /*width: 100%;
  12. height: 132px;*/
  13. display: flex;
  14. justify-content: center;
  15. align-items: center;
  16. /*背景*/
  17. .signal_item_bg {
  18. width: 90%;
  19. height: 130px;
  20. display: flex;
  21. justify-content: center;
  22. align-items: center;
  23. &:hover {
  24. background-color: rgba(113, 113, 113, 0.3);
  25. }
  26. /*主体*/
  27. .signal_item_bg_body {
  28. width: 96%;
  29. height: 96%;
  30. background-color: rgba(127, 127, 127, 0.5);
  31. border-radius: 2px;
  32. /*空间*/
  33. .signal_item_bg_body_space {
  34. width: 94%;
  35. height: 80%;
  36. background-color: green;
  37. margin: 6px auto 2px;
  38. }
  39. /*文字*/
  40. .signal_item_bg_body_font {
  41. width: 100%;
  42. height: 15%;
  43. text-align: center;
  44. margin: 0 auto;
  45. font-size: 16px;
  46. color: #fff;
  47. font-family: "Gill Sans", sans-serif;
  48. }
  49. }
  50. }
  51. }
  52. // 滚动条样式
  53. /*定义滚动条高宽及背景高宽:分别对应横竖滚动条的尺寸*/
  54. ::-webkit-scrollbar {
  55. width: 4px;
  56. background-color: rgba(10, 66, 125, 0.65);
  57. }
  58. /*定义滚动条轨道:内阴影+圆角*/
  59. ::-webkit-scrollbar-track {
  60. -webkit-box-shadow: inset 0 0 6px rgba(10, 66, 125, 0.3);
  61. border-radius: 10px;
  62. background-color: rgba(10, 66, 125, 0.65);
  63. }
  64. /*定义滑块:内阴影+圆角*/
  65. ::-webkit-scrollbar-thumb {
  66. border-radius: 10px;
  67. -webkit-box-shadow: inset 0 0 6px rgba(10, 66, 125, .3);
  68. background-color: #666;
  69. }
  70. // 退出按钮样式
  71. .logoutBtn {
  72. position: absolute;
  73. top: 10px;
  74. right: 10px;
  75. }
  76. // 最小化和关闭按钮
  77. .mini {
  78. .miniclose(30px,20px);
  79. &:hover {
  80. background-color: #646464;
  81. }
  82. }
  83. .close {
  84. .miniclose(0,28px);
  85. &:hover {
  86. background-color: #646464;
  87. }
  88. }
  89. }
  90. // 带参数的混合
  91. .miniclose(@right,@fontSize) {
  92. position: absolute;
  93. width: 30px;
  94. height: 30px;
  95. top: 0;
  96. right:@right;
  97. text-align: center;
  98. line-height: 30px;
  99. font-size:@fontSize;
  100. cursor:default;
  101. font-weight: 600;
  102. color: #d9d9d9;
  103. }