Commit 64f35c2a by PLN (Algolia)

code: larger face, more leading; phone-tight fallback below 48rem

parent f746d467
......@@ -611,11 +611,11 @@
background: #101010;
color: #d5d5d5;
margin: 1.5rem 0;
padding: 1rem 1.25rem;
padding: 1.15rem 1.4rem;
border-radius: 8px;
overflow-x: auto;
line-height: 1.6;
font-size: 0.88rem;
line-height: 1.7;
font-size: 0.95rem;
}
.article .prose pre code {
......@@ -625,6 +625,18 @@
font-variant-ligatures: none;
}
/* Phones: the breakout never fires below 80rem, so code lives inside the
column — give it back some air (smaller face, tighter pad) and keep the
horizontal scroll internal, never page-wide. */
@media (max-width: 48rem) {
.article .prose pre {
font-size: 0.84rem;
line-height: 1.65;
padding: 0.9rem 1rem;
border-radius: 6px;
}
}
/* ?skim=1 (ArticleEnhance) — the skimmer's-eye view: structure and media
stay, prose paragraphs fold. What's left should still tell the story.
Attribute hooks, not classes: the prose div's class name is hashed. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment