···
vertical-align: baseline;
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;
···
+
color: var(--text-muted, #777);
+
margin: 2.5rem 0 3.5rem 0;
border-left: 2px solid var(--border, #e0e0e0);
+
transition: all 0.2s ease;
/* Hide on desktop - they're shown in the sidebar */
···
+
/* Hover effect similar to two-column layout */
+
border-left-color: var(--accent, #090c8d);
+
/* Dark mode adjustments */
+
@media (prefers-color-scheme: dark) {
+
[data-theme="dark"] :host {
.sidenote-mobile-number {
color: var(--accent, #090c8d);
+
/* Mobile/tablet styles - ensure adequate spacing */
@media (max-width: 999px) {
+
/* Provide generous spacing between notes */
+
/* Slightly indent from main text */
+
/* Don't make it full width to distinguish from main text */
+
max-width: calc(100% - 2rem);
+
/* Reduce top margin for first sidenote after text */
.sidenote-mobile-number {
···
+
/* Slotted content styling - keep content compact */
+
::slotted(p:first-child),
+
::slotted(*:first-child) {
+
::slotted(p:last-child),
+
::slotted(*:last-child) {
background: var(--color-code-block-bg, rgba(0, 0, 0, 0.03));
+
::slotted(blockquote) {
+
border-left: 2px solid var(--accent, #090c8d);
+
background: rgba(0, 0, 0, 0.05);
+
@media (prefers-color-scheme: dark) {
+
background: rgba(255, 255, 255, 0.1);
+
<div style="padding-left: 0.75rem;">
+
${number ? `<span class="sidenote-mobile-number">${number}.</span>` : ''}
···
// Register components with proper hyphenated names
customElements.define('article-sidenotes', ArticleSidenotes);
customElements.define('sidenote-ref', SidenoteRef);
+
customElements.define('side-note', SideNote);