components.css 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. /**
  2. * Component styles
  3. * Styles for specific UI components and elements
  4. */
  5. :root {
  6. --ifm-menu-link-sublist-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 15.75l7.5-7.5 7.5 7.5" /></svg>');
  7. --ifm-code-padding-horizontal: 6px;
  8. --ifm-code-font-size: 90%;
  9. }
  10. /* Markdown content */
  11. .theme-doc-markdown.markdown img {
  12. border-radius: 0.7rem;
  13. border: 0.5rem solid var(--ifm-color-emphasis-100);
  14. outline: 1px solid var(--ifm-color-emphasis-200);
  15. }
  16. /* Members documentation */
  17. .members-wrapper {
  18. border-left: 1px solid var(--color-members-border);
  19. padding-left: 32px;
  20. }
  21. .members-wrapper > h3 {
  22. margin-top: 42px;
  23. }
  24. /* Sidebar */
  25. .sidebar-section-header {
  26. text-transform: uppercase;
  27. font-weight: bold;
  28. font-size: 12px;
  29. opacity: 0.8;
  30. color: #afafaf;
  31. padding: var(--ifm-menu-link-padding-vertical) var(--ifm-menu-link-padding-horizontal);
  32. }
  33. .sidebar-section-divider {
  34. border-bottom: 1px solid var(--ifm-font-color-base);
  35. opacity: 0.2;
  36. margin: 6px 12px;
  37. }
  38. /* Code blocks */
  39. .prism-code {
  40. line-height: 1.8;
  41. }
  42. .limited-height-code-block pre.prism-code {
  43. max-height: 800px;
  44. }
  45. /* Make copy button always visible instead of only on hover */
  46. .theme-code-block:not(:hover) button[title="Copy code to clipboard"] {
  47. opacity: 1 !important;
  48. }
  49. /* Alternative selector for copy button visibility */
  50. div[class*="codeBlockContainer"] button[aria-label*="Copy"] {
  51. opacity: 1 !important;
  52. }
  53. /* Ensure copy button is always visible on code blocks */
  54. pre[class*="prism-code"] button,
  55. .prism-code button,
  56. [class*="codeBlock"] button {
  57. opacity: 1 !important;
  58. }
  59. /* GraphQL code blocks */
  60. .graphql-code-block {
  61. background-color: var(--ifm-pre-background);
  62. border-radius: var(--ifm-pre-border-radius);
  63. padding: var(--ifm-pre-padding);
  64. color: var(--ifm-pre-color);
  65. font: var(--ifm-code-font-size) / var(--ifm-pre-line-height) var(--ifm-font-family-monospace);
  66. }
  67. .graphql-code-line:not(.top-level) {
  68. margin-left: 24px;
  69. }
  70. .graphql-code-line.comment {
  71. color: var(--color-graphql-comment);
  72. }
  73. .graphql-code-identifier {
  74. color: var(--color-graphql-identifier);
  75. margin-right: 6px;
  76. }
  77. /* Menu and navigation overrides */
  78. .menu__link--sublist-caret:after {
  79. background: var(--ifm-menu-link-sublist-icon) 50% / 1.5rem 1.5rem;
  80. opacity: 0.6;
  81. }
  82. .menu__link--sublist-caret:hover:after {
  83. opacity: 1;
  84. }
  85. .theme-doc-sidebar-item-category-level-1 {
  86. font-size: 15px;
  87. }
  88. .theme-doc-sidebar-item-category-level-2 {
  89. font-size: 14px;
  90. }
  91. .theme-doc-sidebar-item-link-level-3,
  92. .theme-doc-sidebar-item-link-level-4,
  93. .theme-doc-sidebar-item-link-level-5 {
  94. font-size: 13px;
  95. word-break: break-all;
  96. }
  97. .menu__caret:before {
  98. background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6"><path stroke-linecap="round" stroke-linejoin="round" d="M4.5 15.75l7.5-7.5 7.5 7.5" /></svg>');
  99. opacity: 0.6;
  100. }
  101. /* Navbar */
  102. .navbar-sidebar {
  103. background-color: var(--ifm-background-color);
  104. }
  105. .navbar {
  106. background-color: var(--navbar-background-color-mobile);
  107. border-bottom: 1px solid var(--border-color);
  108. }
  109. /* Hero section */
  110. .hero--primary {
  111. --ifm-hero-background-color: transparent;
  112. --ifm-hero-text-color: var(--ifm-font-color-base);
  113. }
  114. /* Search button */
  115. button.DocSearch-Button {
  116. border-radius: 6px;
  117. width: 250px;
  118. border: 1px solid var(--color-docsearch-border);
  119. }
  120. /* CLI admonition */
  121. .theme-admonition-cli {
  122. background-color: #2b2b2b;
  123. color: #fff;
  124. }
  125. .theme-admonition-cli a:link,
  126. .theme-admonition-cli a:visited {
  127. color: #fff;
  128. }