Skip to content

Commit

Permalink
refactor: added new tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Aug 28, 2023
1 parent 3288ab4 commit 3ecfee6
Show file tree
Hide file tree
Showing 37 changed files with 179 additions and 258 deletions.
56 changes: 0 additions & 56 deletions src/Card/_variables.scss

This file was deleted.

8 changes: 3 additions & 5 deletions src/Card/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
@import "card-bootstrap";

$card-image-border-radius: .3125rem !default;

a .pgn__card,
a.pgn__card {
color: var(--pgn-color-gray-700);
Expand Down Expand Up @@ -295,8 +293,8 @@ a.pgn__card {
object-fit: cover;
max-height: inherit;
width: 100%;
border-top-left-radius: $card-image-border-radius;
border-top-right-radius: $card-image-border-radius;
border-top-left-radius: var(--pgn-size-card-image-border-radius);
border-top-right-radius: var(--pgn-size-card-image-border-radius);
display: none;

&.show {
Expand All @@ -315,7 +313,7 @@ a.pgn__card {
.pgn__card-image-cap {
height: 100%;
max-width: inherit;
border-radius: $card-image-border-radius 0 0 $card-image-border-radius;
border-radius: var(--pgn-size-card-image-border-radius) 0 0 var(--pgn-size-card-image-border-radius);
width: auto;
object-fit: cover;
}
Expand Down
1 change: 0 additions & 1 deletion src/ChipCarousel/_variables.scss

This file was deleted.

4 changes: 1 addition & 3 deletions src/ChipCarousel/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "variables";

.pgn__chip-carousel {
position: relative;

Expand All @@ -19,7 +17,7 @@
.pgn__chip-carousel__left-control {
position: absolute;
z-index: 2;
top: $chip-carousel-controls-top-offset;
top: calc(var(--pgn-spacing-chip-carousel-controls-top-offset) * -1);
}

.pgn__chip-carousel__right-control {
Expand Down
2 changes: 0 additions & 2 deletions src/ColorPicker/_variables.scss

This file was deleted.

4 changes: 1 addition & 3 deletions src/ColorPicker/index.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@import "variables";

.pgn__color-picker {
box-shadow: 0 0 3px 1px var(--pgn-color-gray-300);
border: none;
Expand Down Expand Up @@ -28,7 +26,7 @@
.pgn__color-modal {
background: var(--pgn-color-white);
padding-bottom: .1rem;
margin-bottom: 1rem;
margin-bottom: var(--pgn-spacing-spacer-base);
}

.pgn__color-error {
Expand Down
26 changes: 13 additions & 13 deletions src/DataTable/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
display: flex;

.pgn__data-table__visible-actions {
margin-inline-start: map_get($spacers, 2);
margin-inline-start: var(--pgn-spacing-spacer-2);

.btn {
margin-inline-start: map_get($spacers, 2);
margin-inline-start: var(--pgn-spacing-spacer-2);

&:first-child {
margin-inline-start: 0;
Expand Down Expand Up @@ -55,7 +55,7 @@
width: 100%;
display: flex;
align-items: center;
margin-top: map_get($spacers, 4);
margin-top: var(--pgn-spacing-spacer-4);
}

.pgn__icon-button-toggle__container {
Expand Down Expand Up @@ -95,18 +95,18 @@
border-radius: var(--pgn-size-border-radius-base);
box-shadow: var(--pgn-elevation-data-table-box-shadow);
padding: var(--pgn-spacing-data-table-padding-small);
margin-right: map_get($spacers, 4);
margin-right: var(--pgn-spacing-spacer-4);
flex: 0 0 var(--pgn-size-data-table-layout-sidebar-width);
}

.pgn__data-table-side-filters {
.pgn__data-table-side-filters-title {
margin-bottom: map_get($spacers, 3);
margin-bottom: var(--pgn-spacing-spacer-3);
text-align: start;
}

.pgn__data-table-side-filters-status {
margin-bottom: map_get($spacers, 2);
margin-bottom: var(--pgn-spacing-spacer-2);
display: flex;
justify-content: flex-end;
}
Expand Down Expand Up @@ -167,7 +167,7 @@
}

.pgn__data-table-filters-breakout-filter {
margin-inline-end: map_get($spacers, 2);
margin-inline-end: var(--pgn-spacing-spacer-2);
}

.pgn__data-table-filters-dropdown-item {
Expand Down Expand Up @@ -252,12 +252,12 @@
padding: 0 var(--pgn-spacing-data-table-padding-x);

.pgn__data-table-card-view-default-skeleton-card-section {
margin-top: map_get($spacers, 2);
margin-top: var(--pgn-spacing-spacer-2);
}
}

.pgn__data-table__action-btn {
margin-left: map_get($spacers, 2);
margin-left: var(--pgn-spacing-spacer-2);

&:first-child {
margin-left: 0;
Expand All @@ -274,7 +274,7 @@

.pgn__data-table__overflow-actions-menu {
background: var(--pgn-color-white);
padding: map_get($spacers, 2);
padding: var(--pgn-spacing-spacer-2);
box-shadow: var(--pgn-elevation-box-shadow-level-1);
border-radius: 4px;
}
Expand All @@ -296,10 +296,10 @@

&.selection-right {
> :first-child {
margin-right: map_get($spacers, 2);
margin-right: var(--pgn-spacing-spacer-2);

[dir="rtl"] & {
margin-left: map_get($spacers, 2);
margin-left: var(--pgn-spacing-spacer-2);
margin-right: 0;
}
}
Expand All @@ -313,5 +313,5 @@
.pgn__data-table__controlled-select {
display: flex;
align-content: center;
padding: map_get($spacers, 1);
padding: var(--pgn-spacing-spacer-1);
}
4 changes: 2 additions & 2 deletions src/Dropzone/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

.pgn__dropzone-generic-alert {
width: 100%;
margin-bottom: map_get($spacers, 4);
margin-bottom: var(--pgn-spacing-spacer-4);

.pgn__alert-message-wrapper .alert-message-content {
> span {
Expand All @@ -47,7 +47,7 @@
background: var(--pgn-color-light-300);
border-radius: 50%;
position: relative;
margin-bottom: map-get($spacers, 4);
margin-bottom: var(--pgn-spacing-spacer-4);
}

.pgn__dropzone__upload-icon {
Expand Down
1 change: 0 additions & 1 deletion src/Form/_index.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import "variables";
@import "bootstrap-forms";
@import "input-group";
@import "bootstrap-custom-forms";
Expand Down
2 changes: 0 additions & 2 deletions src/Form/_variables.scss

This file was deleted.

2 changes: 1 addition & 1 deletion src/Hyperlink/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
&__external-icon {
display: inline-block;
vertical-align: middle;
margin-inline-start: map_get($spacers, 2);
margin-inline-start: var(--pgn-spacing-spacer-2);
}
}
4 changes: 4 additions & 0 deletions src/IconButton/_mixins.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@mixin btn-icon-size($icon-size) {
width: $icon-size;
height: $icon-size;
}
5 changes: 1 addition & 4 deletions src/IconButton/index.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
@mixin btn-icon-size($icon-size) {
width: $icon-size;
height: $icon-size;
}
@import "mixins";

.btn-icon {
@include btn-icon-size(var(--pgn-size-icon-button-diameter-md));
Expand Down
2 changes: 1 addition & 1 deletion src/IconButtonToggle/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
display: flex;

.btn-icon + .btn-icon {
margin-inline-start: map_get($spacers, 1);
margin-inline-start: var(--pgn-spacing-spacer-1);
}
}
2 changes: 1 addition & 1 deletion src/Modal/_ModalDialog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@

.pgn__alert-modal__title_icon {
flex-shrink: 0;
margin-right: map-get($spacers, 2\.5);
margin-right: var(--pgn-spacing-spacer-2-5);
}
}
}
2 changes: 1 addition & 1 deletion src/Nav/_mixins.scss
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
right: calc(#{$distance} * -1);
bottom: calc(#{$distance} * -1);
left: calc(#{$distance} * -1);
border: solid var(--pgn-size-nav-tabs-border-width) $border-color;
border: solid var(--pgn-size-nav-tabs-border-width) $tabs-border-color;
border-radius: $radius;
}
}
59 changes: 0 additions & 59 deletions src/Nav/_variables.scss

This file was deleted.

Loading

0 comments on commit 3ecfee6

Please sign in to comment.