update and add new sass variables to counter global font-size in project
This commit is contained in:
parent
e5f90fcbf0
commit
85cb4e07ed
4 changed files with 52 additions and 44 deletions
35
dist/browser/cookie-cn.css
vendored
35
dist/browser/cookie-cn.css
vendored
|
|
@ -58,7 +58,7 @@
|
|||
/* Accept/Deny btn settings */
|
||||
/* Cookies list settings */
|
||||
#cn-wrapper .cn-nav #cn-settings-banner, #cn-wrapper .cn-nav #cn-accept-banner, #cn-wrapper .cn-nav #cn-deny-banner, #cn-wrapper .cn-content .cn-modal-container .accept label,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label {
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal {
|
||||
display: flex;
|
||||
height: 3rem;
|
||||
flex-direction: column;
|
||||
|
|
@ -68,16 +68,16 @@
|
|||
background-color: #000;
|
||||
color: #b9b9b9;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 1rem;
|
||||
font-size: 16px;
|
||||
}
|
||||
#cn-wrapper .cn-nav #cn-settings-banner:hover, #cn-wrapper .cn-nav #cn-accept-banner:hover, #cn-wrapper .cn-nav #cn-deny-banner:hover, #cn-wrapper .cn-content .cn-modal-container .accept label:hover,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:hover, #cn-wrapper .cn-nav #cn-settings-banner:focus, #cn-wrapper .cn-nav #cn-accept-banner:focus, #cn-wrapper .cn-nav #cn-deny-banner:focus, #cn-wrapper .cn-content .cn-modal-container .accept label:focus,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus {
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:hover, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:hover, #cn-wrapper .cn-nav #cn-settings-banner:focus, #cn-wrapper .cn-nav #cn-accept-banner:focus, #cn-wrapper .cn-nav #cn-deny-banner:focus, #cn-wrapper .cn-content .cn-modal-container .accept label:focus,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:focus {
|
||||
background-color: #a0a0a0;
|
||||
color: #000;
|
||||
}
|
||||
#cn-wrapper .cn-nav #cn-settings-banner:focus, #cn-wrapper .cn-nav #cn-accept-banner:focus, #cn-wrapper .cn-nav #cn-deny-banner:focus, #cn-wrapper .cn-content .cn-modal-container .accept label:focus,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus {
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:focus {
|
||||
outline-color: #000;
|
||||
}
|
||||
|
||||
|
|
@ -187,11 +187,12 @@
|
|||
}
|
||||
@media (min-width: 535px) {
|
||||
#cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal {
|
||||
width: 3rem;
|
||||
height: 2rem;
|
||||
border-top-right-radius: 0.5rem;
|
||||
}
|
||||
}
|
||||
#cn-wrapper #cn-banner p:not(.cn-modal-title) {
|
||||
font-size: 16px;
|
||||
}
|
||||
#cn-wrapper #cn-banner > * {
|
||||
pointer-events: all;
|
||||
}
|
||||
|
|
@ -223,7 +224,7 @@
|
|||
flex-direction: column;
|
||||
color: #b9b9b9;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
}
|
||||
@media (min-width: 535px) {
|
||||
#cn-wrapper .cn-content .cn-banner-content {
|
||||
|
|
@ -247,7 +248,7 @@
|
|||
#cn-wrapper .cn-content .cn-banner-content .cn-banner-text .cn-banner-title {
|
||||
color: #dc9c52;
|
||||
font-family: "Satisfy", sans-serif;
|
||||
font-size: 25px;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
line-height: inherit;
|
||||
text-align: left;
|
||||
|
|
@ -259,7 +260,7 @@
|
|||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-title {
|
||||
color: #dc9c52;
|
||||
font-family: "Satisfy", sans-serif;
|
||||
font-size: 25px;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
@ -268,7 +269,7 @@
|
|||
color: #b9b9b9;
|
||||
color: #dc9c52;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-description {
|
||||
|
|
@ -277,7 +278,7 @@
|
|||
align-items: center;
|
||||
color: #b9b9b9;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
font-weight: normal;
|
||||
line-height: initial;
|
||||
}
|
||||
|
|
@ -308,16 +309,16 @@
|
|||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-wrapper span {
|
||||
color: #dc9c52;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-wrapper a {
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-wrapper label {
|
||||
color: #dc9c52;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-name {
|
||||
color: #dc9c52;
|
||||
|
|
@ -329,7 +330,7 @@
|
|||
flex-direction: column;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-infos span:first-of-type {
|
||||
font-size: 17.5px;
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-infos .cn-cookie-description {
|
||||
|
|
@ -349,7 +350,7 @@
|
|||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-buttons label {
|
||||
display: block;
|
||||
width: 100px;
|
||||
width: fit-content;
|
||||
padding: 6px 20px;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
|
|
|
|||
35
dist/umd/css/standard.css
vendored
35
dist/umd/css/standard.css
vendored
|
|
@ -58,7 +58,7 @@
|
|||
/* Accept/Deny btn settings */
|
||||
/* Cookies list settings */
|
||||
#cn-wrapper .cn-nav #cn-settings-banner, #cn-wrapper .cn-nav #cn-accept-banner, #cn-wrapper .cn-nav #cn-deny-banner, #cn-wrapper .cn-content .cn-modal-container .accept label,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label {
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal {
|
||||
display: flex;
|
||||
height: 3rem;
|
||||
flex-direction: column;
|
||||
|
|
@ -68,16 +68,16 @@
|
|||
background-color: #000;
|
||||
color: #b9b9b9;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 1rem;
|
||||
font-size: 16px;
|
||||
}
|
||||
#cn-wrapper .cn-nav #cn-settings-banner:hover, #cn-wrapper .cn-nav #cn-accept-banner:hover, #cn-wrapper .cn-nav #cn-deny-banner:hover, #cn-wrapper .cn-content .cn-modal-container .accept label:hover,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:hover, #cn-wrapper .cn-nav #cn-settings-banner:focus, #cn-wrapper .cn-nav #cn-accept-banner:focus, #cn-wrapper .cn-nav #cn-deny-banner:focus, #cn-wrapper .cn-content .cn-modal-container .accept label:focus,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus {
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:hover, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:hover, #cn-wrapper .cn-nav #cn-settings-banner:focus, #cn-wrapper .cn-nav #cn-accept-banner:focus, #cn-wrapper .cn-nav #cn-deny-banner:focus, #cn-wrapper .cn-content .cn-modal-container .accept label:focus,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:focus {
|
||||
background-color: #a0a0a0;
|
||||
color: #000;
|
||||
}
|
||||
#cn-wrapper .cn-nav #cn-settings-banner:focus, #cn-wrapper .cn-nav #cn-accept-banner:focus, #cn-wrapper .cn-nav #cn-deny-banner:focus, #cn-wrapper .cn-content .cn-modal-container .accept label:focus,
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus {
|
||||
#cn-wrapper .cn-content .cn-modal-container .deny label:focus, #cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal:focus {
|
||||
outline-color: #000;
|
||||
}
|
||||
|
||||
|
|
@ -187,11 +187,12 @@
|
|||
}
|
||||
@media (min-width: 535px) {
|
||||
#cn-wrapper #cn-banner .cn-modal-top-line #cn-close-modal {
|
||||
width: 3rem;
|
||||
height: 2rem;
|
||||
border-top-right-radius: 0.5rem;
|
||||
}
|
||||
}
|
||||
#cn-wrapper #cn-banner p:not(.cn-modal-title) {
|
||||
font-size: 16px;
|
||||
}
|
||||
#cn-wrapper #cn-banner > * {
|
||||
pointer-events: all;
|
||||
}
|
||||
|
|
@ -223,7 +224,7 @@
|
|||
flex-direction: column;
|
||||
color: #b9b9b9;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
}
|
||||
@media (min-width: 535px) {
|
||||
#cn-wrapper .cn-content .cn-banner-content {
|
||||
|
|
@ -247,7 +248,7 @@
|
|||
#cn-wrapper .cn-content .cn-banner-content .cn-banner-text .cn-banner-title {
|
||||
color: #dc9c52;
|
||||
font-family: "Satisfy", sans-serif;
|
||||
font-size: 25px;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
line-height: inherit;
|
||||
text-align: left;
|
||||
|
|
@ -259,7 +260,7 @@
|
|||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-title {
|
||||
color: #dc9c52;
|
||||
font-family: "Satisfy", sans-serif;
|
||||
font-size: 25px;
|
||||
font-size: 28px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
@ -268,7 +269,7 @@
|
|||
color: #b9b9b9;
|
||||
color: #dc9c52;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-description {
|
||||
|
|
@ -277,7 +278,7 @@
|
|||
align-items: center;
|
||||
color: #b9b9b9;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
font-weight: normal;
|
||||
line-height: initial;
|
||||
}
|
||||
|
|
@ -308,16 +309,16 @@
|
|||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-wrapper span {
|
||||
color: #dc9c52;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-wrapper a {
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-modal-wrapper label {
|
||||
color: #dc9c52;
|
||||
font-family: "Barlow", sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 16px;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-name {
|
||||
color: #dc9c52;
|
||||
|
|
@ -329,7 +330,7 @@
|
|||
flex-direction: column;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-infos span:first-of-type {
|
||||
font-size: 17.5px;
|
||||
font-size: 20px;
|
||||
font-weight: bold;
|
||||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-infos .cn-cookie-description {
|
||||
|
|
@ -349,7 +350,7 @@
|
|||
}
|
||||
#cn-wrapper .cn-content .cn-modal-container .cn-cookie-buttons label {
|
||||
display: block;
|
||||
width: 100px;
|
||||
width: fit-content;
|
||||
padding: 6px 20px;
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
|
|
|
|||
20
src/scss/themes/standard.scss
vendored
20
src/scss/themes/standard.scss
vendored
|
|
@ -54,7 +54,7 @@ $breakpoint-mobile: 535px;
|
|||
|
||||
%nav-button {
|
||||
display: flex;
|
||||
height: 3rem;
|
||||
height: $cn-button-height;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
|
@ -62,7 +62,7 @@ $breakpoint-mobile: 535px;
|
|||
background-color: text($cn-button-bg-color);
|
||||
color: $cn-button-bg-color;
|
||||
font-family: $ck-text-font;
|
||||
font-size: 1rem;
|
||||
font-size: $ck-w1-font-size-btn-txt;
|
||||
|
||||
&:hover,
|
||||
&:focus {
|
||||
|
|
@ -200,18 +200,22 @@ $breakpoint-mobile: 535px;
|
|||
align-self: end;
|
||||
|
||||
#cn-close-modal {
|
||||
@extend %nav-button;
|
||||
|
||||
width: 4rem;
|
||||
height: 3rem;
|
||||
border-bottom-left-radius: 0.5rem;
|
||||
|
||||
@media (min-width: $breakpoint-mobile) {
|
||||
width: 3rem;
|
||||
height: 2rem;
|
||||
border-top-right-radius: 0.5rem;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
p:not(.cn-modal-title) {
|
||||
font-size: $ck-w1-font-size-txt;
|
||||
}
|
||||
|
||||
// * allow child body scroll
|
||||
> * {
|
||||
pointer-events: all;
|
||||
|
|
@ -221,7 +225,7 @@ $breakpoint-mobile: 535px;
|
|||
right: $cn-cookie-animation-right;
|
||||
bottom: calc($cn-cookie-button-position-bottom + 60px);
|
||||
left: $cn-cookie-animation-left;
|
||||
width: 30rem;
|
||||
width: $cn-cookie-modal-width;
|
||||
height: fit-content;
|
||||
max-height: $cn-cookie-modal-max-height-desktop;
|
||||
border-radius: 0.5rem;
|
||||
|
|
@ -403,7 +407,7 @@ $breakpoint-mobile: 535px;
|
|||
|
||||
label {
|
||||
display: block;
|
||||
width: 100px;
|
||||
width: fit-content;
|
||||
padding: 6px 20px;
|
||||
color: $ck-color-txt;
|
||||
cursor: pointer;
|
||||
|
|
@ -472,7 +476,7 @@ $breakpoint-mobile: 535px;
|
|||
display: flex;
|
||||
overflow: hidden;
|
||||
width: 100%;
|
||||
height: 3rem * 2;
|
||||
height: $cn-button-height * 2;
|
||||
flex-shrink: 0;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
|
|
@ -501,7 +505,7 @@ $breakpoint-mobile: 535px;
|
|||
}
|
||||
|
||||
@media (min-width: $breakpoint-mobile) {
|
||||
height: 3rem;
|
||||
height: $cn-button-height;
|
||||
flex-wrap: initial;
|
||||
border-bottom-left-radius: 0.5rem;
|
||||
border-bottom-right-radius: 0.5rem;
|
||||
|
|
|
|||
6
src/scss/variables.scss
vendored
6
src/scss/variables.scss
vendored
|
|
@ -10,9 +10,9 @@ $ck-borders-color: #6d6d6d !default;
|
|||
$ck-shadow-color: 0 0.1rem 1rem rgb(0 0 0 / 35%) !default;
|
||||
$ck-title-font: "Satisfy", sans-serif !default;
|
||||
$ck-title-line-height: inherit !default;
|
||||
$ck-title-size: 25px !default;
|
||||
$ck-title-size: 28px !default;
|
||||
$ck-text-font: "Barlow", sans-serif !default;
|
||||
$ck-text-size: 14px !default;
|
||||
$ck-text-size: 16px !default;
|
||||
$ck-btn-background-color: #fff !default;
|
||||
$ck-accept-color: #218221 !default;
|
||||
$ck-deny-color: #992c2c !default;
|
||||
|
|
@ -49,7 +49,9 @@ $cn-button-bg-color: $ck-primary-color !default;
|
|||
$cn-button-font-family: $ck-text-font !default;
|
||||
$cn-button-font-size: 1rem !default;
|
||||
$cn-button-line-height: 1 !default;
|
||||
$cn-button-height: 3rem !default;
|
||||
|
||||
// Dimensions modal
|
||||
$cn-cookie-modal-max-height-mobile: 100vh;
|
||||
$cn-cookie-modal-max-height-desktop: 38rem;
|
||||
$cn-cookie-modal-width: 30rem !default;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue