Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions docs/api_split.pug
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@ append style
script(src=`${versions.versionedPath}/docs/js/convert-old-anchorid.js`)

block content
<a class="edit-docs-link" href="#{editLink}" target="_blank">
<img src="#{versions.versionedPath}/docs/images/pencil.svg" />
</a>
h1 #{title}

include includes/native
.article-header
h1 #{title}
<a class="edit-docs-link" href="#{editLink}" target="_blank">
<img src="#{versions.versionedPath}/docs/images/pencil.svg" />
</a>

div.api-nav
div.api-nav-content
Expand Down Expand Up @@ -43,7 +42,7 @@ block content
h3(id=prop.anchorId)
a(href='#' + prop.anchorId)
| <code>#{prop.string}</code>
if prop.deprecated
if prop.deprecated
<span class="deprecated">~DEPRECATED~</span>
if prop.param != null
h5 Parameters:
Expand Down Expand Up @@ -76,4 +75,4 @@ block content
each see in prop.see
li <span class="method-type"><a href="#{see.url}">#{see.text}</a></span>
div
| !{prop.description}
| !{prop.description}
84 changes: 62 additions & 22 deletions docs/css/carbonads.css
Original file line number Diff line number Diff line change
@@ -1,32 +1,72 @@
/* CPM ads */
/* Carbon ad — rendered inside .right-sidebar .cpc-ad, below the TOC.
The carbonads.com script injects #carbonads into the .cpc-ad container;
we style it to flow in the sidebar rather than float at the viewport. */

.carbonad{
margin-top:0!important;
margin-bottom:-3rem!important
.cpc-ad {
width: 100%;
}

#carbonads {
position:fixed;
right: 0px;
bottom: 0px;
display:block;
width:160px;
padding:15px 15px 15px 150px;
overflow:hidden;
font-size:13px;
line-height:1.4;
text-align:left;
background-color: #fafafa;
display: block;
width: 100%;
max-width: 240px;
padding: 12px;
overflow: hidden;
font-size: 12px;
line-height: 1.4;
text-align: left;
background-color: var(--bg-secondary, #fafafa);
border: 1px solid var(--border-color, #e5e5e7);
border-radius: 8px;
box-sizing: border-box;
}

@media (max-width: 1170px) {
#carbonads {
display: none !important;
}
#carbonads a {
color: var(--text-primary, #333);
text-decoration: none;
}

#carbonads a{color:#333;text-decoration:none}
#carbonads a:hover {
color: var(--link-color, #0971B2);
}

.carbon-wrap {
display: flex;
flex-direction: column;
gap: 10px;
align-items: flex-start;
}

.carbon-img{float:left;margin-left:-145px}
.carbon-img {
flex-shrink: 0;
display: block;
}

.carbon-img img {
display: block;
width: 100px;
height: auto;
border-radius: 4px;
}

.carbon-poweredby{display:block;color:#777!important}
.carbon-text {
display: block;
flex: 1;
min-width: 0;
color: var(--text-secondary, #555);
}

.carbon-poweredby {
display: block;
margin-top: 6px;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.04em;
color: var(--text-muted, #888) !important;
}

/* Legacy .carbonad class (older ad format) — let it flow, ignore the old
negative margin hack that fought the old fixed-position sidebar. */
.carbonad {
margin: 0 !important;
}
171 changes: 171 additions & 0 deletions docs/css/home.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
/* CSS Custom Properties for Theming */
/* Light mode (default) */
:root, [data-theme="light"] {
--bg-primary: #ffffff;
--bg-secondary: #eee;
--bg-tertiary: #fafafa;
--text-primary: #000000;
--text-secondary: #333333;
--text-muted: #777777;
--link-color: #0971B2;
--link-hover: #065a8f;
--border-color: #ddd;
--code-bg: #f5f5f5;
--code-text: #333;
--menu-bg: #eee;
--menu-hover: rgba(0, 0, 0, 0.1);
--menu-selected: rgba(0, 0, 0, 0.15);
--shadow: rgba(0, 0, 0, 0.1);
--focus-ring: #0971B2;
--focus-ring-width: 3px;
--focus-ring-shadow: rgba(9, 113, 178, 0.1);
/* Brand colors */
--brand-primary: #800;
--brand-primary-hover: #990000;
--brand-primary-subtle: rgba(136, 0, 0, 0.1);
/* Button colors */
--btn-bg: #444;
--btn-text-shadow: #222;
/* Tagline text shadow */
--tagline-text-shadow: #f8f8f8;
}

/* Dark mode - system preference (no-JS fallback) or manual toggle */
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--bg-primary: #1a1a1a;
--bg-secondary: #252525;
--bg-tertiary: #252525;
--text-primary: #f0f0f0;
--text-secondary: #d8d8d8;
--text-muted: #a0a0a0;
--link-color: #7BC3FF;
--link-hover: #8AD0FF;
--border-color: #444444;
--code-bg: #252525;
--code-text: #e8e8e8;
--menu-bg: #252525;
--menu-hover: rgba(255, 255, 255, 0.1);
--menu-selected: rgba(255, 255, 255, 0.15);
--shadow: rgba(0, 0, 0, 0.3);
--focus-ring: #FFB4B4;
--focus-ring-shadow: rgba(255, 180, 180, 0.2);
/* Brand colors */
--brand-primary: #FF5E5E;
--brand-primary-hover: #F55;
--brand-primary-subtle: rgba(255, 180, 180, 0.1);
/* Button colors */
--btn-bg: #444;
--btn-text-shadow: #222;
/* Tagline text shadow */
--tagline-text-shadow: #222;
}
}

/* Dark mode - manual toggle (overrides system preference) */
[data-theme="dark"] {
--bg-primary: #1a1a1a;
--bg-secondary: #2d2d2d;
--bg-tertiary: #252525;
--text-primary: #f0f0f0;
--text-secondary: #d8d8d8;
--text-muted: #a0a0a0;
--link-color: #7BC3FF;
--link-hover: #8AD0FF;
--border-color: #444444;
--code-bg: #252525;
--code-text: #e8e8e8;
--menu-bg: #252525;
--menu-hover: rgba(255, 255, 255, 0.1);
--menu-selected: rgba(255, 255, 255, 0.15);
--shadow: rgba(0, 0, 0, 0.3);
--focus-ring: #FFB4B4;
--focus-ring-shadow: rgba(255, 180, 180, 0.2);
/* Brand colors */
--brand-primary: #FF5E5E;
--brand-primary-hover: #F55;
--brand-primary-subtle: rgba(255, 180, 180, 0.1);
/* Button colors */
--btn-bg: #444;
--btn-text-shadow: #222;
/* Tagline text shadow */
--tagline-text-shadow: #222;
}

html {
font-family: 'Open Sans';
color-scheme: light dark;
}

a {
text-decoration: none;
}

p {
line-height: 1.5em;
}

/* Anchor icons on hover for markdown-generated headings */
h1 a::before,
h2 a::before,
h3 a::before,
h4 a::before,
a.anchor::before {
position: absolute;
left: 22px;
margin-top: 4px;
background-color: var(--text-muted);
-webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/><path d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/></svg>");
mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/><path d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/></svg>");
-webkit-mask-size: contain;
mask-size: contain;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
-webkit-mask-position: center;
mask-position: center;
height: 1em;
/* Any width that will be over the size of the icon and overlap the link to keep the hover state will work */
width: 2em;
content: ' ';

/* Hide it when not hover */
opacity: 0;
}

h1 a:hover::before,
h2 a:hover::before,
h3 a:hover::before,
h4 a:hover::before,
a.anchor:hover::before {
opacity: 1;
}

h1 a,
h2 a,
h3 a,
h4 a {
color: var(--text-primary);
}

h1 a:focus-visible,
h2 a:focus-visible,
h3 a:focus-visible,
h4 a:focus-visible {
outline: var(--focus-ring-width) solid var(--focus-ring);
outline-offset: 2px;
border-radius: 2px;
}

@media (max-width: 768px) {
.github-fork-ribbon {
display: none;
}

h1 a::before,
h2 a::before,
h3 a::before,
h4 a::before,
a.anchor::before {
display: none;
}
}
43 changes: 0 additions & 43 deletions docs/css/inlinecpc.css

This file was deleted.

Loading