index.css 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. .demo-free-node {
  6. display: flex;
  7. min-width: 300px;
  8. min-height: 100px;
  9. flex-direction: column;
  10. align-items: flex-start;
  11. box-sizing: border-box;
  12. border-radius: 8px;
  13. border: 1px solid var(--light-usage-border-color-border, rgba(28, 31, 35, 0.08));
  14. background: #fff;
  15. box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.1);
  16. }
  17. .demo-node-content {
  18. padding: 8px 12px;
  19. flex-grow: 1;
  20. width: 100%;
  21. }
  22. .demo-node-title {
  23. font-weight: 500;
  24. font-size: 14px;
  25. width: 100%;
  26. margin: 4px 0px 12px 0px;
  27. }
  28. .demo-free-node-content {
  29. padding: 4px 12px;
  30. flex-grow: 1;
  31. width: 100%;
  32. }
  33. .demo-free-node::before {
  34. content: '';
  35. position: absolute;
  36. top: 0;
  37. right: 0;
  38. bottom: 0;
  39. left: 0;
  40. z-index: -1;
  41. background-color: white;
  42. border-radius: 7px;
  43. }
  44. .demo-free-node:hover:before {
  45. -webkit-filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.1));
  46. filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.1));
  47. }
  48. .demo-free-node.activated:before,
  49. .demo-free-node.selected:before {
  50. outline: 2px solid var(--light-usage-primary-color-primary, #4d53e8);
  51. -webkit-filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.1));
  52. filter: drop-shadow(0 0 1px rgba(0, 0, 0, 0.3)) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.1));
  53. }
  54. .demo-free-sidebar {
  55. height: 100%;
  56. overflow-y: auto;
  57. padding: 12px 16px 0;
  58. box-sizing: border-box;
  59. background: #f7f7fa;
  60. border-right: 1px solid rgba(29, 28, 35, 0.08);
  61. }
  62. .demo-free-right-top-panel {
  63. position: fixed;
  64. right: 10px;
  65. top: 70px;
  66. width: 300px;
  67. z-index: 999;
  68. }
  69. .demo-free-card {
  70. width: 140px;
  71. height: 60px;
  72. display: flex;
  73. align-items: center;
  74. justify-content: center;
  75. font-size: 20px;
  76. background: #fff;
  77. border-radius: 8px;
  78. box-shadow: 0 6px 8px 0 rgba(28, 31, 35, 0.03);
  79. cursor: -webkit-grab;
  80. cursor: grab;
  81. line-height: 16px;
  82. margin-bottom: 12px;
  83. overflow: hidden;
  84. padding: 16px;
  85. position: relative;
  86. color: black;
  87. }
  88. .demo-free-layout {
  89. display: flex;
  90. flex-direction: row;
  91. flex-grow: 1;
  92. }
  93. .demo-free-editor {
  94. flex-grow: 1;
  95. position: relative;
  96. height: 100%;
  97. }
  98. .demo-free-container {
  99. position: absolute;
  100. left: 0;
  101. top: 0;
  102. display: flex;
  103. width: 100%;
  104. height: 100%;
  105. flex-direction: column;
  106. }