Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/components/accordion/_accordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@
transition: $durationQuick2 $easingLinear border-color;

&--no-gap {
border-radius: 0;
border-radius: var(--border-radius-none);
border-top: none;

&:first-child {
border-top: 2px solid $gray-20;
border-top-left-radius: $borderRadiusDefault;
border-top-right-radius: $borderRadiusDefault;
border-top-left-radius: var(--border-radius-xs);
border-top-right-radius: var(--border-radius-xs);
}

&:last-child {
border-bottom-left-radius: $borderRadiusDefault;
border-bottom-right-radius: $borderRadiusDefault;
border-bottom-left-radius: var(--border-radius-xs);
border-bottom-right-radius: var(--border-radius-xs);
}
}

Expand Down Expand Up @@ -66,7 +66,7 @@
width: 40px;
height: 40px;
content: '';
border-radius: 50%;
border-radius: var(--border-radius-pill);
transition: $durationQuick2 $easingLinear background-color,
$durationQuick2 $easingRegular transform;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/avatar/_avatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $includeHtml: false !default;

width: $avatarSmallSize;
height: $avatarSmallSize;
border-radius: 50%;
border-radius: var(--border-radius-pill);
// workaround for the Chrome bug - crbug.com/157218
-webkit-perspective: 1px;

Expand All @@ -42,7 +42,7 @@ $includeHtml: false !default;
&__wrapper-link {
@include applyFocus();

border-radius: 50%;
border-radius: var(--border-radius-pill);
display: block;
width: min-content;
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/box/_box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ $includeHtml: false !default;
}

@include makeResponsive($variant, 'sg-box--no-border-radius') {
border-radius: 0;
border-radius: var(--border-radius-none);
}

@include makeResponsive($variant, 'sg-box--border-radius') {
border-radius: $borderRadiusDefault;
border-radius: var(--border-radius-xs);
}

@include makeResponsive($variant, 'sg-box--border') {
Expand Down
2 changes: 1 addition & 1 deletion src/components/bubble/_bubble.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $includeHtml: false !default;
.sg-bubble {
background: $bubbleBackground;
border-color: $bubbleBackground;
border-radius: $borderRadiusDefault;
border-radius: var(--border-radius-xs);
box-shadow: $shadowMedium;
padding: gutter(0.5) gutter(1);
position: relative;
Expand Down
2 changes: 1 addition & 1 deletion src/components/buttons/UnstyledButton.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import UnstyledButtonA11y from './stories/UnstyledButton.a11y.mdx';
padding: 0 8px;
background-color: var(--yellow-40);
transform: translate3d(0, 50%, 0);
border-radius: 8px;
border-radius: var(--border-radius-xs);
color: var(--white);
font-weight: bold;
`;
Expand Down
4 changes: 2 additions & 2 deletions src/components/buttons/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,14 +110,14 @@ $largeButtonSize: componentSize(l);
}

&--s {
border-radius: 16px;
border-radius: var(--border-radius-m);
height: $smallButtonSize;
padding: 0 spacing(s);
font-size: 12px;
line-height: 12px;

.sg-button__hover-overlay {
border-radius: 16px;
border-radius: var(--border-radius-m);
}

// Proxima is broken
Expand Down
2 changes: 1 addition & 1 deletion src/components/buttons/_buttons_solid_round.scss
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $includeHtml: false !default;
justify-content: center;
width: $buttonRoundAddSize;
height: $buttonRoundAddSize;
border-radius: 50%;
border-radius: var(--border-radius-pill);
line-height: $buttonRoundAddSize;
text-align: center;
background-color: $buttonRoundColor;
Expand Down
2 changes: 1 addition & 1 deletion src/components/card/_card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $includeHtml: false !default;
display: inline-flex;
align-items: flex-start;
flex-wrap: wrap;
border-radius: $borderRadiusDefault;
border-radius: var(--border-radius-xs);
border: $cardBorderColor solid $cardBorderSize;
overflow: hidden;
background-color: $white;
Expand Down
4 changes: 2 additions & 2 deletions src/components/chip/_chip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
display: inline-flex;
position: relative;
background: var(--white);
border-radius: 8px;
border-radius: var(--border-radius-xs);
// transform: scale(10) translate(20px, 20px);

&__input {
Expand Down Expand Up @@ -92,7 +92,7 @@
border: 2px solid var(--chipBorderColor);
display: flex;
align-items: center;
border-radius: 8px;
border-radius: var(--border-radius-xs);
transition: box-shadow $durationQuick1 $easingExit,
border-color $durationModerate1 $easingLinear,
transform $durationModerate2 $easingRegular,
Expand Down
4 changes: 2 additions & 2 deletions src/components/counters/_counters.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ $counterSizeXS: componentSize(xs);

@if ($includeHtml) {
.sg-counter {
border-radius: $borderRadiusLarge;
border-radius: var(--border-radius-s);
padding: 0 spacing(xs);
min-width: $counterSizeXS;
min-height: $counterSizeXS;
Expand Down Expand Up @@ -132,7 +132,7 @@ $counterSizeXS: componentSize(xs);
&::before {
height: 12px;
width: 12px;
border-radius: 6px;
border-radius: var(--border-radius-xxs);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/dialog/_dialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,15 @@ $dialogMaxWidthMap: (

&--appearance-dialog {
background-color: $white;
border-radius: 24px 24px 0 0;
border-radius: var(--border-radius-l) var(--border-radius-l) 0 0;
box-shadow: $dialogBoxShadow;

@include sgResponsive(md) {
border-radius: $borderRadiusDefault;
border-radius: var(--border-radius-l);
}

&.sg-dialog__container--fullscreen {
border-radius: 0;
border-radius: var(--border-radius-none);
box-shadow: none;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/file-handler/_file-handler.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
display: inline-flex;
align-items: center;
height: componentSize(m);
border-radius: 6px;
border-radius: var(--border-radius-xxs);
padding: spacing(xs);
padding-right: 12px;
cursor: default;
Expand All @@ -19,7 +19,7 @@
& img {
width: 24px;
max-height: 24px;
border-radius: 4px;
border-radius: var(--border-radius-xxxs);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/form-elements/_select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ $includeHtml: false !default;
.sg-select__element {
height: $formElementSizeS;
font-size: $formElementSmallFontSize;
border-radius: $formElementSmallBorderRadius;
border-radius: var(--border-radius-m);
padding: 0 26px 0 (spacing(xs) + 6px);

&::-ms-expand {
Expand Down
2 changes: 1 addition & 1 deletion src/components/form-elements/_textarea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ $includeHtml: false !default;

&--simple {
border: none;
border-radius: 0;
border-radius: var(--border-radius-none);

&:focus {
box-shadow: none;
Expand Down
4 changes: 2 additions & 2 deletions src/components/form-elements/checkbox/_checkbox.scss
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,13 @@ $checkboxClickableArea: 32px;

&__icon-wrapper {
display: inline-flex;
border-radius: $borderRadiusSmall;
border-radius: var(--border-radius-xxxs);
}

&__icon {
width: $checkboxSize;
height: $checkboxSize;
border-radius: $borderRadiusSmall;
border-radius: var(--border-radius-xxxs);
border: 2px solid var(--checkboxColor);

animation-duration: $durationQuick1, $durationModerate1;
Expand Down
4 changes: 2 additions & 2 deletions src/components/form-elements/radio/_radio.scss
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ $radioCheckedBorderWidth: 5px;
margin: auto;
width: $radioSize;
height: $radioSize;
border-radius: 50%;
border-radius: var(--border-radius-pill);
box-shadow: 0px 0px 0px var(--radioBorderWidth) var(--radioRingColor) inset;
transition: box-shadow 0s;

Expand All @@ -159,7 +159,7 @@ $radioCheckedBorderWidth: 5px;
top: 0;
width: 100%;
height: 100%;
border-radius: 100%;
border-radius: var(--border-radius-pill);
}
}

Expand Down
8 changes: 4 additions & 4 deletions src/components/icon-as-button/_icon-as-button.scss
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ $includeHtml: false !default;
&--with-border {
.sg-icon-as-button__hole {
border: solid $iconAsButtonColor 1px;
border-radius: 50%;
border-radius: var(--border-radius-pill);
}
}

Expand Down Expand Up @@ -187,12 +187,12 @@ $includeHtml: false !default;

&--action {
transition: background 0.3s ease-out, color 0.3s ease-out;
border-radius: 50%;
border-radius: var(--border-radius-pill);
}

&--transparent {
transition: background 0.3s ease-out, color 0.3s ease-out;
border-radius: 50%;
border-radius: var(--border-radius-pill);

&:active {
background: $iconAsButtonTransparentColor;
Expand All @@ -208,7 +208,7 @@ $includeHtml: false !default;
&--action-active {
background: $iconAsButtonColor;
color: $iconAsButtonActionColor;
border-radius: 50%;
border-radius: var(--border-radius-pill);

&.sg-icon-as-button--adaptive {
color: inherit;
Expand Down
2 changes: 1 addition & 1 deletion src/components/labels/_labels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
justify-content: center;
align-items: center;
height: componentSize(xs);
border-radius: 6px;
border-radius: var(--border-radius-xxs);
padding: spacing(xs);
cursor: default;
max-width: 100%;
Expand Down
4 changes: 2 additions & 2 deletions src/components/layout/_layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ $includeHtml: false !default;

@include sgBreakpoint(medium-up) {
margin-top: $layoutContainerMarginTop + rhythm(1);
border-radius: $borderRadiusDefault;
border-radius: var(--border-radius-xs);
max-width: $layoutMediumContentMaxWidth;
}

Expand Down Expand Up @@ -114,7 +114,7 @@ $includeHtml: false !default;
&--full-page {
padding: 0;
margin: 0;
border-radius: 0;
border-radius: var(--border-radius-none);
width: 100%;
max-width: 100%;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/media/_media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ $mediaItemSecondaryColor: $gray-70;
padding: rhythm(math.div(1, 2));
line-height: rhythm(1);
min-height: rhythm(2.5);
border-radius: $borderRadiusSmall;
border-radius: var(--border-radius-xxxs);

&--no-padding {
padding: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/popup-menu/popup-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $includeHtml: false !default;
display: flex;
justify-content: space-around;
align-items: center;
border-radius: $borderRadiusDefault $borderRadiusDefault 0 0;
border-radius: var(--border-radius-xs) var(--border-radius-xs) 0 0;
box-shadow: $shadowMedium;

&::before {
Expand Down
4 changes: 2 additions & 2 deletions src/components/progress-bar/_progress-bar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

width: 100%;
min-width: 120px;
border-radius: 8px;
border-radius: var(--border-radius-xs);
background: var(--track-color);
position: relative;
overflow: hidden;

&--no-border-radius {
border-radius: 0;
border-radius: var(--border-radius-none);
}

&--invisible-track {
Expand Down
4 changes: 2 additions & 2 deletions src/components/select-menu/_select-menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
}

&__popup {
border-radius: 16px;
border-radius: var(--border-radius-m);
box-shadow: $shadowLarge !important;
overflow: hidden;
display: inline-flex;
Expand Down Expand Up @@ -271,7 +271,7 @@
flex-direction: row;
align-items: center;
justify-content: space-between;
border-radius: $borderRadiusDefault;
border-radius: var(--border-radius-xs);
cursor: default;
transition: background-color $durationModerate1 $easingLinear,
transform $durationModerate2 $easingRegular;
Expand Down
2 changes: 1 addition & 1 deletion src/components/spinner/_spinner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.sg-spinner {
background-color: transparent;
border: 3px solid $gray-70;
border-radius: 50%;
border-radius: var(--border-radius-pill);
border-top-color: transparent;
border-right-color: transparent;
display: inline-block;
Expand Down
2 changes: 1 addition & 1 deletion src/components/subject-icons/_subject-icon-box.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $subjectIconBoxBackground: $blue-30;
$subjectIconBoxDarkerBackground: $blue-40;

.sg-subject-icon-box {
border-radius: 50%;
border-radius: var(--border-radius-pill);
background-color: $subjectIconBoxBackground;
display: inline-block;
font-size: 0;
Expand Down
2 changes: 1 addition & 1 deletion src/components/toplayer/_toplayer.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ $includeHtml: false !default;
display: flex;
flex-direction: column;
overflow: visible;
border-radius: $borderRadiusDefault;
border-radius: var(--border-radius-xs);
width: 100%;
box-shadow: $shadowLarge;
background-color: $toplayerBackgroundColor;
Expand Down
Loading