Skip to content

Commit

Permalink
🎨 Minor code style improvement in SCSS
Browse files Browse the repository at this point in the history
  • Loading branch information
stracker-phil committed Jan 24, 2025
1 parent 95bdf8b commit a43427c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

&--has-image-badge .ppcp-r-title-badge--info {
display: block;
margin: 6px 0px 0px 0px;
margin: 6px 0 0 0;
width: fit-content;
}

Expand All @@ -42,9 +42,9 @@
flex-direction: column;

.ppcp-r-badge-box__title-text:not(:empty) + .ppcp-r-badge-box__title-image-badge {
margin: 0px;
margin: 0;
img:first-of-type {
margin: 0px;
margin: 0;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
.ppcp-r-title-badge{
.ppcp-r-title-badge {
--badge-bg-color: #F5F5F5;
--badge-text-color: #2F2F2F;

color: var(--badge-text-color);
background-color: var(--badge-bg-color);

@include font(12, 16, 400);
padding: 4px 8px;
border-radius: 2px;
white-space: nowrap;
&--positive{
color: #144722;
background-color: #DAFFE0;

&.ppcp-r-title-badge--positive {
--badge-bg-color: #DAFFE0;
--badge-text-color: #144722;
}
&--negative{
color:#5c0000;
background-color: #faeded;
}
&--info{
color: #2F2F2F;
background-color: #F5F5F5;

&.ppcp-r-title-badge--negative {
--badge-bg-color: #faeded;
--badge-text-color: #5c0000;
}
}

0 comments on commit a43427c

Please sign in to comment.