module.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /**
  2. * 创建者:王成
  3. * 创建日期:2022年5月28日
  4. * 描述:专题首页样式 单独摘出 屏幕适配
  5. */
  6. /* 顶部统计信息容器样式 */
  7. .cr-panel-count {
  8. width: 100%;
  9. height: 90px;
  10. display: flex;
  11. flex-direction: row;
  12. }
  13. /* 统计容器所有子节点容器样式 */
  14. .cr-panel-count>* {
  15. position: relative;
  16. flex: 1;
  17. background-color: rgb(36, 63, 109);
  18. margin-top: 5px;
  19. margin-left: 5px;
  20. margin-right: 5px;
  21. border-radius: 5px;
  22. }
  23. /* 统计容器最后一个子元素容器样式 */
  24. .cr-panel-count>*:last-child {
  25. margin-left: 0px;
  26. margin-right: 5px;
  27. }
  28. /* 统计容器第一个子元素容器样式 */
  29. .cr-panel-count>*:first-child {
  30. margin-left: 5px;
  31. margin-right: 0px;
  32. }
  33. /* 统计值动画变量 */
  34. :root {
  35. --left--from: 10px;
  36. --left--to: 10px;
  37. }
  38. /* 统计值动画 */
  39. @keyframes www {
  40. 0% {
  41. left: var(--left--from);
  42. }
  43. 100% {
  44. left: var(--left--to);
  45. }
  46. }
  47. /* 统计数值的样式 */
  48. .cr-panel-count>*>*:nth-child(2) {
  49. color: rgb(234, 191, 43);
  50. font-family: "UnidreamLED", sans-serif;
  51. font-size: 24px;
  52. position: absolute;
  53. width: 100px;
  54. text-align: center;
  55. bottom: 24px;
  56. -webkit-animation: www 2s linear infinite alternate;
  57. }
  58. /* 统计标题的样式 */
  59. .cr-panel-count>*>*:nth-child(1) {
  60. color: rgb(142, 230, 254);
  61. font-family: "TTTGB-Medium", sans-serif;
  62. font-size: 16px;
  63. position: absolute;
  64. width: 100%;
  65. text-align: center;
  66. bottom: 50px;
  67. text-shadow: 0 0 3px rgb(115, 185, 220), 0 0 3px rgb(115, 185, 220), 0 0 3px rgb(115, 185, 220), 0 0 3px rgb(115, 185, 220);
  68. }
  69. /* 统计图片的样式 */
  70. .cr-panel-count>*>*:nth-child(3) {
  71. position: absolute;
  72. bottom: 10px;
  73. left: 10px;
  74. right: 10px;
  75. width: calc(100% - 20px);
  76. height: 24px;
  77. content: url(../img/back/count_bottom_back.png);
  78. }
  79. /* 底部菜单容器 */
  80. .cr-land-menu-panel {
  81. position: relative;
  82. flex: 1;
  83. background-image: url(../img/land/ico_land_expropriate_home.png);
  84. background-size: 100% 100%;
  85. margin: 10px;
  86. }
  87. /* 底部菜单通用样式 */
  88. .cr-land-menu {
  89. position: absolute;
  90. width: 80px;
  91. height: 80px;
  92. }
  93. /* 菜单内图片样式 */
  94. .cr-land-menu>img {
  95. width: 80px;
  96. height: 80px;
  97. }
  98. /* 菜单内文字样式 */
  99. .cr-land-menu>div {
  100. position: absolute;
  101. color: rgb(142, 230, 254);
  102. font-family: "TTTGB-Medium", sans-serif;
  103. font-size: 16px;
  104. width: 100%;
  105. bottom: 40px;
  106. text-align: center;
  107. text-shadow: 0 0 3px rgb(115, 185, 220), 0 0 3px rgb(115, 185, 220), 0 0 3px rgb(115, 185, 220), 0 0 3px rgb(115, 185, 220);
  108. -webkit-animation: rotate 2s infinite;
  109. }
  110. /* 跳动动画 */
  111. @keyframes rotate {
  112. 0%,
  113. 100%,
  114. 20%,
  115. 50%,
  116. 80% {
  117. -webkit-transform: translateY(0);
  118. }
  119. 40% {
  120. -webkit-transform: translateY(-20px);
  121. }
  122. 60% {
  123. -webkit-transform: translateY(-10px);
  124. }
  125. }
  126. /* 第一个菜单位置 */
  127. .cr-land-menu-a {
  128. top: 15%;
  129. left: 10%;
  130. }
  131. /* 第二个菜单位置 */
  132. .cr-land-menu-b {
  133. right: 20%;
  134. bottom: 10%;
  135. }
  136. /* 第三个菜单位置 */
  137. .cr-land-menu-c {
  138. right: 5%;
  139. top: 90px;
  140. }
  141. /* 页面宽度小于600 */
  142. @media screen and (max-width: 600px) {
  143. /* 统计标题的样式 */
  144. .cr-panel-count>*>*:nth-child(1) {
  145. font-size: 14px;
  146. }
  147. /* 统计数值的样式 */
  148. .cr-panel-count>*>*:nth-child(2) {
  149. font-size: 16px;
  150. }
  151. /* 菜单内文字样式 */
  152. .cr-land-menu>div {
  153. font-size: 14px;
  154. }
  155. }