Skip to content

Commit

Permalink
docs: remove display: block; from <main> (#1809)
Browse files Browse the repository at this point in the history
* style: remove extra line from `.gitattributes` file

* docs: remove redundant `display: block;` from some demos

This was added while `main { display: grid; }` was set. Now that `main` has been set to `block`, this is redundant code.

* fix(badge): re-add contents of badge.css

---------

Co-authored-by: Benny Powers - עם ישראל חי! <[email protected]>
  • Loading branch information
adamjohnson and bennypowers authored Sep 5, 2024
1 parent 11bbd02 commit 514dc44
Show file tree
Hide file tree
Showing 15 changed files with 0 additions and 62 deletions.
1 change: 0 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
package-lock.json binary
yarn.lock binary

4 changes: 0 additions & 4 deletions elements/rh-breadcrumb/demo/non-interactive-last-item.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ <h2 class="subtle-heading">Subtle:</h2>
</script>

<style>
main {
display: block;
}

.subtle-heading {
margin-block-start: var(--rh-space-6xl, 96px);
}
Expand Down
4 changes: 0 additions & 4 deletions elements/rh-card/demo/promo-full-width.html
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,4 @@ <h2 slot="header">Full Width Promo Dark</h2>
order: -10;
}
}

[data-demo] {
display: contents;
}
</style>
1 change: 0 additions & 1 deletion elements/rh-card/demo/promo.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ <h2 slot="header">Promo Dark</h2>

<style>
main {
display: block;
padding: var(--rh-space-lg, 16px);
}

Expand Down
4 changes: 0 additions & 4 deletions elements/rh-tile/demo/checkable.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ <h2 slot="headline">Headline</h2>
<link rel="stylesheet" href="../rh-tile-lightdom.css">

<style>
main {
display: block;
}

rh-tile {
width: 320px;
margin-inline-end: var(--rh-space-md, 8px);
Expand Down
4 changes: 0 additions & 4 deletions elements/rh-tile/demo/compact.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ <h2 slot="headline"><a href="#top">Link</a></h2>
<link rel="stylesheet" href="../rh-tile-lightdom.css">

<style>
main {
display: block;
}

rh-tile {
margin-inline-end: var(--rh-space-md, 8px);
margin-block-end: var(--rh-space-md, 8px);
Expand Down
4 changes: 0 additions & 4 deletions elements/rh-tile/demo/desaturated-heading.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ <h2 slot="headline"><a href="#top">Link</a></h2>
<link rel="stylesheet" href="../rh-tile-lightdom.css">

<style>
main {
display: block;
}

rh-tile {
margin-inline-end: var(--rh-space-md, 8px);
}
Expand Down
4 changes: 0 additions & 4 deletions elements/rh-tile/demo/disabled.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ <h2 slot="headline"><a href="#top">Link</a></h2>
<link rel="stylesheet" href="../rh-tile-lightdom.css">

<style>
main {
display: block;
}

rh-tile {
margin-inline-end: var(--rh-space-md, 8px);
}
Expand Down
4 changes: 0 additions & 4 deletions elements/rh-tile/demo/icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ <h2 slot="headline"><a href="#top">Link</a></h2>
<link rel="stylesheet" href="../rh-tile-lightdom.css">

<style>
main {
display: block;
}

rh-tile {
margin-inline-end: var(--rh-space-md, 8px);
margin-block-end: var(--rh-space-md, 8px);
Expand Down
4 changes: 0 additions & 4 deletions elements/rh-tile/demo/in-flex-container.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,6 @@ <h2 slot="headline"><a href="#top">Link</a></h2>
<link rel="stylesheet" href="../rh-tile-lightdom.css">

<style>
main {
display: block;
}

rh-tile {
margin-inline-end: var(--rh-space-md, 8px);
margin-block-end: var(--rh-space-md, 8px);
Expand Down
4 changes: 0 additions & 4 deletions elements/rh-tile/demo/rh-tile.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,6 @@ <h2 slot="headline"><a href="#top">Link</a></h2>
<link rel="stylesheet" href="../rh-tile-lightdom.css">

<style>
main {
display: block;
}

rh-tile {
margin-inline-end: var(--rh-space-md, 8px);
}
Expand Down
6 changes: 0 additions & 6 deletions elements/rh-tile/demo/tile-group-disabled.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,3 @@ <h2 slot="headline">Headline</h2>
<script type="module">
import '@rhds/elements/rh-tile/rh-tile-group.js';
</script>

<style>
main {
display: block;
}
</style>
6 changes: 0 additions & 6 deletions elements/rh-tile/demo/tile-group-radio-disabled.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,3 @@ <h2 slot="headline">Headline</h2>
<script type="module">
import '@rhds/elements/rh-tile/rh-tile-group.js';
</script>

<style>
main {
display: block;
}
</style>
6 changes: 0 additions & 6 deletions elements/rh-tile/demo/tile-group-radio.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,3 @@ <h2 slot="headline">Headline</h2>
<script type="module">
import '@rhds/elements/rh-tile/rh-tile-group.js';
</script>

<style>
main {
display: block;
}
</style>
6 changes: 0 additions & 6 deletions elements/rh-tile/demo/tile-group.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,3 @@ <h2 slot="headline">Headline</h2>
<script type="module">
import '@rhds/elements/rh-tile/rh-tile-group.js';
</script>

<style>
main {
display: block;
}
</style>

0 comments on commit 514dc44

Please sign in to comment.