My agentic slop goes here. Not intended for anyone else!

more

Changed files
+98 -19
arod-web
+98 -19
arod-web/arod-sidenotes.js
···
:host {
display: inline-block;
vertical-align: baseline;
-
font-size: 0.75em;
font-weight: 500;
-
margin: 0 0.25em;
}
.ref {
display: inline-flex;
align-items: center;
justify-content: center;
-
min-width: 1.5em;
-
height: 1.5em;
-
padding: 0 0.2em;
color: var(--accent, #090c8d);
background: rgba(9, 12, 141, 0.08);
border: 1px solid rgba(9, 12, 141, 0.2);
···
transition: all 0.2s ease;
font-variant-numeric: tabular-nums;
line-height: 1;
}
.ref:hover,
···
<style>
:host {
display: block;
-
font-size: 0.9em;
-
line-height: 1.45;
-
color: var(--text-muted, #666);
-
margin: 1.5rem 0;
-
padding: 0.75rem 0.75rem 0.75rem 1.5rem;
-
background: var(--sidenote-bg, #fafafa);
border-left: 2px solid var(--border, #e0e0e0);
-
border-radius: 4px;
position: relative;
}
/* Hide on desktop - they're shown in the sidebar */
···
}
}
.sidenote-mobile-number {
font-weight: bold;
color: var(--accent, #090c8d);
-
margin-right: 0.75em;
}
-
/* Mobile/tablet styles */
@media (max-width: 999px) {
.sidenote-mobile-number {
display: inline;
}
···
}
}
::slotted(*) {
-
margin: 0.5rem 0;
}
::slotted(img) {
width: 100%;
height: auto;
border-radius: 4px;
}
::slotted(pre) {
background: var(--color-code-block-bg, rgba(0, 0, 0, 0.03));
-
padding: 0.5rem;
border-radius: 4px;
overflow-x: auto;
}
</style>
-
${number ? `<span class="sidenote-mobile-number">${number}.</span>` : ''}
-
<slot></slot>
`;
}
}
···
// Register components with proper hyphenated names
customElements.define('article-sidenotes', ArticleSidenotes);
customElements.define('sidenote-ref', SidenoteRef);
-
customElements.define('side-note', SideNote);
···
:host {
display: inline-block;
vertical-align: baseline;
+
font-size: 0.65em;
font-weight: 500;
+
margin: 0 0.4em;
}
.ref {
display: inline-flex;
align-items: center;
justify-content: center;
+
width: 1.1em;
+
height: 1.1em;
+
padding: 0;
color: var(--accent, #090c8d);
background: rgba(9, 12, 141, 0.08);
border: 1px solid rgba(9, 12, 141, 0.2);
···
transition: all 0.2s ease;
font-variant-numeric: tabular-nums;
line-height: 1;
+
margin-left: 0.2em;
+
margin-right: 0.2em;
}
.ref:hover,
···
<style>
:host {
display: block;
+
font-size: 0.85rem;
+
line-height: 1.5;
+
color: var(--text-muted, #777);
+
margin: 2.5rem 0 3.5rem 0;
+
padding-left: 1.5rem;
border-left: 2px solid var(--border, #e0e0e0);
position: relative;
+
transition: all 0.2s ease;
+
opacity: 0.9;
+
font-style: italic;
}
/* Hide on desktop - they're shown in the sidebar */
···
}
}
+
/* Hover effect similar to two-column layout */
+
:host(:hover) {
+
border-left-color: var(--accent, #090c8d);
+
opacity: 1;
+
}
+
+
/* Dark mode adjustments */
+
@media (prefers-color-scheme: dark) {
+
:host {
+
color: #999;
+
}
+
}
+
+
[data-theme="dark"] :host {
+
color: #999;
+
}
+
.sidenote-mobile-number {
+
display: inline-block;
font-weight: bold;
color: var(--accent, #090c8d);
+
margin-right: 0.5em;
+
font-size: 0.9em;
}
+
/* Mobile/tablet styles - ensure adequate spacing */
@media (max-width: 999px) {
+
:host {
+
/* Provide generous spacing between notes */
+
margin: 3rem 0;
+
/* Slightly indent from main text */
+
margin-left: 1rem;
+
/* Don't make it full width to distinguish from main text */
+
max-width: calc(100% - 2rem);
+
}
+
+
/* Reduce top margin for first sidenote after text */
+
p + :host,
+
blockquote + :host,
+
pre + :host {
+
margin-top: 2rem;
+
}
+
.sidenote-mobile-number {
display: inline;
}
···
}
}
+
/* Slotted content styling - keep content compact */
::slotted(*) {
+
margin: 0.4rem 0;
+
font-size: inherit;
+
line-height: inherit;
+
color: inherit;
+
}
+
+
::slotted(p:first-child),
+
::slotted(*:first-child) {
+
margin-top: 0;
+
}
+
+
::slotted(p:last-child),
+
::slotted(*:last-child) {
+
margin-bottom: 0;
}
::slotted(img) {
+
display: block;
width: 100%;
height: auto;
border-radius: 4px;
+
margin: 0.75rem 0;
}
::slotted(pre) {
background: var(--color-code-block-bg, rgba(0, 0, 0, 0.03));
+
padding: 0.4rem;
border-radius: 4px;
overflow-x: auto;
+
font-size: 0.85em;
+
margin: 0.5rem 0;
+
}
+
+
::slotted(blockquote) {
+
border-left: 2px solid var(--accent, #090c8d);
+
padding-left: 0.75rem;
+
margin-left: 0;
+
font-style: italic;
+
opacity: 0.9;
+
}
+
+
::slotted(code) {
+
font-size: 0.85em;
+
padding: 0.1em 0.3em;
+
background: rgba(0, 0, 0, 0.05);
+
border-radius: 3px;
+
}
+
+
@media (prefers-color-scheme: dark) {
+
::slotted(code) {
+
background: rgba(255, 255, 255, 0.1);
+
}
}
</style>
+
<div style="padding-left: 0.75rem;">
+
${number ? `<span class="sidenote-mobile-number">${number}.</span>` : ''}
+
<slot></slot>
+
</div>
`;
}
}
···
// Register components with proper hyphenated names
customElements.define('article-sidenotes', ArticleSidenotes);
customElements.define('sidenote-ref', SidenoteRef);
+
customElements.define('side-note', SideNote);