|
| 1 | +/* RuleChef docs — match the app's design language */ |
| 2 | + |
| 3 | +:root { |
| 4 | + /* Brand: hsl(358, 88%, 66%) ≈ #f04248 */ |
| 5 | + --md-primary-fg-color: #e84249; |
| 6 | + --md-primary-fg-color--light: #f06a70; |
| 7 | + --md-primary-fg-color--dark: #c4343a; |
| 8 | + --md-accent-fg-color: #e84249; |
| 9 | + --md-accent-fg-color--transparent: #e8424926; |
| 10 | +} |
| 11 | + |
| 12 | +[data-md-color-scheme="slate"] { |
| 13 | + --md-primary-fg-color: #ef5358; |
| 14 | + --md-primary-fg-color--light: #f57a7f; |
| 15 | + --md-primary-fg-color--dark: #c4343a; |
| 16 | + --md-accent-fg-color: #ef5358; |
| 17 | + --md-accent-fg-color--transparent: #ef535826; |
| 18 | +} |
| 19 | + |
| 20 | +/* Monospace font throughout — matches the app */ |
| 21 | +:root { |
| 22 | + --md-text-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; |
| 23 | + --md-code-font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; |
| 24 | +} |
| 25 | + |
| 26 | +/* Subtle background gradient like the app */ |
| 27 | +body { |
| 28 | + background-image: |
| 29 | + radial-gradient(circle at 10% 0%, hsl(220 20% 97%) 0%, transparent 40%), |
| 30 | + radial-gradient(circle at 90% 0%, hsl(358 88% 97%) 0%, transparent 35%); |
| 31 | + background-attachment: fixed; |
| 32 | +} |
| 33 | + |
| 34 | +[data-md-color-scheme="slate"] body { |
| 35 | + background-image: |
| 36 | + radial-gradient(circle at 10% 0%, hsl(220 20% 8%) 0%, transparent 40%), |
| 37 | + radial-gradient(circle at 90% 0%, hsl(358 40% 10%) 0%, transparent 35%); |
| 38 | +} |
| 39 | + |
| 40 | +/* Tighten body text size for monospace readability */ |
| 41 | +.md-typeset { |
| 42 | + font-size: 0.72rem; |
| 43 | + line-height: 1.7; |
| 44 | +} |
| 45 | + |
| 46 | +/* Softer header — translucent like the app */ |
| 47 | +.md-header { |
| 48 | + backdrop-filter: blur(12px); |
| 49 | + -webkit-backdrop-filter: blur(12px); |
| 50 | + background-color: hsla(0, 0%, 100%, 0.85); |
| 51 | + box-shadow: 0 1px 0 hsl(220 14% 90%); |
| 52 | +} |
| 53 | + |
| 54 | +[data-md-color-scheme="slate"] .md-header { |
| 55 | + background-color: hsla(0, 0%, 4%, 0.85); |
| 56 | + box-shadow: 0 1px 0 hsl(0 0% 15%); |
| 57 | +} |
| 58 | + |
| 59 | +/* Code blocks — clean look */ |
| 60 | +.md-typeset code { |
| 61 | + border-radius: 4px; |
| 62 | +} |
| 63 | + |
| 64 | +.md-typeset pre > code { |
| 65 | + border-radius: 6px; |
| 66 | +} |
| 67 | + |
| 68 | +/* Nav sidebar — lighter active state */ |
| 69 | +.md-nav__link--active { |
| 70 | + font-weight: 600; |
| 71 | +} |
| 72 | + |
| 73 | +/* Admonitions — use brand color for note */ |
| 74 | +.md-typeset .admonition.note, |
| 75 | +.md-typeset details.note { |
| 76 | + border-color: var(--md-accent-fg-color); |
| 77 | +} |
| 78 | + |
| 79 | +.md-typeset .note > .admonition-title, |
| 80 | +.md-typeset .note > summary { |
| 81 | + background-color: var(--md-accent-fg-color--transparent); |
| 82 | +} |
| 83 | + |
| 84 | +.md-typeset .note > .admonition-title::before, |
| 85 | +.md-typeset .note > summary::before { |
| 86 | + background-color: var(--md-accent-fg-color); |
| 87 | +} |
0 commit comments