Skip to content

Commit

Permalink
fixing branding positioning on forceOverlay and DropUp
Browse files Browse the repository at this point in the history
  • Loading branch information
jekuer committed Aug 21, 2024
1 parent 0fc9fd0 commit 81af2db
Show file tree
Hide file tree
Showing 18 changed files with 58 additions and 17 deletions.
7 changes: 6 additions & 1 deletion assets/css/atcb-3d.css
Original file line number Diff line number Diff line change
Expand Up @@ -1424,6 +1424,7 @@ a.atcb-modal-btn:not([disabled]):hover {
filter: drop-shadow(0 0 3px rgba(255 255 255 / 80%));
height: auto;
padding: 8px 0;
text-align: center;
transform: translate3d(0, 0, 0);
width: 100%;
z-index: 15000000;
Expand All @@ -1440,6 +1441,10 @@ a.atcb-modal-btn:not([disabled]):hover {
position: absolute;
}

.atcb-modal-host-initialized #atcb-reference.atcb-dropup {
text-align: left;
}

/* :host-context(html.atcb-dark):host(.atcb-bodyScheme) #atcb-reference,
:host-context(body.atcb-dark):host(.atcb-bodyScheme) #atcb-reference, */
:host(.atcb-dark) #atcb-reference {
Expand All @@ -1453,7 +1458,7 @@ a.atcb-modal-btn:not([disabled]):hover {
width: 150px;
max-width: 100%;
margin: auto;
display: block;
display: inline-block;
text-decoration: none;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb-3d.min.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion assets/css/atcb-date.css
Original file line number Diff line number Diff line change
Expand Up @@ -1119,6 +1119,7 @@ a.atcb-modal-btn:not([disabled]):hover {
filter: drop-shadow(0 0 3px rgba(255 255 255 / 80%));
height: auto;
padding: 8px 0;
text-align: center;
transform: translate3d(0, 0, 0);
width: 100%;
z-index: 15000000;
Expand All @@ -1135,6 +1136,10 @@ a.atcb-modal-btn:not([disabled]):hover {
position: absolute;
}

.atcb-modal-host-initialized #atcb-reference.atcb-dropup {
text-align: left;
}

/* :host-context(html.atcb-dark):host(.atcb-bodyScheme) #atcb-reference,
:host-context(body.atcb-dark):host(.atcb-bodyScheme) #atcb-reference, */
:host(.atcb-dark) #atcb-reference {
Expand All @@ -1148,7 +1153,7 @@ a.atcb-modal-btn:not([disabled]):hover {
width: 150px;
max-width: 100%;
margin: auto;
display: block;
display: inline-block;
text-decoration: none;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb-date.min.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion assets/css/atcb-flat.css
Original file line number Diff line number Diff line change
Expand Up @@ -1349,6 +1349,7 @@ a.atcb-modal-btn:not([disabled]):hover {
filter: drop-shadow(0 0 3px rgba(255 255 255 / 80%));
height: auto;
padding: 8px 0;
text-align: center;
transform: translate3d(0, 0, 0);
width: 100%;
z-index: 15000000;
Expand All @@ -1365,6 +1366,10 @@ a.atcb-modal-btn:not([disabled]):hover {
position: absolute;
}

.atcb-modal-host-initialized #atcb-reference.atcb-dropup {
text-align: left;
}

/* :host-context(html.atcb-dark):host(.atcb-bodyScheme) #atcb-reference,
:host-context(body.atcb-dark):host(.atcb-bodyScheme) #atcb-reference, */
:host(.atcb-dark) #atcb-reference {
Expand All @@ -1378,7 +1383,7 @@ a.atcb-modal-btn:not([disabled]):hover {
width: 150px;
max-width: 100%;
margin: auto;
display: block;
display: inline-block;
text-decoration: none;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb-flat.min.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion assets/css/atcb-neumorphism.css
Original file line number Diff line number Diff line change
Expand Up @@ -1348,6 +1348,7 @@ a.atcb-modal-btn:not([disabled]):hover {
filter: drop-shadow(0 0 3px rgba(255 255 255 / 80%));
height: auto;
padding: 8px 0;
text-align: center;
transform: translate3d(0, 0, 0);
width: 100%;
z-index: 15000000;
Expand All @@ -1364,6 +1365,10 @@ a.atcb-modal-btn:not([disabled]):hover {
position: absolute;
}

.atcb-modal-host-initialized #atcb-reference.atcb-dropup {
text-align: left;
}

/* :host-context(html.atcb-dark):host(.atcb-bodyScheme) #atcb-reference,
:host-context(body.atcb-dark):host(.atcb-bodyScheme) #atcb-reference, */
:host(.atcb-dark) #atcb-reference {
Expand All @@ -1377,7 +1382,7 @@ a.atcb-modal-btn:not([disabled]):hover {
width: 150px;
max-width: 100%;
margin: auto;
display: block;
display: inline-block;
text-decoration: none;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb-neumorphism.min.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion assets/css/atcb-round.css
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,7 @@ a.atcb-modal-btn:not([disabled]):hover {
filter: drop-shadow(0 0 3px rgba(255 255 255 / 80%));
height: auto;
padding: 8px 0;
text-align: center;
transform: translate3d(0, 0, 0);
width: 100%;
z-index: 15000000;
Expand All @@ -1450,6 +1451,10 @@ a.atcb-modal-btn:not([disabled]):hover {
position: absolute;
}

.atcb-modal-host-initialized #atcb-reference.atcb-dropup {
text-align: left;
}

/* :host-context(html.atcb-dark):host(.atcb-bodyScheme) #atcb-reference,
:host-context(body.atcb-dark):host(.atcb-bodyScheme) #atcb-reference, */
:host(.atcb-dark) #atcb-reference {
Expand All @@ -1463,7 +1468,7 @@ a.atcb-modal-btn:not([disabled]):hover {
width: 150px;
max-width: 100%;
margin: auto;
display: block;
display: inline-block;
text-decoration: none;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb-round.min.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion assets/css/atcb-text.css
Original file line number Diff line number Diff line change
Expand Up @@ -1431,6 +1431,7 @@ a.atcb-modal-btn:not([disabled]):hover {
filter: drop-shadow(0 0 3px rgba(255 255 255 / 80%));
height: auto;
padding: 8px 0;
text-align: center;
transform: translate3d(0, 0, 0);
width: 100%;
z-index: 15000000;
Expand All @@ -1447,6 +1448,10 @@ a.atcb-modal-btn:not([disabled]):hover {
position: absolute;
}

.atcb-modal-host-initialized #atcb-reference.atcb-dropup {
text-align: left;
}

/* :host-context(html.atcb-dark):host(.atcb-bodyScheme) #atcb-reference,
:host-context(body.atcb-dark):host(.atcb-bodyScheme) #atcb-reference, */
:host(.atcb-dark) #atcb-reference {
Expand All @@ -1460,7 +1465,7 @@ a.atcb-modal-btn:not([disabled]):hover {
width: 150px;
max-width: 100%;
margin: auto;
display: block;
display: inline-block;
text-decoration: none;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb-text.min.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion assets/css/atcb.css
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,7 @@ a.atcb-modal-btn:not([disabled]):hover {
filter: drop-shadow(0 0 3px rgba(255 255 255 / 80%));
height: auto;
padding: 8px 0;
text-align: center;
transform: translate3d(0, 0, 0);
width: 100%;
z-index: 15000000;
Expand All @@ -1385,6 +1386,10 @@ a.atcb-modal-btn:not([disabled]):hover {
position: absolute;
}

.atcb-modal-host-initialized #atcb-reference.atcb-dropup {
text-align: left;
}

/* :host-context(html.atcb-dark):host(.atcb-bodyScheme) #atcb-reference,
:host-context(body.atcb-dark):host(.atcb-bodyScheme) #atcb-reference, */
:host(.atcb-dark) #atcb-reference {
Expand All @@ -1398,7 +1403,7 @@ a.atcb-modal-btn:not([disabled]):hover {
width: 150px;
max-width: 100%;
margin: auto;
display: block;
display: inline-block;
text-decoration: none;
}

Expand Down
2 changes: 1 addition & 1 deletion assets/css/atcb.min.css

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion demo/public/atcb.css
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,7 @@ a.atcb-modal-btn:not([disabled]):hover {
filter: drop-shadow(0 0 3px rgba(255 255 255 / 80%));
height: auto;
padding: 8px 0;
text-align: center;
transform: translate3d(0, 0, 0);
width: 100%;
z-index: 15000000;
Expand All @@ -1385,6 +1386,10 @@ a.atcb-modal-btn:not([disabled]):hover {
position: absolute;
}

.atcb-modal-host-initialized #atcb-reference.atcb-dropup {
text-align: left;
}

/* :host-context(html.atcb-dark):host(.atcb-bodyScheme) #atcb-reference,
:host-context(body.atcb-dark):host(.atcb-bodyScheme) #atcb-reference, */
:host(.atcb-dark) #atcb-reference {
Expand All @@ -1398,7 +1403,7 @@ a.atcb-modal-btn:not([disabled]):hover {
width: 150px;
max-width: 100%;
margin: auto;
display: block;
display: inline-block;
text-decoration: none;
}

Expand Down
2 changes: 1 addition & 1 deletion demo/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-require-imports */
/* eslint-disable no-undef */
/** @type {import('tailwindcss').Config} */
module.exports = {
Expand Down Expand Up @@ -67,7 +68,6 @@ module.exports = {
},
},
},
// eslint-disable @typescript-eslint/no-require-imports
// eslint-disable-next-line @typescript-eslint/no-var-requires
plugins: [require('@headlessui/tailwindcss')({ prefix: 'ui' })],
};
2 changes: 1 addition & 1 deletion src/atcb-generate-pro.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ async function atcb_generate_rsvp_form(host, data, hostEl, keyboardTrigger = fal
} else {
rsvpData.fields = rsvpData.fields.map((field) => {
if (field.name === 'email') {
return { ...field, required: true, type: 'email', default: attendee !== '' && attendee || field.default };
return { ...field, required: true, type: 'email', default: attendee !== '' ? attendee : field.default };
}
return field;
});
Expand Down
1 change: 1 addition & 0 deletions src/atcb-generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ function atcb_create_atcbl(host, atList = true, returnEl = false) {
atcbL.classList.add('fixed-ref');
}
}
if (returnEl) return null;
}

// FUNCTION TO CREATE MODALS
Expand Down

0 comments on commit 81af2db

Please sign in to comment.