Skip to content

Commit

Permalink
Update violating stylelint `declaration-block-no-redundant-longhand-p…
Browse files Browse the repository at this point in the history
…roperties` rule to use inset shorthand notation
  • Loading branch information
howard-e committed Nov 1, 2023
1 parent eb6dc65 commit 2d581f7
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 20 deletions.
5 changes: 1 addition & 4 deletions content/patterns/alertdialog/examples/css/alertdialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,7 @@
display: none;
position: fixed;
overflow-y: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
inset: 0;
}

@media screen and (min-width: 640px) {
Expand Down
5 changes: 1 addition & 4 deletions content/patterns/button/examples/css/button.css
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@
position: absolute;

/* button border width - outline width - offset */
top: calc(-1px - 3px - 3px);
right: calc(-1px - 3px - 3px);
bottom: calc(-1px - 3px - 3px);
left: calc(-1px - 3px - 3px);
inset: calc(-1px - 3px - 3px);
border: 3px solid hsl(213deg 71% 49%);

/* button border radius + outline width + offset */
Expand Down
5 changes: 1 addition & 4 deletions content/patterns/dialog-modal/examples/css/dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,7 @@
display: none;
position: fixed;
overflow-y: auto;
top: 0;
right: 0;
bottom: 0;
left: 0;
inset: 0;
}

@media screen and (min-width: 640px) {
Expand Down
5 changes: 1 addition & 4 deletions content/patterns/table/examples/css/sortable-table.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ table.sortable th button {
background: transparent;
border: none;
display: inline;
right: 0;
left: 0;
top: 0;
bottom: 0;
inset: 0;
width: 100%;
text-align: left;
outline: none;
Expand Down
5 changes: 1 addition & 4 deletions content/shared/css/core.css
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ th .example-header {
z-index: -1;

/* button border width - outline width - offset */
top: calc(-1px - 3px - 3px);
right: calc(-1px - 3px - 3px);
bottom: calc(-1px - 3px - 3px);
left: calc(-1px - 3px - 3px);
inset: calc(-1px - 3px - 3px);
border: 3px solid hsl(213deg 71% 49%);

/* button border radius + outline width + offset */
Expand Down

0 comments on commit 2d581f7

Please sign in to comment.