diff --git a/Cargo.lock b/Cargo.lock index af7aa5af..a8c35da4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -424,7 +424,8 @@ dependencies = [ [[package]] name = "inferno" version = "0.11.9" -source = "git+https://github.com/itamarst/inferno.git?branch=monospace-fonts#41b1c3b39430e77534b4954443bc7d5b32acc60f" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bb31a5d9068fccb34562007cd564bb08fff1478255b0534c549e93fcb658cd90" dependencies = [ "ahash 0.7.6", "atty", diff --git a/docs/theme/fonts.css b/docs/theme/fonts.css index e39ee796..b72f5cbc 100644 --- a/docs/theme/fonts.css +++ b/docs/theme/fonts.css @@ -21,8 +21,7 @@ tt { font-weight: 400; font-display: swap; src: url('https://pythonspeed.com/public/fonts/rosario-v13-latin-regular.eot'); /* IE9 Compat Modes */ - src: local('Rosario'), local('Rosario-Regular'), - url('https://pythonspeed.com/public/fonts/rosario-v13-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + src: url('https://pythonspeed.com/public/fonts/rosario-v13-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('https://pythonspeed.com/public/fonts/rosario-v13-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */ url('https://pythonspeed.com/public/fonts/rosario-v13-latin-regular.woff') format('woff'), /* Modern Browsers */ url('https://pythonspeed.com/public/fonts/rosario-v13-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */ @@ -36,8 +35,7 @@ tt { font-weight: 400; font-display: swap; src: url('https://pythonspeed.com/public/fonts/rosario-v13-latin-italic.eot'); /* IE9 Compat Modes */ - src: local('Rosario Italic'), local('Rosario-Italic'), - url('https://pythonspeed.com/public/fonts/rosario-v13-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + src: url('https://pythonspeed.com/public/fonts/rosario-v13-latin-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('https://pythonspeed.com/public/fonts/rosario-v13-latin-italic.woff2') format('woff2'), /* Super Modern Browsers */ url('https://pythonspeed.com/public/fonts/rosario-v13-latin-italic.woff') format('woff'), /* Modern Browsers */ url('https://pythonspeed.com/public/fonts/rosario-v13-latin-italic.ttf') format('truetype'), /* Safari, Android, iOS */ @@ -60,8 +58,7 @@ tt { font-weight: 700; font-display: swap; src: url('https://pythonspeed.com/public/fonts/rosario-v13-latin-700.eot'); /* IE9 Compat Modes */ - src: local('Rosario Bold'), local('Rosario-Bold'), - url('https://pythonspeed.com/public/fonts/rosario-v13-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ + src: url('https://pythonspeed.com/public/fonts/rosario-v13-latin-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */ url('https://pythonspeed.com/public/fonts/rosario-v13-latin-700.woff2') format('woff2'), /* Super Modern Browsers */ url('https://pythonspeed.com/public/fonts/rosario-v13-latin-700.woff') format('woff'), /* Modern Browsers */ url('https://pythonspeed.com/public/fonts/rosario-v13-latin-700.ttf') format('truetype'), /* Safari, Android, iOS */ @@ -74,8 +71,7 @@ tt { font-style: normal; font-display: swap; font-weight: 400; - src: local('Ubuntu Mono'), local('UbuntuMono-Regular'), - url('https://pythonspeed.com/public/fonts/ubuntu-mono-v8-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ + src: url('https://pythonspeed.com/public/fonts/ubuntu-mono-v8-latin-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('https://pythonspeed.com/public/fonts/ubuntu-mono-v8-latin-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } @@ -85,7 +81,6 @@ tt { font-style: normal; font-display: swap; font-weight: 700; - src: local('Ubuntu Mono Bold'), local('UbuntuMono-Bold'), - url('https://pythonspeed.com/public/fonts/ubuntu-mono-v8-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ + src: url('https://pythonspeed.com/public/fonts/ubuntu-mono-v8-latin-700.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */ url('https://pythonspeed.com/public/fonts/ubuntu-mono-v8-latin-700.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */ } diff --git a/filprofiler/_report.py b/filprofiler/_report.py index 83694246..2a8e2d3c 100644 --- a/filprofiler/_report.py +++ b/filprofiler/_report.py @@ -36,14 +36,15 @@ def render_report(output_path: str, now: datetime) -> str: body {{ font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif; line-height: 1.2; - max-width: 40rem; + max-width: 90%; margin: 4rem auto; font-size: 18px; }} - blockquote {{ border-width: 1px; border-color: black; border-style: solid; padding: 1em; }} - div {{ - text-align: center; + .center {{ + max-width: 40rem; + margin: 0 auto; }} + blockquote {{ border-width: 1px; border-color: black; border-style: solid; padding: 1em; }}