Skip to content

Commit

Permalink
refactor: use rem instead of em
Browse files Browse the repository at this point in the history
  • Loading branch information
orestbida committed Jan 20, 2024
1 parent 30b5d70 commit 4de4719
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/scss/core/components/_consent-modal.scss
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
@import "../global";

$sections-padding-y: 1em;
$sections-padding-x: 1.3em;
$footer-links-gap: 1.3em;
$sections-padding-y: 1rem;
$sections-padding-x: 1.3rem;
$footer-links-gap: 1.3rem;

#cc-main{

.cm{
opacity: 0;
position: fixed;
max-width: 24em;
max-width: 24rem;
display: flex;
flex-direction: column;
background: var(--cc-bg);
Expand Down Expand Up @@ -255,7 +255,7 @@ $footer-links-gap: 1.3em;

& + .cm__texts{
.cm__title {
padding-right: 2em;
padding-right: 3rem;
}
}
}
Expand Down Expand Up @@ -609,7 +609,7 @@ $footer-links-gap: 1.3em;

& + .cm__texts .cm__title {
padding-right: $sections-padding-x;
padding-left: 2em;
padding-left: 3rem!important;
}
}

Expand Down Expand Up @@ -656,7 +656,6 @@ $footer-links-gap: 1.3em;

@media screen and (max-width: 640px){
#cc-main {

--cc-modal-margin: .5em;

.cm{
Expand All @@ -673,8 +672,8 @@ $footer-links-gap: 1.3em;
.cm__desc,
.cm__btns,
.cm__links{
padding-left: 1.1em!important;
padding-right: 1.1em!important;
padding-left: 1.1rem!important;
padding-right: 1.1rem!important;
}

.cm__btns{
Expand Down

0 comments on commit 4de4719

Please sign in to comment.