Skip to content

Commit

Permalink
fix: align scss var names with css var names
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoward-eightfold committed Dec 15, 2022
1 parent cd8ef6e commit 9732bc7
Show file tree
Hide file tree
Showing 17 changed files with 57 additions and 57 deletions.
10 changes: 5 additions & 5 deletions src/components/Accordion/accordion.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
}

&.pill {
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
}

&.rectangle {
border-radius: $corner-radius-s;
border-radius: $border-radius-s;
}

.accordion-body-container {
Expand Down Expand Up @@ -120,13 +120,13 @@
&.focus-visible,
&:focus-visible {
border: 2px solid $focus-visible-shadow-color;
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
padding: calc(#{$space-l} - 2px);

&-expanded {
border-radius: 0;
border-top-left-radius: $corner-radius-xl;
border-top-right-radius: $corner-radius-xl;
border-top-left-radius: $border-radius-xl;
border-top-right-radius: $border-radius-xl;
}
}
}
Expand Down
16 changes: 8 additions & 8 deletions src/components/Button/button.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -611,12 +611,12 @@
&.split-left {
border-bottom-left-radius: 0;
border-top-left-radius: 0;
border-bottom-right-radius: $corner-radius-s;
border-top-right-radius: $corner-radius-s;
border-bottom-right-radius: $border-radius-s;
border-top-right-radius: $border-radius-s;

&.pill-shape {
border-bottom-right-radius: $corner-radius-xl;
border-top-right-radius: $corner-radius-xl;
border-bottom-right-radius: $border-radius-xl;
border-top-right-radius: $border-radius-xl;
}

.button-text-large {
Expand All @@ -642,14 +642,14 @@
}

&.split-right {
border-bottom-left-radius: $corner-radius-s;
border-top-left-radius: $corner-radius-s;
border-bottom-left-radius: $border-radius-s;
border-top-left-radius: $border-radius-s;
border-bottom-right-radius: 0;
border-top-right-radius: 0;

&.pill-shape {
border-bottom-left-radius: $corner-radius-xl;
border-top-left-radius: $corner-radius-xl;
border-bottom-left-radius: $border-radius-xl;
border-top-left-radius: $border-radius-xl;
}

.button-text-large {
Expand Down
2 changes: 1 addition & 1 deletion src/components/CheckBox/checkbox.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

.checkmark {
border: $space-xxxs solid var(--grey-color-70);
border-radius: $corner-radius-xs;
border-radius: $border-radius-xs;
height: $checkmark-medium-height;
width: $checkmark-medium-width;
min-height: $checkmark-medium-height;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
}

&-pill {
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
}

&-underline {
Expand Down
4 changes: 2 additions & 2 deletions src/components/DateTimePicker/Internal/ocpicker.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
display: inline-block;
vertical-align: top;
background: $picker-background-color;
border-radius: $corner-radius-m;
border-radius: $border-radius-m;
box-shadow: $picker-box-shadow;

&-focused {
Expand Down Expand Up @@ -1161,7 +1161,7 @@
height: $space-xxxs;
background: $picker-input-active-bar-color;
border: 1px solid transparent;
border-radius: $corner-radius-xs;
border-radius: $border-radius-xs;
opacity: 0;
transition: all $motion-duration-extra-fast;
pointer-events: none;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialog/BaseDialog/base-dialog.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $dialog-body-bottom-shadow: inset 0 -11px 8px -10px var(--grey-color-20);
position: absolute;
padding: $space-l 0;
background: var(--background-color);
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
box-shadow: $shadow-object-l;
opacity: 0;

Expand Down
2 changes: 1 addition & 1 deletion src/components/Dropdown/dropdown.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
background: var(--background-color);
padding: $space-xs;
box-shadow: $shadow-object-m;
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
font-family: $octuple-font-family;
transition: all $motion-duration-fast $motion-easing-easeout;
min-width: 200px;
Expand Down
8 changes: 4 additions & 4 deletions src/components/Inputs/input.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
@include text-overflow;
background-color: var(--background-color);
border: 1px solid var(--input-border-color);
border-radius: $corner-radius-m;
border-radius: $border-radius-m;
box-sizing: border-box;
color: var(--text-primary-color);
font-family: $octuple-font-family;
Expand Down Expand Up @@ -174,7 +174,7 @@

&.pill-shape {
border-color: var(--input-border-color);
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
padding: $space-xs $space-s;
}

Expand Down Expand Up @@ -999,7 +999,7 @@
.text-area {
background-color: var(--background-color);
border: 1px solid var(--input-border-color);
border-radius: $corner-radius-m;
border-radius: $border-radius-m;
box-sizing: border-box;
color: var(--text-primary-color);
font-family: $octuple-font-family;
Expand All @@ -1018,7 +1018,7 @@
}

&.pill-shape {
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
padding: $space-xs $space-s;
}

Expand Down
6 changes: 3 additions & 3 deletions src/components/Layout/layout.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
line-height: $layout-zero-trigger-height;
text-align: center;
background: var(--primary-color);
border-radius: 0 $corner-radius-xs $corner-radius-xs 0;
border-radius: 0 $border-radius-xs $border-radius-xs 0;
cursor: pointer;
padding: $space-xxs;
transition: background 0.3s ease;
Expand All @@ -153,12 +153,12 @@
}

&-left {
border-radius: 0 $corner-radius-xs $corner-radius-xs 0;
border-radius: 0 $border-radius-xs $border-radius-xs 0;
}

&-right {
left: -$layout-zero-trigger-width;
border-radius: $corner-radius-xs 0 0 $corner-radius-xs;
border-radius: $border-radius-xs 0 0 $border-radius-xs;
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/MenuItem/menuItem.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
display: flex;
align-items: center;
gap: $space-xs;
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
cursor: pointer;
font-weight: $text-font-weight-regular;
transition: all $motion-duration-extra-fast $motion-easing-easeinout 0s;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Pills/pills.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
--hover-bg: var(--blue-color-30);
--hover-label: var(--text-primary-color);
padding: $space-xxs $space-s;
border-radius: $corner-radius-m;
border-radius: $border-radius-m;
transition: all $motion-duration-extra-fast $motion-easing-easeinout 0s;
background: var(--bg);
color: var(--label);
Expand Down
10 changes: 5 additions & 5 deletions src/components/Skeleton/skeleton.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,26 @@ $skeleton-wave-background: linear-gradient(
}

&.pill {
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
}

&.button-small {
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
height: 28px;
}

&.button-medium {
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
height: 36px;
}

&.button-large {
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
height: 44px;
}

&.rounded {
border-radius: $corner-radius-m;
border-radius: $border-radius-m;
}

&.circular {
Expand Down
16 changes: 8 additions & 8 deletions src/components/Slider/slider.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ $small-marker-top: 0;
.slider-rail,
.slider-track,
.rail-marker-segments {
border-radius: $corner-radius-xs;
border-radius: $border-radius-xs;
cursor: pointer;
height: $medium-track-height;
left: 0;
Expand Down Expand Up @@ -161,7 +161,7 @@ $small-marker-top: 0;
.rail-marker-segment {
background-color: var(--slider-default-rail-color);
border: 1px solid var(--slider-default-rail-border-color);
border-radius: $corner-radius-xs;
border-radius: $border-radius-xs;
height: $medium-track-height;
position: absolute;
top: $medium-marker-top;
Expand Down Expand Up @@ -375,7 +375,7 @@ $small-marker-top: 0;
.slider-rail,
.slider-track,
.rail-marker-segments {
border-radius: $corner-radius-m;
border-radius: $border-radius-m;
height: $large-track-height;
top: $large-rail-top;
}
Expand All @@ -394,7 +394,7 @@ $small-marker-top: 0;
}

.rail-marker-segment {
border-radius: $corner-radius-m;
border-radius: $border-radius-m;
height: $large-track-height;
top: $large-marker-top;
}
Expand Down Expand Up @@ -512,7 +512,7 @@ $small-marker-top: 0;
.slider-rail,
.slider-track,
.rail-marker-segments {
border-radius: $corner-radius-xs;
border-radius: $border-radius-xs;
height: $medium-track-height;
top: $medium-rail-top;
}
Expand All @@ -531,7 +531,7 @@ $small-marker-top: 0;
}

.rail-marker-segment {
border-radius: $corner-radius-xs;
border-radius: $border-radius-xs;
height: $medium-track-height;
top: $medium-marker-top;
}
Expand Down Expand Up @@ -653,7 +653,7 @@ $small-marker-top: 0;
.slider-rail,
.slider-track,
.rail-marker-segments {
border-radius: $corner-radius-xs;
border-radius: $border-radius-xs;
height: $small-track-height;
top: $small-rail-top;
}
Expand All @@ -672,7 +672,7 @@ $small-marker-top: 0;
}

.rail-marker-segment {
border-radius: $corner-radius-xs;
border-radius: $border-radius-xs;
height: $small-track-height;
top: $small-marker-top;
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Tabs/tabs.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@
--tab-hover-label: var(--tab-pill-hover-label);
background-color: var(--tab-pill-background);
width: fit-content;
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
padding: calc(#{$space-xs} - #{$space-xxxs});

.tab {
padding: $button-padding-vertical-medium
$button-padding-horizontal-medium;
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;

&.active {
.badge {
Expand Down Expand Up @@ -224,7 +224,7 @@
align-items: center;
background: var(--bg);
border: var(--border-width) solid var(--bg);
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
display: flex;
padding: $space-ml $space-s;
width: fit-content;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tooltip/tooltip.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $tooltip-arrow-shadow: 1px 1px 2px rgba(15, 20, 31, 0.12);
text-align: center;
z-index: $z-index-400;
padding: $space-xs;
border-radius: $corner-radius-s;
border-radius: $border-radius-s;
overflow-wrap: break-word;

&.dark {
Expand Down
12 changes: 6 additions & 6 deletions src/components/Upload/upload.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ $upload-picture-card-size: 104px;
}

&-info {
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
height: 48px;
padding: $space-xs;
transition: background-color $motion-duration-extra-fast;
Expand Down Expand Up @@ -310,7 +310,7 @@ $upload-picture-card-size: 104px;
&-drop {
background: var(--background-color);
background-image: url("data:image/svg+xml,%3csvg width='100%25' height='100%25' xmlns='http://www.w3.org/2000/svg'%3e%3crect width='100%25' height='100%25' fill='none' rx='24' ry='24' stroke='%23bec2ca' stroke-width='1' stroke-dasharray='8' stroke-dashoffset='0' stroke-linecap='square'/%3e%3c/svg%3e");
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
cursor: pointer;
height: 188px;
position: relative;
Expand All @@ -328,7 +328,7 @@ $upload-picture-card-size: 104px;
}

&-container {
border-radius: $corner-radius-xl;
border-radius: $border-radius-xl;
margin: 0 auto;
padding: $space-xl;
position: relative;
Expand Down Expand Up @@ -426,7 +426,7 @@ $upload-picture-card-size: 104px;

.upload-list-item {
border: 1px solid var(--border-color);
border-radius: $corner-radius-m;
border-radius: $border-radius-m;
height: 100%;
margin: 0;
padding: $space-xs;
Expand All @@ -447,7 +447,7 @@ $upload-picture-card-size: 104px;
}

.upload-list-item-info {
border-radius: $corner-radius-m;
border-radius: $border-radius-m;
font-size: $text-font-size-2;
height: 100%;
overflow: hidden;
Expand Down Expand Up @@ -630,7 +630,7 @@ $upload-picture-card-size: 104px;
&-select-picture-card {
background-color: var(--background-color);
border: 1px solid var(--border-color);
border-radius: $corner-radius-m;
border-radius: $border-radius-m;
cursor: pointer;
height: $upload-picture-card-size;
margin-bottom: $space-xs;
Expand Down
Loading

0 comments on commit 9732bc7

Please sign in to comment.