From 1b97511f8887879d32bc2d394c8a3b8a55b27d36 Mon Sep 17 00:00:00 2001 From: arelia Date: Mon, 11 Sep 2017 14:47:25 -0500 Subject: [PATCH 1/3] style (buy box): add more common values to sticky-box mixin --- sass/directives/02_base_components/boxes/_boxes.scss | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sass/directives/02_base_components/boxes/_boxes.scss b/sass/directives/02_base_components/boxes/_boxes.scss index fa707e81..2a6f797b 100644 --- a/sass/directives/02_base_components/boxes/_boxes.scss +++ b/sass/directives/02_base_components/boxes/_boxes.scss @@ -5,13 +5,17 @@ box-shadow: $base-box-shadow; } -@mixin sticky-box($breakpoint: $small-screen-max) { +// Sticky Box - A component box that is fixed to one side of the viewport. Used for buy boxes and may be used for other calls to action +@mixin sticky-box($breakpoint: $small-screen-max, $side: right, $z-index: 1) { @include component-box; + @include container-edge-calc(right); box-shadow: $base-box-shadow; position: fixed; + z-index: $z-index; @media only screen and (max-width: $breakpoint) { - position: static; + position: static !important; // !importants overrride the sticky_box.js behavior on small screens + margin: auto !important; } p { From feaf29b98043c1202ac2ab1c7b68f388cd9b3658 Mon Sep 17 00:00:00 2001 From: arelia Date: Mon, 18 Sep 2017 13:23:15 -0500 Subject: [PATCH 2/3] bump: bump style-base 2.2.27-alpha.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index fc9c2cfa..e9e6ca0b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "employer-style-base", - "version": "2.2.27", + "version": "2.2.27-alpha.0", "author": "EmployerSiteContentProducts@cb.com", "license": "Apache-2.0", "description": "A stack-agnostic Sass library providing basic components and typography intended for the Employer experience", From 5dd1d5da2777f98ff82cc0a4d5527b32278aff59 Mon Sep 17 00:00:00 2001 From: arelia Date: Tue, 19 Sep 2017 14:22:35 -0500 Subject: [PATCH 3/3] bump: bump style base 2.2.28 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e9e6ca0b..d4b8e806 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "employer-style-base", - "version": "2.2.27-alpha.0", + "version": "2.2.28", "author": "EmployerSiteContentProducts@cb.com", "license": "Apache-2.0", "description": "A stack-agnostic Sass library providing basic components and typography intended for the Employer experience",