Pavel Roskin
228538ea62
Don't use distinct background for code in headers when printing
...
Fixes #1933
2023-08-02 23:31:46 -07:00
Giorgio Reale
fcfde083e7
Enhancing themes with color-scheme: light | dark;
implementation in CSS
2023-07-30 15:43:51 -07:00
Skwodo
f5f96bc4f4
change overflow-x hidden to clip
2023-03-02 21:01:38 +01:00
Eric Huss
734936d819
Add some comments about overflow-x
2023-02-08 15:25:14 -08:00
Skwodo
ca46086e79
fix overflow-x on mobile
2023-01-21 22:41:01 +01:00
Noritada Kobayashi
dcc9efea0a
Remove the WebKit-specific scrollbar styling altogether
...
It is preferable to remove WebKit-specific styling and use the browser
and OS default scrollbars.
Thanks to comments from @julianfortune, @arniu, and @ehuss.
Closes #1483 .
2023-01-18 23:51:09 +09:00
Noritada Kobayashi
1ba2c063e0
Thin scrollbars in Chrome and Safari to make them less assertive ( #1483 )
2022-12-22 15:40:03 +09:00
Eric Huss
f32bd6f945
Show the currently selected theme.
2022-11-21 15:27:39 -08:00
Eric Huss
f64fcbc07d
Fix clipping in theme popup
2022-11-21 14:00:18 -08:00
Brett Chalupa
79c159d123
Add styles for <kbd> elements
...
Allows for special styles to call them out since they're different than
normal text and different than code. They can make use of styles they
inherit for font style and weight.
Notes on changes:
- Added new CSS variables for reused elements
- The font-* rules are separate for each aspect so that they can inherit
bold/italic/etc
Closes https://github.com/rust-lang/mdBook/issues/1813
2022-10-06 16:02:29 -04:00
Steven Engler
6a4ba95926
Fixed code padding in headings
2022-07-13 19:12:33 -04:00
Eric Huss
cbf0ca027d
Merge pull request #1806 from ehuss/button-overlap
...
Make code buttons appear on hover (or tap on mobile)
2022-06-27 13:58:17 -07:00
Eric Huss
2b903ad057
Make code block icons appear on hover.
2022-06-01 18:48:34 -07:00
Eric Huss
37d756ae75
Adjust overlap of code buttons with code blocks.
2022-05-16 19:27:46 -07:00
Jade Lovelace
4ae7ab5e87
switch to break-word as suggested
2022-01-27 18:42:39 -08:00
Jade
59569984e2
Address review: use overflow-wrap everywhere
2022-01-27 18:41:31 -08:00
Jade
85df785cd3
Wrap tables in an overflow-x wrapper div
2022-01-27 18:41:30 -08:00
Jade
fde88c22a8
Fix an x overflow with long inline code
...
Spotted on
https://rust-lang.github.io/rfcs/2603-rust-symbol-name-mangling-v0.html
2022-01-27 18:39:09 -08:00
Ingu Kang
bbaa0ea1fa
Prevent iOS Safari from enlarging text in landscape orientation
...
referernces:
- https://developer.mozilla.org/en-US/docs/Web/CSS/text-size-adjust#basic_disabling_usage
- https://trac.webkit.org/changeset/261940/webkit
2021-11-13 15:37:20 +09:00
Ivan Tham
e4a46c9477
Remove extra semicolon in variables.css
2021-10-03 22:23:09 +08:00
Ivan Tham
6ae5c686d9
Remove extra semicolon in variables.css
2021-10-03 22:19:51 +08:00
Michael Howell
82d32ee761
feat(playground): show "No output" on playgrounds that print nothing
...
Fixes #1594
2021-07-07 10:44:51 -07:00
Eldred Habert
3ee22fb430
Apply max width to video as well as images
...
Since videos are essentially animated images, this same max width makes sense for both.
2021-05-23 16:10:26 +02:00
Eric Huss
c83bbd6319
Merge pull request #1463 from ehuss/fix-header-scroll
...
Fix some issues with fragment scrolling and linking.
2021-02-22 14:50:17 -08:00
Tim Small
7f59fdd9bd
Enhance text contrast of light
theme to improve accessibility.
...
The existing light theme has relatively low contrast between the text
(and other UI elements) and background (especially within code blocks).
This presents difficulties for people with reduced visual contrast
perception (common in older adults).
This patch makes changes to the default `light` theme to meet the
minimum contrast requirement of the v2.1 W3C WCAG (Web Content
Accessibility Guidelines)
https://www.w3.org/WAI/WCAG21/quickref/#contrast-minimum
The small size, and slender font used for the title text makes it hard
to read, even with the increased contrast colour scheme, so this patch
also increases the size of the title text font by 20%.
Closes #1442
2021-02-21 14:35:10 +00:00
Eric Huss
45d41eac5f
Fix some issues with fragment scrolling and linking.
2021-02-12 16:37:07 -08:00
ThePuzzlemaker
84d848f292
Fix issue where Font Awesome overrides .hidden
's display: none
2020-06-10 12:55:22 -05:00
mark
2d63286c63
make part titles bold
2020-05-17 16:53:06 -05:00
mark
5dd2a5bff4
implement support for book parts
2020-05-17 16:53:06 -05:00
Eric Huss
e839ef0866
Fix sidebar line-height. ( #1182 )
2020-04-03 21:09:23 +02:00
Eric Huss
4e8e1e1408
Don't highlight code spans in headers. ( #1162 )
2020-03-24 20:43:20 +01:00
Dylan DPC
fd56a53e76
ui: improve menu folding ( #989 )
...
* ui: improve menu folding
Fold/unfold the menu bar just by the amount of scroll, not by its
full width
* refactor: use a variable for the menu bar height
* Fix menu scroll jittering, remove hover folding smoothness
Rewrite it to use `position:` `sticky` and `relative` instead
of continuous programmatic position changes
On-hover folding-unfolding transition removal is a side-effect
2020-03-06 01:11:37 +01:00
Dylan DPC
ca4b85b815
Increases line height for p, ul & ol ( #1136 )
2020-03-06 01:06:19 +01:00
Sergey Pedan
0da7ba4abe
Corrects inner/outer space in sidebar <li>s ( #1137 )
2020-02-17 22:04:59 +01:00
Rostislav
820714a560
Use only relative font sizes ( #894 )
...
This replaces the only use of px for font-sizes by setting up a base
rem size on the root element in a way that is easy to calculate (1 rem =
10px) and scaling up according to browser settings.
2019-10-27 15:51:32 +01:00
Matthew Woodcraft
86a368b726
Introduce a --menu-bar-height CSS variable
2019-10-26 13:21:26 +01:00
Matthew Woodcraft
1dc482b00d
Add scroll-margin-top to headings which contain link targets.
...
This means when the link is followed, the page scrolls in such a way as to
leave space for the fixed menu bar.
Fixes #1040
2019-10-26 12:55:12 +01:00
Benedikt Werner
c9dae170f3
Better automatic dark mode ( #1069 )
...
* Don't save default theme to localStorage
* Auto enable dark mode on no-js
* Fix light theme with no-js
2019-10-23 12:15:59 +02:00
Weihang Lo
6af6219e5b
[Feature] expandable sidebar sections (ToC collapse) ( #1027 )
...
* render(toc): render expandable toc toggle
* ui(toc): js/css logic to toggle toc
* test: update rendered output css selector
* config: add `html.fold.[enable|level]`
* renderer: fold according to configs
* doc: add `output.html.fold`
* refactor: tidy fold config
- Derive default for `Fold`.
- Use `is_empty` instead of checking the length of chapters.
2019-10-19 09:56:08 +02:00
Benedikt Werner
84a2ab0dba
Reapply: Move hiding of boring lines into static content ( #846 ) ( #1065 )
...
* Move hiding of boring lines into static content (#846 )
* Fix test for hidden code
2019-10-16 11:27:14 +02:00
David Omar Flores Chávez
d63ef8330d
Add !important
to code {font-family}
property ( #1062 )
...
If accepted, this will fix #1061
2019-10-11 14:21:13 +02:00
Dylan DPC
2b3304cb8b
Revert "Move hiding of boring lines into static content ( #846 )" ( #1064 )
...
This reverts commit 4448f3fc4b
.
2019-10-10 14:31:55 +02:00
Adrian Heine né Lang
4448f3fc4b
Move hiding of boring lines into static content ( #846 )
2019-10-10 13:55:29 +02:00
Chris Ladd
859659f197
Fix inline code display css ( #1058 )
2019-10-07 09:24:35 +02:00
Stephan Druskat
e880fb6339
Fix #823 : Apply default padding to table headers
...
This PR fixes #823 by applying the default padding for table cells (`padding: 3px 20px;`) to header cells.
2019-08-09 09:48:56 -07:00
WofWca
1c5dc1e310
ui: Improve next/prev chapter links' style
2019-08-03 22:56:25 +08:00
Sorin Davidoi
e512850c13
fix(css/chrome): Use standard property for scrollbar ( #816 )
...
This was recently standardized and is currently implemented in Firefox Nightly.
2019-07-28 21:01:33 +02:00
rnitta
a655d5d241
Header elements wrap links ( #948 )
...
* swap hierarchy of header for that of link
* fix comment
2019-06-03 14:31:15 +02:00
Allen
df12cc55c8
Revert "Merge pull request #889 from s3bk/master" ( #917 )
...
* Revert "Merge pull request #889 from s3bk/master"
This reverts commit b30b58b565
, reversing
changes made to c6220fba83
.
* format tests :P
2019-05-09 20:18:28 +02:00
Stefanie Jäger
ecfaed1e02
Change overflow-x to initial ( #818 )
...
Change overflow-x from auto to initial.
This resolves weird rendering behavior in Chrome and Safari on macOS.
With help from @bash
Co-authored-by: Ruben Schmidmeister <ruben.schmidmeister@icloud.com>
2019-05-08 00:30:28 +02:00