mirror of
https://github.com/markedjs/marked.git
synced 2026-12-01 16:56:16 +01:00
* fix: fix link issues of _doc.html * fix:wrong changes done * docs:Improved the UI for Docs page * docs:final changes to UI redesign * fix:fixes dark light mode toggle in demo page * fix: fixed linting error after dark mode changes * feat:add mobile responsive design * fix: fix broken links of nav bar * fix:dark mode flash fix and backward url compatibility * fix:demo page fix * fix: fix linting error * fix:clean url and hamburger menu button * fix:fix formatting issues and more device inclusive responsive design * fix: reverts build.js to original state
42 lines
954 B
CSS
42 lines
954 B
CSS
a.github-corner {
|
|
position: fixed !important;
|
|
top: 0;
|
|
right: 0;
|
|
border: 0;
|
|
z-index: 9999 !important;
|
|
display: block;
|
|
}
|
|
|
|
/*
|
|
FIX: Explicitly apply light mode styles ONLY when .dark is NOT present.
|
|
This prevents the light mode rule from conflicting with the dark mode rule.
|
|
*/
|
|
html:not(.dark) a.github-corner svg {
|
|
fill: #0d1117 !important; /* Dark triangle */
|
|
color: #f0f6fc !important; /* White octocat */
|
|
}
|
|
|
|
/*
|
|
FIX: Increased specificity for the dark mode rule.
|
|
*/
|
|
html.dark a.github-corner svg {
|
|
fill: #f0f6fc !important; /* White triangle */
|
|
color: #0d1117 !important; /* Dark octocat */
|
|
}
|
|
|
|
a.github-corner:hover .octo-arm {
|
|
animation: octocat-wave 560ms ease-in-out;
|
|
}
|
|
|
|
@keyframes octocat-wave {
|
|
0%, 100% { transform: rotate(0); }
|
|
20%, 60% { transform: rotate(-25deg); }
|
|
40%, 80% { transform: rotate(10deg); }
|
|
}
|
|
|
|
/* Mobile: Hide GitHub corner on small screens */
|
|
@media (max-width: 768px) {
|
|
a.github-corner {
|
|
display: none;
|
|
}
|
|
} |