Skip to content

Commit

Permalink
Merge pull request #402 from ebs-integrator/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
devdfan authored Aug 2, 2022
2 parents a6ea9fa + 8bbbb58 commit a2bacad
Show file tree
Hide file tree
Showing 19 changed files with 33 additions and 33 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ import 'ebs-design/dist/styles/scrollbar.scss';

```scss
// Default base size & colors of scrollbar
$scrollbar-size: math.div($gutter-size, 2);
$scrollbar-size: calc($gutter-size / 2);
$scrollbar-track-background-color: $background-content;
$scrollbar-thumb-background-color: $border-color;
$scrollbar-thumb-hover-background-color: var(--primary-color);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ebs-design",
"version": "0.0.1-beta.128",
"version": "0.0.1-beta.129",
"description": "EBS Design System React UI elements.",
"author": "EBS Integrator <[email protected]> (https://ebs-integrator.com/)",
"maintainers": [
Expand Down
2 changes: 1 addition & 1 deletion src/components/ReadMe.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ import 'ebs-design/dist/styles/scrollbar.scss';

```scss
// Default base size & colors of scrollbar
$scrollbar-size: math.div($gutter-size, 2);
$scrollbar-size: calc($gutter-size / 2);
$scrollbar-track-background-color: $background-content;
$scrollbar-thumb-background-color: $border-color;
$scrollbar-thumb-hover-background-color: var(--primary-color);
Expand Down
4 changes: 2 additions & 2 deletions src/components/Variables.stories.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ $label-padding: 0 12px !default;
$label-color: $text-color !default;
$label-border: 1px solid !default;
$label-border-radius: $border-radius !default;
$label-circle-border-radius: math.div($label-height, 2) !default;
$label-circle-border-radius: calc($label-height / 2) !default;

// Sidebar
//
Expand Down Expand Up @@ -362,7 +362,7 @@ $sort-by-text-hover-color: $white !default;
// Scrollbar
//
// Define base size & colors of scrollbar
$scrollbar-size: math.div($gutter-size, 2) !default;
$scrollbar-size: calc($gutter-size / 2) !default;
$scrollbar-track-background-color: $background-content !default;
$scrollbar-thumb-background-color: $border-color !default;
$scrollbar-thumb-hover-background-color: $primary-color !default;
Expand Down
2 changes: 1 addition & 1 deletion src/components/atoms/Avatar/Avatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@

&-alt {
color: #333;
padding: rem(0 math.div($gutter-size, 2));
padding: rem(0 calc($gutter-size / 2));
border-top-right-radius: rem($border-radius);
border-bottom-right-radius: rem($border-radius);
font-size: rem(9px);
Expand Down
4 changes: 2 additions & 2 deletions src/components/atoms/Input/Input.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
}

&__wrapper:not(.has-prefix) &__prefix + &__container {
padding-left: rem($gutter-size + math.div($gutter-size, 2));
padding-left: rem($gutter-size + п($gutter-size, 2));
}

&__suffix {
Expand Down Expand Up @@ -138,7 +138,7 @@

.ebs-input__clear {
position: absolute;
right: rem(math.div($gutter-size, 2));
right: rem(calc($gutter-size, 2));
top: 50%;
color: $text-color;
transform: translate3d(0, -50%, 0);
Expand Down
2 changes: 1 addition & 1 deletion src/components/atoms/Label/Label.scss
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
height: rem($gutter-size);
float: left;
padding: 0;
margin-right: rem(math.div($gutter-size, 2));
margin-right: rem(calc($gutter-size / 2));
}

&--circle {
Expand Down
8 changes: 4 additions & 4 deletions src/components/atoms/Tooltip/Tooltip.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
}

&__trigger {
margin: rem(math.div(-$gutter-size, 2));
padding: rem(math.div($gutter-size, 2));
margin: rem(calc(-$gutter-size / 2));
padding: rem(calc($gutter-size / 2));
}

&__wrapper.ebs-tooltip--overtop {
Expand Down Expand Up @@ -59,12 +59,12 @@

&__wrapper[data-popper-placement*='top'],
&__wrapper[data-popper-placement*='bottom'] {
margin: rem(math.div(-$gutter-size, 4) - 1px 0);
margin: rem(calc(-$gutter-size / 4) - 1px 0);
}

&__wrapper[data-popper-placement*='left'],
&__wrapper[data-popper-placement*='right'] {
margin: rem(0 math.div(-$gutter-size, 4) - 1px);
margin: rem(0 calc(-$gutter-size / 4) - 1px);
}

&__wrapper[data-popper-placement*='top'] &__arrow {
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/InputPhone/InputPhone.scss
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
cursor: pointer;
top: 50%;
color: $text-color;
right: rem(math.div($gutter-size, 2));
right: rem(calc($gutter-size / 2));
font-size: rem(22px);
padding: rem(0 7px);
margin: rem(0 -7px);
Expand Down
10 changes: 5 additions & 5 deletions src/components/molecules/Loader/Loader.scss
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,18 @@
&--small {
border: 2px solid $grey-500;
border-top: 2px solid var(--primary-color);
width: rem(#{math.div($base-size, 2)});
height: rem(#{math.div($base-size, 2)});
top: calc(50% - #{math.div($base-size, 4)});
width: rem(#{calc($base-size / 2)});
height: rem(#{calc($base-size / 2)});
top: calc(50% - $base-size / 4);
}

&--middle {
border: 2px solid $grey-500;
border-top: 2px solid var(--primary-color);
width: rem(#{$base-size - $gutter-size});
height: rem(#{$base-size - $gutter-size});
top: calc(50% - #{math.div(($base-size - $gutter-size), 2)});
left: calc(50% - #{math.div(($base-size - $gutter-size), 2)});
top: calc(50% - ($base-size - $gutter-size) / 2);
left: calc(50% - ($base-size - $gutter-size) / 2);
}

&--regular {
Expand Down
2 changes: 1 addition & 1 deletion src/components/molecules/Notify/Notify.scss
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
&-close {
position: absolute;
right: 0;
top: rem(math.div($gutter-size, 4));
top: rem(calc($gutter-size / 4));
}

&--regular {
Expand Down
10 changes: 5 additions & 5 deletions src/components/molecules/Select/Select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@
@include hiddenScroll;
color: $text-color-secondary;
width: 100%;
margin-right: rem(math.div($gutter-size, 2));
margin-right: rem(calc($gutter-size / 2));
min-height: 1em;

.ebs-input__container {
z-index: 2;
padding-left: rem(math.div($gutter-size, 4));
padding-left: rem(calc($gutter-size / 4));
min-width: rem(80px);

.ebs-input__wrapper {
Expand Down Expand Up @@ -151,7 +151,7 @@

.ebs-label__suffix {
margin-top: rem(-1px);
right: rem(math.div($label-font-size, 2));
right: rem(calc($label-font-size / 2));
}
}

Expand All @@ -163,7 +163,7 @@
}

&-label:not(:last-child) {
margin-right: rem(math.div($label-font-size, 2));
margin-right: rem(calc($label-font-size / 2));
}

&__wrapper {
Expand Down Expand Up @@ -256,7 +256,7 @@
.ebs-select-value {
.ebs-avatar__inline {
&-alt {
margin-left: rem(math.div($gutter-size, 2));
margin-left: rem(calc($gutter-size / 2));
}

> .ebs-avatar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
overflow: hidden;

&--multiple &-item-text {
padding-right: rem($gutter-size + math.div($gutter-size, 2));
padding-right: rem($gutter-size + calc($gutter-size / 2));
}

& > &-search,
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/Actions/Actions.scss
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

&-item .loader-display {
display: inline-block;
margin-right: rem(math.div($gutter-size, 2));
margin-right: rem(calc($gutter-size / 2));
vertical-align: middle;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/Layout/Layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@

&--toggled .ebs-label {
@include text-ellipsis;
padding: rem(0 math.div($gutter-size, 3));
padding: rem(0 calc($gutter-size / 3));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/Modal/Modal.scss
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
background-color: $white;

&-container {
margin-right: rem($base-size + math.div($gutter-size, 2));
margin-right: rem($base-size + calc($gutter-size, 2));
}

&--close {
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/Sidebar/Sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
}

.ebs-sidebar__suffix .ebs-icon {
right: rem(math.div($gutter-size, 2));
right: rem(calc($gutter-size / 2));
}

.ebs-sidebar__options {
Expand Down
2 changes: 1 addition & 1 deletion src/components/organisms/Table/Table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
}

&-title {
padding: rem($gutter-size $gutter-size math.div($gutter-size, 2));
padding: rem($gutter-size $gutter-size calc($gutter-size / 2));
font-size: rem($table-body-font-size);
width: 100%;
}
Expand Down
4 changes: 2 additions & 2 deletions src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ $label-padding: 0 12px !default;
$label-color: $text-color !default;
$label-border: 1px solid !default;
$label-border-radius: $border-radius !default;
$label-circle-border-radius: math.div($label-height, 2) !default;
$label-circle-border-radius: calc($label-height / 2) !default;

// Sidebar
//
Expand Down Expand Up @@ -357,7 +357,7 @@ $sort-by-text-hover-color: $white !default;
// Scrollbar
//
// Define base size & colors of scrollbar
$scrollbar-size: math.div($gutter-size, 2) !default;
$scrollbar-size: calc($gutter-size / 2) !default;
$scrollbar-track-background-color: $background-content !default;
$scrollbar-thumb-background-color: $border-color !default;
$scrollbar-thumb-hover-background-color: var(--primary-color) !default;
Expand Down

0 comments on commit a2bacad

Please sign in to comment.