From a70facacca73cceca406160a1683e5e83b040eb2 Mon Sep 17 00:00:00 2001 From: Jim Fisher Date: Thu, 12 Jan 2023 09:05:50 +0000 Subject: [PATCH 1/2] Remove `text-transform: uppercase` on case-sensitive titles It's confusing enough that PyTorch provides `torch.Tensor` and `torch.tensor`. It makes it even worse that CSS implies that this is case-insensitive and shows the page titles identically: https://pytorch.org/docs/stable/tensors.html https://pytorch.org/docs/stable/generated/torch.tensor.html#torch.tensor `text-transform` should generally be avoided - it causes lots of usability issues. --- pytorch_sphinx_theme/static/css/theme.css | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pytorch_sphinx_theme/static/css/theme.css b/pytorch_sphinx_theme/static/css/theme.css index 98584d02..c309ad93 100644 --- a/pytorch_sphinx_theme/static/css/theme.css +++ b/pytorch_sphinx_theme/static/css/theme.css @@ -8,7 +8,7 @@ :root { --blue: #007bff; --indigo: #6610f2; - --purple: #6f42c1; + --purple: #6f42c1;text-transform: uppercase --pink: #e83e8c; --red: #dc3545; --orange: #fd7e14; @@ -10440,7 +10440,6 @@ h1 { font-size: 2rem; letter-spacing: 1.78px; line-height: 2.5rem; - text-transform: uppercase; margin: 1.375rem 0; } From 8061a5f551cf1d717adc6b98de8ceaa7503f791d Mon Sep 17 00:00:00 2001 From: Jim Fisher Date: Thu, 12 Jan 2023 09:07:56 +0000 Subject: [PATCH 2/2] Fix mistake caused by unusable web editor --- pytorch_sphinx_theme/static/css/theme.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pytorch_sphinx_theme/static/css/theme.css b/pytorch_sphinx_theme/static/css/theme.css index c309ad93..2b00b301 100644 --- a/pytorch_sphinx_theme/static/css/theme.css +++ b/pytorch_sphinx_theme/static/css/theme.css @@ -8,7 +8,7 @@ :root { --blue: #007bff; --indigo: #6610f2; - --purple: #6f42c1;text-transform: uppercase + --purple: #6f42c1; --pink: #e83e8c; --red: #dc3545; --orange: #fd7e14;