|
| 1 | +/* Enhanced link styling for better visibility and user experience */ |
| 2 | + |
| 3 | +/* Main content links */ |
| 4 | +.post-content a, |
| 5 | +.page-content a, |
| 6 | +.entry-content a { |
| 7 | + color: #1e6bb8 !important; /* Nice blue color */ |
| 8 | + text-decoration: none; |
| 9 | + border-bottom: 2px solid transparent; |
| 10 | + transition: all 0.3s ease; |
| 11 | + position: relative; |
| 12 | + font-weight: 500; |
| 13 | +} |
| 14 | + |
| 15 | +.post-content a:hover, |
| 16 | +.page-content a:hover, |
| 17 | +.entry-content a:hover { |
| 18 | + /* No color change on hover - keep original color */ |
| 19 | +} |
| 20 | + |
| 21 | +/* Alternative underline animation effect */ |
| 22 | +.post-content a::after, |
| 23 | +.page-content a::after, |
| 24 | +.entry-content a::after { |
| 25 | + content: ""; |
| 26 | + position: absolute; |
| 27 | + width: 0; |
| 28 | + height: 2px; |
| 29 | + bottom: -2px; |
| 30 | + left: 0; |
| 31 | + background: linear-gradient(90deg, #1e6bb8, #4a90e2); |
| 32 | + transition: width 0.3s ease; |
| 33 | +} |
| 34 | + |
| 35 | +.post-content a:hover::after, |
| 36 | +.page-content a:hover::after, |
| 37 | +.entry-content a:hover::after { |
| 38 | + width: 100%; |
| 39 | +} |
| 40 | + |
| 41 | +/* External link indicator */ |
| 42 | +.post-content a[href^="http"]:not([href*="yourdomain.com"])::before, |
| 43 | +.page-content a[href^="http"]:not([href*="yourdomain.com"])::before, |
| 44 | +.entry-content a[href^="http"]:not([href*="yourdomain.com"])::before { |
| 45 | + content: "🔗 "; |
| 46 | + font-size: 0.8em; |
| 47 | + opacity: 0.7; |
| 48 | + margin-right: 0.2em; |
| 49 | +} |
| 50 | + |
| 51 | +/* Special styling for reference links */ |
| 52 | +.post-content a[href*="wikipedia.org"]::before, |
| 53 | +.page-content a[href*="wikipedia.org"]::before, |
| 54 | +.entry-content a[href*="wikipedia.org"]::before { |
| 55 | + content: "📖 "; |
| 56 | +} |
| 57 | + |
| 58 | +.post-content a[href*="github.com"]::before, |
| 59 | +.page-content a[href*="github.com"]::before, |
| 60 | +.entry-content a[href*="github.com"]::before { |
| 61 | + content: "⚡ "; |
| 62 | +} |
| 63 | + |
| 64 | +.post-content a[href*="cloud.google.com"]::before, |
| 65 | +.page-content a[href*="cloud.google.com"]::before, |
| 66 | +.entry-content a[href*="cloud.google.com"]::before { |
| 67 | + content: "☁️ "; |
| 68 | +} |
| 69 | + |
| 70 | +/* Navigation and menu links */ |
| 71 | +.nav a, |
| 72 | +.menu a { |
| 73 | + color: var(--primary) !important; |
| 74 | + text-decoration: none; |
| 75 | + transition: color 0.3s ease; |
| 76 | +} |
| 77 | + |
| 78 | +.nav a:hover, |
| 79 | +.menu a:hover { |
| 80 | + color: #1e6bb8 !important; |
| 81 | +} |
| 82 | + |
| 83 | +/* Footer links */ |
| 84 | +.footer a { |
| 85 | + color: #1e6bb8 !important; |
| 86 | + text-decoration: none; |
| 87 | + transition: all 0.3s ease; |
| 88 | +} |
| 89 | + |
| 90 | +.footer a:hover { |
| 91 | + /* No color change on hover - keep original color */ |
| 92 | +} |
| 93 | + |
| 94 | +/* Dark mode adjustments */ |
| 95 | +[data-theme="dark"] .post-content a, |
| 96 | +[data-theme="dark"] .page-content a, |
| 97 | +[data-theme="dark"] .entry-content a { |
| 98 | + color: #4a90e2 !important; /* Lighter blue for dark mode */ |
| 99 | +} |
| 100 | + |
| 101 | +[data-theme="dark"] .post-content a:hover, |
| 102 | +[data-theme="dark"] .page-content a:hover, |
| 103 | +[data-theme="dark"] .entry-content a:hover { |
| 104 | + /* No color change on hover - keep original color */ |
| 105 | +} |
| 106 | + |
| 107 | +/* Light mode adjustments */ |
| 108 | +[data-theme="light"] .post-content a, |
| 109 | +[data-theme="light"] .page-content a, |
| 110 | +[data-theme="light"] .entry-content a { |
| 111 | + color: #0066cc !important; |
| 112 | +} |
| 113 | + |
| 114 | +[data-theme="light"] .post-content a:hover, |
| 115 | +[data-theme="light"] .page-content a:hover, |
| 116 | +[data-theme="light"] .entry-content a:hover { |
| 117 | + /* No color change on hover - keep original color */ |
| 118 | +} |
| 119 | + |
| 120 | +[data-theme="light"] .post-content a::after, |
| 121 | +[data-theme="light"] .page-content a::after, |
| 122 | +[data-theme="light"] .entry-content a::after { |
| 123 | + background: linear-gradient(90deg, #0066cc, #004499); |
| 124 | +} |
| 125 | + |
| 126 | +/* Accessibility improvements */ |
| 127 | +.post-content a:focus, |
| 128 | +.page-content a:focus, |
| 129 | +.entry-content a:focus { |
| 130 | + outline: 2px solid #1e6bb8; |
| 131 | + outline-offset: 2px; |
| 132 | + border-radius: 2px; |
| 133 | +} |
| 134 | + |
| 135 | +/* Mobile responsiveness */ |
| 136 | +@media (max-width: 768px) { |
| 137 | + .post-content a, |
| 138 | + .page-content a, |
| 139 | + .entry-content a { |
| 140 | + font-weight: 600; /* Make links more prominent on mobile */ |
| 141 | + } |
| 142 | + |
| 143 | + /* Reduce icon size on mobile */ |
| 144 | + .post-content a[href^="http"]::before, |
| 145 | + .page-content a[href^="http"]::before, |
| 146 | + .entry-content a[href^="http"]::before { |
| 147 | + font-size: 0.7em; |
| 148 | + } |
| 149 | +} |
| 150 | + |
| 151 | +/* Print styles */ |
| 152 | +@media print { |
| 153 | + .post-content a, |
| 154 | + .page-content a, |
| 155 | + .entry-content a { |
| 156 | + color: #000 !important; |
| 157 | + text-decoration: underline !important; |
| 158 | + } |
| 159 | + |
| 160 | + .post-content a::after, |
| 161 | + .page-content a::after, |
| 162 | + .entry-content a::after { |
| 163 | + display: none; |
| 164 | + } |
| 165 | + |
| 166 | + .post-content a[href^="http"]::after, |
| 167 | + .page-content a[href^="http"]::after, |
| 168 | + .entry-content a[href^="http"]::after { |
| 169 | + content: " (" attr(href) ")"; |
| 170 | + font-size: 0.8em; |
| 171 | + color: #666; |
| 172 | + } |
| 173 | +} |
0 commit comments