Skip to content

Commit c0488d9

Browse files
committed
Docs: remove CSS variables override for font-size
We don't need to tell the users to perform extra steps on these documentation tools because addons is going to do this by default now: readthedocs/addons#473
1 parent 9908942 commit c0488d9

File tree

2 files changed

+0
-41
lines changed

2 files changed

+0
-41
lines changed

docs/user/intro/mdbook.rst

-20
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,6 @@ Getting started
3333

3434
.. _Getting started with mdBook: https://rust-lang.github.io/mdBook/guide/creating.html
3535

36-
Configuring mdBook and Read the Docs Addons
37-
-------------------------------------------
38-
39-
Adjust the flyout menu font size
40-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41-
42-
Add a ``readthedocs.css`` to your build with the `additional-css <https://rust-lang.github.io/mdBook/format/configuration/renderers.html#html-renderer-options>`_ flag,
43-
so that the font in the :ref:`flyout-menu:Addons flyout menu` matches the theme better.
44-
45-
.. code-block:: css
46-
:caption: readthedocs.css:
47-
48-
:root {
49-
/* Increase the font size of the flyout menu */
50-
--readthedocs-flyout-font-size: 1.3rem;
51-
52-
/* Increase the font size of the notifications */
53-
--readthedocs-notification-font-size: 1.3rem;
54-
55-
}
5636

5737
Example repository and demo
5838
---------------------------

docs/user/intro/mkdocs.rst

-21
Original file line numberDiff line numberDiff line change
@@ -158,27 +158,6 @@ To integrate the :ref:`flyout-menu:Addons flyout menu` version menu into your si
158158
extra_javascript:
159159
- javascript/readthedocs.js
160160
161-
Adjust the flyout menu font size
162-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
163-
164-
Add a ``readthedocs.css`` to your build,
165-
so that the font in the :ref:`flyout-menu:Addons flyout menu` matches the theme better.
166-
167-
.. code-block:: css
168-
:caption: readthedocs.css:
169-
170-
:root {
171-
/* Reduce Read the Docs' flyout font a little bit */
172-
--readthedocs-flyout-font-size: 0.7rem;
173-
174-
/* Reduce Read the Docs' notification font a little bit */
175-
--readthedocs-notification-font-size: 0.8rem;
176-
177-
/* This customization is not yet perfect because we can't change the `line-height` yet. */
178-
/* See https://github.com/readthedocs/addons/issues/197 */
179-
--readthedocs-search-font-size: 0.7rem;
180-
}
181-
182161
Example repository and demo
183162
---------------------------
184163

0 commit comments

Comments
 (0)