globals.css 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. @import "tailwindcss";
  2. @plugin '../hero.ts';
  3. @source '../node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}';
  4. @custom-variant dark (&:is(.dark *));
  5. @theme {
  6. --font-sans: "font", sans-serif;
  7. --font-mono: "monospace", monospace;
  8. --color-midnight: #eef0f7;
  9. --color-knight: #2a2f35;
  10. --color-darkBg: #0f1217;
  11. --color-cardBlue: #8cc9fe;
  12. --color-cardGreen: #63ccae;
  13. --color-cardPink: #ffbfd1;
  14. --color-cardYellow: #ffdf9a;
  15. --font-oleo: var(--font-oleo);
  16. --animate-fade: fade 1s ease-in-out;
  17. }
  18. @keyframes fade {
  19. 0% { opacity: 0; }
  20. 100% { opacity: 1; }
  21. }
  22. /* react-grid-layout styles */
  23. .react-grid-item.react-grid-placeholder {
  24. background: gray;
  25. transition-duration: 300ms;
  26. border-radius: 1.5rem;
  27. z-index: 0;
  28. }
  29. .react-grid-item {
  30. transition: transform 400ms ease, width 400ms ease, height 400ms ease;
  31. }
  32. /* Disable grid item transitions during initial layout to prevent visible repositioning */
  33. .layout-initializing .react-grid-item {
  34. transition: none !important;
  35. }
  36. /* Mobile: hide layout until correct width is applied, then fade in */
  37. @media (max-width: 768px) {
  38. .layout-initializing {
  39. opacity: 0;
  40. }
  41. .layout-settled {
  42. animation: fade 0.3s ease-out;
  43. }
  44. }
  45. .react-grid-item > .react-resizable-handle {
  46. display: none;
  47. }
  48. /* Mapbox */
  49. .mapboxgl-control-container {
  50. display: none !important;
  51. }
  52. /* Notion styles */
  53. .medium-zoom-image {
  54. border-radius: 2rem !important;
  55. }
  56. .notion-code {
  57. border-radius: 1rem;
  58. overflow: hidden !important;
  59. }
  60. .notion-code code {
  61. scrollbar-width: none;
  62. }
  63. .notion-code code::-webkit-scrollbar {
  64. display: none;
  65. }
  66. .notion-code-copy-button {
  67. display: none;
  68. }
  69. iframe.notion-asset-object-fit {
  70. background-color: transparent;
  71. border-radius: 1rem;
  72. }
  73. .video-stream html5-main-video {
  74. border-radius: 1rem;
  75. background-color: transparent;
  76. }
  77. .notion-yt-lite {
  78. border-radius: 1rem;
  79. background-color: transparent;
  80. }