added components Badge, TypeTitle, migrated existing code accordingly
This commit is contained in:
parent
83dcae4441
commit
59035e2190
20 changed files with 2493 additions and 1357 deletions
21
src/styles/docs/badge.css
Normal file
21
src/styles/docs/badge.css
Normal file
|
@ -0,0 +1,21 @@
|
|||
.type-badges {
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
gap: 0.517rem;
|
||||
font-size: 0.815rem;
|
||||
margin: 0 !important;
|
||||
max-width: 10rem;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
|
||||
.badge {
|
||||
padding-inline: 6px;
|
||||
padding-block: 3px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.117rem;
|
||||
color: hsl(var(--inner-param-color));
|
||||
border: 1px solid hsl(var(--inner-param-color));
|
||||
border-radius: 5px;
|
||||
width: max-content;
|
||||
}
|
|
@ -1,3 +1,6 @@
|
|||
@import "./type-title.css";
|
||||
@import "./badge.css";
|
||||
|
||||
.root-nav {
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
@ -99,42 +102,6 @@
|
|||
border-radius: 12px;
|
||||
padding: 0.8rem;
|
||||
transition: border 0.3s;
|
||||
|
||||
& .typedata-title {
|
||||
margin-bottom: 0.8rem;
|
||||
|
||||
& .typedata-name {
|
||||
font-size: 1.272rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
|
||||
& svg {
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
}
|
||||
|
||||
& .type-flags {
|
||||
display: flex;
|
||||
flex-flow: row nowrap;
|
||||
gap: 0.517rem;
|
||||
font-size: 0.815rem;
|
||||
margin: 0;
|
||||
|
||||
& .type-flag {
|
||||
padding-inline: 6px;
|
||||
padding-block: 3px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 0.117rem;
|
||||
color: hsl(var(--inner-param-color));
|
||||
border: 1px solid hsl(var(--inner-param-border-color));
|
||||
border-radius: 6px;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
& .typedata-details {
|
||||
|
@ -317,9 +284,8 @@ html.dark .typefuncs {
|
|||
color: hsl(var(--signal-link-color));
|
||||
|
||||
& .typesignal-doclink {
|
||||
position: absolute;
|
||||
top: -12px;
|
||||
right: -12px;
|
||||
left: -6px;
|
||||
opacity: 0.8;
|
||||
scale: 75%;
|
||||
}
|
||||
|
@ -391,13 +357,6 @@ html.dark .typevariants {
|
|||
}
|
||||
}
|
||||
|
||||
@media (min-width: 40rem) {
|
||||
.typedocs-content .typedata-title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 65rem) {
|
||||
.root-nav {
|
||||
& .root-nav-entry {
|
||||
|
|
23
src/styles/docs/type-title.css
Normal file
23
src/styles/docs/type-title.css
Normal file
|
@ -0,0 +1,23 @@
|
|||
.typedata-title {
|
||||
margin-bottom: 1.618rem;
|
||||
|
||||
& .typedata-name {
|
||||
font-size: 1.272rem;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 0;
|
||||
|
||||
& svg {
|
||||
width: 1.2em;
|
||||
height: 1.2em;
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 40rem) {
|
||||
.typedata-title {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue