Skip to content
2 changes: 1 addition & 1 deletion src/components/accordion/themes/accordion.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}

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

::slotted(igc-expansion-panel:first-of-type) {
Expand Down
5 changes: 3 additions & 2 deletions src/components/banner/themes/banner.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
[part~='spacer'] {
display: flex;
flex-wrap: wrap;
padding: rem(16px) rem(8px);
padding-block: pad-block(16px);
padding-inline: pad-inline(8px);
gap: rem(8px);
justify-content: flex-end;
}
Expand Down Expand Up @@ -45,7 +46,7 @@
}

::slotted([slot='prefix']) {
margin-inline-end: rem(16px);
margin-inline-end: pad-inline(rem(16px));
}

// OPEN CLOSE BEHAVIOR
Expand Down
2 changes: 1 addition & 1 deletion src/components/banner/themes/shared/banner.bootstrap.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $theme: $bootstrap;
}

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

::slotted([slot='prefix']) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/banner/themes/shared/banner.fluent.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $theme: $fluent;
}

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

::slotted([slot='prefix']) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/banner/themes/shared/banner.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$theme: $indigo;

[part~='spacer'] {
padding: rem(16px);
padding: pad(rem(16px));
background: var-get($theme, 'banner-background');
box-shadow: inset 0 0 0 rem(1px) var-get($theme, 'banner-border-color');
border-radius: var-get($theme, 'border-radius');
Expand Down
2 changes: 1 addition & 1 deletion src/components/banner/themes/shared/banner.material.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $theme: $material;
}

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

::slotted([slot='prefix']) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/button/themes/button/button.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
white-space: nowrap;
text-decoration: none;
z-index: 0;
padding: 0 pad(8px, 12px, 16px);
padding: 0 pad-inline(8px, 12px, 16px);
gap: var(--gap);
min-width: rem(88px);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ $outlined-theme: $material-outlined;
border-radius: var-get($fab-theme, 'border-radius');
min-height: var-get($fab-theme, 'size');
min-width: var-get($fab-theme, 'size');
padding: 0 pad(6px, 10px, 14px);
padding: 0 pad-inline(6px, 10px, 14px);
}
/* stylelint-enable */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ $outlined-btn-indent: rem(2px);
}

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

Expand Down
6 changes: 3 additions & 3 deletions src/components/button/themes/button/shared/button.indigo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ $outlined-theme: $indigo-outlined;

:host [part~='base']{
min-width: rem(28px);
padding: 0 pad(10px, 16px, 24px);
padding: 0 pad-inline(10px, 16px, 24px);

::slotted(igc-icon) {
--component-size: var(--ig-size-medium) !important;
}
Expand All @@ -34,7 +34,7 @@ $outlined-theme: $indigo-outlined;
--component-size: var(--ig-size, #{var-get($fab-theme, 'default-size')});

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

Expand Down
4 changes: 2 additions & 2 deletions src/components/calendar/themes/calendar.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
display: flex;
justify-content: space-between;
align-items: center;
padding: 0rem(16px);
padding: 0 pad-inline(rem(16px));
user-select: none;
}

Expand Down Expand Up @@ -136,7 +136,7 @@
display: flex;
flex-direction: column;
justify-content: space-between;
padding: rem(16px);
padding: pad(rem(16px));
}

[part~='content'] {
Expand Down
4 changes: 2 additions & 2 deletions src/components/calendar/themes/days-view.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $row-gap: rem(4px);
display: flex;
flex-direction: column;
outline: none;
padding: rem(16px) rem(12px);
padding: pad-block(rem(16px)) pad-inline(rem(12px));
overflow: hidden;
box-sizing: border-box;
gap: $row-gap;
Expand Down Expand Up @@ -116,7 +116,7 @@ $row-gap: rem(4px);
[part~='week-number'] {
order: 0;
cursor: default;
margin-inline-end: $row-gap;
margin-inline-end: pad-inline($row-gap);
}

[part='week-number-inner first'] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ $theme: $bootstrap;
[part='days-view-container'] + [part='days-view-container'] {
[part='navigation'],
igc-days-view::part(days-row) {
padding-inline: rem(22px);
padding-inline: pad-inline(rem(22px));
}
}

[part='days-view-container']:first-of-type:not(:only-child) {
[part='navigation'],
igc-days-view::part(days-row) {
padding-inline-end: rem(22px);
padding-inline-end: pad-inline(rem(22px));
}
}

[part='days-view-container']:last-of-type:not(:only-child) {
[part='navigation'],
igc-days-view::part(days-row) {
padding-inline-end: rem(12px);
padding-inline-end: pad-inline(rem(12px));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ $border-size: rem(1px);
:host([part='days-view']) {
overflow: hidden;
position: relative;
padding: 0 0 rem(16px);
padding: 0 0 pad-block(rem(16px));
}

[part~='days-row'] {
padding: 0 rem(12px);
padding: 0 pad-inline(rem(12px));
}

:host([part='days-view']) + :host([part='days-view']) {
margin-inline-start: rem(8px);
margin-inline-start: pad-inline(rem(8px));
}

[part~='days-row'][part~='first'] {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
$theme: $bootstrap;

:host {
padding-block-start: rem(16px);
padding-block-start: pad-block(rem(16px));
}

[part~='month-inner'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,21 @@ $theme: $fluent;
[part='days-view-container'] + [part='days-view-container'] {
[part='navigation'],
igc-days-view {
padding-inline: rem(22px);
padding-inline: pad-inline(rem(22px));
}
}

[part='days-view-container']:last-of-type:not(:only-child) {
[part='navigation'],
igc-days-view {
padding-inline-end: rem(12px);
padding-inline-end: pad-inline(rem(12px));
}
}

[part='days-view-container']:first-of-type:not(:only-child) {
[part='navigation'],
igc-days-view {
padding-inline-end: rem(22px);
padding-inline-end: pad-inline(rem(22px));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,21 @@ $theme: $indigo;
[part='days-view-container'] + [part='days-view-container'] {
[part='navigation'],
igc-days-view {
padding-inline: rem(22px);
padding-inline: pad-inline(rem(22px));
}
}

[part='days-view-container']:last-of-type:not(:only-child) {
[part='navigation'],
igc-days-view {
padding-inline-end: rem(12px);
padding-inline-end: pad-inline(rem(12px));
}
}

[part='days-view-container']:first-of-type:not(:only-child) {
[part='navigation'],
igc-days-view {
padding-inline-end: rem(22px);
padding-inline-end: pad-inline(rem(22px));
}
}
}
Expand Down Expand Up @@ -84,7 +84,7 @@ $theme: $indigo;

[part~='navigation-button'] {
color: var-get($theme, 'navigation-color');
padding: rem(5px);
padding: pad(rem(5px));

&:hover {
color: var-get($theme, 'navigation-hover-color');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,21 @@ $theme: $material;
[part='days-view-container'] + [part='days-view-container'] {
[part='navigation'],
igc-days-view {
padding-inline: rem(22px);
padding-inline: pad-inline(rem(22px));
}
}

[part='days-view-container']:last-of-type:not(:only-child) {
[part='navigation'],
igc-days-view {
padding-inline-end: rem(12px);
padding-inline-end: pad-inline(rem(12px));
}
}

[part='days-view-container']:first-of-type:not(:only-child) {
[part='navigation'],
igc-days-view {
padding-inline-end: rem(22px);
padding-inline-end: pad-inline(rem(22px));
}
}
}
Expand All @@ -46,7 +46,7 @@ $theme: $material;
}

[part='header'] {
padding: rem(16px) rem(24px);
padding: pad-block(rem(16px)) pad-inline(rem(24px));
gap: rem(28px);
}

Expand All @@ -56,7 +56,7 @@ $theme: $material;
height: rem(56px);
color: var-get($theme, 'picker-foreground');
background: var-get($theme, 'picker-background');
padding: 0 rem(24px);
padding: 0 pad-inline(rem(24px));
}

[part='navigation-buttons'] {
Expand Down
4 changes: 2 additions & 2 deletions src/components/calendar/themes/year-month-view.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
display: flex;
flex-direction: column;
outline: none;
padding-block: rem(16px);
padding-block: pad-block(rem(16px));
padding-inline: pad-inline(rem(8px), rem(8px), rem(16px));
overflow: hidden;
box-sizing: border-box;
Expand Down Expand Up @@ -36,7 +36,7 @@
user-select: none;
max-width: rem(240px);
cursor: pointer;
padding: 0 rem(12px);
padding: 0 pad-inline(rem(12px));
margin: 0;
}

4 changes: 2 additions & 2 deletions src/components/card/themes/card.actions.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
flex-flow: column nowrap;
align-items: flex-end;
justify-content: space-between;
padding: rem(8px) rem(16px);
padding: pad-block(rem(8px)) pad-inline(rem(16px));
flex-basis: min-content;
}

Expand All @@ -17,7 +17,7 @@
::slotted(igc-icon-button:not(:first-of-type)),
::slotted(igc-button:not(:first-of-type)),
::slotted(igc-icon:not(:first-of-type)) {
margin-inline-start: rem(8px);
margin-inline-start: pad-inline(rem(8px));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/card/themes/card.content.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
display: block;
width: 100%;
overflow: auto;
padding: rem(16px);
padding: pad(rem(16px));
}

::slotted(*) {
Expand Down
4 changes: 2 additions & 2 deletions src/components/card/themes/card.header.base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
align-items: center;
align-content: flex-start;
width: 100%;
padding: rem(16px);
padding: pad(rem(16px));
box-sizing: border-box;
}

Expand Down Expand Up @@ -39,5 +39,5 @@ header {
::slotted([slot='thumbnail']) {
display: flex;
align-self: flex-start;
margin-inline-end: rem(16px);
margin-inline-end: pad-inline(rem(16px));
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use 'styles/utilities' as *;

:host {
padding: rem(16px);
padding: pad(rem(16px));
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use 'styles/utilities' as *;

:host {
padding: rem(16px);
padding: pad(rem(16px));

::slotted(igc-button),
::slotted(igc-icon-button) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ $theme: $bootstrap;

:host {
::slotted(igc-card-content:only-child) {
padding-block-end: rem(16px);
padding-block-end: pad-block(rem(16px));
}

::slotted(igc-card-content:last-child) {
padding-block-end: rem(16px);
padding-block-end: pad-block(rem(16px));
}
}

Loading