Skip to content

Commit

Permalink
Merge pull request #1 from raccoongang/lunyachek/RGOeX-26418/feat/cha…
Browse files Browse the repository at this point in the history
…nge-cookie-banner-styles-inclusion-v2

feat: [RGOeX-26418] Compile styles
  • Loading branch information
dyudyunov committed Mar 6, 2024
2 parents ea239c6 + 46626d7 commit 480073e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ and this project adheres to customized Semantic Versioning e.g.: `quince-rg.1`

[Unreleased]
************
Fixed:
======
* Correct the z-index, fonts and paddings of the cookie banner [RGOeX-26418]

Added:
=====
Expand Down
5 changes: 3 additions & 2 deletions build/_cookie-policy-banner.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
.edx-cookie-banner-wrapper {
background: #f2f8fd;
box-sizing: border-box;
z-index: 5;
/** Base Styles - start **/
text-align: left;
line-height: 1.5;
font-family: Arial, sans-serif;
font-family: "Open Sans", Arial, sans-serif !important;
font-size: 1rem;
font-weight: 400;
/** Base Styles - end **/ }
.edx-cookie-banner-wrapper .alert {
position: relative;
padding: 8px 20px; }
padding: 8px 20px !important; }
.edx-cookie-banner-wrapper .alert-dismissible .close {
position: absolute;
top: 0;
Expand Down
7 changes: 4 additions & 3 deletions build/_cookie-policy-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,27 @@ $cookie-banner-text-color: #4e4e4e !default;
$cookie-banner-cta-base: #19291F !default;
$cookie-banner-cta-hover: #075683 !default;

$font-family-sans-serif: Arial, sans-serif !default;
$font-family-sans-serif: "Open Sans", Arial, sans-serif;
$small-font-size: 14px;

.edx-cookie-banner-wrapper {
background: $cookie-banner-background-color;
box-sizing: border-box;
z-index: 5;

/** Base Styles - start **/
text-align: left;
line-height: 1.5;

font: {
family: $font-family-sans-serif;
family: $font-family-sans-serif !important;
size: 1rem;
weight: 400;
}

.alert {
position: relative;
padding: 8px 20px;
padding: 8px 20px !important;
}

.alert-dismissible {
Expand Down
6 changes: 3 additions & 3 deletions src/CookiePolicyBanner/_cookie-policy-banner.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $cookie-banner-text-color: #4e4e4e !default;
$cookie-banner-cta-base: #19291F !default;
$cookie-banner-cta-hover: #075683 !default;

$font-family-sans-serif: Arial, sans-serif !default;
$font-family-sans-serif: "Open Sans", Arial, sans-serif;
$small-font-size: 14px;

.edx-cookie-banner-wrapper {
Expand All @@ -19,14 +19,14 @@ $small-font-size: 14px;
line-height: 1.5;

font: {
family: $font-family-sans-serif;
family: $font-family-sans-serif !important;
size: 1rem;
weight: 400;
}

.alert {
position: relative;
padding: 8px 20px;
padding: 8px 20px !important;
}

.alert-dismissible {
Expand Down

0 comments on commit 480073e

Please sign in to comment.