index.less 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /**
  2. * Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
  3. * SPDX-License-Identifier: MIT
  4. */
  5. .flowgram-logo-container {
  6. position: absolute;
  7. top: 50px;
  8. width: calc(30vw - 64px);
  9. height: 550px;
  10. opacity: 0;
  11. // Mobile responsive: move to top on small screens to prevent text overlap
  12. @media (max-width: 768px) {
  13. top: 0;
  14. right: 0;
  15. width: 100%;
  16. height: 300px;
  17. margin-bottom: 20px;
  18. pointer-events: none;
  19. }
  20. // Tablet responsive: adjust size and position
  21. @media (min-width: 769px) and (max-width: 1024px) {
  22. width: calc(45vw - 32px);
  23. right: 16px;
  24. }
  25. // Ensure minimum width to prevent squashing
  26. @media (min-width: 1025px) and (max-width: 1300px) {
  27. width: calc(45vw - 32px);
  28. right: 0;
  29. }
  30. // Ensure minimum width to prevent squashing
  31. @media (min-width: 1301) {
  32. width: calc(30vw - 64px);
  33. right: 15vw;
  34. }
  35. }
  36. .flowgram-logo-mask {
  37. background-image: conic-gradient(from 180deg at 50% 50%, #4161a6, #5681bd, #4a9da3, #479590, #4161a6);
  38. filter: blur(120px);
  39. opacity: 0.4;
  40. z-index: 0;
  41. border-radius: 100%;
  42. width: 80%;
  43. height: 80%;
  44. animation: flowgram-logo-spin 2s linear infinite;
  45. }
  46. @keyframes flowgram-logo-spin {
  47. from {
  48. transform: translateX(20%) translateY(20%) rotate(0deg) scale(0.8);
  49. }
  50. 50% {
  51. transform: translateX(20%) translateY(20%) rotate(180deg) scale(1);
  52. }
  53. to {
  54. transform: translateX(20%) translateY(20%) rotate(360deg) scale(0.8);
  55. }
  56. }
  57. .gedit-playground {
  58. background: transparent !important;
  59. }
  60. .gedit-playground-scroll-right-block {
  61. display: none;
  62. }
  63. .gedit-playground-scroll-bottom-block {
  64. display: none;
  65. }
  66. .flowgram-logo-node {
  67. width: 60px;
  68. min-height: 150px;
  69. height: auto;
  70. border-radius: 16px;
  71. box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.04), 0 4px 12px 0 rgba(0, 0, 0, 0.02);
  72. display: flex;
  73. flex-direction: column;
  74. justify-content: center;
  75. position: relative;
  76. padding: 12px;
  77. cursor: move;
  78. transition: box-shadow 0.3s ease-in-out, transform 0.2s ease-in-out;
  79. &:hover {
  80. box-shadow:
  81. 0 2px 6px 0 rgba(0, 0, 0, 0.04),
  82. 0 4px 12px 0 rgba(0, 0, 0, 0.02),
  83. 0 0 16px 2px rgba(var(--glow-color, 59, 130, 246), 0.6),
  84. 0 0 32px 6px rgba(var(--glow-color, 59, 130, 246), 0.4),
  85. 0 0 48px 12px rgba(var(--glow-color, 59, 130, 246), 0.25),
  86. 0 0 64px 16px rgba(var(--glow-color, 59, 130, 246), 0.15);
  87. transform: scale(1.05);
  88. }
  89. }