45 Commits

Author SHA1 Message Date
Hugo Locurcio
1a2cd61958 Increase spacing between list items to improve readability (#5962) 2022-07-23 02:29:56 +02:00
Max Hilbrunner
3b2bfba823 CSS: Remove error highlight
(cherry picked from commit c8d7e0a4ee)
2021-07-22 21:03:19 +02:00
Max Hilbrunner
58dff9daf8 Merge pull request #5089 from pycbouh/frontend-fix-nested-kbd
Fix styling for keyboard shortcuts

(cherry picked from commit 5b26374cb0)
2021-07-15 18:04:08 +02:00
hpnrep6
0398e5e2f4 Fix JavaScript class reference dark mode (#5004) 2021-06-17 07:43:17 +02:00
hpnrep6
cc5a87712a Fix dark mode in JavaScript class reference (#5002) 2021-06-17 00:20:09 +02:00
Rémi Verschelde
a16e10538f Merge branch 'master' into 3.2 2020-09-28 15:43:06 +02:00
Hugo Locurcio
87d95bdad7 Update instant.page to 5.1.0 2020-09-22 16:20:52 +02:00
Hugo Locurcio
bdece44b8d Prevent the compatibility notice from being the meta description
Adding the compatibility notice via JavaScript prevents the
`meta description` Sphinx extension from taking the notice
as part of the description.

This also changes the redirect URL to point to the page the user
is currently reading instead of always pointing to the homepage.
2020-09-22 14:59:28 +02:00
Marcel Admiraal
14ef5a64da Explicitly add implicitly added semicolon. 2020-09-03 13:06:39 +01:00
Hugo Locurcio
367f09ddc5 Style external links differently to distinguish them from internal ones 2020-08-02 15:34:36 +02:00
Yuri Sizov
3b9ded3572 Fix styling on emphasized lines 2020-06-03 16:01:45 +03:00
Hugo Locurcio
48a28a2106 Tweak the theme font stack to follow Bootstrap 5.0.0-alpha1
This most notably removes Oxgyen which was reported to have a poor
"œ" character appearance under certain font weights.
2020-05-27 21:16:16 +02:00
Yuri Sizov
c0b566cce1 Adjusted language and layout of configuring an IDE docs 2020-05-21 17:34:08 +03:00
Yuri Sizov
ffb70ac1a9 Fix unstyled message for empty search results 2020-05-17 13:40:29 +03:00
Hugo Locurcio
c58eac4f5c Tweak caption styling to be closer to typical captions 2020-05-17 00:07:43 +02:00
Rémi Verschelde
e4237e2948 Misc fixes to recent merges 2020-04-27 09:58:08 +02:00
Max Hilbrunner
fa5b48878a Merge pull request #3197 from Calinou/add-instantpage
Add instant.page to speed up page loading
2020-04-26 22:27:43 +02:00
Andrii Doroshenko
cd04bb9c4b Autowrap text inside tables by default (#3448) 2020-04-26 15:28:44 +02:00
Hugo Locurcio
544f4c4c93 Add instant.page to speed up page loading
instant.page prefetches pages when the user hovers links for
more than 65 milliseconds. This can be used to make navigation feel
significantly faster.

Note that this will have no effect in Firefox when using uBlock Origin,
as it forcibly disables prefetching.
2020-04-18 15:15:55 +02:00
Yuri Sizov
7eff46d5ed Fix ethical banner appearing in steps (#3394) 2020-04-16 19:22:42 +02:00
Yuri Sizov
98e360ffec Improve sidebar behavior on scroll and adjust styling (#3391) 2020-04-16 15:38:30 +02:00
Yuri Sizov
4f7ee00821 Improve navbar scrolling in the live version of the docs (#3368) 2020-04-16 09:52:29 +02:00
Yuri Sizov
4acf7a6563 Fix syntax highlighting for various languages (#3387) 2020-04-15 16:33:20 +02:00
Yuri Sizov
d5fd8a3841 Split Web export guide into class reference and the guide itself (#3326) 2020-04-15 11:53:33 +02:00
Hugo Locurcio
c50cd002ad Make the documentation logo hiDPI-friendly
This also sets the documentation logo to a fixed size in the CSS
to prevent reflows during page loading.
2020-04-11 13:38:25 +02:00
Yuri Sizov
4b3718d720 Add a scroll to navbar, second attempt 2020-04-09 22:21:27 +03:00
Yuri Sizov
d40be695f1 Add proper styles for JS class reference (#3307) 2020-03-25 14:40:06 +01:00
Yuri Sizov
069c5e0a1d Adjust styling of new instant search popup 2020-03-17 13:30:42 +03:00
Yuri Sizov
5f12420e12 Improved CSS media queries to remove conflicts 2020-03-13 17:14:26 +03:00
Yuri Sizov
37604be65f Improved keystroke formatting for shortcuts and key press menti… (#3257) 2020-03-09 23:50:53 +01:00
Hugo Locurcio
d63e0e32d9 Revert "Add scrollbar to the navigation bar (#3237)"
Unfortunately, this breaks the fixed search bar, which harms
usability quite a bit. It also looked bad on mobile.

This reverts commit ac6dc251f7.
2020-03-05 21:33:41 +01:00
Yuri Sizov
ac6dc251f7 Add scrollbar to the navigation bar (#3237) 2020-03-04 09:31:19 +01:00
Hugo Locurcio
200d451b7a Fix highlighting of XML tags when using a dark theme 2020-02-16 22:55:48 +01:00
Hugo Locurcio
b062a204d3 Add dark theme colors for Danger admonitions
This closes #3135.
2020-02-02 01:27:11 +01:00
Rémi Verschelde
b035866ae5 Merge pull request #3117 from Calinou/fix-search-bar-shadow
Fix search bar shadow when it's not fixed due to scrolling yet
2020-01-29 02:14:12 +01:00
Hugo Locurcio
4922ee43a8 Fix the display of very long class names in the navigation bar
This closes #3092.
2020-01-29 01:51:52 +01:00
Hugo Locurcio
36b76ba70a Fix search bar shadow when it's not fixed due to scrolling yet
This closes #3113.
2020-01-29 01:47:02 +01:00
Hugo Locurcio
bfb43a706a Improve the fixed search bar
The search bar will now behave in a "sticky" manner. This makes
the logo disappear more smoothly instead of being abruptly hidden.
Another upside is that the drop shadow will only appear once the
search bar is made fixed.
2020-01-23 19:44:57 +01:00
Hugo Locurcio
a3ab30906b Make the search bar fixed, hide the logo when scrolling down
This closes #2778.
2020-01-23 16:58:56 +01:00
Hugo Locurcio
c0e1cfc52c Fix the "Caution" admonition colors when using the dark theme 2020-01-21 19:07:13 +01:00
Hugo Locurcio
8a39883ed6 Fix the Read the Docs version selector not being centered
This closes #3081.
2020-01-20 17:40:45 +01:00
Hugo Locurcio
ffb1f55f96 Center the page on wide displays
This prevents the main content from being stuck at the left of
the page, which in turn makes it more comfortable to read.
2020-01-18 19:54:45 +01:00
Hugo Locurcio
9e8fb108cc Add a dark theme using the prefers-color-scheme CSS media query
This also includes tweaks to the syntax highlighting theme
which were necessary to support switching the theme using CSS
variables. Some token colors in the light syntax theme have been
swapped around for consistency.

This closes #3041.
2020-01-12 03:45:05 +01:00
Rémi Verschelde
e23ee5b081 Fix typos with codespell
Using codespell 1.16.0.

Method:
```
$ cat > ../godot-word-whitelist.txt << EOF
ang
curvelinear
dof
doubleclick
leapyear
lod
merchantibility
nd
numer
ois
ony
que
seeked
synching
te
uint
unselect
webp
EOF

$ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po"
$ git diff // undo unwanted changes
```
2019-12-06 22:07:59 +01:00
Hugo Locurcio
6b683b77ca Tweak the theme to better match Godot's visual identity
This also removes the need to load Web fonts, leading to a smoother
page loading experience.

Co-authored-by: Nicholas Hydock <nhydock@users.noreply.github.com>
2019-11-19 22:05:23 +01:00