Skip to content

Commit 4d309d0

Browse files
authored
Merge pull request #132 from cb-talent-development/topic/EM-1784-jobs-buy-box-value-plans
EM-1784: Jobs Buy Box Value Plans
2 parents d04e193 + c564a82 commit 4d309d0

File tree

9 files changed

+44
-2
lines changed

9 files changed

+44
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "employer-style-base",
3-
"version": "2.2.26",
3+
"version": "2.2.27",
44
"author": "EmployerSiteContentProducts@cb.com",
55
"license": "Apache-2.0",
66
"description": "A stack-agnostic Sass library providing basic components and typography intended for the Employer experience",

sass/_base.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
@import "directives/02_base_components/groups";
2424
@import "directives/02_base_components/headings/headings";
2525
@import "directives/02_base_components/pagination";
26+
@import "directives/02_base_components/price_per_time/price_per_time";
2627
@import "directives/02_base_components/modals";
2728
@import "directives/02_base_components/tabs";
2829
@import "directives/02_base_components/toggles";
@@ -66,6 +67,7 @@
6667
@import "selectors/media";
6768
@import "selectors/modals";
6869
@import "selectors/navigation";
70+
@import "selectors/price_per_time";
6971
@import "selectors/read_more";
7072
@import "selectors/speech_bubble";
7173
@import "selectors/tables";

sass/directives/02_base_components/boxes/_boxes.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@
1515
}
1616

1717
p {
18-
color: $text-color-grey;
1918
font-size: $font-size-small;
2019
}
2120
}
2221

22+
// Call to action box with gradient background and text
23+
@mixin cta-box($gradient: $cb) {
24+
border-radius: $minor-border-radius;
25+
padding: $base-spacing-medium;
26+
@include gradient(map-get($gradient, dark), map-get($gradient, medium), map-get($gradient, light));
27+
}
28+
2329
// Ecom Table Boxes
2430
@mixin ecom_table-item {
2531
border-bottom: $base-border;

sass/directives/02_base_components/boxes/boxes.hbs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
<h2>Component Box</h2>
22
<div class="component-box" style="width: 300px; height: 500px">A component box</div>
33

4+
<h2>CTA Box</h2>
5+
<div class="cta-box" style="width: 300px; height: 500px">A cta box</div>
6+
47
<h2>Item Bar List</h2>
58
<ul class="item-bar__list">
69
<li class="item-bar__list-item">List Item 1</li>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Styles a price per time, e.g. "$100/month"
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@mixin price-per-time {
2+
&--currency {
3+
font-size: 0.9375rem;
4+
vertical-align: super;
5+
}
6+
7+
&--amount {
8+
font-weight: $font-weight-regular;
9+
font-size: 1.875rem;
10+
}
11+
12+
&--time {
13+
font-weight: $font-weight-regular;
14+
font-size: $font-size-small;
15+
text-transform: lowercase;
16+
}
17+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<div class="price-per-time">
2+
<span class="price-per-time--amount">
3+
<span class="price-per-time--currency">$</span>299
4+
</span>
5+
<span class="price-per-time--time">/ month</span>
6+
</div>

sass/selectors/_boxes.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
@include sticky-box;
77
}
88

9+
.cta-box {
10+
@include cta-box;
11+
}
12+
913
.item-bar__list {
1014
@include item-bar__list;
1115
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.price-per-time {
2+
@include price-per-time;
3+
}

0 commit comments

Comments
 (0)