struct.scss 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. //网络结构图所有的css
  2. .network-wrap .layout {
  3. padding: 2px 50px;
  4. }
  5. /* 父网络 */
  6. .network-wrap {
  7. position: relative;
  8. width: 100%;
  9. height: 50vh;
  10. }
  11. .mainNetwork {
  12. height: 120px;
  13. display: flex;
  14. justify-content: space-evenly;
  15. align-items: flex-start;
  16. }
  17. .networkItem {
  18. position: relative;
  19. width: 130px;
  20. height: 112px;
  21. text-align: center;
  22. font-weight: 400;
  23. cursor: pointer;
  24. }
  25. // .networkItem .topMask{
  26. // position: absolute;
  27. // top: 0;
  28. // left: 0;
  29. // height: 100%;
  30. // width: 100%;
  31. // background: rgb(255 255 255 / 50%);
  32. // }
  33. //点击时的大类背景色
  34. // .networkItem.active .topMask{
  35. // background: linear-gradient(to top,#4f50b95c,#fff9f900);
  36. // border-bottom: 1px solid #00c;
  37. // }
  38. //大类的图片
  39. .networkItem .topCont {
  40. height: 100%;
  41. width: 100%;
  42. display: flex;
  43. align-items: stretch;
  44. flex-direction: column;
  45. justify-content: center;
  46. background: #fff url('~@/assets/image/instruct/network_default.png') no-repeat center;
  47. background-size: 126px 112px;
  48. color: #7484AB;
  49. }
  50. //当前大类的图片
  51. .networkItem.active .topCont {
  52. background: #fff url('~@/assets/image/instruct/network_hub.png') no-repeat center;
  53. background-size: 126px 112px;
  54. }
  55. .networkItem .topCont .subtitle {
  56. display: block;
  57. font-size: 16px;
  58. color: #7484AB;
  59. }
  60. .networkItem .title {
  61. position: absolute;
  62. top: 13px;
  63. left: 50%;
  64. transform: translateX(-50%);
  65. white-space: nowrap;
  66. z-index: 1;
  67. font-size: 18px;
  68. color: #7484AB;
  69. }
  70. .networkItem.active .title {
  71. opacity: 1;
  72. color: #255CE7;
  73. }
  74. .networkItem.active .topCont,
  75. .networkItem.active .topDesc {
  76. color: #255CE7;
  77. font-size: 18px;
  78. }
  79. .networkItem.active .topCont .subtitle {
  80. color: #FFCB11;
  81. font-size: 16px;
  82. }
  83. //大类下的小竖线
  84. .networkItem .line {
  85. width: 4px;
  86. height: 20px;
  87. position: absolute;
  88. top: 100%;
  89. transform: translateY(1px);
  90. z-index: 2;
  91. }
  92. /* 子网络列表 */
  93. .subNetwork {
  94. // margin-top: 62px;
  95. margin-top: 96px;
  96. display: flex;
  97. justify-content: flex-start;
  98. align-items: center;
  99. flex-wrap: wrap;
  100. }
  101. //每一个小的子网络
  102. .subNetworkItem {
  103. position: relative;
  104. font-size: 12px;
  105. text-align: center;
  106. //主轴方向上,该元素的基础尺寸为其父容器宽度的11%。
  107. flex-basis: 11%;
  108. height: 120px;
  109. }
  110. //长竖线和小短线的样式
  111. .subNetworkItem .subNetworkLine,
  112. .subNetworkItem .subNetworkLine2 {
  113. width: 30px;
  114. display: block;
  115. position: absolute;
  116. bottom: 70px;
  117. border-width: 3px;
  118. border-style: solid;
  119. border-top: none;
  120. border-right: none;
  121. }
  122. //点击线条后小短线要进行消失处理,js动态设置
  123. .subNetworkItem .subNetworkLine2 {
  124. border-style: none;
  125. }
  126. //点击时半遮盖效果
  127. .subNetworkItem .subNetworkMask {
  128. width: 100%;
  129. height: 100%;
  130. position: absolute;
  131. top: 0;
  132. left: 0;
  133. background: rgb(255 255 255 / 30%);
  134. z-index: 1;
  135. }
  136. .subNetworkItem:hover .subNetworkMask {
  137. background: none;
  138. cursor: pointer;
  139. }
  140. .subNetworkItem:hover .subNetworkID {
  141. color: #5C9CEE;
  142. font-size: 14px;
  143. cursor: pointer;
  144. }
  145. //子类的图片
  146. .subNetworkItem .subNetworkImg {
  147. position: relative;
  148. left: 45%;
  149. transform: translateX(-50%);
  150. }
  151. .subNetworkInfo {
  152. // 元素的大小缩小到原来的90%。
  153. transform: scale(.9);
  154. }
  155. .subNetworkItem .subNetworkName {
  156. color: #1A2447;
  157. font-weight: medium;
  158. cursor: pointer;
  159. }
  160. .subNetworkItem .subNetworkID {
  161. color: #999;
  162. }
  163. .subNetworkItem .subNetworkImg img {
  164. width: 60px;
  165. height: 60px;
  166. }
  167. /* 长横线线条 */
  168. .networkLine {
  169. position: absolute;
  170. top: 139px;
  171. left: 0;
  172. width: 100%;
  173. height: auto;
  174. }
  175. .networkLine .mainLine {
  176. display: flex;
  177. justify-content: flex-start;
  178. align-items: center;
  179. flex-wrap: nowrap;
  180. cursor: pointer;
  181. }
  182. //线条左侧的标签样式
  183. .mainLine .lineTag {
  184. width: 25px;
  185. text-align: center;
  186. font-size: 13px;
  187. transform: scale(0.9);
  188. font-weight: bold;
  189. }
  190. .mainLine .line {
  191. margin: 0;
  192. width: 100%;
  193. height: 6px;
  194. margin-left: -5px;
  195. }
  196. //点击线条时的背景透明色
  197. .lineback {
  198. opacity: 0.3;
  199. }