Files
threshold/website/components/openapi-page/partials/property-object/property-object.module.css
T
Zachary ShiltonandKyle MacDonald 1cc8737540 Add generated API docs to website (#537)
* Add dependencies for openapi-page component

* Add openapi-page component

* Use openapi-page component for /api-docs page

* add /api link to nav  (#570)

* website: remove superflous netlify config file

* website: misc clean up website/readme
- remove netlify badge
- run through prettier markdown fmt

* website: add /api docs to nav
- adds /api-docs => /api rewrite
- updates open-api component base api path to be /api
- adds .html rewrite for good measure

* Fix currentPath highlight issue in subnav

* Clean up inline styles in operation-object

* Remove React imports

* Remove api-docs rewrite

Co-authored-by: Kyle MacDonald <kylemac@users.noreply.github.com>
2020-10-09 13:26:32 -07:00

86 lines
1.5 KiB
CSS

.root {
border-top: 1px solid var(--gray-6);
border-bottom: 1px solid var(--gray-6);
padding: 16px 0;
margin: -1px 0 0 0;
&[data-is-first-item='true'] {
border-top: none;
}
&[data-is-last-item='true'] {
border-bottom: none;
}
& .name {
color: var(--brand);
background: rgba(29, 30, 35, 0.07);
border-radius: 3px;
padding: 0.3em 0.625em;
}
& .typeString {
color: var(--gray-2);
background: none;
padding: 0;
margin-left: 2px;
}
& .requiredFlag {
color: var(--danger-d1);
margin-left: 4px;
}
& .title,
& .description {
color: var(--gray-3);
margin: 8px 0 0 0;
}
& .toggleButton {
border: 1px solid red;
border: none;
color: var(--brand);
background: none;
display: flex;
align-items: center;
margin: 8px 0 0 0;
padding: 0;
& .toggleIcon {
position: relative;
top: 1px;
width: 16px;
height: 16px;
margin-right: 8px;
transition: transform 0.3s;
display: flex;
align-items: center;
justify-content: center;
& svg {
& [fill] {
fill: var(--brand);
}
& [stroke] {
stroke: var(--brand);
}
}
&[data-is-collapsed='false'] {
transform: rotate(-180deg);
}
}
&:hover {
cursor: pointer;
}
}
& .propertiesContainer {
margin: 8px 0 0 8px;
padding-left: 16px;
border-left: 1px solid var(--gray-6);
}
}