open-consul/ui/packages/consul-ui/app/components/definition-table
John Cowen 5a67cccd2c
ui: Upstream CSS Tweaks (#11554)
Various CSS tweaks/HTML cleanup around upstreams (but impacts other 'rows')

- Prefer {{tooltip}} to <Tooltip>
- Removed some now unnecessary spans
- Stop using an empty class="" for styling purposes.
- Renamed any classes used to identify response properties to follow the exact property name but kebab-cased.
- Fixed up the alignment of things in the rows when used with a 'tiny copy button' (see screengrab) which was minus positioning and knocking things out (pending a proper refactor of our copy button CSS which is from the very very start of things)
2021-11-16 15:36:54 +00:00
..
README.mdx ui: Fixup definition-table + copy-button margin (#10512) 2021-07-06 16:57:20 +01:00
debug.scss ui: Fixup definition-table + copy-button margin (#10512) 2021-07-06 16:57:20 +01:00
index.scss ui: Colocate remaining CSS components to the app/components folder (#10328) 2021-06-23 09:19:35 +01:00
layout.scss ui: Upstream CSS Tweaks (#11554) 2021-11-16 15:36:54 +00:00
skin.scss ui: Colocate remaining CSS components to the app/components folder (#10328) 2021-06-23 09:19:35 +01:00

README.mdx

---
class: css
---
# definition-table

Simple CSS component to render a `dl` similar to a table with column headers.
Contents of the `dd` are currently inline-block'ed for CopyButton reasons.

```hbs preview-template
<div class="definition-table">
  <dl>
    <dt>Title 1</dt>
    <dd>Value</dd>
    <dt>Title 2</dt>
    <dd><CopyButton @name="Title 2" @value="Value"/>Value</dd>
  </dl>
</div>
```


```css
.definition-table {
  @extend %definition-table;
}
```