styles.css 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. /* Custom styles for Cline documentation */
  2. /* Import Geist Sans font from Google Fonts */
  3. @import url("https://fonts.googleapis.com/css2?family=Geist+Sans:wght@300;400;500;600;700&display=swap");
  4. /* Import Geist Mono font from Google Fonts */
  5. @import url("https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;600;700&display=swap");
  6. /* Apply Geist Sans to body text, but not headings or code */
  7. body,
  8. p,
  9. li,
  10. td,
  11. th,
  12. span:not(code *),
  13. div:not(code *):not(pre *) {
  14. font-family:
  15. "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  16. }
  17. /* Ensure code blocks use Geist Mono */
  18. code,
  19. pre,
  20. .code,
  21. pre code,
  22. code *,
  23. pre * {
  24. font-family: "Geist Mono", "Monaco", "Courier New", monospace !important;
  25. }
  26. /* Make h1 titles lighter in font weight */
  27. h1 {
  28. font-weight: 600 !important;
  29. }
  30. /* Keep headings and images at full opacity */
  31. h1,
  32. h2,
  33. h3,
  34. h4,
  35. h5,
  36. h6,
  37. img {
  38. opacity: 1 !important;
  39. font-family:
  40. "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
  41. }
  42. /* Also apply to any h1 elements within content areas */
  43. .content h1,
  44. .markdown h1,
  45. article h1,
  46. main h1 {
  47. font-weight: 500 !important;
  48. }
  49. /* JetBrains logo visibility fix for dark mode */
  50. /* Add a subtle background and border to ensure visibility in both light and dark modes */
  51. img[alt="JetBrains logo"] {
  52. background-color: rgba(255, 255, 255, 0.9);
  53. border: 1px solid rgba(0, 0, 0, 0.1);
  54. border-radius: 8px;
  55. padding: 12px;
  56. transition: all 0.3s ease;
  57. }
  58. /* Dark mode specific styling */
  59. [data-theme="dark"] img[alt="JetBrains logo"],
  60. .dark img[alt="JetBrains logo"] {
  61. background-color: rgba(255, 255, 255, 0.95);
  62. border: 1px solid rgba(0, 0, 0, 0.2);
  63. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  64. }
  65. /* Media query for system dark mode preference */
  66. @media (prefers-color-scheme: dark) {
  67. img[alt="JetBrains logo"] {
  68. background-color: rgba(255, 255, 255, 0.95);
  69. border: 1px solid rgba(0, 0, 0, 0.2);
  70. box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  71. }
  72. }
  73. /* Hover effect for better interactivity */
  74. img[alt="JetBrains logo"]:hover {
  75. transform: scale(1.02);
  76. box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  77. }