get-node.css 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /* Get 变量节点样式 */
  2. .Blueprint-get-node {
  3. /* 公共逻辑已在 node-renderer.css 中定义 */
  4. /* position, width, overflow, pointer-events, user-select, cursor, z-index */
  5. /* 节点特有样式 */
  6. min-width: 120px;
  7. height: 40px;
  8. background: #2d2d30;
  9. border: 2px solid #2196f3;
  10. border-radius: 20px;
  11. box-shadow: 0 0 8px rgba(33, 150, 243, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
  12. padding: 0;
  13. display: flex;
  14. flex-direction: row;
  15. align-items: center;
  16. justify-content: center;
  17. }
  18. /* 隐藏暗色区域(背景、边框、阴影) */
  19. .Blueprint-get-node.hide-dark-area {
  20. background: transparent;
  21. border-color: transparent;
  22. box-shadow: none;
  23. }
  24. .Blueprint-get-node.selected {
  25. border-color: #ffa500;
  26. box-shadow: 0 0 0 2px rgba(255, 165, 0, 0.3), 0 0 8px rgba(33, 150, 243, 0.4);
  27. }
  28. .Blueprint-get-node-label {
  29. /* pointer-events 和 user-select 已在公共样式中定义 */
  30. color: #fff;
  31. font-size: 13px;
  32. font-weight: 500;
  33. text-align: center;
  34. padding: 0 16px;
  35. white-space: nowrap;
  36. visibility: hidden; /* 占位但不可见 */
  37. }
  38. .Blueprint-get-node .Blueprint-variable-node-body {
  39. /* pointer-events 已在公共样式中定义 */
  40. width: 100%;
  41. height: 100%;
  42. position: relative;
  43. display: flex;
  44. align-items: center;
  45. justify-content: center;
  46. }
  47. /* 端口的 pointer-events 已在公共样式中定义 */