Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
tischsoic committed Apr 25, 2022
1 parent 74d2b39 commit 5fca97a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 26 deletions.
26 changes: 11 additions & 15 deletions src/bundle/Resources/public/scss/_tag-view-select.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@
font-size: $ibexa-text-font-size-small;
line-height: calculateRem(16px);
font-weight: normal;
border: calculateRem(1px) solid $ibexa-color-dark;
border-radius: calculateRem(12px);
background-color: $ibexa-color-light-400;
background-color: $ibexa-color-light-500;
margin-top: calculateRem(5px);
margin-bottom: calculateRem(5px);

Expand Down Expand Up @@ -85,17 +84,16 @@
}
}

$color-versions: 'primary' $ibexa-color-primary $ibexa-color-primary $ibexa-color-primary-200,
'secondary' $ibexa-color-dark $ibexa-color-dark $ibexa-color-light-400,
'info' $ibexa-color-info $ibexa-color-info $ibexa-color-info-200,
'danger' $ibexa-color-danger $ibexa-color-danger $ibexa-color-danger-200,
'success' $ibexa-color-success-600 $ibexa-color-success $ibexa-color-success-200,
'complementary' $ibexa-color-complementary-600 $ibexa-color-complementary $ibexa-color-complementary-200;
$color-versions: 'primary' $ibexa-color-primary $ibexa-color-primary-200,
'secondary' $ibexa-color-dark $ibexa-color-light-500,
'info' $ibexa-color-info $ibexa-color-info-200,
'danger' $ibexa-color-danger $ibexa-color-danger-200,
'success' $ibexa-color-success $ibexa-color-success-200,
'complementary' $ibexa-color-complementary $ibexa-color-complementary-200;

@mixin color-tags($color-text, $color-border, $color-background) {
@mixin colorful-tags($color-text, $color-background) {
.ibexa-tag-view-select {
&__selected-item-tag {
border-color: $color-border;
background-color: $color-background;

.ibexa-icon {
Expand All @@ -118,9 +116,9 @@
}
}

@each $name, $color-text, $color-border, $color-background in $color-versions {
@each $name, $color-text, $color-background in $color-versions {
&--#{$name} {
@include color-tags($color-text, $color-border, $color-background);
@include colorful-tags($color-text, $color-background);
}
}

Expand All @@ -132,8 +130,6 @@

&:disabled,
&[disabled] {
border-color: $ibexa-color-light;

@include color-tags($ibexa-color-dark-400, $ibexa-color-light, $ibexa-color-light-300);
@include colorful-tags($ibexa-color-dark-400, $ibexa-color-light-300);
}
}
18 changes: 8 additions & 10 deletions src/bundle/Resources/public/scss/_tag.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@
position: relative;
height: calculateRem(24px);
padding: calculateRem(4px) calculateRem(24px) calculateRem(4px) calculateRem(10px);
border: calculateRem(1px) solid $ibexa-color-dark;
border-radius: calculateRem(12px);
background-color: $ibexa-color-light-400;
background-color: $ibexa-color-light-500;

&__content {
font-size: $ibexa-text-font-size-small;
Expand Down Expand Up @@ -37,17 +36,16 @@
}
}

$color-versions: 'primary' $ibexa-color-primary $ibexa-color-primary $ibexa-color-primary-200,
'secondary' $ibexa-color-dark $ibexa-color-dark $ibexa-color-light-400,
'info' $ibexa-color-info $ibexa-color-info $ibexa-color-info-200,
'danger' $ibexa-color-danger $ibexa-color-danger $ibexa-color-danger-200,
'success' $ibexa-color-success-600 $ibexa-color-success $ibexa-color-success-200,
'complementary' $ibexa-color-complementary-600 $ibexa-color-complementary $ibexa-color-complementary-200;
$color-versions: 'primary' $ibexa-color-primary $ibexa-color-primary-200,
'secondary' $ibexa-color-dark $ibexa-color-light-500,
'info' $ibexa-color-info $ibexa-color-info-200,
'danger' $ibexa-color-danger $ibexa-color-danger-200,
'success' $ibexa-color-success $ibexa-color-success-200,
'complementary' $ibexa-color-complementary $ibexa-color-complementary-200;

@each $name, $color-text, $color-border, $color-background in $color-versions {
@each $name, $color-text, $color-background in $color-versions {
&--#{$name} {
color: $color-text;
border-color: $color-border;
background-color: $color-background;

.ibexa-tag {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<div class="ibexa-page-title__top">
<h1 class="ibexa-page-title__title">
{{ title }}
{% set tag = 'asdf' %}
{% if tag is defined %}
<div class="ibexa-badge">
{{ tag }}
Expand Down

0 comments on commit 5fca97a

Please sign in to comment.