From d4b58e5142244deebe7e355168eba1a431d7b9df Mon Sep 17 00:00:00 2001 From: Philipp Burckhardt Date: Sat, 25 Sep 2021 14:41:41 -0400 Subject: [PATCH] Migration to mui v5 (#39) * Upgrade mui dependencies and update imports * Pass down standalone package name * Use chips for links * Upgrade mui dependencies and update imports --- lib/server/lib/routes/home.jsx | 2 +- lib/server/lib/routes/packages.jsx | 2 +- lib/server/lib/routes/search.jsx | 2 +- lib/server/lib/routes/version.jsx | 2 +- package.json | 6 +- public/css/docs/bundle.min.css | 2 +- public/css/docs/layout.css | 2 +- src/app.jsx | 91 ++++++++++--------- src/components/readme/breadcrumbs.jsx | 2 +- src/components/readme/edit_link.jsx | 2 +- src/components/runner/benchmark.jsx | 2 +- src/components/runner/test.jsx | 36 ++++---- src/components/search/index.jsx | 10 +- src/components/top-nav/download_button.jsx | 8 +- .../top-nav/download_progress_bar.jsx | 2 +- src/components/top-nav/pkg-menu/index.jsx | 5 +- src/components/top-nav/search_input.jsx | 7 +- src/components/top-nav/side-menu/drawer.jsx | 10 +- src/components/top-nav/side-menu/filter.jsx | 2 +- src/components/top-nav/side-menu/head.jsx | 5 +- .../top-nav/side-menu/open_button.jsx | 5 +- 21 files changed, 109 insertions(+), 96 deletions(-) diff --git a/lib/server/lib/routes/home.jsx b/lib/server/lib/routes/home.jsx index 1939e097d5..7c8990f0d2 100644 --- a/lib/server/lib/routes/home.jsx +++ b/lib/server/lib/routes/home.jsx @@ -22,7 +22,7 @@ var React = require( 'react' ); var render = require( 'react-dom/server' ).renderToString; -var styles = require( '@material-ui/core/styles' ); +var styles = require( '@mui/styles' ); // VARIABLES // diff --git a/lib/server/lib/routes/packages.jsx b/lib/server/lib/routes/packages.jsx index 294639eb13..2f5ad35b73 100644 --- a/lib/server/lib/routes/packages.jsx +++ b/lib/server/lib/routes/packages.jsx @@ -24,7 +24,7 @@ var fs = require( 'fs' ); var path = require( 'path' ); var React = require( 'react' ); var render = require( 'react-dom/server' ).renderToString; -var styles = require( '@material-ui/core/styles' ); +var styles = require( '@mui/styles' ); var readFile = require( '@stdlib/fs/read-file' ); var pkg2title = require( './../title.js' ); var packageData = require( './../package_data.js' ); diff --git a/lib/server/lib/routes/search.jsx b/lib/server/lib/routes/search.jsx index 742fa66914..b1c918b518 100644 --- a/lib/server/lib/routes/search.jsx +++ b/lib/server/lib/routes/search.jsx @@ -22,7 +22,7 @@ var React = require( 'react' ); var render = require( 'react-dom/server' ).renderToString; -var styles = require( '@material-ui/core/styles' ); +var styles = require( '@mui/styles' ); // VARIABLES // diff --git a/lib/server/lib/routes/version.jsx b/lib/server/lib/routes/version.jsx index 4cefe97f10..960c1ce496 100644 --- a/lib/server/lib/routes/version.jsx +++ b/lib/server/lib/routes/version.jsx @@ -22,7 +22,7 @@ var React = require( 'react' ); var render = require( 'react-dom/server' ).renderToString; -var styles = require( '@material-ui/core/styles' ); +var styles = require( '@mui/styles' ); // VARIABLES // diff --git a/package.json b/package.json index 3d4c92c3b3..cf7802ee57 100644 --- a/package.json +++ b/package.json @@ -67,8 +67,10 @@ "@babel/plugin-transform-react-jsx": "^7.7.0", "@babel/plugin-transform-runtime": "^7.6.2", "@babel/register": "^7.7.0", - "@material-ui/core": "^4.6.0", - "@material-ui/icons": "^4.5.1", + "@emotion/styled": "^11.3.0", + "@mui/icons-material": "^5.0.1", + "@mui/material": "^5.0.1", + "@mui/styles": "^5.0.1", "fastify": "^3.20.2", "fastify-helmet": "^5.3.2", "fastify-static": "^4.2.3", diff --git a/public/css/docs/bundle.min.css b/public/css/docs/bundle.min.css index 0e7ca7acb1..07a7e0686e 100644 --- a/public/css/docs/bundle.min.css +++ b/public/css/docs/bundle.min.css @@ -1 +1 @@ -a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}.hljs-comment,.hljs-quote{color:#727272}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#aa5d00}.hljs-built_in,.hljs-builtin-name,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#de0801}.hljs-attribute{color:#aa5d00}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#008500}.hljs-section,.hljs-title{color:#2574a9}.hljs-keyword,.hljs-selector-tag{color:#a101f1}.hljs{display:block;overflow-x:auto;background:#fff;color:#24292f;padding:.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}@font-face{font-family:LatoLatinWebLight;src:url(/css/common/fonts/lato/latin/LatoLatin-Light.eot);src:url(/css/common/fonts/lato/latin/LatoLatin-Light.eot?#iefix) format('embedded-opentype'),url(/css/common/fonts/lato/latin/LatoLatin-Light.woff2) format('woff2'),url(/css/common/fonts/lato/latin/LatoLatin-Light.woff) format('woff'),url(/css/common/fonts/lato/latin/LatoLatin-Light.ttf) format('truetype');font-style:normal;font-weight:400;text-rendering:optimizeLegibility;font-display:swap}@font-face{font-family:LatoLatinWebLight;src:url(/css/common/fonts/lato/latin/LatoLatin-LightItalic.eot);src:url(/css/common/fonts/lato/latin/LatoLatin-LightItalic.eot?#iefix) format('embedded-opentype'),url(/css/common/fonts/lato/latin/LatoLatin-LightItalic.woff2) format('woff2'),url(/css/common/fonts/lato/latin/LatoLatin-LightItalic.woff) format('woff'),url(/css/common/fonts/lato/latin/LatoLatin-LightItalic.ttf) format('truetype');font-style:italic;font-weight:400;text-rendering:optimizeLegibility;font-display:swap}html{box-sizing:border-box}body,html{min-height:100vh}body{margin:0}*,:after,:before{box-sizing:inherit}input{margin:0}img{box-sizing:content-box;max-width:100%}h1,h2,h3,h4,h5,h6{margin-top:1.5em;margin-bottom:1em}h1,h2{padding-bottom:.3em}.group:after,.group:before{content:"";display:table}.group:after{clear:both}.group{zoom:1}.center{text-align:center;margin-left:auto;margin-right:auto}.right{text-align:right;margin-left:auto;margin-right:0}.invisible{visibility:hidden}#root{position:relative;width:100%}.main{position:relative;width:100%;min-height:100vh;margin-bottom:7em;padding-top:120px;-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);-o-transform:translateX(0);transform:translateX(0);-webkit-transform:translateZ(0) translateX(0);-moz-transform:translateZ(0) translateX(0);-ms-transform:translateZ(0) translateX(0);-o-transform:translateZ(0) translateX(0);transform:translateZ(0) translateX(0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);scroll-margin:100px 0 0 0}.main.translate-right{-webkit-transform:translateX(300px);-moz-transform:translateX(300px);-ms-transform:translateX(300px);-o-transform:translateX(300px);transform:translateX(300px);-webkit-transform:translateZ(0) translateX(300px);-moz-transform:translateZ(0) translateX(300px);-ms-transform:translateZ(0) translateX(300px);-o-transform:translateZ(0) translateX(300px);transform:translateZ(0) translateX(300px);-webkit-transform:translate3d(300px,0,0);-moz-transform:translate3d(300px,0,0);-ms-transform:translate3d(300px,0,0);-o-transform:translate3d(300px,0,0);transform:translate3d(300px,0,0);scroll-margin:100px 0 0 300px}@media only screen and (max-width:53.75em){.main{width:86%;margin-left:7%}.main.translate-right{-webkit-transform:translateX(350px);-moz-transform:translateX(350px);-ms-transform:translateX(350px);-o-transform:translateX(350px);transform:translateX(350px);-webkit-transform:translateZ(0) translateX(350px);-moz-transform:translateZ(0) translateX(350px);-ms-transform:translateZ(0) translateX(350px);-o-transform:translateZ(0) translateX(350px);transform:translateZ(0) translateX(350px);-webkit-transform:translate3d(350px,0,0);-moz-transform:translate3d(350px,0,0);-ms-transform:translate3d(350px,0,0);-o-transform:translate3d(350px,0,0);transform:translate3d(350px,0,0);scroll-margin:100px 0 0 300px}}@media only screen and (max-width:45em){.main{width:94%;margin-left:3%}}.readme{min-height:100%;margin-left:12.5%;margin-bottom:12px}.readme-content{scroll-padding:200px 0 0 0}.readme h1{margin-top:.5em;margin-bottom:.5em}.readme>blockquote,.readme>code,.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>hr,.readme>nav,.readme>p,.readme>pre,.readme>section,.readme>section>blockquote,.readme>section>code,.readme>section>h1,.readme>section>h2,.readme>section>h3,.readme>section>h4,.readme>section>h5,.readme>section>h6,.readme>section>hr,.readme>section>nav,.readme>section>p,.readme>section>pre,.readme>section>section,.readme>section>ul,.readme>ul{min-width:594px;max-width:720px}.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>section h1,.readme>section h2,.readme>section h3,.readme>section h4,.readme>section h5,.readme>section h6{scroll-margin:100px 0 0 0}.readme blockquote,.readme dl,.readme p,.readme pre,.readme table{margin-top:0;margin-bottom:1em}@media only screen and (max-width:76.25em){.readme>blockquote,.readme>code,.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>hr,.readme>nav,.readme>p,.readme>pre,.readme>section,.readme>section>blockquote,.readme>section>code,.readme>section>h1,.readme>section>h2,.readme>section>h3,.readme>section>h4,.readme>section>h5,.readme>section>h6,.readme>section>hr,.readme>section>nav,.readme>section>p,.readme>section>pre,.readme>section>section,.readme>section>ul,.readme>ul{width:66.66666666666%}}@media only screen and (max-width:67.5em){.readme>blockquote,.readme>code,.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>hr,.readme>nav,.readme>p,.readme>pre,.readme>section,.readme>section>blockquote,.readme>section>code,.readme>section>h1,.readme>section>h2,.readme>section>h3,.readme>section>h4,.readme>section>h5,.readme>section>h6,.readme>section>hr,.readme>section>nav,.readme>section>p,.readme>section>pre,.readme>section>section,.readme>section>ul,.readme>ul{width:80%;max-width:700px}}@media only screen and (max-width:53.75em){.readme{margin-left:0}.readme>blockquote,.readme>code,.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>hr,.readme>nav,.readme>p,.readme>pre,.readme>section,.readme>section>blockquote,.readme>section>code,.readme>section>h1,.readme>section>h2,.readme>section>h3,.readme>section>h4,.readme>section>h5,.readme>section>h6,.readme>section>hr,.readme>section>nav,.readme>section>p,.readme>section>pre,.readme>section>section,.readme>section>ul,.readme>ul{width:96%;max-width:700px}}@media only screen and (max-width:45em){.readme{margin-left:0}.readme>blockquote,.readme>code,.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>hr,.readme>nav,.readme>p,.readme>pre,.readme>section,.readme>section>blockquote,.readme>section>code,.readme>section>h1,.readme>section>h2,.readme>section>h3,.readme>section>h4,.readme>section>h5,.readme>section>h6,.readme>section>hr,.readme>section>nav,.readme>section>p,.readme>section>pre,.readme>section>section,.readme>section>ul,.readme>ul{width:100%;min-width:100%}}.readme ol,.readme ul{margin-top:0;margin-bottom:1em;padding-left:2em}.readme ol ol,.readme ol ul,.readme ul ol,.readme ul ul{margin-top:0;margin-bottom:0}.readme li>p{margin-top:1em}.readme li+li{margin-top:.25em}.readme .namespace-toc ul{padding-left:.5em}.readme .namespace-toc ul li{display:flex;flex-shrink:1}.readme .namespace-toc ul li .signature{width:50%;min-width:50%}.readme .namespace-toc ul li .delimiter{display:none}.readme dl{padding:0}.readme dl dt{margin-top:1em;padding:0}.readme dl dd{margin-bottom:1em;padding:0 1em}.readme dd{margin-left:0}.readme h1+blockquote{margin-bottom:2em}.readme blockquote{padding:0 1em}.readme blockquote>:first-child{margin-top:0}.readme blockquote>:last-child{margin-bottom:0}.readme hr{height:.25em;margin:1.5em 0;padding:0}.readme hr::before{display:table;content:""}.readme table{display:block;width:100%}.readme table td,.readme table th{padding:6px 13px}.readme td,.readme th{padding:0}.readme pre{padding:1em}.readme pre code{display:inline;max-width:inherit;padding:0}.readme code{margin:0;padding:0;padding-top:.2em;padding-bottom:.2em}.readme code::after,.readme code::before{letter-spacing:-.2em;content:"\00a0"}.readme pre code::after,.readme pre code::before{content:normal}.readme kbd{display:inline-block;padding:3px 5px}.readme .related{margin-top:3em}.readme .related hr{display:none}.readme .related h2{margin-top:0;padding-top:.7em;padding-bottom:.4em;padding-left:.5em}.readme .related h2:before{display:inline-block;padding-right:.3em;vertical-align:middle}.readme .related ul{padding-left:1em;margin-bottom:1.5em}.readme .related .delimiter{display:none}.readme .related .package-name{display:block;margin-top:.75em;margin-bottom:.2em}.readme .related .description{display:block;margin-bottom:.5em;padding-left:2em}.readme .readme-breadcrumbs .logo-icon{display:inline-block;height:1em;width:1em;margin-right:.5em;vertical-align:text-top}.readme .readme-breadcrumbs ol{margin-bottom:0;padding-left:0}.readme .readme-breadcrumbs li{height:1.2em;margin-top:0}.readme .readme-addendum{margin-top:3em}.readme .readme-bottom-nav .edit-link-wrapper{display:flex;justify-content:flex-end}.readme .readme-bottom-nav .pagination{display:flex;justify-content:space-between;margin-top:2.5em;padding-top:3em}.readme .readme-bottom-nav .pagination-link,.readme .readme-bottom-nav .pagination-link-placeholder{width:50%;padding:1em}.readme .readme-bottom-nav .pagination-link-prev{padding-left:.5em}.readme .readme-bottom-nav .pagination-link-next{padding-right:.5em}.readme .readme-bottom-nav .pagination-link-label{margin-top:.2em}.runner-results p{margin-bottom:0}.runner-results .logo-icon{display:inline-block;height:1em;width:1em;margin-right:.5em;vertical-align:text-bottom}.runner-results .benchmark-block,.runner-results .test-block{margin-bottom:1em;padding-left:1em}.runner-results .benchmark-block .benchmark-description,.runner-results .test-block .test-description{margin-bottom:.5em}.runner-results .benchmark-block .benchmark-elapsed,.runner-results .benchmark-block .benchmark-iterations,.runner-results .benchmark-block .benchmark-rate,.runner-results .test-block .test-fail,.runner-results .test-block .test-pass{margin-left:1em}.runner-results .benchmark-block .benchmark-result-icon,.runner-results .test-block .test-result-icon{margin-right:.5em}.search-results h1{display:flex}.search-results h1 span{flex-grow:1}.search-results .search-results-list{padding-left:0}.search-results .search-results-list-item{display:block;margin-top:0;padding-top:.5em;padding-bottom:.5em;padding-left:10px;padding-right:10px}.search-results .search-results-list-item-title{margin-top:.5em;margin-bottom:.5em}.search-results .search-results-list-item-url{margin-top:0;margin-bottom:0}.search-results .search-results-list-item-url .logo-icon{display:inline-block;height:1em;width:1em;vertical-align:text-bottom}.search-results .search-results-list-item-url-link{padding-left:.5em}.search-results .search-results-list-item-description{display:block;margin-top:.5em;margin-bottom:0}.top-nav{display:flex;flex-direction:row;flex-wrap:wrap;position:fixed;top:0;left:0;z-index:100;width:100%;min-height:4em;padding:0}.top-nav .icon-button{height:2em;margin-top:.5em;padding-left:8px;padding-right:8px}.top-nav-divider{height:2em;margin-top:1em;margin-left:4px;margin-right:4px}.top-nav-search{height:4em;margin-left:auto;margin-right:0;padding-left:12px;padding-top:3px}.top-nav-search-button.icon-button{display:none}.top-nav-search.top-nav-search-active{flex:1;margin-left:8px}.top-nav-items{display:none;margin-top:-1em}:not(.side-menu-open) .top-nav-items-dropdown{order:100;display:block;width:100%}.top-nav-item{height:4em}.top-nav-item a{display:block;padding:0 1em}.side-menu-open .top-nav-items-menu-button,.side-menu-open .top-nav-search,.side-menu-open .top-nav-search-button{display:none!important}.side-menu-open .top-nav-divider{margin-left:auto}@media only screen and (min-width:24em){.top-nav{padding:0 8px 0 8px}.top-nav .icon-button{padding-left:12px;padding-right:12px}.top-nav-search{margin-right:4px;padding-left:16px}}@media only screen and (min-width:26em){.top-nav-search-button.icon-button{display:inline-flex}}@media only screen and (min-width:50em){.side-menu-open .top-nav-divider{margin-left:4px}.side-menu-open .top-nav-search,.side-menu-open .top-nav-search-button{display:inline-flex!important}.top-nav-items-menu-button{display:none!important}.top-nav-items,.top-nav-items-dropdown{display:inline-flex;position:relative;float:right;order:0;height:100%;width:auto;margin-top:0}.side-menu-open .top-nav-items,.side-menu-open .top-nav-items-dropdown{display:none}}@media only screen and (min-width:76.25em){.side-menu-open .top-nav-items,.side-menu-open .top-nav-items-dropdown{display:inline-flex!important}}.top-nav .download-progress{z-index:2000;position:absolute;top:0;right:0;width:100%}.bottom-nav{width:100%;min-height:5em}.side-menu-head{display:flex;padding-left:10px;padding-top:15px;padding-bottom:10px;align-items:center;justify-content:space-between}.side-menu-wrapper{width:0}.side-menu-drawer,.side-menu-open .side-menu-wrapper{width:350px}.side-menu-drawer{z-index:121}.side-menu-version-wrapper{display:flex;justify-content:space-between;height:2.5em}.side-menu-version-wrapper label{height:1.5em;margin-top:.5em;padding-left:1em;padding-right:1em}.side-menu-version-select-wrapper{flex-grow:1;height:100%;padding-right:.5em}.side-menu-version-select{height:100%;width:100%;padding-left:1em}.side-menu-filter{position:relative;margin-top:3px}.side-menu-filter-input{width:100%;height:2.5em;padding-left:1em}.side-menu-filter-clear{position:absolute;top:.4em;right:4px}.side-menu-list-item-namespace.MuiListItem-root,.side-menu-list-item.MuiListItem-root{display:flex;height:2.25em;padding:0}.side-menu-list-item a,.side-menu-list-item-namespace a{flex-grow:1;padding-top:.5em;padding-bottom:.5em}button.side-menu-list-item-namespace-icon{width:2.25em;padding:.5em}.side-menu-list-wrapper{position:relative;height:calc(100vh - 116px)}.side-menu-list{height:100%;padding-left:0}.side-menu-list-item a::after,.side-menu-list-item-namespace a::after{display:none;content:"";position:absolute;top:0;bottom:0;left:0;right:0}.side-menu-list-item a:focus:not(:active)::after,.side-menu-list-item-namespace a:focus:not(active)::after{display:block}.skip-link{position:absolute;top:-5em;left:0;right:0;z-index:10000;margin-left:auto;margin-right:auto;padding:.5em;padding-left:1em;padding-right:1em;width:intrinsic;width:-moz-max-content;width:-webkit-max-content;width:max-content}.skip-link:focus{top:0}.equation{margin-top:0;margin-bottom:1em}.embedded-iframe{width:75%;min-width:594px;max-width:1200px;min-height:calc(100vh - 52px);margin-left:12.5%;padding-top:80px;padding-bottom:100px}@media only screen and (max-width:76.25em){.embedded-iframe{width:66.66666666666%}}@media only screen and (max-width:67.5em){.embedded-iframe{width:80%;max-width:700px}}@media only screen and (max-width:53.75em){.embedded-iframe{margin-left:0;width:96%;max-width:700px}}@media only screen and (max-width:45em){.embedded-iframe{margin-left:0;width:100%;min-width:100%}}.banner .image-wrapper{margin-top:3em;margin-bottom:4.5em}.banner .image-wrapper img{display:block}body{font-size:16px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1{font-size:2.25em}h2{font-size:1.75em}h3{font-size:1.5em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.875em}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.25}strong{font-weight:600}input{font:inherit;font-size:inherit;line-height:inherit}a{color:#00f;text-decoration:none}a:active,a:hover{text-decoration:underline}::-webkit-input-placeholder{font-family:LatoLatinWebLight}:-moz-placeholder{font-family:LatoLatinWebLight}::-moz-placeholder{font-family:LatoLatinWebLight}:-ms-input-placeholder{font-family:LatoLatinWebLight}.readme{line-height:1.5;word-wrap:break-word}.readme a:not([href]){color:inherit;text-decoration:none}.readme table th{font-weight:700}.readme code,.readme kbd,.readme pre{font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace}.readme code,.readme pre{font-size:14px}.readme pre{line-height:1.45;word-wrap:normal}.readme pre code{line-height:inherit;word-wrap:normal}.readme pre>code{font-size:1em;white-space:pre;word-break:normal}.readme kbd{color:#555;font-size:11px;line-height:10px;vertical-align:middle}.readme .namespace-toc ul li .signature{font-size:.875em;text-overflow:ellipsis;white-space:nowrap}.readme .search-results-list-item-title{font-size:1.25em}.readme .search-results-list-item-package-kind{font-weight:500;color:#606060}.readme dl dt{font-size:1em;font-style:italic;font-weight:700}.readme blockquote{color:#696969}.readme input{-webkit-font-feature-settings:"liga" 0;font-feature-settings:"liga" 0}.readme .related h2{font-size:1.1em}.readme .related .package-name code{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1em}.readme .readme-breadcrumbs li{line-height:1.2em}.readme .readme-bottom-nav .pagination-link:active,.readme .readme-bottom-nav .pagination-link:hover{text-decoration:none}.readme .readme-bottom-nav .pagination-link-next{text-align:right}.readme .readme-bottom-nav .pagination-link-type{font-size:1em;color:#585858}.readme .readme-bottom-nav .pagination-link-label{font-size:1.2em;font-weight:600}.readme .readme-bottom-nav .pagination-link-label:hover{text-decoration:underline}.readme .readme-bottom-nav .pagination-link-sublabel{font-size:.8em;color:#585858}.runner-results .benchmark-block,.runner-results .test-block{color:#585858}.runner-results .benchmark-block .benchmark-description,.runner-results .test-block .test-description{text-decoration:underline;text-decoration-color:#cacaca}.runner-results .benchmark-block .benchmark-result-label,.runner-results .test-block .test-result-label{font-weight:600}.bottom-nav,.top-nav,.top-nav-search input{font-family:LatoLatinWebLight}.top-nav{line-height:4em}.bottom-nav{font-size:.85em}.bottom-nav a,.top-nav a{color:#585858}.top-nav-item a:active,.top-nav-item a:hover{text-decoration:none}@media only screen and (min-width:50em){.top-nav-item a:active,.top-nav-item a:hover{background-color:transparent;text-decoration:underline}}.side-menu-drawer{line-height:1}.side-menu-filter-clear:hover,.side-menu-filter-input:hover{color:#bfc4c9}.side-menu-list-item,.side-menu-list-item-namespace{font-family:LatoLatinWebLight,"Helvetica Neue";font-weight:200}.side-menu-list-item-namespace.MuiListItem-root a,.side-menu-list-item.MuiListItem-root a{color:#fff;text-decoration:none}.side-menu-list-item.MuiListItem-root a:hover{text-decoration:underline}.side-menu-version-wrapper label{color:#fff;line-height:1.5em}.side-menu-version-select{color:#fff}.side-menu-filter-clear,.side-menu-filter-input,button.side-menu-list-item-namespace-icon{color:#acafb3}button.side-menu-list-item-namespace-icon{font-size:1.1435em}button.side-menu-list-item-namespace-icon:hover{color:#fff}.side-menu-list-item-namespace.active-package a,.side-menu-list-item.active-package a{color:#5ca2c8}.side-menu-list-item-collapse-icon,.side-menu-list-item-expand-icon{font-size:1em!important}.side-menu-drawer .menu-close-icon{color:#c7c7c7}.side-menu-drawer .menu-close-icon:hover{color:#fff}.skip-link{text-align:center;color:#00aeef}body{overflow-x:hidden}img{background-color:#fff}.top-nav{background-color:#fff;-webkit-box-shadow:0 -5px 15px 0#ced4da;-moz-box-shadow:0 -5px 15px 0#ced4da;box-shadow:0 -5px 15px 0#ced4da}.top-nav-item a:active,.top-nav-item a:hover{background-color:#f7f7f7}.top-nav-search-active,.top-nav-search:active,.top-nav-search:focus-within,.top-nav-search:hover{background-color:#fafafa}.top-nav-divider{border-right-style:solid;border-right-color:#d3d3d3;border-right-width:1px}@media only screen and (min-width:50em){.top-nav-item a:active,.top-nav-item a:hover{background-color:transparent}}.top-nav-download-button svg{fill:#3c3c3c}.top-nav .download-progress{background-color:#00aeef}.top-nav .download-progress>*{background-color:#f0ad3e}#root{overflow-x:hidden}@media only screen and (max-width:67.5em){#root{overflow-x:scroll}}.main{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-o-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-style:preserve-3d;-webkit-transition:transform 225ms cubic-bezier(0,0,.2,1) 0s;-moz-transition:transform 225ms cubic-bezier(0,0,.2,1) 0s;-ms-transition:transform 225ms cubic-bezier(0,0,.2,1) 0s;-o-transition:transform 225ms cubic-bezier(0,0,.2,1) 0s;transition:transform 225ms cubic-bezier(0,0,.2,1) 0s}.readme h1,.readme h2{border-bottom:1px solid #eee}.readme blockquote{border-left:.25em solid #ddd}.readme hr{overflow:hidden;background:0 0;background-color:#e7e7e7;border:0;border-bottom:1px solid #eee}.readme ul{list-style-type:disc}.readme ol{list-style-type:decimal}.readme ol ol{list-style-type:lower-roman}.readme ul ul{list-style-type:square}.readme ol ol ol,.readme ol ul ol,.readme ul ol ol,.readme ul ul ol{list-style-type:lower-alpha}.readme ol ol ul,.readme ol ul ul,.readme ul ol ul,.readme ul ul ul{list-style-type:circle}.readme .namespace-toc ul{list-style-type:none}.readme .namespace-toc ul li .signature{overflow:hidden}.readme .search-results-list{list-style-type:none}.readme .search-results-list-item{border-radius:4px;border:1px solid transparent;cursor:pointer}.readme .search-results-list-item:focus,.readme .search-results-list-item:hover{border:1px solid #4078c0}.readme table{overflow:auto}.readme table td,.readme table th{border:1px solid #ddd}.readme table tr{background-color:#fff;border-top:1px solid #ccc}.readme table tr:nth-child(2n){background-color:#f8f8f8}.readme pre{overflow:auto;background-color:#f8f8f8;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.readme code{background-color:#fff;background-color:rgba(0,0,0,.04);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.readme pre code{overflow:visible;background-color:transparent;border:0}.readme pre>code{background:0 0;border:0}.readme kbd{background-color:#fcfcfc;border:solid 1px #ccc;border-bottom-color:#bbb;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 #bbb;-moz-box-shadow:inset 0 -1px 0 #bbb;box-shadow:inset 0 -1px 0 #bbb}.readme .related{overflow:auto;border-left:3px solid #007bff;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 4px 20px 0 #e2e2e2;-moz-box-shadow:0 4px 20px 0 #e2e2e2;box-shadow:0 4px 20px 0 #e2e2e2}.readme .related h2{background-color:#e4f1ff;background-color:rgba(0,123,255,.1)}.readme .related h2:before{content:url(/img/info_icon_blue_24x24.svg)}.readme .related ul{list-style-type:none}.readme .related .package-name code{background-color:#fff}.readme .readme-breadcrumbs ol{list-style-type:none}.readme .readme-bottom-nav .pagination{border-top:1px solid #e7e7e7}.readme .readme-bottom-nav .pagination-link{border-radius:4px;border:1px solid #fff}.readme .readme-bottom-nav .pagination-link:focus,.readme .readme-bottom-nav .pagination-link:hover{border:1px solid #4078c0}.runner-results .benchmark-file,.runner-results .test-file{font-size:1.1em}.runner-results.badges a{padding:3px}.side-menu-drawer{background-color:#1d1f20;background-image:-webkit-linear-gradient(145deg,#1d1f20,#404348);background-image:-moz-linear-gradient(145deg,#1d1f20,#404348);background-image:-ms-linear-gradient(145deg,#1d1f20,#404348);background-image:-o-linear-gradient(145deg,#1d1f20,#404348);background-image:linear-gradient(145deg,#1d1f20,#404348)}.side-menu-version-wrapper{background-color:#1f1f1f;border-top:2px solid #2d2d2d}.side-menu-version-wrapper label{border-right:1px solid #757575}.side-menu-filter-input,.side-menu-version-select{background-color:#1f1f1f;border:none}.side-menu-filter-clear{opacity:.75;cursor:pointer}.side-menu-list-item-namespace{background-color:#2a2d2f}.side-menu-list-item{background-color:#242627}.side-menu-list-item,.side-menu-list-item-namespace{overflow:hidden}.side-menu-list-item-namespace:hover,.side-menu-list-item.active-package,.side-menu-list-item:hover{background-color:rgba(0,0,0,.04)}button.side-menu-list-item-namespace-icon{border-radius:0}button.side-menu-list-item-namespace-icon:hover{background-color:#1f1f1f}.side-menu-list-item a::after,.side-menu-list-item-namespace a::after{background-color:rgba(255,255,255,.2);opacity:0;animation:button-press 1s}.side-menu-list-wrapper{overflow-y:hidden}.side-menu-list{overflow-y:scroll}.skip-link{background-color:#1d1f20;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;-webkit-box-shadow:0 0 3px 0 #000;-moz-box-shadow:0 0 3px 0 #000;box-shadow:0 0 3px 0 #000}.skip-link:focus{outline:0}.diffuse-shadow{-webkit-box-shadow:0 0 50px 0 #e2e2e2;-moz-box-shadow:0 0 50px 0 #e2e2e2;box-shadow:0 0 50px 0 #e2e2e2}.diffuse-shadow-dark{-webkit-box-shadow:0 0 50px 0 #636161;-moz-box-shadow:0 0 50px 0 #636161;box-shadow:0 0 50px 0 #636161}#stdlib-logo{opacity:.9}#stdlib-logo:hover{opacity:1}.stdlib-logo-icon{background-image:url(/img/logo_icon_16x16.svg);background-repeat:no-repeat}@keyframes button-press{from{opacity:1}to{opacity:0}} \ No newline at end of file +a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,hgroup,html,i,iframe,img,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font:inherit;vertical-align:baseline}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:'';content:none}table{border-collapse:collapse;border-spacing:0}/*! normalize.css v5.0.0 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}a:active,a:hover{outline-width:0}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{border:1px solid silver;margin:0 2px;padding:.35em .625em .75em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}.hljs-comment,.hljs-quote{color:#727272}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#aa5d00}.hljs-built_in,.hljs-builtin-name,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#de0801}.hljs-attribute{color:#aa5d00}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#008500}.hljs-section,.hljs-title{color:#2574a9}.hljs-keyword,.hljs-selector-tag{color:#a101f1}.hljs{display:block;overflow-x:auto;background:#fff;color:#24292f;padding:.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}@media screen and (-ms-high-contrast:active){.hljs-addition,.hljs-attribute,.hljs-built_in,.hljs-bullet,.hljs-comment,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-quote,.hljs-string,.hljs-symbol,.hljs-type{color:highlight}.hljs-keyword,.hljs-selector-tag{font-weight:700}}@font-face{font-family:LatoLatinWebLight;src:url(/css/common/fonts/lato/latin/LatoLatin-Light.eot);src:url(/css/common/fonts/lato/latin/LatoLatin-Light.eot?#iefix) format('embedded-opentype'),url(/css/common/fonts/lato/latin/LatoLatin-Light.woff2) format('woff2'),url(/css/common/fonts/lato/latin/LatoLatin-Light.woff) format('woff'),url(/css/common/fonts/lato/latin/LatoLatin-Light.ttf) format('truetype');font-style:normal;font-weight:400;text-rendering:optimizeLegibility;font-display:swap}@font-face{font-family:LatoLatinWebLight;src:url(/css/common/fonts/lato/latin/LatoLatin-LightItalic.eot);src:url(/css/common/fonts/lato/latin/LatoLatin-LightItalic.eot?#iefix) format('embedded-opentype'),url(/css/common/fonts/lato/latin/LatoLatin-LightItalic.woff2) format('woff2'),url(/css/common/fonts/lato/latin/LatoLatin-LightItalic.woff) format('woff'),url(/css/common/fonts/lato/latin/LatoLatin-LightItalic.ttf) format('truetype');font-style:italic;font-weight:400;text-rendering:optimizeLegibility;font-display:swap}html{box-sizing:border-box}body,html{min-height:100vh}body{margin:0}*,:after,:before{box-sizing:inherit}input{margin:0}img{box-sizing:content-box;max-width:100%}h1,h2,h3,h4,h5,h6{margin-top:1.5em;margin-bottom:1em}h1,h2{padding-bottom:.3em}.group:after,.group:before{content:"";display:table}.group:after{clear:both}.group{zoom:1}.center{text-align:center;margin-left:auto;margin-right:auto}.right{text-align:right;margin-left:auto;margin-right:0}.invisible{visibility:hidden}#root{position:relative;width:100%}.main{position:relative;width:100%;min-height:100vh;margin-bottom:7em;padding-top:120px;-webkit-transform:translateX(0);-moz-transform:translateX(0);-ms-transform:translateX(0);-o-transform:translateX(0);transform:translateX(0);-webkit-transform:translateZ(0) translateX(0);-moz-transform:translateZ(0) translateX(0);-ms-transform:translateZ(0) translateX(0);-o-transform:translateZ(0) translateX(0);transform:translateZ(0) translateX(0);-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0);scroll-margin:100px 0 0 0}.main.translate-right{-webkit-transform:translateX(300px);-moz-transform:translateX(300px);-ms-transform:translateX(300px);-o-transform:translateX(300px);transform:translateX(300px);-webkit-transform:translateZ(0) translateX(300px);-moz-transform:translateZ(0) translateX(300px);-ms-transform:translateZ(0) translateX(300px);-o-transform:translateZ(0) translateX(300px);transform:translateZ(0) translateX(300px);-webkit-transform:translate3d(300px,0,0);-moz-transform:translate3d(300px,0,0);-ms-transform:translate3d(300px,0,0);-o-transform:translate3d(300px,0,0);transform:translate3d(300px,0,0);scroll-margin:100px 0 0 300px}@media only screen and (max-width:53.75em){.main{width:86%;margin-left:7%}.main.translate-right{-webkit-transform:translateX(350px);-moz-transform:translateX(350px);-ms-transform:translateX(350px);-o-transform:translateX(350px);transform:translateX(350px);-webkit-transform:translateZ(0) translateX(350px);-moz-transform:translateZ(0) translateX(350px);-ms-transform:translateZ(0) translateX(350px);-o-transform:translateZ(0) translateX(350px);transform:translateZ(0) translateX(350px);-webkit-transform:translate3d(350px,0,0);-moz-transform:translate3d(350px,0,0);-ms-transform:translate3d(350px,0,0);-o-transform:translate3d(350px,0,0);transform:translate3d(350px,0,0);scroll-margin:100px 0 0 300px}}@media only screen and (max-width:45em){.main{width:94%;margin-left:3%}}.readme{min-height:100%;margin-left:12.5%;margin-bottom:12px}.readme-content{scroll-padding:200px 0 0 0}.readme h1{margin-top:.5em;margin-bottom:.5em}.readme>blockquote,.readme>code,.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>hr,.readme>nav,.readme>p,.readme>pre,.readme>section,.readme>section>blockquote,.readme>section>code,.readme>section>h1,.readme>section>h2,.readme>section>h3,.readme>section>h4,.readme>section>h5,.readme>section>h6,.readme>section>hr,.readme>section>nav,.readme>section>p,.readme>section>pre,.readme>section>section,.readme>section>ul,.readme>ul{min-width:594px;max-width:720px}.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>section h1,.readme>section h2,.readme>section h3,.readme>section h4,.readme>section h5,.readme>section h6{scroll-margin:100px 0 0 0}.readme blockquote,.readme dl,.readme p,.readme pre,.readme table{margin-top:0;margin-bottom:1em}@media only screen and (max-width:76.25em){.readme>blockquote,.readme>code,.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>hr,.readme>nav,.readme>p,.readme>pre,.readme>section,.readme>section>blockquote,.readme>section>code,.readme>section>h1,.readme>section>h2,.readme>section>h3,.readme>section>h4,.readme>section>h5,.readme>section>h6,.readme>section>hr,.readme>section>nav,.readme>section>p,.readme>section>pre,.readme>section>section,.readme>section>ul,.readme>ul{width:66.66666666666%}}@media only screen and (max-width:67.5em){.readme>blockquote,.readme>code,.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>hr,.readme>nav,.readme>p,.readme>pre,.readme>section,.readme>section>blockquote,.readme>section>code,.readme>section>h1,.readme>section>h2,.readme>section>h3,.readme>section>h4,.readme>section>h5,.readme>section>h6,.readme>section>hr,.readme>section>nav,.readme>section>p,.readme>section>pre,.readme>section>section,.readme>section>ul,.readme>ul{width:80%;max-width:700px}}@media only screen and (max-width:53.75em){.readme{margin-left:0}.readme>blockquote,.readme>code,.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>hr,.readme>nav,.readme>p,.readme>pre,.readme>section,.readme>section>blockquote,.readme>section>code,.readme>section>h1,.readme>section>h2,.readme>section>h3,.readme>section>h4,.readme>section>h5,.readme>section>h6,.readme>section>hr,.readme>section>nav,.readme>section>p,.readme>section>pre,.readme>section>section,.readme>section>ul,.readme>ul{width:96%;max-width:700px}}@media only screen and (max-width:45em){.readme{margin-left:0}.readme>blockquote,.readme>code,.readme>h1,.readme>h2,.readme>h3,.readme>h4,.readme>h5,.readme>h6,.readme>hr,.readme>nav,.readme>p,.readme>pre,.readme>section,.readme>section>blockquote,.readme>section>code,.readme>section>h1,.readme>section>h2,.readme>section>h3,.readme>section>h4,.readme>section>h5,.readme>section>h6,.readme>section>hr,.readme>section>nav,.readme>section>p,.readme>section>pre,.readme>section>section,.readme>section>ul,.readme>ul{width:100%;min-width:100%}}.readme ol,.readme ul{margin-top:0;margin-bottom:1em;padding-left:2em}.readme ol ol,.readme ol ul,.readme ul ol,.readme ul ul{margin-top:0;margin-bottom:0}.readme li>p{margin-top:1em}.readme li+li{margin-top:.25em}.readme .namespace-toc ul{padding-left:.5em}.readme .namespace-toc ul li{display:flex;flex-shrink:1}.readme .namespace-toc ul li .signature{width:50%;min-width:50%}.readme .namespace-toc ul li .delimiter{display:none}.readme dl{padding:0}.readme dl dt{margin-top:1em;padding:0}.readme dl dd{margin-bottom:1em;padding:0 1em}.readme dd{margin-left:0}.readme h1+blockquote{margin-bottom:2em}.readme blockquote{padding:0 1em}.readme blockquote>:first-child{margin-top:0}.readme blockquote>:last-child{margin-bottom:0}.readme hr{height:.25em;margin:1.5em 0;padding:0}.readme hr::before{display:table;content:""}.readme table{display:block;width:100%}.readme table td,.readme table th{padding:6px 13px}.readme td,.readme th{padding:0}.readme pre{padding:1em}.readme pre code{display:inline;max-width:inherit;padding:0}.readme code{margin:0;padding:0;padding-top:.2em;padding-bottom:.2em}.readme code::after,.readme code::before{letter-spacing:-.2em;content:"\00a0"}.readme pre code::after,.readme pre code::before{content:normal}.readme kbd{display:inline-block;padding:3px 5px}.readme .related{margin-top:3em}.readme .related hr{display:none}.readme .related h2{margin-top:0;padding-top:.7em;padding-bottom:.4em;padding-left:.5em}.readme .related h2:before{display:inline-block;padding-right:.3em;vertical-align:middle}.readme .related ul{padding-left:1em;margin-bottom:1.5em}.readme .related .delimiter{display:none}.readme .related .package-name{display:block;margin-top:.75em;margin-bottom:.2em}.readme .related .description{display:block;margin-bottom:.5em;padding-left:2em}.readme .readme-breadcrumbs .logo-icon{display:inline-block;height:1em;width:1em;margin-right:.5em;vertical-align:text-top}.readme .readme-breadcrumbs ol{margin-bottom:0;padding-left:0}.readme .readme-breadcrumbs li{height:1.2em;margin-top:0}.readme .readme-addendum{margin-top:3em}.readme .readme-bottom-nav .edit-link-wrapper{display:flex;justify-content:flex-end}.readme .readme-bottom-nav .pagination{display:flex;justify-content:space-between;margin-top:2.5em;padding-top:3em}.readme .readme-bottom-nav .pagination-link,.readme .readme-bottom-nav .pagination-link-placeholder{width:50%;padding:1em}.readme .readme-bottom-nav .pagination-link-prev{padding-left:.5em}.readme .readme-bottom-nav .pagination-link-next{padding-right:.5em}.readme .readme-bottom-nav .pagination-link-label{margin-top:.2em}.runner-results p{margin-bottom:0}.runner-results .logo-icon{display:inline-block;height:1em;width:1em;margin-right:.5em;vertical-align:text-bottom}.runner-results .benchmark-block,.runner-results .test-block{margin-bottom:1em;padding-left:1em}.runner-results .benchmark-block .benchmark-description,.runner-results .test-block .test-description{margin-bottom:.5em}.runner-results .benchmark-block .benchmark-elapsed,.runner-results .benchmark-block .benchmark-iterations,.runner-results .benchmark-block .benchmark-rate,.runner-results .test-block .test-fail,.runner-results .test-block .test-pass{margin-left:1em}.runner-results .benchmark-block .benchmark-result-icon,.runner-results .test-block .test-result-icon{margin-right:.5em}.search-results h1{display:flex}.search-results h1 span{flex-grow:1}.search-results .search-results-list{padding-left:0}.search-results .search-results-list-item{display:block;margin-top:0;padding-top:.5em;padding-bottom:.5em;padding-left:10px;padding-right:10px}.search-results .search-results-list-item-title{margin-top:.5em;margin-bottom:.5em}.search-results .search-results-list-item-url{margin-top:0;margin-bottom:0}.search-results .search-results-list-item-url .logo-icon{display:inline-block;height:1em;width:1em;vertical-align:text-bottom}.search-results .search-results-list-item-url-link{padding-left:.5em}.search-results .search-results-list-item-description{display:block;margin-top:.5em;margin-bottom:0}.top-nav{display:flex;flex-direction:row;flex-wrap:wrap;position:fixed;top:0;left:0;z-index:100;width:100%;min-height:4em;padding:0}.top-nav .icon-button{height:2em;margin-top:.5em;padding-left:8px;padding-right:8px}.top-nav-divider{height:2em;margin-top:1em;margin-left:4px;margin-right:4px}.top-nav-search{height:4em;margin-left:auto;margin-right:0;padding-left:12px;padding-top:3px}.top-nav-search-button.icon-button{display:none}.top-nav-search.top-nav-search-active{flex:1;margin-left:8px}.top-nav-items{display:none;margin-top:-1em}:not(.side-menu-open) .top-nav-items-dropdown{order:100;display:block;width:100%}.top-nav-item{height:4em}.top-nav-item a{display:block;padding:0 1em}.side-menu-open .top-nav-items-menu-button,.side-menu-open .top-nav-search,.side-menu-open .top-nav-search-button{display:none!important}.side-menu-open .top-nav-divider{margin-left:auto}@media only screen and (min-width:24em){.top-nav{padding:0 8px 0 8px}.top-nav .icon-button{padding-left:12px;padding-right:12px}.top-nav-search{margin-right:4px;padding-left:16px}}@media only screen and (min-width:26em){.top-nav-search-button.icon-button{display:inline-flex}}@media only screen and (min-width:50em){.side-menu-open .top-nav-divider{margin-left:4px}.side-menu-open .top-nav-search,.side-menu-open .top-nav-search-button{display:inline-flex!important}.top-nav-items-menu-button{display:none!important}.top-nav-items,.top-nav-items-dropdown{display:inline-flex;position:relative;float:right;order:0;height:100%;width:auto;margin-top:0}.side-menu-open .top-nav-items,.side-menu-open .top-nav-items-dropdown{display:none}}@media only screen and (min-width:76.25em){.side-menu-open .top-nav-items,.side-menu-open .top-nav-items-dropdown{display:inline-flex!important}}.top-nav .download-progress{z-index:2000;position:absolute;top:0;right:0;width:100%}.bottom-nav{width:100%;min-height:5em}.side-menu-head{display:flex;padding-left:10px;padding-top:15px;padding-bottom:10px;align-items:center;justify-content:space-between}.side-menu-wrapper{width:0}.side-menu-drawer,.side-menu-open .side-menu-wrapper{width:350px}.side-menu-drawer{z-index:121}.side-menu-version-wrapper{display:flex;justify-content:space-between;height:2.5em}.side-menu-version-wrapper label{height:1.5em;margin-top:.5em;padding-left:1em;padding-right:1em}.side-menu-version-select-wrapper{flex-grow:1;height:100%;padding-right:.5em}.side-menu-version-select{height:100%;width:100%;padding-left:1em}.side-menu-filter{position:relative;margin-top:3px}.side-menu-filter-input{width:100%;height:2.5em;padding-left:1em}.side-menu-filter-clear{position:absolute;top:.4em;right:4px}.side-menu-list-item-namespace.MuiListItem-root,.side-menu-list-item.MuiListItem-root{display:flex;height:2.25em;padding:0}.side-menu-list-item a,.side-menu-list-item-namespace a{flex-grow:1;padding-top:.5em;padding-bottom:.5em}button.side-menu-list-item-namespace-icon{width:2.25em;padding:.5em}.side-menu-list-wrapper{position:relative;height:calc(100vh - 116px)}.side-menu-list{height:100%;padding-left:0}.side-menu-list-item a::after,.side-menu-list-item-namespace a::after{display:none;content:"";position:absolute;top:0;bottom:0;left:0;right:0}.side-menu-list-item a:focus:not(:active)::after,.side-menu-list-item-namespace a:focus:not(active)::after{display:block}.skip-link{position:absolute;top:-5em;left:0;right:0;z-index:10000;margin-left:auto;margin-right:auto;padding:.5em;padding-left:1em;padding-right:1em;width:intrinsic;width:-moz-max-content;width:-webkit-max-content;width:max-content}.skip-link:focus{top:0}.equation{margin-top:0;margin-bottom:1em}.embedded-iframe{width:75%;min-width:594px;max-width:1200px;min-height:calc(100vh - 52px);margin-left:12.5%;padding-top:80px;padding-bottom:100px}@media only screen and (max-width:76.25em){.embedded-iframe{width:66.66666666666%}}@media only screen and (max-width:67.5em){.embedded-iframe{width:80%;max-width:700px}}@media only screen and (max-width:53.75em){.embedded-iframe{margin-left:0;width:96%;max-width:700px}}@media only screen and (max-width:45em){.embedded-iframe{margin-left:0;width:100%;min-width:100%}}.banner .image-wrapper{margin-top:3em;margin-bottom:4.5em}.banner .image-wrapper img{display:block}body{font-size:16px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1{font-size:2.25em}h2{font-size:1.75em}h3{font-size:1.5em}h4{font-size:1.25em}h5{font-size:1em}h6{font-size:.875em}h1,h2,h3,h4,h5,h6{font-weight:600;line-height:1.25}strong{font-weight:600}input{font:inherit;font-size:inherit;line-height:inherit}a{color:#00f;text-decoration:none}a:active,a:hover{text-decoration:underline}::-webkit-input-placeholder{font-family:LatoLatinWebLight}:-moz-placeholder{font-family:LatoLatinWebLight}::-moz-placeholder{font-family:LatoLatinWebLight}:-ms-input-placeholder{font-family:LatoLatinWebLight}.readme{line-height:1.5;word-wrap:break-word}.readme a:not([href]){color:inherit;text-decoration:none}.readme table th{font-weight:700}.readme code,.readme kbd,.readme pre{font-family:Consolas,"Liberation Mono",Menlo,Courier,monospace}.readme code,.readme pre{font-size:14px}.readme pre{line-height:1.45;word-wrap:normal}.readme pre code{line-height:inherit;word-wrap:normal}.readme pre>code{font-size:1em;white-space:pre;word-break:normal}.readme kbd{color:#555;font-size:11px;line-height:10px;vertical-align:middle}.readme .namespace-toc ul li .signature{font-size:.875em;text-overflow:ellipsis;white-space:nowrap}.readme .search-results-list-item-title{font-size:1.25em}.readme .search-results-list-item-package-kind{font-weight:500;color:#606060}.readme dl dt{font-size:1em;font-style:italic;font-weight:700}.readme blockquote{color:#696969}.readme input{-webkit-font-feature-settings:"liga" 0;font-feature-settings:"liga" 0}.readme .related h2{font-size:1.1em}.readme .related .package-name code{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:1em}.readme .readme-breadcrumbs li{line-height:1.2em}.readme .readme-bottom-nav .pagination-link:active,.readme .readme-bottom-nav .pagination-link:hover{text-decoration:none}.readme .readme-bottom-nav .pagination-link-next{text-align:right}.readme .readme-bottom-nav .pagination-link-type{font-size:1em;color:#585858}.readme .readme-bottom-nav .pagination-link-label{font-size:1.2em;font-weight:600}.readme .readme-bottom-nav .pagination-link-label:hover{text-decoration:underline}.readme .readme-bottom-nav .pagination-link-sublabel{font-size:.8em;color:#585858}.runner-results .benchmark-block,.runner-results .test-block{color:#585858}.runner-results .benchmark-block .benchmark-description,.runner-results .test-block .test-description{text-decoration:underline;text-decoration-color:#cacaca}.runner-results .benchmark-block .benchmark-result-label,.runner-results .test-block .test-result-label{font-weight:600}.bottom-nav,.top-nav,.top-nav-search input{font-family:LatoLatinWebLight}.top-nav{line-height:4em}.bottom-nav{font-size:.85em}.bottom-nav a,.top-nav a{color:#585858}.top-nav-item a:active,.top-nav-item a:hover{text-decoration:none}@media only screen and (min-width:50em){.top-nav-item a:active,.top-nav-item a:hover{background-color:transparent;text-decoration:underline}}.side-menu-drawer{line-height:1}.side-menu-filter-clear:hover,.side-menu-filter-input:hover{color:#bfc4c9}.side-menu-list-item,.side-menu-list-item-namespace{font-family:LatoLatinWebLight,"Helvetica Neue";font-weight:200}.side-menu-list-item-namespace.MuiListItem-root a,.side-menu-list-item.MuiListItem-root a{color:#fff;text-decoration:none}.side-menu-list-item.MuiListItem-root a:hover{text-decoration:underline}.side-menu-version-wrapper label{color:#fff;line-height:1.5em}.side-menu-version-select{color:#fff}.side-menu-filter-clear,.side-menu-filter-input,button.side-menu-list-item-namespace-icon{color:#acafb3}button.side-menu-list-item-namespace-icon{font-size:1.1435em}button.side-menu-list-item-namespace-icon:hover{color:#fff}.side-menu-list-item-namespace.active-package a,.side-menu-list-item.active-package a{color:#5ca2c8}.side-menu-list-item-collapse-icon,.side-menu-list-item-expand-icon{font-size:1em!important}.side-menu-drawer .menu-close-icon{color:#c7c7c7}.side-menu-drawer .menu-close-icon:hover{color:#fff}.skip-link{text-align:center;color:#00aeef}body{overflow-x:hidden}img{background-color:#fff}.top-nav{background-color:#fff;-webkit-box-shadow:0 -5px 15px 0#ced4da;-moz-box-shadow:0 -5px 15px 0#ced4da;box-shadow:0 -5px 15px 0#ced4da}.top-nav-item a:active,.top-nav-item a:hover{background-color:#f7f7f7}.top-nav-search-active,.top-nav-search:active,.top-nav-search:focus-within,.top-nav-search:hover{background-color:#fafafa}.top-nav-divider{border-right-style:solid;border-right-color:#d3d3d3;border-right-width:1px}@media only screen and (min-width:50em){.top-nav-item a:active,.top-nav-item a:hover{background-color:transparent}}.top-nav-download-button svg{fill:#3c3c3c}.top-nav .download-progress{background-color:#00aeef}.top-nav .download-progress>*{background-color:#f0ad3e}#root{overflow-x:hidden}@media only screen and (max-width:67.5em){#root{overflow-x:scroll}}.main{-webkit-backface-visibility:hidden;-moz-backface-visibility:hidden;-ms-backface-visibility:hidden;-o-backface-visibility:hidden;backface-visibility:hidden;-webkit-transform-style:preserve-3d;-webkit-transition:transform 225ms cubic-bezier(0,0,.2,1) 0s;-moz-transition:transform 225ms cubic-bezier(0,0,.2,1) 0s;-ms-transition:transform 225ms cubic-bezier(0,0,.2,1) 0s;-o-transition:transform 225ms cubic-bezier(0,0,.2,1) 0s;transition:transform 225ms cubic-bezier(0,0,.2,1) 0s}.readme h1,.readme h2{border-bottom:1px solid #eee}.readme blockquote{border-left:.25em solid #ddd}.readme hr{overflow:hidden;background:0 0;background-color:#e7e7e7;border:0;border-bottom:1px solid #eee}.readme ul{list-style-type:disc}.readme ol{list-style-type:decimal}.readme ol ol{list-style-type:lower-roman}.readme ul ul{list-style-type:square}.readme ol ol ol,.readme ol ul ol,.readme ul ol ol,.readme ul ul ol{list-style-type:lower-alpha}.readme ol ol ul,.readme ol ul ul,.readme ul ol ul,.readme ul ul ul{list-style-type:circle}.readme .namespace-toc ul{list-style-type:none}.readme .namespace-toc ul li .signature{overflow:hidden}.readme .search-results-list{list-style-type:none}.readme .search-results-list-item{border-radius:4px;border:1px solid transparent;cursor:pointer}.readme .search-results-list-item:focus,.readme .search-results-list-item:hover{border:1px solid #4078c0}.readme table{overflow:auto}.readme table td,.readme table th{border:1px solid #ddd}.readme table tr{background-color:#fff;border-top:1px solid #ccc}.readme table tr:nth-child(2n){background-color:#f8f8f8}.readme pre{overflow:auto;background-color:#f8f8f8;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.readme code{background-color:#fff;background-color:rgba(0,0,0,.04);-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px}.readme pre code{overflow:visible;background-color:transparent;border:0}.readme pre>code{background:0 0;border:0}.readme kbd{background-color:#fcfcfc;border:solid 1px #ccc;border-bottom-color:#bbb;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 #bbb;-moz-box-shadow:inset 0 -1px 0 #bbb;box-shadow:inset 0 -1px 0 #bbb}.readme .related{overflow:auto;border-left:3px solid #007bff;-webkit-border-radius:2px;-moz-border-radius:2px;border-radius:2px;-webkit-box-shadow:0 4px 20px 0 #e2e2e2;-moz-box-shadow:0 4px 20px 0 #e2e2e2;box-shadow:0 4px 20px 0 #e2e2e2}.readme .related h2{background-color:#e4f1ff;background-color:rgba(0,123,255,.1)}.readme .related h2:before{content:url(/img/info_icon_blue_24x24.svg)}.readme .related ul{list-style-type:none}.readme .related .package-name code{background-color:#fff}.readme .readme-breadcrumbs ol{list-style-type:none}.readme .readme-bottom-nav .pagination{border-top:1px solid #e7e7e7}.readme .readme-bottom-nav .pagination-link{border-radius:4px;border:1px solid #fff}.readme .readme-bottom-nav .pagination-link:focus,.readme .readme-bottom-nav .pagination-link:hover{border:1px solid #4078c0}.runner-results .benchmark-file,.runner-results .test-file{font-size:1.1em}.runner-results.badges a{padding:3px}.side-menu-drawer{background-color:#1d1f20;background-image:-webkit-linear-gradient(145deg,#1d1f20,#404348);background-image:-moz-linear-gradient(145deg,#1d1f20,#404348);background-image:-ms-linear-gradient(145deg,#1d1f20,#404348);background-image:-o-linear-gradient(145deg,#1d1f20,#404348);background-image:linear-gradient(145deg,#1d1f20,#404348)}.side-menu-version-wrapper{background-color:#1f1f1f;border-top:2px solid #2d2d2d}.side-menu-version-wrapper label{border-right:1px solid #757575}.side-menu-filter-input,.side-menu-version-select{background-color:#1f1f1f;border:none}.side-menu-filter-clear{opacity:.75;cursor:pointer}.side-menu-list-item-namespace{background-color:#2a2d2f}.side-menu-list-item{background-color:#242627}.side-menu-list-item,.side-menu-list-item-namespace{overflow:hidden}.side-menu-list-item-namespace:hover,.side-menu-list-item.active-package,.side-menu-list-item:hover{background-color:rgba(0,0,0,.04)}button.side-menu-list-item-namespace-icon{border-radius:0}button.side-menu-list-item-namespace-icon:hover{background-color:#1f1f1f}.side-menu-list-item a::after,.side-menu-list-item-namespace a::after{background-color:rgba(255,255,255,.2);opacity:0;animation:button-press 1s}.side-menu-list-wrapper{overflow-y:hidden}.side-menu-list{overflow-y:scroll}.skip-link{background-color:#1d1f20;-webkit-border-radius:0 0 4px 4px;-moz-border-radius:0 0 4px 4px;border-radius:0 0 4px 4px;-webkit-box-shadow:0 0 3px 0 #000;-moz-box-shadow:0 0 3px 0 #000;box-shadow:0 0 3px 0 #000}.skip-link:focus{outline:0}.diffuse-shadow{-webkit-box-shadow:0 0 50px 0 #e2e2e2;-moz-box-shadow:0 0 50px 0 #e2e2e2;box-shadow:0 0 50px 0 #e2e2e2}.diffuse-shadow-dark{-webkit-box-shadow:0 0 50px 0 #636161;-moz-box-shadow:0 0 50px 0 #636161;box-shadow:0 0 50px 0 #636161}#stdlib-logo{opacity:.9}#stdlib-logo:hover{opacity:1}.stdlib-logo-icon{background-image:url(/img/logo_icon_16x16.svg);background-repeat:no-repeat}@keyframes button-press{from{opacity:1}to{opacity:0}} diff --git a/public/css/docs/layout.css b/public/css/docs/layout.css index e6c79d6976..383b380427 100644 --- a/public/css/docs/layout.css +++ b/public/css/docs/layout.css @@ -898,7 +898,7 @@ h2 { .top-nav .icon-button { height: 2em; - margin-top: 0.5em; + margin-top: 0.2em; padding-left: 8px; padding-right: 8px; diff --git a/src/app.jsx b/src/app.jsx index 2f03db0e1c..97987d32a6 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -20,8 +20,11 @@ import React, { Fragment } from 'react'; import { Route, Redirect, Switch, matchPath, withRouter } from 'react-router-dom'; +import { ThemeProvider } from '@mui/styles'; +import { createTheme } from '@mui/material/styles'; import qs from 'qs'; import startsWith from '@stdlib/string/starts-with'; +import replace from '@stdlib/string/replace'; import Welcome from './components/welcome/index.jsx'; import Footer from './components/footer/index.jsx'; import Readme from './components/readme/index.jsx'; @@ -53,6 +56,7 @@ var RENDER_METHOD_NAMES = { 'test': '_renderTest' }; var SIDE_MENU_TIMEOUT = 1000; // milliseconds +var theme = createTheme(); // FUNCTIONS // @@ -587,6 +591,7 @@ class App extends React.Component { url={ match.url.replace( /tests$/, 'test_bundle.js' ) } pkg={ match.params.pkg } version={ version } + standalone={ replace( match.params.pkg, '/', '-' ) } /> ); } @@ -757,48 +762,50 @@ class App extends React.Component { */ render() { return ( - - { this._renderTopNav() } - - - - - - - - - - -