X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;ds=sidebyside;f=docs%2Fassets%2Fstyle.css;h=778b94927919c65ae63c5d245a010b9f1796dc8d;hb=HEAD;hp=258146fc05fb2055d13ad482c238b99f82097c1f;hpb=323daa7f98fd16385379e4b6e8def0a9a3f140c8;p=poolifier.git
diff --git a/docs/assets/style.css b/docs/assets/style.css
index 258146fc..9d619a64 100644
--- a/docs/assets/style.css
+++ b/docs/assets/style.css
@@ -10,7 +10,9 @@
--light-color-text: #222;
--light-color-text-aside: #6e6e6e;
--light-color-link: #1f70c2;
+ --light-color-focus-outline: #3584e4;
+ --light-color-ts-keyword: #056bd6;
--light-color-ts-project: #b111c9;
--light-color-ts-module: var(--light-color-ts-project);
--light-color-ts-namespace: var(--light-color-ts-project);
@@ -28,12 +30,13 @@
--light-color-ts-constructor-signature: var(--light-color-ts-constructor);
--light-color-ts-parameter: var(--light-color-ts-variable);
/* type literal not included as links will never be generated to it */
- --light-color-ts-type-parameter: var(--light-color-ts-type-alias);
+ --light-color-ts-type-parameter: #a55c0e;
--light-color-ts-accessor: var(--light-color-ts-property);
--light-color-ts-get-signature: var(--light-color-ts-accessor);
--light-color-ts-set-signature: var(--light-color-ts-accessor);
--light-color-ts-type-alias: #d51270;
/* reference not included as links will be colored with the kind that it points to */
+ --light-color-document: #000000;
--light-external-icon: url("data:image/svg+xml;utf8,");
--light-color-scheme: light;
@@ -49,7 +52,9 @@
--dark-color-text: #f5f5f5;
--dark-color-text-aside: #dddddd;
--dark-color-link: #00aff4;
+ --dark-color-focus-outline: #4c97f2;
+ --dark-color-ts-keyword: #3399ff;
--dark-color-ts-project: #e358ff;
--dark-color-ts-module: var(--dark-color-ts-project);
--dark-color-ts-namespace: var(--dark-color-ts-project);
@@ -67,12 +72,13 @@
--dark-color-ts-constructor-signature: var(--dark-color-ts-constructor);
--dark-color-ts-parameter: var(--dark-color-ts-variable);
/* type literal not included as links will never be generated to it */
- --dark-color-ts-type-parameter: var(--dark-color-ts-type-alias);
+ --dark-color-ts-type-parameter: #e07d13;
--dark-color-ts-accessor: var(--dark-color-ts-property);
--dark-color-ts-get-signature: var(--dark-color-ts-accessor);
--dark-color-ts-set-signature: var(--dark-color-ts-accessor);
--dark-color-ts-type-alias: #ff6492;
/* reference not included as links will be colored with the kind that it points to */
+ --dark-color-document: #ffffff;
--dark-external-icon: url("data:image/svg+xml;utf8,");
--dark-color-scheme: dark;
@@ -90,7 +96,9 @@
--color-text: var(--light-color-text);
--color-text-aside: var(--light-color-text-aside);
--color-link: var(--light-color-link);
+ --color-focus-outline: var(--light-color-focus-outline);
+ --color-ts-keyword: var(--light-color-ts-keyword);
--color-ts-module: var(--light-color-ts-module);
--color-ts-namespace: var(--light-color-ts-namespace);
--color-ts-enum: var(--light-color-ts-enum);
@@ -113,6 +121,7 @@
--color-ts-get-signature: var(--light-color-ts-get-signature);
--color-ts-set-signature: var(--light-color-ts-set-signature);
--color-ts-type-alias: var(--light-color-ts-type-alias);
+ --color-document: var(--light-color-document);
--external-icon: var(--light-external-icon);
--color-scheme: var(--light-color-scheme);
@@ -131,7 +140,9 @@
--color-text: var(--dark-color-text);
--color-text-aside: var(--dark-color-text-aside);
--color-link: var(--dark-color-link);
+ --color-focus-outline: var(--dark-color-focus-outline);
+ --color-ts-keyword: var(--dark-color-ts-keyword);
--color-ts-module: var(--dark-color-ts-module);
--color-ts-namespace: var(--dark-color-ts-namespace);
--color-ts-enum: var(--dark-color-ts-enum);
@@ -154,6 +165,7 @@
--color-ts-get-signature: var(--dark-color-ts-get-signature);
--color-ts-set-signature: var(--dark-color-ts-set-signature);
--color-ts-type-alias: var(--dark-color-ts-type-alias);
+ --color-document: var(--dark-color-document);
--external-icon: var(--dark-external-icon);
--color-scheme: var(--dark-color-scheme);
@@ -179,7 +191,9 @@ body {
--color-text: var(--light-color-text);
--color-text-aside: var(--light-color-text-aside);
--color-link: var(--light-color-link);
+ --color-focus-outline: var(--light-color-focus-outline);
+ --color-ts-keyword: var(--light-color-ts-keyword);
--color-ts-module: var(--light-color-ts-module);
--color-ts-namespace: var(--light-color-ts-namespace);
--color-ts-enum: var(--light-color-ts-enum);
@@ -202,6 +216,7 @@ body {
--color-ts-get-signature: var(--light-color-ts-get-signature);
--color-ts-set-signature: var(--light-color-ts-set-signature);
--color-ts-type-alias: var(--light-color-ts-type-alias);
+ --color-document: var(--light-color-document);
--external-icon: var(--light-external-icon);
--color-scheme: var(--light-color-scheme);
@@ -218,7 +233,9 @@ body {
--color-text: var(--dark-color-text);
--color-text-aside: var(--dark-color-text-aside);
--color-link: var(--dark-color-link);
+ --color-focus-outline: var(--dark-color-focus-outline);
+ --color-ts-keyword: var(--dark-color-ts-keyword);
--color-ts-module: var(--dark-color-ts-module);
--color-ts-namespace: var(--dark-color-ts-namespace);
--color-ts-enum: var(--dark-color-ts-enum);
@@ -241,11 +258,17 @@ body {
--color-ts-get-signature: var(--dark-color-ts-get-signature);
--color-ts-set-signature: var(--dark-color-ts-set-signature);
--color-ts-type-alias: var(--dark-color-ts-type-alias);
+ --color-document: var(--dark-color-document);
--external-icon: var(--dark-external-icon);
--color-scheme: var(--dark-color-scheme);
}
+*:focus-visible,
+.tsd-accordion-summary:focus-visible svg {
+ outline: 2px solid var(--color-focus-outline);
+}
+
.always-visible,
.always-visible .tsd-signatures {
display: inherit !important;
@@ -260,16 +283,6 @@ h6 {
line-height: 1.2;
}
-h1 > a,
-h2 > a,
-h3 > a,
-h4 > a,
-h5 > a,
-h6 > a {
- text-decoration: none;
- color: var(--color-text);
-}
-
h1 {
font-size: 1.875rem;
margin: 0.67rem 0;
@@ -300,10 +313,6 @@ h6 {
margin: 2.33rem 0;
}
-.uppercase {
- text-transform: uppercase;
-}
-
dl,
menu,
ol,
@@ -321,17 +330,14 @@ dd {
}
/* Footer */
-.tsd-generator {
+footer {
border-top: 1px solid var(--color-accent);
padding-top: 1rem;
padding-bottom: 1rem;
max-height: 3.5rem;
}
-
-.tsd-generator > p {
- margin-top: 0;
- margin-bottom: 0;
- padding: 0 1rem;
+footer > p {
+ margin: 0 1em;
}
.container-main {
@@ -399,7 +405,8 @@ dd {
}
body {
background: var(--color-background);
- font-family: "Segoe UI", sans-serif;
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans",
+ Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
font-size: 16px;
color: var(--color-text);
}
@@ -417,6 +424,9 @@ a.external[target="_blank"] {
background-repeat: no-repeat;
padding-right: 13px;
}
+a.tsd-anchor-link {
+ color: var(--color-text);
+}
code,
pre {
@@ -576,13 +586,13 @@ dl.tsd-comment-tag-group p {
}
.tsd-filter-input {
display: flex;
- width: fit-content;
width: -moz-fit-content;
+ width: fit-content;
align-items: center;
- user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
+ user-select: none;
cursor: pointer;
}
.tsd-filter-input input[type="checkbox"] {
@@ -605,11 +615,8 @@ dl.tsd-comment-tag-group p {
Don't remove unless you know what you're doing. */
opacity: 0.99;
}
-.tsd-filter-input input[type="checkbox"]:focus + svg {
- transform: scale(0.95);
-}
-.tsd-filter-input input[type="checkbox"]:focus:not(:focus-visible) + svg {
- transform: scale(1);
+.tsd-filter-input input[type="checkbox"]:focus-visible + svg {
+ outline: 2px solid var(--color-focus-outline);
}
.tsd-checkbox-background {
fill: var(--color-accent);
@@ -626,13 +633,18 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
stroke: var(--color-accent);
}
-.tsd-theme-toggle {
- padding-top: 0.75rem;
+.settings-label {
+ font-weight: bold;
+ text-transform: uppercase;
+ display: inline-block;
}
-.tsd-theme-toggle > h4 {
- display: inline;
- vertical-align: middle;
- margin-right: 0.75rem;
+
+.tsd-filter-visibility .settings-label {
+ margin: 0.75rem 0 0.5rem 0;
+}
+
+.tsd-theme-toggle .settings-label {
+ margin: 0.75rem 0.75rem 0 0;
}
.tsd-hierarchy {
@@ -643,6 +655,28 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
font-weight: bold;
}
+.tsd-full-hierarchy:not(:last-child) {
+ margin-bottom: 1em;
+ padding-bottom: 1em;
+ border-bottom: 1px solid var(--color-accent);
+}
+.tsd-full-hierarchy,
+.tsd-full-hierarchy ul {
+ list-style: none;
+ margin: 0;
+ padding: 0;
+}
+.tsd-full-hierarchy ul {
+ padding-left: 1.5rem;
+}
+.tsd-full-hierarchy a {
+ padding: 0.25rem 0 !important;
+ font-size: 1rem;
+ display: inline-flex;
+ align-items: center;
+ color: var(--color-text);
+}
+
.tsd-panel-group.tsd-index-group {
margin-bottom: 0;
}
@@ -708,12 +742,15 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
}
.tsd-navigation > a,
.tsd-navigation .tsd-accordion-summary {
- width: calc(100% - 0.5rem);
+ width: calc(100% - 0.25rem);
+ display: flex;
+ align-items: center;
}
.tsd-navigation a,
.tsd-navigation summary > span,
.tsd-page-navigation a {
- display: inline-flex;
+ display: flex;
+ width: calc(100% - 0.25rem);
align-items: center;
padding: 0.25rem;
color: var(--color-text);
@@ -740,6 +777,9 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
padding: 0;
max-width: 100%;
}
+.tsd-navigation .tsd-nav-link {
+ display: none;
+}
.tsd-nested-navigation {
margin-left: 3rem;
}
@@ -753,11 +793,15 @@ input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark {
margin-left: -1.5rem;
}
-.tsd-nested-navigation > li > a,
-.tsd-nested-navigation > li > span {
- width: calc(100% - 1.75rem - 0.5rem);
+.tsd-page-navigation-section {
+ margin-left: 10px;
+}
+.tsd-page-navigation-section > summary {
+ padding: 0.25rem;
+}
+.tsd-page-navigation-section > div {
+ margin-left: 20px;
}
-
.tsd-page-navigation ul {
padding-left: 1.75rem;
}
@@ -788,10 +832,10 @@ a.tsd-index-link {
}
.tsd-accordion-summary,
.tsd-accordion-summary a {
- user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
+ user-select: none;
cursor: pointer;
}
@@ -804,8 +848,9 @@ a.tsd-index-link {
padding-top: 0;
padding-bottom: 0;
}
-.tsd-index-accordion .tsd-accordion-summary > svg {
+.tsd-accordion .tsd-accordion-summary > svg {
margin-left: 0.25rem;
+ vertical-align: text-top;
}
.tsd-index-content > :not(:first-child) {
margin-top: 0.75rem;
@@ -853,7 +898,7 @@ a.tsd-index-link {
}
.tsd-panel-group {
- margin: 4rem 0;
+ margin: 2rem 0;
}
.tsd-panel-group.tsd-index-group {
margin: 2rem 0;
@@ -861,6 +906,9 @@ a.tsd-index-link {
.tsd-panel-group.tsd-index-group details {
margin: 2rem 0;
}
+.tsd-panel-group > .tsd-accordion-summary {
+ margin-bottom: 1rem;
+}
#tsd-search {
transition: background-color 0.2s;
@@ -910,8 +958,9 @@ a.tsd-index-link {
box-shadow: 0 0 4px rgba(0, 0, 0, 0.25);
}
#tsd-search .results li {
- padding: 0 10px;
background-color: var(--color-background);
+ line-height: initial;
+ padding: 4px;
}
#tsd-search .results li:nth-child(even) {
background-color: var(--color-background-secondary);
@@ -924,7 +973,10 @@ a.tsd-index-link {
background-color: var(--color-accent);
}
#tsd-search .results a {
- display: block;
+ display: flex;
+ align-items: center;
+ padding: 0.25rem;
+ box-sizing: border-box;
}
#tsd-search .results a:before {
top: 10px;
@@ -980,6 +1032,11 @@ a.tsd-index-link {
overflow-x: auto;
}
+.tsd-signature-keyword {
+ color: var(--color-ts-keyword);
+ font-weight: normal;
+}
+
.tsd-signature-symbol {
color: var(--color-text-aside);
font-weight: normal;
@@ -1001,6 +1058,12 @@ a.tsd-index-link {
border-width: 1px 0;
transition: background-color 0.1s;
}
+.tsd-signatures .tsd-index-signature:not(:last-child) {
+ margin-bottom: 1em;
+}
+.tsd-signatures .tsd-index-signature .tsd-signature {
+ border-width: 1px;
+}
.tsd-description .tsd-signatures .tsd-signature {
border-width: 1px;
}
@@ -1134,7 +1197,7 @@ img {
}
.deprecated {
- text-decoration: line-through;
+ text-decoration: line-through !important;
}
.warning {
@@ -1314,6 +1377,12 @@ img {
.has-menu .tsd-navigation {
max-height: 100%;
}
+ #tsd-toolbar-links {
+ display: none;
+ }
+ .tsd-navigation .tsd-nav-link {
+ display: flex;
+ }
}
/* one sidebar */