Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

docs: stop the docs font size from scaling up on wide screens (#10914)

Akshay Agrawalac704666add8
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
index 41e8310d53..6b82ee0e87 100644
--- a/docs/stylesheets/extra.css
+++ b/docs/stylesheets/extra.css
@@ -15,6 +15,20 @@
}
/* Custom font sizes for better readability */
+
+/* Material scales the root font up at wide viewports, to 137.5% above 1600px
+ and 150% above 2000px, and every rem-based size grows with it. Cap both
+ steps so body text stops at 16px. The factor follows from the 0.75rem size
+ below: 0.75 of a 133.333% root is 16px at the default browser size. One
+ rule covers both steps, because it matches from the lower threshold up and
+ is declared later. Use a percentage rather than px so that a reader's own
+ browser font-size preference still applies. */
+@media screen and (min-width: 100em) {
+ html {
+ font-size: 133.333%;
+ }
+}
+
.md-typeset {
font-size: 0.75rem;
line-height: 1.6;