-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs(config): add multi-namespace support (#2993)
Co-authored-by: Kevin Ingersoll <[email protected]>
- Loading branch information
Showing
4 changed files
with
415 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.list { | ||
display: grid; | ||
grid-template-columns: 12rem auto; | ||
} | ||
.list > :nth-child(n + 3) { | ||
border-top: 1px solid rgba(255, 255, 255, 0.1); | ||
} | ||
.title:not(:first-child), | ||
.list:not(:first-child):not(.title + .list) { | ||
margin-top: 1rem; | ||
} | ||
.list:not(:last-child) { | ||
margin-bottom: 1rem; | ||
} | ||
|
||
.title { | ||
font-size: 0.75rem; | ||
text-transform: uppercase; | ||
font-weight: bold; | ||
text-align: center; | ||
color: rgba(255, 255, 255, 0.5); | ||
} | ||
|
||
.title, | ||
.term, | ||
.definition { | ||
padding-left: 0.5rem; | ||
padding-right: 0.5rem; | ||
} | ||
.term, | ||
.definition { | ||
padding-top: 0.375rem; | ||
padding-bottom: 0.375rem; | ||
} | ||
.term { | ||
font-family: monospace; | ||
font-weight: bold; | ||
background: rgba(255, 255, 255, 0.1); | ||
white-space: nowrap; | ||
text-overflow: ellipsis; | ||
overflow: hidden; | ||
} | ||
.term:hover { | ||
overflow: visible; | ||
position: relative; | ||
} | ||
.definition { | ||
padding-left: 0.5rem; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React, { ReactNode } from "react"; | ||
import styles from "./Params.module.css"; | ||
|
||
type ParamsProps = { | ||
title?: string; | ||
children: ReactNode; | ||
}; | ||
|
||
export function Params({ title, children }: ParamsProps) { | ||
return ( | ||
<> | ||
{title ? <div className={styles.title}>{title}</div> : null} | ||
<dl className={styles.list}>{children}</dl> | ||
</> | ||
); | ||
} | ||
|
||
type ParamProps = { | ||
name: string; | ||
children: ReactNode; | ||
}; | ||
|
||
export function Param({ name, children }: ParamProps) { | ||
return ( | ||
<> | ||
<dt className={styles.term}>{name}</dt> | ||
<dd className={styles.definition}>{children}</dd> | ||
</> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.