Skip to content

Commit 2ebcc2a

Browse files
didimmovasimeonoff
andauthored
refactor(styles): use pad function (#1829)
* refactor(styles): use pad function * chore(tile-mangager): revert using pad function * fix(input): fix indigo and material inputs using pad function * fix(carousel): fix carousel pad functions * fix(file-input): revert using pad function * fix(input): revert using pad for helper text margin --------- Co-authored-by: Simeon Simeonoff <[email protected]>
1 parent d8851a5 commit 2ebcc2a

File tree

120 files changed

+217
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+217
-216
lines changed

src/components/accordion/themes/accordion.base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99

1010
::slotted(igc-expansion-panel[open]) {
11-
margin: rem(8px) 0;
11+
margin: pad-block(rem(8px)) 0;
1212
}
1313

1414
::slotted(igc-expansion-panel:first-of-type) {

src/components/banner/themes/banner.base.scss

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
[part~='spacer'] {
1010
display: flex;
1111
flex-wrap: wrap;
12-
padding: rem(16px) rem(8px);
12+
padding-block: pad-block(16px);
13+
padding-inline: pad-inline(8px);
1314
gap: rem(8px);
1415
justify-content: flex-end;
1516
}
@@ -45,7 +46,7 @@
4546
}
4647

4748
::slotted([slot='prefix']) {
48-
margin-inline-end: rem(16px);
49+
margin-inline-end: pad-inline(rem(16px));
4950
}
5051

5152
// OPEN CLOSE BEHAVIOR

src/components/banner/themes/shared/banner.bootstrap.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $theme: $bootstrap;
1010
}
1111

1212
[part~='message'] {
13-
padding: 0 rem(8px);
13+
padding: 0 pad-inline(rem(8px));
1414
}
1515

1616
::slotted([slot='prefix']) {

src/components/banner/themes/shared/banner.fluent.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $theme: $fluent;
1010
}
1111

1212
[part~='message'] {
13-
padding: 0 rem(8px);
13+
padding: 0 pad-inline(rem(8px));
1414
}
1515

1616
::slotted([slot='prefix']) {

src/components/banner/themes/shared/banner.indigo.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
$theme: $indigo;
55

66
[part~='spacer'] {
7-
padding: rem(16px);
7+
padding: pad(rem(16px));
88
background: var-get($theme, 'banner-background');
99
box-shadow: inset 0 0 0 rem(1px) var-get($theme, 'banner-border-color');
1010
border-radius: var-get($theme, 'border-radius');

src/components/banner/themes/shared/banner.material.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ $theme: $material;
1010
}
1111

1212
[part~='message'] {
13-
padding: 0 rem(8px);
13+
padding: 0 pad-inline(rem(8px));
1414
}
1515

1616
::slotted([slot='prefix']) {

src/components/button/themes/button/button.base.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
white-space: nowrap;
3737
text-decoration: none;
3838
z-index: 0;
39-
padding: 0 pad(8px, 12px, 16px);
39+
padding: 0 pad-inline(8px, 12px, 16px);
4040
gap: var(--gap);
4141
min-width: rem(88px);
4242
}

src/components/button/themes/button/shared/button.common.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ $outlined-theme: $material-outlined;
3030
border-radius: var-get($fab-theme, 'border-radius');
3131
min-height: var-get($fab-theme, 'size');
3232
min-width: var-get($fab-theme, 'size');
33-
padding: 0 pad(6px, 10px, 14px);
33+
padding: 0 pad-inline(6px, 10px, 14px);
3434
}
3535
/* stylelint-enable */
3636

src/components/button/themes/button/shared/button.fluent.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ $outlined-btn-indent: rem(2px);
3131
}
3232

3333
[part~='base'] {
34-
padding: 0 pad(8px, 12px, 16px);
34+
padding: 0 pad-inline(8px, 12px, 16px);
3535
transition: all .1s ease-in-out;
3636
}
3737

src/components/button/themes/button/shared/button.indigo.scss

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ $outlined-theme: $indigo-outlined;
88

99
:host [part~='base']{
1010
min-width: rem(28px);
11-
padding: 0 pad(10px, 16px, 24px);
12-
11+
padding: 0 pad-inline(10px, 16px, 24px);
12+
1313
::slotted(igc-icon) {
1414
--component-size: var(--ig-size-medium) !important;
1515
}
@@ -34,7 +34,7 @@ $outlined-theme: $indigo-outlined;
3434
--component-size: var(--ig-size, #{var-get($fab-theme, 'default-size')});
3535

3636
[part~='base'] {
37-
padding: 0 pad(rem(6px), rem(8px), rem(10px));
37+
padding: 0 pad-inline(rem(6px), rem(8px), rem(10px));
3838
}
3939
}
4040

0 commit comments

Comments
 (0)