| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370 |
- @font-face {
- font-family: 'Roboto Mono';
- src: local('Roboto Mono'), local('RobotoMono-Regular'), url('/files/RobotoMono-Regular.woff2') format('woff2');
- font-style: normal;
- font-weight: 400;
- }
- @font-face {
- font-family: 'Inter';
- font-style: normal;
- font-weight: 400;
- src: local('Inter-Regular'), url("/files/Inter-Regular.woff2?v=3.6") format("woff2");
- }
- @font-face {
- font-family: 'Inter';
- font-style: normal;
- font-weight: 600;
- src: local('Inter-SemiBold'), url("/files/Inter-SemiBold.woff2?v=3.6") format("woff2");
- }
- /* Below CSS should only affect the page section */
- #page {
- --font-size: 16px;
- --line-height: 26px;
- --panel-width: 300px;
- --page-padding: 24px;
- --max-width: 960px;
- --icon-size: 20px;
- --border-style: 1px solid #E8E8E8;
- --text-color: #444;
- font-family: 'Inter', sans-serif;
- color: var(--text-color);
- tab-size: 4;
- overflow: auto;
- max-width: 760px;
- margin: 0 auto;
- padding-top: var(--page-padding);
- padding-bottom: var(--page-padding);
- padding-right: var(--page-padding);
- padding-left: var(--page-padding);
- word-break: break-word;
- a {
- color: var(--color-blue);
- cursor: pointer;
- text-decoration: none;
- }
-
- h1 {
- font-size: 40px;
- line-height: 48px;
- font-weight: normal;
- margin-left: -2px;
- margin-top: 16px;
- margin-bottom: -8px;
- }
- h2 {
- font-size: 28px;
- line-height: 36px;
- font-weight: normal;
- margin-left: -1px;
- margin-top: 28px;
- margin-bottom: -8px;
- color: #000;
- }
- h3 {
- font-size: 20px;
- line-height: 28px;
- font-weight: normal;
- margin-top: 24px;
- margin-bottom: -8px;
- }
- p,
- div,
- table,
- ol,
- ul {
- margin-top: 16px;
- margin-bottom: 16px;
- }
-
- p {
- padding-right: 16px;
- }
-
- ul, ol {
- box-sizing: border-box;
- padding-left: 24px;
- }
- ul li,
- ol li {
- padding-left: 4px;
- margin-bottom: 4px;
- }
-
- li ul,
- li ol {
- margin-top: 4px;
- }
- table {
- width: calc(100% - 40px);
- border-collapse: collapse;
- margin-left: 20px;
- margin-right: 20px;
- }
-
- .desc {
- padding-left: 0px;
- }
-
- table th,
- table td {
- text-align: left;
- vertical-align: top;
- padding: 8px 6px;
- }
- table td.name,
- table th.name {
- white-space: nowrap;
- width: 150px;
- }
-
- table th {
- text-decoration: none;
- }
- table th:first-child,
- table td:first-child {
- padding-left: 0;
- }
- table p {
- margin: 0;
- }
-
- strong {
- font-weight: 600;
- }
-
- a.permalink {
- float: right;
- margin-left: 5px;
- display: none;
- }
-
- a.param,
- span.param {
- color: #999;
- }
-
- a.param:hover {
- color: var(--text-color);
- }
- .inheritance {
- color: #999;
- margin-bottom: 0;
- }
- .method,
- .member {
- margin-bottom: 32px;
- }
- ol.linenums {
- padding-left: 64px;
- }
- ol.linenums .selected {
- background-color: #ddd;
- }
- code {
- display: inline-block;
- vertical-align: middle;
- border-radius: 4px;
- padding: 0px 5px;
- background-color: #F5F5F5;
- }
- pre {
- overflow: auto;
- white-space: pre-wrap;
- font-size: calc(var(--font-size) - 1px);
- line-height: calc(var(--line-height) - 1px);
- position: relative;
- }
- pre code {
- background-color: inherit;
- padding: calc(var(--page-padding) - 6px) var(--page-padding);
- }
- pre.linenums code {
- padding: 0px 5px;
- }
- h3.name {
- color: #000;
- }
- h3.name a {
- color: var(--color-blue);
- text-decoration: none;
- }
- h3.name .signature {
- color: #000;
- font-weight: normal;
- }
- h3.name .type-signature {
- color: #999;
- font-weight: normal;
- }
- h3.name .type-signature a {
- color: #999;
- }
- h3.name .param-type {
- color: #999;
- }
- h3.name .param-type a {
- color: #999;
- }
- .search-result-item {
- border-bottom: var(--border-style);
- display: block;
- padding: 16px 0;
- }
- .search-result-item-description {
- color: var(--text-color);
- }
- h2.subsection-title + p {
- margin-top: 24px;
- }
- .copy-btn {
- cursor: pointer;
- position: absolute;
- top: 16px;
- right: 16px;
- width: 24px;
- height: 24px;
- background-color: transparent;
- background-image: url('/files/ic_copy_grey_24dp.svg');
- background-size: contain;
- background-position: center;
- background-repeat: no-repeat;
- opacity: 0.9;
- border: none;
- }
-
- .copy-btn:hover {
- opacity: 1;
- }
-
- .copy-btn.copied {
- pointer-events: none;
- opacity: 1;
- background-image: url('/files/ic_tick_green_24dp.svg');
- }
- }
- @media (prefers-color-scheme: dark) {
- #page {
- --text-color: #bbb;
- --border-style: 1px solid #444;
- h2 {
- color: var(--text-color);
- }
- h3.name {
- color: var(--text-color);
- }
- h3.name .signature {
- color: var(--text-color);
- }
- .link-anchor {
- color: #555;
- }
- ol.linenums .selected {
- background-color: #444;
- }
- code {
- background-color: #444;
- }
- }
- }
- @media all and ( min-width: 1700px ) {
- #page {
- --panel-width: 360px;
- --font-size: 18px;
- --line-height: 28px;
- --page-padding: 28px;
- --icon-size: 24px;
- max-width: 880px;
- h1 {
- font-size: 42px;
- line-height: 50px;
- }
- h2 {
- font-size: 32px;
- line-height: 40px;
- }
- h3 {
- font-size: 24px;
- line-height: 32px;
- }
- }
- }
- /* mobile */
- @media all and ( max-width: 640px ) {
- #page {
- --page-padding: 16px;
- --icon-size: 24px;
- padding: var(--page-padding);
- h1 {
- font-size: 28px;
- line-height: 36px;
- padding-right: 20px;
- margin-top: 0;
- }
- h2 {
- font-size: 24px;
- line-height: 32px;
- margin-top: 24px;
- }
- h3 {
- font-size: 20px;
- line-height: 28px;
- }
- }
- }
|