index.css 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. .demo-fixed-node {
  6. align-items: flex-start;
  7. background-color: #fff;
  8. border: 1px solid rgba(6, 7, 9, 0.15);
  9. border-radius: 8px;
  10. box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.04), 0 4px 12px 0 rgba(0, 0, 0, 0.02);
  11. display: flex;
  12. flex-direction: column;
  13. justify-content: center;
  14. position: relative;
  15. width: 240px;
  16. transition: all 0.3s ease;
  17. }
  18. .demo-fixed-sidebar {
  19. height: 100%;
  20. overflow-y: auto;
  21. padding: 50px 16px 12px 16px;
  22. box-sizing: border-box;
  23. background: #f7f7fa;
  24. border-right: 1px solid rgba(29, 28, 35, 0.08);
  25. }
  26. .demo-fixed-layout {
  27. display: flex;
  28. flex-direction: row;
  29. flex-grow: 1;
  30. }
  31. .demo-fixed-editor {
  32. flex-grow: 1;
  33. position: relative;
  34. height: 100%;
  35. }
  36. .demo-fixed-node-title {
  37. background-color: #93bfe2;
  38. width: 100%;
  39. border-radius: 8px 8px 0 0;
  40. padding: 4px 12px;
  41. }
  42. .demo-fixed-node-content {
  43. padding: 16px;
  44. flex-grow: 1;
  45. width: 100%;
  46. }
  47. input {
  48. color: black;
  49. background-color: white;
  50. }
  51. .demo-fixed-adder {
  52. width: 28px;
  53. height: 18px;
  54. background: rgb(187, 191, 196);
  55. display: flex;
  56. border-radius: 9px;
  57. justify-content: space-evenly;
  58. align-items: center;
  59. color: #fff;
  60. font-size: 10px;
  61. font-weight: bold;
  62. div {
  63. display: flex;
  64. justify-content: center;
  65. align-items: center;
  66. svg {
  67. width: 12px;
  68. height: 12px;
  69. }
  70. }
  71. }
  72. .demo-fixed-adder.activated {
  73. background: #82A7FC
  74. }
  75. .demo-fixed-adder.isHorizontal {
  76. transform: rotate(90deg);
  77. }
  78. .gedit-playground * {
  79. box-sizing: border-box;
  80. }
  81. .demo-fixed-container {
  82. position: absolute;
  83. left: 0;
  84. top: 0;
  85. display: flex;
  86. width: 100%;
  87. height: 100%;
  88. flex-direction: column;
  89. }
  90. .demo-fixed-card {
  91. width: 140px;
  92. height: 60px;
  93. display: flex;
  94. align-items: center;
  95. justify-content: center;
  96. font-size: 20px;
  97. background: #fff;
  98. border-radius: 8px;
  99. box-shadow: 0 6px 8px 0 rgba(28, 31, 35, 0.03);
  100. cursor: -webkit-grab;
  101. cursor: grab;
  102. line-height: 16px;
  103. margin-bottom: 12px;
  104. overflow: hidden;
  105. padding: 16px;
  106. position: relative;
  107. color: black;
  108. user-select: none;
  109. }