index.scss 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. .res-topology {
  2. margin-left: 206px;
  3. p {
  4. padding: 0;
  5. margin: 0;
  6. line-height: 26px;
  7. }
  8. .bl-none {
  9. border-left: none !important;
  10. }
  11. .c-left {
  12. position: relative;
  13. }
  14. .c-right {
  15. position: relative;
  16. flex: 1;
  17. border-left: 2px solid #2D3A4D;
  18. &::after {
  19. content: "";
  20. background: rgb(255, 255, 255);
  21. width: 2px;
  22. height: 212px;
  23. position: absolute;
  24. left: -2px;
  25. bottom: 0;
  26. }
  27. &.res-topology-wire::after {
  28. height: 0;
  29. }
  30. }
  31. .res-topology-wire {
  32. border-left: none;
  33. .list .item:not(:last-child) {
  34. border-left: 2px solid #2D3A4D;
  35. }
  36. }
  37. .wire {
  38. width: 100px;
  39. min-height: 200px;
  40. border-left: 2px solid #2D3A4D;
  41. i {
  42. display: flex;
  43. justify-content: center;
  44. align-items: center;
  45. font-size: 40px;
  46. color: #696D76;
  47. border: 2px solid #E7E9EA;
  48. border-radius: 6px;
  49. width: 56px;
  50. height: 56px;
  51. margin-top: -18px;
  52. }
  53. .line {
  54. height: 0px;
  55. width: 100%;
  56. border: 1px solid #2D3A4D;
  57. }
  58. &.vpc {
  59. border-left: none;
  60. }
  61. .name {
  62. display: inline-block;
  63. width: 54px;
  64. word-break: break-word;
  65. color: #696D76;
  66. position: relative;
  67. .text {
  68. width: 100px;
  69. position: absolute;
  70. left: 50%;
  71. transform: translateX(-50%);
  72. top: -10px;
  73. display: -webkit-box;
  74. -webkit-line-clamp: 2;
  75. -webkit-box-orient: vertical;
  76. overflow: hidden;
  77. white-space: break-spaces;
  78. }
  79. }
  80. }
  81. .wire-host {
  82. min-height: 220px;
  83. }
  84. .list {
  85. list-style: none;
  86. padding: 0;
  87. }
  88. .res-container {
  89. width: 150px;
  90. min-height: 200px;
  91. border-top: 2px solid #2D3A4D;
  92. position: relative;
  93. .line {
  94. display: block;
  95. height: 108px;
  96. width: 2px;
  97. background-color: #2D3A4D;
  98. position: absolute;
  99. top: 0;
  100. left: 76px;
  101. &.full {
  102. height: 100%;
  103. }
  104. }
  105. .common-left-line {
  106. width: 2px;
  107. height: 200px;
  108. position: absolute;
  109. left: 0;
  110. top: 0;
  111. background-color: #2D3A4D;
  112. }
  113. }
  114. .res-last {
  115. &::after {
  116. content: "";
  117. background: rgb(255, 255, 255);
  118. width: calc(50% - 3px);
  119. height: 2px;
  120. position: absolute;
  121. right: 0;
  122. top: -2px;
  123. }
  124. }
  125. .res {
  126. height: 40px;
  127. text-align: left;
  128. position: absolute;
  129. left: 50px;
  130. .name {
  131. display: block;
  132. width: 100px;
  133. text-align: left;
  134. color: #696D76;
  135. }
  136. .desc {
  137. margin: 0;
  138. }
  139. i {
  140. display: flex;
  141. justify-content: center;
  142. align-items: center;
  143. font-size: 40px;
  144. color: #696D76;
  145. border: 2px solid #E7E9EA;
  146. border-radius: 6px;
  147. width: 56px;
  148. height: 56px;
  149. background-color: #fff;
  150. }
  151. &.res-ipsubnet {
  152. transform: translateY(-182%);
  153. // i {
  154. // border-radius: 50%;
  155. // }
  156. }
  157. }
  158. .res-running {
  159. i {
  160. color: #52c41a !important;
  161. }
  162. }
  163. .res-host {
  164. height: auto;
  165. top: 70px;
  166. }
  167. .res-container-host{
  168. width: 300px;
  169. min-height: 320px;
  170. .line{
  171. left: 119px;
  172. }
  173. .res-box{
  174. display: flex;
  175. flex-direction: column;
  176. width:140px;
  177. border:solid 2px #E7E9EA;
  178. border-radius: 6px;
  179. padding:5px;
  180. background:#fff;
  181. i {
  182. align-self: center;
  183. }
  184. }
  185. }
  186. .is-exist {
  187. .name {
  188. color: rgba(153, 153, 153, 0.3);
  189. }
  190. i {
  191. color: rgba(153, 153, 153, 0.3);
  192. border: 1px solid rgba(153, 153, 153, 0.3);
  193. }
  194. .line {
  195. background-color: rgba(153, 153, 153, 0.3);
  196. }
  197. .res-box {
  198. border: solid 1px rgba(153, 153, 153, 0.3);
  199. .tag {
  200. background: rgba(153, 153, 153, 0.3)!important;
  201. }
  202. }
  203. }
  204. .title {
  205. margin-bottom: 2px;
  206. border-bottom: 1px solid #2D3A4D;
  207. }
  208. .ant-tooltip-inner {
  209. min-width: 200px;
  210. background-color: rgba(250,252,254, 1);
  211. color: #5D6F80;
  212. border: 1px solid #c8e2f7;
  213. border-radius: 4px;
  214. }
  215. .tag-list {
  216. .tag {
  217. color: #fff;
  218. box-sizing: border-box;
  219. background: #2D3A4D;
  220. margin: 2px 4px 2px 4px;
  221. padding: 0 5px;
  222. font-size: 12px;
  223. line-height: 20px;
  224. max-width: 100%;
  225. border: solid 1px #2D3A4D;
  226. }
  227. .storage-tag {
  228. border-radius: 10px;
  229. }
  230. }
  231. .tag-list-limit {
  232. max-height: 140px;
  233. overflow: hidden;
  234. .tag {
  235. overflow: hidden;
  236. text-overflow: ellipsis;
  237. white-space: nowrap;
  238. }
  239. }
  240. }