Ghost/ghost/admin/app/styles/layouts/preview-email.css

219 lines
4.4 KiB
CSS
Raw Normal View History

/* TODO: remove .epm-modal once original modals.css is removed */
.epm-modal.fullscreen-modal-email-preview {
margin: 24px;
2019-11-06 11:58:01 +03:00
max-width: 100%;
}
.fullscreen-modal-email-preview .modal-content {
position: relative;
2019-11-06 11:58:01 +03:00
height: 100%;
padding: 0;
2019-11-06 11:58:01 +03:00
}
.fullscreen-modal-email-preview .modal-body {
margin: 0;
2019-11-05 08:21:29 +03:00
}
.gh-pe-header {
position: sticky;
top: 0;
left: 0;
right: 0;
min-height: 70px;
2019-11-05 08:21:29 +03:00
display: flex;
align-items: center;
justify-content: center;
margin: 0;
padding: 18px 32px;
2019-11-05 08:21:29 +03:00
border-top-left-radius: 6px;
border-top-right-radius: 6px;
overflow: hidden;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
2019-11-06 08:07:43 +03:00
background: var(--white);
z-index: 9999;
2019-11-05 08:21:29 +03:00
}
2019-11-06 08:07:43 +03:00
.gh-pe-header h2 {
2019-11-07 07:09:47 +03:00
margin: 0;
margin-right: auto;
2021-02-22 23:14:16 +03:00
position: absolute;
left: 24px;
}
.gh-pe-header .gh-btn-group {
flex: 1;
2019-11-05 08:21:29 +03:00
}
2019-11-06 08:07:43 +03:00
.gh-pe-header-border {
2019-11-06 11:58:01 +03:00
border-bottom: 1px solid var(--whitegrey);
2019-11-06 08:07:43 +03:00
}
/* .gh-pe-close {
margin-left: auto;
flex: 1;
} */
2019-11-07 07:09:47 +03:00
.modal-content .gh-pe-close button {
2019-11-06 08:07:43 +03:00
stroke: var(--midgrey);
opacity: 0.6;
transition: all 0.2s ease-in-out;
2019-11-07 07:09:47 +03:00
top: 25px;
2019-11-06 08:07:43 +03:00
}
2019-11-07 07:09:47 +03:00
.gh-pe-close button:hover {
2019-11-06 08:07:43 +03:00
opacity: 1.0;
}
.gh-pe-btn-group button {
width: 100px;
}
.gh-pe-btn-group button span {
border-radius: 0;
2019-11-06 08:07:43 +03:00
}
.gh-pe-btn-group button:first-of-type span {
border-right: none;
2019-11-05 08:21:29 +03:00
}
2019-11-06 08:07:43 +03:00
.gh-pe-btn-group button:last-of-type span {
border-left: none;
2019-11-06 08:36:39 +03:00
}
.fullscreen-modal-email-preview .gh-pe-desktop-container {
2021-02-22 23:14:16 +03:00
height: calc(100vh - 119px);
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
display: flex;
flex-direction: column;
align-items: center;
background: var(--whitegrey-l1);
padding: 30px 30px 45px;
2019-11-06 08:36:39 +03:00
}
.gh-pe-desktop-container .gh-pe-emailclient-mockup {
flex-grow: 1;
overflow: hidden;
max-width: 740px;
width: 100%;
padding: 0;
background: var(--white);
box-shadow:
0 0 0 1px rgba(0,0,0,0.02),
0 2.8px 2.2px rgba(0, 0, 0, 0.02),
0 6.7px 5.3px rgba(0, 0, 0, 0.028),
0 12.5px 10px rgba(0, 0, 0, 0.035),
0 22.3px 17.9px rgba(0, 0, 0, 0.042),
0 41.8px 33.4px rgba(0, 0, 0, 0.05),
0 100px 80px rgba(0, 0, 0, 0.07);
;
border-radius: 12px;
}
.gh-pe-desktop-container iframe {
border: none;
width: 100%;
height: calc(100% - 67px);
}
.gh-pe-emailclient-sender {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
height: 88px;
border-bottom: 1px solid var(--whitegrey);
margin: 0;
padding: 0 20px;
background: var(--whitegrey-l2);
}
.gh-pe-emailclient-sender p {
padding: 0;
margin: 0;
color: var(--midlightgrey);
line-height: 1.8em;
}
.gh-pe-emailclient-sender span {
color: var(--darkgrey);
}
.gh-pe-emailclient-sender span.strong {
font-weight: 600;
}
.fullscreen-modal-total-overlay .gh-pe-mobile-container {
display: flex;
flex-direction: column;
flex-grow: 1;
align-items: center;
background: var(--white);
padding: 8vmin 30px 30px;
2021-02-22 23:14:16 +03:00
height: calc(100vh - 119px);
border-bottom-left-radius: 5px;
border-bottom-right-radius: 5px;
2019-11-06 11:58:01 +03:00
}
2019-11-06 08:36:39 +03:00
.gh-pe-mobile-bezel {
width: 320px;
height: 657px;
2019-11-06 08:36:39 +03:00
border-radius: 40px;
display: flex;
background: var(--whitegrey-l2);
box-shadow:
0 0 0 1px rgba(0,0,0,0.02),
0 2.8px 2.2px rgba(0, 0, 0, 0.02),
0 6.7px 5.3px rgba(0, 0, 0, 0.028),
0 12.5px 10px rgba(0, 0, 0, 0.035),
0 22.3px 17.9px rgba(0, 0, 0, 0.042),
0 41.8px 33.4px rgba(0, 0, 0, 0.05),
0 100px 80px rgba(0, 0, 0, 0.07);
;
2019-11-06 08:36:39 +03:00
}
.gh-pe-mobile-screen {
width: 100%;
margin: 14px;
border: 1px solid var(--whitegrey-l1);
background: var(--white);
border-radius: 28px;
2019-11-06 08:36:39 +03:00
flex-grow: 1;
overflow: hidden;
}
2019-11-06 11:58:01 +03:00
.gh-pe-mobile-container .gh-pe-iframe {
2019-11-06 08:36:39 +03:00
padding: 0;
transform: scale(0.8);
transform-origin: 0 0;
overflow-x: hidden;
width: 361px;
height: 706px;
2019-11-07 07:09:47 +03:00
}
2019-11-07 13:14:01 +03:00
.gh-pe-mobile-container .gh-pe-iframe .left-col {
display: none;
}
.gh-pe-mobile-container .gh-pe-emailclient-sender {
height: 66px;
padding: 6px 12px 0;
}
.gh-pe-mobile-container .gh-pe-emailclient-sender p {
font-size: 1.1rem;
line-height: 1.6em;
}
2019-11-07 07:09:47 +03:00
@media (max-width: 850px) {
.gh-pe-header {
flex-direction: column;
}
2019-11-07 07:09:47 +03:00
.gh-pe-header h2 {
display: none
}
}