Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

app.component.scss 5.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. /* 多实例标签页布局 */
  2. :host {
  3. display: block;
  4. width: 100vw;
  5. height: 100vh;
  6. background-color: #f5f5f5;
  7. }
  8. /* 应用容器 */
  9. .app-container {
  10. display: flex;
  11. flex-direction: column;
  12. height: 100vh;
  13. overflow: hidden;
  14. }
  15. /* 顶部导航栏 */
  16. .app-header {
  17. background: white;
  18. border-bottom: 1px solid #e0e0e0;
  19. padding: 0 20px;
  20. display: flex;
  21. justify-content: space-between;
  22. align-items: center;
  23. height: 64px;
  24. flex-shrink: 0;
  25. box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  26. z-index: 10;
  27. }
  28. .header-left {
  29. display: flex;
  30. align-items: center;
  31. gap: 32px;
  32. }
  33. .logo {
  34. display: flex;
  35. align-items: center;
  36. gap: 10px;
  37. }
  38. .logo-icon {
  39. color: #3b82f6;
  40. font-size: 28px;
  41. height: 28px;
  42. width: 28px;
  43. }
  44. .logo-text {
  45. margin: 0;
  46. font-size: 18px;
  47. font-weight: 600;
  48. color: #1f2937;
  49. }
  50. .menu-nav {
  51. display: flex;
  52. gap: 8px;
  53. }
  54. .menu-button {
  55. display: flex;
  56. align-items: center;
  57. gap: 6px;
  58. padding: 8px 16px;
  59. border-radius: 6px;
  60. transition: all 0.2s;
  61. mat-icon {
  62. font-size: 18px;
  63. height: 18px;
  64. width: 18px;
  65. }
  66. span {
  67. font-size: 14px;
  68. font-weight: 500;
  69. }
  70. &:hover {
  71. background-color: #f3f4f6;
  72. }
  73. &.active {
  74. background-color: #3b82f6;
  75. color: white;
  76. mat-icon {
  77. color: white;
  78. }
  79. &:hover {
  80. background-color: #2563eb;
  81. }
  82. }
  83. }
  84. .header-right {
  85. display: flex;
  86. align-items: center;
  87. gap: 24px;
  88. }
  89. .status-indicator {
  90. display: flex;
  91. align-items: center;
  92. gap: 6px;
  93. padding: 6px 12px;
  94. border-radius: 6px;
  95. background: #f8f9fa;
  96. mat-icon {
  97. font-size: 18px;
  98. height: 18px;
  99. width: 18px;
  100. &.connected {
  101. color: #10b981;
  102. }
  103. &.disconnected {
  104. color: #ef4444;
  105. }
  106. }
  107. .status-text {
  108. font-size: 12px;
  109. color: #6b7280;
  110. }
  111. }
  112. .user-info {
  113. display: flex;
  114. align-items: center;
  115. gap: 10px;
  116. .new-project-btn {
  117. margin-right: 8px;
  118. mat-icon {
  119. color: #3b82f6;
  120. transition: color 0.2s;
  121. }
  122. &:hover mat-icon {
  123. color: #2563eb;
  124. }
  125. }
  126. .username {
  127. font-size: 14px;
  128. color: #4b5563;
  129. font-weight: 500;
  130. }
  131. mat-icon {
  132. color: #6b7280;
  133. }
  134. }
  135. /* 主内容区域 */
  136. .app-main {
  137. flex: 1;
  138. overflow: hidden;
  139. background: white;
  140. position: relative;
  141. }
  142. /* 加载状态 */
  143. .loading-state {
  144. display: flex;
  145. flex-direction: column;
  146. align-items: center;
  147. justify-content: center;
  148. height: 100%;
  149. gap: 16px;
  150. p {
  151. margin: 0;
  152. color: #6b7280;
  153. font-size: 14px;
  154. }
  155. }
  156. /* 活动实例容器 */
  157. .active-instance-container {
  158. height: 100%;
  159. overflow: hidden;
  160. }
  161. /* 空状态 */
  162. .empty-state {
  163. display: flex;
  164. flex-direction: column;
  165. align-items: center;
  166. justify-content: center;
  167. height: 100%;
  168. padding: 40px;
  169. text-align: center;
  170. color: #9ca3af;
  171. .empty-icon {
  172. font-size: 64px;
  173. height: 64px;
  174. width: 64px;
  175. margin-bottom: 16px;
  176. opacity: 0.5;
  177. }
  178. h3 {
  179. margin: 0 0 8px 0;
  180. font-size: 18px;
  181. font-weight: 600;
  182. color: #4b5563;
  183. }
  184. p {
  185. margin: 0;
  186. font-size: 14px;
  187. }
  188. }
  189. /* 响应式设计 */
  190. @media (max-width: 768px) {
  191. .app-header {
  192. padding: 0 12px;
  193. height: 56px;
  194. }
  195. .header-left {
  196. gap: 16px;
  197. }
  198. .logo-text {
  199. display: none;
  200. }
  201. .menu-button span {
  202. display: none;
  203. }
  204. .menu-nav {
  205. gap: 4px;
  206. }
  207. .menu-button {
  208. padding: 8px;
  209. min-width: auto;
  210. }
  211. .status-indicator .status-text {
  212. display: none;
  213. }
  214. .user-info .username {
  215. display: none;
  216. }
  217. }
  218. /* 滚动条样式 */
  219. ::-webkit-scrollbar {
  220. width: 8px;
  221. height: 8px;
  222. }
  223. ::-webkit-scrollbar-track {
  224. background: #f1f1f1;
  225. border-radius: 4px;
  226. }
  227. ::-webkit-scrollbar-thumb {
  228. background: #c1c1c1;
  229. border-radius: 4px;
  230. }
  231. ::-webkit-scrollbar-thumb:hover {
  232. background: #a8a8a8;
  233. }
  234. /* 标签页导航 */
  235. .tabs-nav {
  236. display: flex;
  237. gap: 4px;
  238. align-items: center;
  239. margin-left: 16px;
  240. overflow-x: auto;
  241. max-width: 600px;
  242. padding: 4px 0;
  243. &::-webkit-scrollbar {
  244. height: 4px;
  245. }
  246. &::-webkit-scrollbar-thumb {
  247. background: #d1d5db;
  248. }
  249. }
  250. .tab-item {
  251. display: flex;
  252. align-items: center;
  253. gap: 6px;
  254. padding: 6px 12px;
  255. border-radius: 6px;
  256. background: #f3f4f6;
  257. border: 1px solid #e5e7eb;
  258. cursor: pointer;
  259. transition: all 0.2s;
  260. white-space: nowrap;
  261. flex-shrink: 0;
  262. .tab-icon {
  263. font-size: 16px;
  264. height: 16px;
  265. width: 16px;
  266. color: #6b7280;
  267. }
  268. .tab-title {
  269. font-size: 13px;
  270. font-weight: 500;
  271. color: #4b5563;
  272. max-width: 120px;
  273. overflow: hidden;
  274. text-overflow: ellipsis;
  275. }
  276. .tab-close {
  277. width: 18px;
  278. height: 18px;
  279. line-height: 18px;
  280. margin-left: 2px;
  281. mat-icon {
  282. font-size: 14px;
  283. height: 14px;
  284. width: 14px;
  285. color: #9ca3af;
  286. }
  287. &:hover mat-icon {
  288. color: #ef4444;
  289. }
  290. }
  291. &:hover {
  292. background: #e5e7eb;
  293. border-color: #d1d5db;
  294. }
  295. &.active {
  296. background: #3b82f6;
  297. border-color: #3b82f6;
  298. .tab-icon,
  299. .tab-title {
  300. color: white;
  301. }
  302. .tab-close mat-icon {
  303. color: rgba(255, 255, 255, 0.8);
  304. }
  305. .tab-close:hover mat-icon {
  306. color: white;
  307. }
  308. }
  309. &.loading {
  310. cursor: wait;
  311. opacity: 0.7;
  312. background: #f0f9ff;
  313. border-color: #93c5fd;
  314. .tab-title {
  315. margin-right: 4px;
  316. }
  317. .tab-loading-spinner {
  318. margin-left: 4px;
  319. ::ng-deep .mat-progress-spinner circle, .mat-spinner circle {
  320. stroke: #3b82f6;
  321. }
  322. }
  323. .tab-close {
  324. display: none;
  325. }
  326. }
  327. }