Skip to content

Commit

Permalink
feat(styles)!: use gap
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
- change padding, margins and gap for display flex
  • Loading branch information
dargmuesli committed Jan 29, 2023
1 parent 51bb5b9 commit 9be04f1
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions src/runtime/components/CookieControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@
v-text="localeStrings?.settingsUnsaved"
/>
<div class="cookieControl__ModalContent">
<div>
<div class="cookieControl__ModalContentInner">
<slot name="modal" />
<button
class="cookieControl__ModalClose"
@click="isModalActive = false"
v-text="localeStrings?.close"
/>
<div v-for="cookieType in CookieType" :key="cookieType">
<template v-for="cookieType in CookieType" :key="cookieType">
<template v-if="moduleOptions.cookies[cookieType].length">
<h3
v-text="
Expand Down Expand Up @@ -128,7 +128,7 @@
</li>
</ul>
</template>
</div>
</template>
<div class="cookieControl__ModalButtons">
<button
@click="
Expand Down
24 changes: 12 additions & 12 deletions src/runtime/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,6 @@
}
.cookieControl__Modal > div {
font-size: initial;
padding-top: 80px;
}
.cookieControl__Modal button {
color: var(--cookie-control-modalButtonColor);
Expand Down Expand Up @@ -203,7 +202,7 @@
}
.cookieControl__ModalContent h3 {
font-size: 24px;
margin: 50px 0 25px;
margin: 15px 0px;
}
.cookieControl__ModalContent h3:first-of-type {
margin-top: 0;
Expand Down Expand Up @@ -265,6 +264,11 @@
transform: translate3d(0, -50%, 0);
background-color: var(--cookie-control-checkboxInactiveCircleBackground);
}
.cookieControl__ModalContentInner {
display: flex;
flex-direction: column;
gap: 10px;
}
.cookieControl__ModalInputWrapper {
display: flex;
align-items: flex-start;
Expand All @@ -278,17 +282,15 @@
text-transform: none;
}
.cookieControl__ModalClose {
position: absolute;
align-self: flex-end;
top: 20px;
right: 20px;
}
.cookieControl__ModalButtons {
display: flex;
margin-top: 80px;
align-items: flex-start;
}
.cookieControl__ModalButtons button + button {
margin-left: 20px;
margin-top: 40px;
align-items: stretch;
gap: 20px;
}
.cookieControl__ModalUnsaved {
position: absolute;
Expand Down Expand Up @@ -335,7 +337,7 @@
bottom: 0;
max-width: none;
max-height: 100%;
padding: 80px 20px 20px;
padding: 20px;
}
.cookieControl__BarButtons {
width: 100%;
Expand All @@ -352,13 +354,11 @@
.cookieControl__BarContainer,
.cookieControl__ModalButtons {
flex-direction: column;
gap: 0;
}
.cookieControl__ModalButtons button {
width: 100%;
}
.cookieControl__ModalButtons button + button {
margin: 10px 0 0;
}
}
.cookieControl__ControlButton {
position: fixed;
Expand Down

0 comments on commit 9be04f1

Please sign in to comment.