Skip to content

Commit 5ae799a

Browse files
committed
#256 update styles, remove sale selector
1 parent 06b7849 commit 5ae799a

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

src/atoms/badge/Badge.scss

+17-15
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,30 @@
11
@import '../../../assets/styles/_globals.scss';
22

3-
$badge__padding : $spacer 12px !default;
4-
$badge__background : $bg-color-base !default;
5-
$badge__border-radius : $border-radius !default;
6-
$badge__font-size : $font-size-small !default;
7-
$badge__font-family : $font-family-base !default;
8-
$badge__font-weight : $font-weight-bold !default;
9-
$badge__text-transform : uppercase !default;
10-
$badge__color : $font-color-base !default;
11-
$badge__color--new : $white !default;
12-
$badge__background--new : $color-secondary !default;
13-
$badge__background--sale: $color-primary !default;
3+
$badge__margin : 0 0 $spacer !default;
4+
$badge__padding : 0 $spacer--medium !default;
5+
$badge__border-radius : $border-radius !default;
6+
$badge__font-family : $font-family-base !default;
7+
$badge__font-size : $font-size-small !default;
8+
$badge__font-weight : $font-weight-bold !default;
9+
$badge__text-transform : uppercase !default;
10+
$badge__line-height : 16px !default;
11+
$badge__color : $white !default;
12+
$badge__background : $bg-color-dark !default;
13+
$badge__color--new : $font-color-base !default;
14+
$badge__background--new: $white !default;
15+
$badge__justify-content: center !default;
16+
1417

1518
.a-badge {
1619
display: inline-flex;
20+
justify-content: $badge__justify-content;
21+
margin: $badge__margin;
1722
padding: $badge__padding;
1823
color: $badge__color;
1924
font-weight: $badge__font-weight;
2025
font-size: $badge__font-size;
2126
font-family: $badge__font-family;
27+
line-height: $badge__line-height;
2228
text-transform: $badge__text-transform;
2329
background: $badge__background;
2430
border-radius: $badge__border-radius;
@@ -27,8 +33,4 @@ $badge__background--sale: $color-primary !default;
2733
color: $badge__color--new;
2834
background: $badge__background--new;
2935
}
30-
31-
&--sale {
32-
background: $badge__background--sale;
33-
}
3436
}

src/atoms/badge/Badge.selectors.json

-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,5 @@
22
{
33
"name": ".a-badge--new",
44
"description": "Selector for applying styles for new badge"
5-
},
6-
{
7-
"name": ".a-badge--sale",
8-
"description": "Selector for applying styles for sale badge"
95
}
106
]

0 commit comments

Comments
 (0)