Ghost/ghost/admin/app/styles/layouts/preview-email.css
Peter Zimon 97940742cf 🎨 Scaled email mobile preview
no issue.

- scaled email mobile preview to resemble mobile proportions better
2019-12-03 15:04:32 +01:00

131 lines
2.4 KiB
CSS

.fullscreen-modal-email-preview {
margin: 30px;
max-width: 100%;
}
.fullscreen-modal-email-preview .modal-content {
position: relative;
overflow: scroll;
height: 100%;
padding: 0;
}
.fullscreen-modal-email-preview .modal-body {
margin: 0;
}
.gh-pe-header {
position: sticky;
top: 0;
left: 0;
right: 0;
display: flex;
align-items: center;
justify-content: space-between;
margin: 0;
padding: 18px 32px;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
overflow: hidden;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
background: var(--white);
z-index: 9999;
}
.gh-pe-header h2 {
width: calc(50vw - 200px);
margin: 0;
}
.gh-pe-header-border {
border-bottom: 1px solid var(--whitegrey);
}
.gh-pe-close {
width: calc(50vw - 200px)
}
.modal-content .gh-pe-close button {
stroke: var(--midgrey);
opacity: 0.6;
transition: all 0.2s ease-in-out;
top: 25px;
}
.gh-pe-close button:hover {
opacity: 1.0;
}
.gh-pe-btn-group button {
width: 100px;
}
.gh-pe-btn-group button span {
border: 1px solid var(--whitegrey);
}
.gh-pe-btn-group button:first-of-type span {
border-right: none;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.gh-pe-btn-group button:last-of-type span {
border-left: none;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.fullscreen-modal-email-preview .gh-pe-mobile-container {
display: flex;
flex-direction: column;
align-items: center;
margin: 20px 0;
}
.fullscreen-modal-email-preview .gh-pe-desktop-container {
height: calc(100vh - 130px);
}
.gh-pe-mobile-bezel {
width: 320px;
height: 657px;
border: 1px solid var(--midgrey-l2);
border-radius: 40px;
display: flex;
}
.gh-pe-mobile-screen {
width: 100%;
margin: 12px;
border: 1px solid var(--midgrey-l2);
border-radius: 28px;
flex-grow: 1;
overflow: hidden;
}
.gh-pe-mobile-container .gh-pe-iframe {
padding: 0;
transform: scale(0.8);
transform-origin: 0 0;
overflow-x: hidden;
width: 365px;
height: 786px;
}
.gh-pe-mobile-container .gh-pe-iframe .left-col {
display: none;
}
@media (max-width: 850px) {
.gh-pe-header {
flex-direction: column;
}
.gh-pe-header h2 {
display: none
}
}