Skip to content

Commit

Permalink
style: automatic lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschmidt committed Oct 29, 2023
1 parent 729aeb1 commit 4f85ae3
Show file tree
Hide file tree
Showing 17 changed files with 90 additions and 48 deletions.
4 changes: 3 additions & 1 deletion src/components/breadcrumbs/breadcrumbs.scss
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ a.step {
cursor: pointer;
transition: color 0.2s ease;
&:before {
transition: opacity 0.2s ease, transform 0.3s ease-out;
transition:
opacity 0.2s ease,
transform 0.3s ease-out;
content: '';
position: absolute;
inset: auto 0 0 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ $speed-of-reducing-presence: 0.3s;
&[disabled]:not(.loading):not(.just-loaded) {
animation: reduced-presence $speed-of-reducing-presence ease
forwards;
transition: padding $speed-of-reducing-presence ease,
transition:
padding $speed-of-reducing-presence ease,
min-width $speed-of-reducing-presence ease;
transition-delay: $speed-of-reducing-presence;

Expand Down
20 changes: 8 additions & 12 deletions src/components/chip-set/chip-set.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,12 +330,10 @@ describe('limel-chip-set', () => {
chipSet.setAttribute('disabled', true);
await page.waitForChanges();

firstChipRemoveButton = await chips[0].find(
'div[role="button"]'
);
secondChipRemoveButton = await chips[1].find(
'div[role="button"]'
);
firstChipRemoveButton =
await chips[0].find('div[role="button"]');
secondChipRemoveButton =
await chips[1].find('div[role="button"]');
});

it('renders the chips without delete-buttons', async () => {
Expand All @@ -353,12 +351,10 @@ describe('limel-chip-set', () => {
chipSet.setAttribute('readonly', true);
await page.waitForChanges();

firstChipRemoveButton = await chips[0].find(
'div[role="button"]'
);
secondChipRemoveButton = await chips[1].find(
'div[role="button"]'
);
firstChipRemoveButton =
await chips[0].find('div[role="button"]');
secondChipRemoveButton =
await chips[1].find('div[role="button"]');
});

it('renders the chips without delete-buttons', async () => {
Expand Down
4 changes: 3 additions & 1 deletion src/components/chip-set/chip-set.scss
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,9 @@ limel-icon.mdc-chip__icon.mdc-chip__icon--leading {

.mdc-chip__icon {
&.mdc-chip__icon--trailing {
transition: background-color 0.2s ease, color 0.2s ease;
transition:
background-color 0.2s ease,
color 0.2s ease;

color: var(--mdc-theme-on-surface);
margin-left: 0;
Expand Down
4 changes: 3 additions & 1 deletion src/components/collapsible-section/collapsible-section.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
inset: 0;
width: 100%; // for Firefox
@include mixins.visualize-keyboard-focus;
transition: background-color 0.4s ease, border-radius 0.1s ease;
transition:
background-color 0.4s ease,
border-radius 0.1s ease;
cursor: pointer;
z-index: -1;

Expand Down
22 changes: 16 additions & 6 deletions src/components/collapsible-section/partial-styles/expand-icon.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@

&:first-of-type,
&:last-of-type {
transition: opacity 0.2s ease 0.1s, transform 0.4s ease 0.3s;
transition:
opacity 0.2s ease 0.1s,
transform 0.4s ease 0.3s;
}

&:first-of-type {
Expand All @@ -35,13 +37,17 @@

&:nth-of-type(2),
&:nth-of-type(3) {
transition: opacity 0.2s ease, transform 0.18s ease;
transition:
opacity 0.2s ease,
transform 0.18s ease;
}

section.open & {
&:first-of-type,
&:last-of-type {
transition: opacity 0.2s ease 0.1s, transform 0.4s ease 0.3s;
transition:
opacity 0.2s ease 0.1s,
transform 0.4s ease 0.3s;
}
&:first-of-type {
transform: rotate3d(0, 0, 1, 0deg);
Expand All @@ -53,7 +59,9 @@

&:nth-of-type(2),
&:nth-of-type(3) {
transition: opacity 1s ease, transform 0.4s ease;
transition:
opacity 1s ease,
transform 0.4s ease;
}

&:nth-of-type(2) {
Expand All @@ -80,7 +88,8 @@

&:nth-of-type(2),
&:nth-of-type(3) {
transition: opacity 0.5s ease 0.4s,
transition:
opacity 0.5s ease 0.4s,
transform 0.7s cubic-bezier(0.85, 0.11, 0.14, 1.35) 0.2s;
}

Expand All @@ -101,7 +110,8 @@ section.open {
.line {
&:first-of-type,
&:last-of-type {
transition: opacity 0.2s ease 0.4s,
transition:
opacity 0.2s ease 0.4s,
transform 0.4s cubic-bezier(0.85, 0.11, 0.14, 1.35) 0.2s;
}

Expand Down
10 changes: 7 additions & 3 deletions src/components/color-picker/color-picker-palette.scss
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@
// We could use the `@include mixins.is-flat-clickable();` mixin
// But its `background-color` arguments would interfere with the
// styles here. So we just copy/pasted the useful parts of the mixin here
transition: color 0.2s ease, background-color 0.2s ease,
box-shadow 0.2s ease, transform 0.1s ease-out;
transition:
color 0.2s ease,
background-color 0.2s ease,
box-shadow 0.2s ease,
transform 0.1s ease-out;

&:hover {
box-shadow: var(--button-shadow-hovered);
Expand All @@ -54,7 +57,8 @@
cursor: pointer;

&:focus-visible {
box-shadow: var(--shadow-depth-8-focused),
box-shadow:
var(--shadow-depth-8-focused),
0 0 0 0.25rem rgb(var(--contrast-100)) inset;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ svg {
}

&:before {
transition: opacity 0.2s ease, top 0.2s ease;
transition:
opacity 0.2s ease,
top 0.2s ease;

pointer-events: none;
content: var(--today-label);
Expand Down
7 changes: 4 additions & 3 deletions src/components/info-tile/info-tile.scss
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ limel-linear-progress {

.value-and-suffix,
.label {
text-shadow: 0 0 0.5rem
var(--info-tile-background-color, rgb(var(--contrast-100))),
text-shadow:
0 0 0.5rem var(--info-tile-background-color, rgb(var(--contrast-100))),
0 0 0.25rem var(--info-tile-background-color, rgb(var(--contrast-100)));
}

Expand Down Expand Up @@ -223,7 +223,8 @@ limel-linear-progress {
}

.value {
transition: opacity 0.2s ease,
transition:
opacity 0.2s ease,
transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.95);
transform-origin: left;
transform: translate3d(0, 0, 0) scale(1);
Expand Down
5 changes: 3 additions & 2 deletions src/components/list/list.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,9 @@ $list-mdc-list-item: 0;
--list-right-padding: #{functions.pxToRem(12)};
right: 0;
width: calc(
100% - var(--icon-width) - var(--icon-right-padding) -
var(--list-right-padding)
100% - var(--icon-width) - var(--icon-right-padding) - var(
--list-right-padding
)
);

&.x-small {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ $limel-progress-flow-divider: 1;
}

.step {
transition: background-color 0.2s ease, box-shadow 0.2s ease;
transition:
background-color 0.2s ease,
box-shadow 0.2s ease;

display: flex;
justify-content: center;
Expand Down
4 changes: 3 additions & 1 deletion src/components/table/partial-styles/_tabulator-footer.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.tabulator {
.tabulator-footer {
transition: transform 0.5s ease-out, opacity 0.35s ease; //For some reason the footer is not animated when it gets hidden/removed
transition:
transform 0.5s ease-out,
opacity 0.35s ease; //For some reason the footer is not animated when it gets hidden/removed
padding-top: 0;
padding-bottom: 0;
color: var(--table-text-color);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@
// But the "arguments" of the mixin would make the CSS for
// even and odd row colors and background color very complicated.
// So instead, I've copy/pasted the useful parts of the mixin here
transition: color 0.2s ease, background-color 0.2s ease,
box-shadow 0.2s ease, transform 0.1s ease-out;
transition:
color 0.2s ease,
background-color 0.2s ease,
box-shadow 0.2s ease,
transform 0.1s ease-out;
}

.tabulator-row:not(.tabulator-calcs) {
Expand Down
5 changes: 2 additions & 3 deletions src/components/table/table.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -497,9 +497,8 @@ export class Table {
return undefined;
}

const value = this.aggregates.find(
(a) => a.field === col.field
)?.value;
const value = this.aggregates.find((a) => a.field === col.field)
?.value;

if (col.formatter) {
return col.formatter(value);
Expand Down
3 changes: 2 additions & 1 deletion src/design-guidelines/size/examples/size.scss
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

font-size: functions.pxToRem(16);
background-color: rgb(var(--contrast-200));
box-shadow: 0 #{functions.pxToRem(1.5)} #{functions.pxToRem(3.6)} 0
box-shadow:
0 #{functions.pxToRem(1.5)} #{functions.pxToRem(3.6)} 0
rgba(0, 0, 0, 0.232),
0 #{functions.pxToRem(0.3)} #{functions.pxToRem(0.9)} 0
rgba(0, 0, 0, 0.208);
Expand Down
4 changes: 3 additions & 1 deletion src/style/internal/shared_input-select-picker.scss
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,9 @@ $cropped-label-hack--font-size: 0.875rem; //14px
@mixin trailing-icon {
.mdc-text-field--with-trailing-icon {
.mdc-text-field__icon--trailing {
transition: background-color 0.2s ease, box-shadow 0.3s ease;
transition:
background-color 0.2s ease,
box-shadow 0.3s ease;
border-radius: 50%;
padding: functions.pxToRem(8);

Expand Down
28 changes: 20 additions & 8 deletions src/style/mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@
$background-color: var(--lime-elevated-surface-background-color),
$background-color--hovered: var(--lime-elevated-surface-background-color)
) {
transition: color 0.2s ease, background-color 0.2s ease,
box-shadow 0.2s ease, transform 0.1s ease-out;
transition:
color 0.2s ease,
background-color 0.2s ease,
box-shadow 0.2s ease,
transform 0.1s ease-out;

cursor: pointer;
color: $color;
Expand All @@ -84,8 +87,11 @@
$background-color--hovered: var(--lime-elevated-surface-background-color),
$background-color--inset: var(--mdc-theme-surface)
) {
transition: color 0.2s ease, background-color 0.2s ease,
box-shadow 0.2s ease, transform 0.1s ease-out;
transition:
color 0.2s ease,
background-color 0.2s ease,
box-shadow 0.2s ease,
transform 0.1s ease-out;

cursor: pointer;
color: $color;
Expand All @@ -111,8 +117,11 @@
$color--hovered: var(--mdc-theme-on-surface),
$background-color--hovered: var(--lime-elevated-surface-background-color)
) {
transition: color 0.2s ease, background-color 0.2s ease,
box-shadow 0.2s ease, transform 0.1s ease-out;
transition:
color 0.2s ease,
background-color 0.2s ease,
box-shadow 0.2s ease,
transform 0.1s ease-out;

cursor: pointer;
color: $color;
Expand All @@ -138,8 +147,11 @@
$background-color--hovered: var(--lime-elevated-surface-background-color),
$background-color--inset: var(--mdc-theme-surface)
) {
transition: color 0.2s ease, background-color 0.2s ease,
box-shadow 0.2s ease, transform 0.1s ease-out;
transition:
color 0.2s ease,
background-color 0.2s ease,
box-shadow 0.2s ease,
transform 0.1s ease-out;

cursor: pointer;
color: $color;
Expand Down

0 comments on commit 4f85ae3

Please sign in to comment.