Skip to content

Commit

Permalink
bring files/deps from the @upfluence/oss package to depreciate it
Browse files Browse the repository at this point in the history
  • Loading branch information
phndiaye committed Aug 2, 2022
1 parent d974bce commit 16562cf
Show file tree
Hide file tree
Showing 108 changed files with 5,437 additions and 23 deletions.
23 changes: 23 additions & 0 deletions app/styles/less/base/_all.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
@import '_buttons';
@import '_cards';
@import '_checkboxes';
@import '_datatables';
@import '_expanding-search';
@import '_icons';
@import '_images';
@import '_inputs';
@import '_inputs-range';
@import '_links';
@import '_loading';
@import '_navs';
@import '_notifications';
@import '_progress';
@import '_slider';
@import '_stats';
@import '_tables'; // TO_BE_DEPRECIATED
@import '_tags';
@import '_transitions';
@import '_toggle-switch';
@import '_floating-menu';
@import '_infinite-select';
@import '_badge';
106 changes: 106 additions & 0 deletions app/styles/less/base/_badge.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
.build-badge(@base) {
background-color: fade(@base, 10%);
border-color: @base;
color: @base;

i {
color: @base;
}

.upf-badge__text {
color: @base;
}
}

.build-plain-badge(@base) {
background-color: @base;
color: @upf-primary-white;

i {
color: @upf-primary-white;
}

.upf-badge__text {
color: @upf-primary-white;
}
}

.upf-badge {
.border;
.border-color-default;
background-color: @upf-primary-white;
color: @upf-primary-bright-purple;

display: flex;
align-items: center;
justify-content: center;
overflow: hidden;

img {
width: 100%;
height: 100%;
object-fit: cover;
}
}

.upf-badge__text {
color: @upf-primary-bright-purple;
font-weight: bold;
font-size: 14/@rem;
}

.upf-badge--shape-round {
border-radius: 50%;
}

.upf-badge--size-sm {
width: 24px;
height: 24px;
}

.upf-badge--size-md {
width: 36px;
height: 36px;

.upf-badge__text {
font-size: 18 / @rem;
}
}

.upf-badge--size-lg {
width: 48px;
height: 48px;

.upf-badge__text {
font-size: 18 / @rem;
}
}

.upf-badge--primary {
.build-badge(@upf-primary-bright-purple);
}
.upf-badge--alert {
.build-badge(@upf-feedback-alert);
}
.upf-badge--error {
.build-badge(@upf-feedback-error);
}
.upf-badge--success {
.build-badge(@upf-feedback-success);
}

.upf-badge--primary.upf-badge--plain {
.build-plain-badge(@upf-primary-bright-purple);
}

.upf-badge--alert.upf-badge--plain {
.build-plain-badge(@upf-feedback-alert);
}

.upf-badge--error.upf-badge--plain {
.build-plain-badge(@upf-feedback-error);
}

.upf-badge--success.upf-badge--plain {
.build-plain-badge(@upf-feedback-success);
}
Loading

0 comments on commit 16562cf

Please sign in to comment.