|
15 | 15 | --ifm-color-primary-lightest: #3cad6e; |
16 | 16 | --ifm-code-font-size: 95%; |
17 | 17 | --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1); |
| 18 | + --ifm-font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; |
| 19 | + --ifm-heading-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif; |
18 | 20 | } |
19 | 21 |
|
20 | 22 | /* For readability concerns, you should choose a lighter palette in dark mode. */ |
|
28 | 30 | --ifm-color-primary-lightest: #4fddbf; |
29 | 31 | --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3); |
30 | 32 | } |
| 33 | + |
| 34 | +/* Import Inter font for better typography */ |
| 35 | +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap'); |
| 36 | + |
| 37 | +/* Global improvements */ |
| 38 | +html { |
| 39 | + scroll-behavior: smooth; |
| 40 | +} |
| 41 | + |
| 42 | +/* Enhanced button styles */ |
| 43 | +.button { |
| 44 | + font-weight: 600; |
| 45 | + border-radius: 8px; |
| 46 | + transition: all 0.3s ease; |
| 47 | + letter-spacing: 0.5px; |
| 48 | +} |
| 49 | + |
| 50 | +.button--primary { |
| 51 | + background: linear-gradient(135deg, #2e8555 0%, #4fa94d 100%); |
| 52 | + border: none; |
| 53 | + box-shadow: 0 4px 15px rgba(46, 133, 85, 0.3); |
| 54 | +} |
| 55 | + |
| 56 | +.button--primary:hover { |
| 57 | + background: linear-gradient(135deg, #277148 0%, #359962 100%); |
| 58 | + box-shadow: 0 6px 20px rgba(46, 133, 85, 0.4); |
| 59 | + transform: translateY(-2px); |
| 60 | +} |
| 61 | + |
| 62 | +.button--secondary { |
| 63 | + background: rgba(255, 255, 255, 0.1); |
| 64 | + border: 2px solid rgba(255, 255, 255, 0.3); |
| 65 | + color: white; |
| 66 | + backdrop-filter: blur(10px); |
| 67 | +} |
| 68 | + |
| 69 | +.button--secondary:hover { |
| 70 | + background: rgba(255, 255, 255, 0.2); |
| 71 | + border-color: rgba(255, 255, 255, 0.5); |
| 72 | + color: white; |
| 73 | + transform: translateY(-2px); |
| 74 | +} |
| 75 | + |
| 76 | +.button--outline { |
| 77 | + border: 2px solid var(--ifm-color-primary); |
| 78 | + background: transparent; |
| 79 | +} |
| 80 | + |
| 81 | +.button--outline:hover { |
| 82 | + background: var(--ifm-color-primary); |
| 83 | + transform: translateY(-2px); |
| 84 | + box-shadow: 0 4px 15px rgba(46, 133, 85, 0.3); |
| 85 | +} |
| 86 | + |
| 87 | +/* Improved navbar */ |
| 88 | +.navbar { |
| 89 | + backdrop-filter: blur(10px); |
| 90 | + background: rgba(255, 255, 255, 0.95); |
| 91 | + box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1); |
| 92 | +} |
| 93 | + |
| 94 | +.navbar__brand { |
| 95 | + font-weight: 700; |
| 96 | + font-size: 1.2rem; |
| 97 | +} |
| 98 | + |
| 99 | +/* Enhanced code blocks */ |
| 100 | +.prism-code { |
| 101 | + border-radius: 12px; |
| 102 | +} |
| 103 | + |
| 104 | +/* Smooth animations */ |
| 105 | +* { |
| 106 | + transition: color 0.3s ease, background-color 0.3s ease; |
| 107 | +} |
| 108 | + |
| 109 | +/* Enhanced footer */ |
| 110 | +.footer { |
| 111 | + background: linear-gradient(135deg, #2e8555 0%, #1a8870 100%); |
| 112 | +} |
| 113 | + |
| 114 | +/* Dark theme adjustments */ |
| 115 | +[data-theme='dark'] .navbar { |
| 116 | + background: rgba(24, 25, 26, 0.95); |
| 117 | +} |
| 118 | + |
| 119 | +[data-theme='dark'] .button--secondary { |
| 120 | + background: rgba(255, 255, 255, 0.05); |
| 121 | + border-color: rgba(255, 255, 255, 0.2); |
| 122 | +} |
| 123 | + |
| 124 | +[data-theme='dark'] .button--secondary:hover { |
| 125 | + background: rgba(255, 255, 255, 0.1); |
| 126 | + border-color: rgba(255, 255, 255, 0.3); |
| 127 | +} |
0 commit comments