Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Release] Stage to Main #2309

Merged
merged 21 commits into from
May 16, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
8c07aea
MWPW-147599: CaaS Bulk Publisher not working after MS authentication …
sanrai May 14, 2024
6cb99ae
Preflight Accessibility tab update (#2254)
rgclayton May 14, 2024
51b6bef
MWPW-146407: add new card style to caas configurator (#2279)
sheridansunier May 14, 2024
3576061
MWPW-141780 - Clean up Accordion block attributes (#2276)
elan-tbx May 14, 2024
7a613d0
MWPW-147158: adds support for footer divider at the collection level …
cmiqueo May 14, 2024
b617478
MWPW-147594: Consumers mappings for origin not being sent when using …
sanrai May 14, 2024
3b3fd6f
Stage automation, update the body after merging another PR in (#2289)
mokimo May 14, 2024
cbe2752
Remove label requirements & merge workflows (#2288)
mokimo May 14, 2024
2b0a26c
Quiz entry block (#2294)
colloyd May 14, 2024
481bbcb
MWPW-147472: auto adjust commerce iframe (#2251)
yesil May 15, 2024
7c47541
MWPW-141725 Graybox Block (#2282)
chrischrischris May 15, 2024
ed79630
MWPW-148253 Quiz Entry Coverage (#2305)
fullcolorcoder May 15, 2024
e14572a
Revert "MWPW-141725 Graybox Block (#2282)"
mokimo May 15, 2024
798fa24
Revert "MWPW-148253 Quiz Entry Coverage (#2305)"
mokimo May 15, 2024
4616262
Revert "Revert "MWPW-141725 Graybox Block (#2282)""
mokimo May 15, 2024
3d203d9
Merge branch 'main' into stage due to squashing
mokimo May 15, 2024
19d09b0
MWPW-148253 Quiz Entry Coverage (#2305)
fullcolorcoder May 15, 2024
4880fec
Merge main into stage to resolve history issues (#2310)
mokimo May 15, 2024
d7eeb8d
Merge main into stage (#2311)
mokimo May 15, 2024
9ce9b30
Revert "MWPW-147472: auto adjust commerce iframe" (#2312)
Blainegunn May 15, 2024
8417da3
OPT-26580 DC0994_US | Frictionless | Add sticky banner Upload CTA (#2…
ivanvatadobe May 16, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
284 changes: 284 additions & 0 deletions libs/blocks/graybox/graybox.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,284 @@
:root {
--gb-container-bg: white;
--gb-outline-color: #1473E6;
--gb-container-btn-bg: #505050;
--gb-overlay-color: rgba(0 0 0 / 45%);
--gb-modal-bg: #323232;
--gb-container-border: 4px solid var(--gb-outline-color);
--gb-page-outline-border: 8px solid var(--gb-outline-color);
--gb-toggle-arrow: 3px solid white;
}

.graybox {
display: none;
}

.gb-graybox-body {
position: relative;
}

.gb-graybox-body:not(.gb-no-border)::before {
content: '';
position: absolute;
top: calc(50% + 8px);
left: 50%;
transform: translate(-50%, -50%);
width: calc(100% - 15.5px);
height: 100%;
border: var(--gb-page-outline-border);
z-index: var(--above-all);
pointer-events: none;
}

.gb-graybox-body.gb-tablet-preview:not(.gb-no-border)::before,
.gb-graybox-body.gb-phone-preview:not(.gb-no-border)::before {
top: auto;
left: auto;
transform: none;
height: calc(100% - 15.5px);
position: fixed;
}

.gb-graybox-body .gb-no-click::before {
content: "";
height: 100%;
pointer-events: all;
position: absolute;
width: 100%;
z-index: var(--above-all);
}

.gb-no-change {
position: relative;
}

.gb-overlay {
position: relative;
}

.gb-graybox-body .gb-no-change::before,
.gb-graybox-body.gb-overlay::before {
background-color: var(--gb-overlay-color);
content: "";
display: block;
height: 100%;
left: 0;
pointer-events: none;
position: absolute;
top: 0;
width: 100%;
z-index: calc(var(--above-all) - 1);
}

body.gb-overlay::before {
position: fixed;
}

/* The elements that should appear above the overlay */
.gb-graybox-body .gb-changed {
position: relative;
z-index: var(--above-all);
}

.graybox-container {
position: fixed;
right: 0;
top: 15%;
z-index: calc(var(--above-all) + 1);
}

.graybox-container .gb-toggle {
background-color: var(--gb-outline-color);
border: var(--gb-container-border);
cursor: pointer;
height: 64px;
left: -40px;
position: absolute;
width: 40px;
}

.graybox-container .gb-toggle::before {
border-bottom: var(--gb-toggle-arrow);
border-left: var(--gb-toggle-arrow);
border-radius: 2px;
content: " ";
cursor: pointer;
display: block;
height: 8px;
margin-left: 8px;
scale: 85%;
transform: rotate(140deg) scaleX(-1);
transition: transform 0.2s ease-in-out, margin-left 0.2s ease-in-out;
width: 8px;
}

.graybox-container.open .gb-toggle::before {
margin-left: 3px;
transform: rotate(225deg) scaleX(1);
}

.graybox-container .graybox-menu {
background-color: var(--gb-container-bg);
border-radius: 3px;
border-top-right-radius: 0;
border: 0;
box-sizing: border-box;
display: grid;
grid-template-rows: 1fr 66px;
overflow: hidden;
position: absolute;
right: 39px;
width: 0;
}

.graybox-container .graybox-menu.hide-devices {
border-bottom-right-radius: 0;
grid-template-rows: 1fr 0;
}

.graybox-container.open .graybox-menu {
border: var(--gb-container-border);
min-height: 60px;
min-width: 320px;
}

.graybox-text {
color: #000;
font-size: 14px;
font-weight: normal;
line-height: 24px;
padding: 16px;
}

.graybox-text > p:first-child {
font-weight: bold;
font-size: 24px;
margin: 0;
}

.graybox-devices {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
justify-content: center;
align-content: center;
justify-items: center;
padding: 16px;
column-gap: 10px;
height: 34px;
border-top: var(--gb-container-border);
box-sizing: content-box;
}

.graybox-devices > a {
box-sizing: border-box;
width: 85px;
text-align: center;
color: var(--gb-container-btn-bg);
border-color: var(--gb-container-btn-bg);
cursor: default;
}

.graybox-devices > a:hover {
background-color: var(--gb-container-btn-bg);
text-decoration: none;
}

.dialog-modal.graybox-modal {
z-index: var(--above-all);
}

.dialog-modal.graybox-modal.mobile > div {
overflow-x: hidden;
border-radius: 88px;
}

.dialog-modal.graybox-modal.tablet > div {
overflow-x: hidden;
border-radius: 88px;
}

.dialog-modal.graybox-modal.mobile .graybox-device-border {
position: absolute;
pointer-events: none;
width: 418px;
height: 863px;
}

.dialog-modal.graybox-modal.tablet .graybox-device-border {
position: absolute;
pointer-events: none;
width: 859px;
height: 1205px;
}

.dialog-modal.graybox-modal.mobile {
width: 417px;
border-radius: 66px;
background: var(--gb-modal-bg);
overflow-y: hidden;
}

.dialog-modal.graybox-modal.tablet {
width: 858px;
border-radius: 66px;
background: var(--gb-modal-bg);
border-top-right-radius: 60px 78px;
border-bottom-right-radius: 51px 69px;
border-bottom-left-radius: 55px 84px;
overflow-y: hidden;
}

.dialog-modal.graybox-modal.mobile iframe {
width: 391px;
height: 852px;
padding-left: 16px;
margin-left: 4px;
}

.dialog-modal.graybox-modal.tablet iframe {
width: 808px;
height: 1194px;
padding-left: 26px;
margin-left: 6px;
margin-top: 62px;
margin-bottom: -62px;
}

.dialog-modal.graybox-modal button.dialog-close {
display: none;
}

.modal-curtain.graybox-curtain.is-open {
background: var(--gb-modal-bg);
z-index: calc(var(--above-all) - 1);
}

@media (max-height: 910px) {
body.gb-phone-preview::after {
content: "Expand window height to see full preview";
position: fixed;
right: 10px;
bottom: 2px;
padding: 10px;
background-color: #f0f0f0;
color: #000;
font-size: 16px;
z-index: var(--above-all);
border-radius: 5px;
}
}

@media (max-height: 1255px) {
body.gb-tablet-preview::after {
content: "Expand window height to see full preview";
position: fixed;
right: 10px;
bottom: 2px;
padding: 10px;
background-color: #f0f0f0;
color: #000;
font-size: 16px;
z-index: var(--above-all);
border-radius: 5px;
}
}
Loading
Loading