mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 22:02:11 +03:00
c45294717c
refs https://github.com/TryGhost/Team/issues/451 - Added mobile view to the post preview modal - Replaced tabs text with icons - Moved back button and added publish button - Changed copy-link design to be aligned with link preview in portal - Changed layout for social previews - Added images to the Twittr and Facebook previews - Added labels to the social previews - Changed styling for the "Preview post" button in editor
216 lines
4.3 KiB
CSS
216 lines
4.3 KiB
CSS
.fullscreen-modal-email-preview {
|
|
margin: 30px;
|
|
max-width: 100%;
|
|
}
|
|
|
|
.fullscreen-modal-email-preview .modal-content {
|
|
position: relative;
|
|
height: 100%;
|
|
padding: 0;
|
|
}
|
|
|
|
.fullscreen-modal-email-preview .modal-body {
|
|
margin: 0;
|
|
}
|
|
|
|
.gh-pe-header {
|
|
position: sticky;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
min-height: 70px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
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 {
|
|
margin: 0;
|
|
margin-right: auto;
|
|
flex: 1;
|
|
}
|
|
|
|
.gh-pe-header .gh-btn-group {
|
|
flex: 1;
|
|
}
|
|
|
|
.gh-pe-header-border {
|
|
border-bottom: 1px solid var(--whitegrey);
|
|
}
|
|
|
|
/* .gh-pe-close {
|
|
margin-left: auto;
|
|
flex: 1;
|
|
} */
|
|
|
|
.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);
|
|
border-radius: 0;
|
|
}
|
|
|
|
.gh-pe-btn-group button:first-of-type span {
|
|
border-right: none;
|
|
border-top-left-radius: 5px;
|
|
border-bottom-left-radius: 5px;
|
|
}
|
|
|
|
.gh-pe-btn-group button:last-of-type span {
|
|
border-left: none;
|
|
border-top-right-radius: 5px;
|
|
border-bottom-right-radius: 5px;
|
|
}
|
|
|
|
.fullscreen-modal-email-preview .gh-pe-desktop-container {
|
|
height: calc(100vh - 135px);
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background: var(--whitegrey-l1);
|
|
padding: 30px 30px 45px;
|
|
}
|
|
|
|
.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: 72px;
|
|
border-bottom: 1px solid var(--whitegrey);
|
|
margin: 0;
|
|
padding: 0 20px;
|
|
}
|
|
|
|
.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-email-preview .gh-pe-mobile-container {
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex-grow: 1;
|
|
align-items: center;
|
|
background: var(--whitegrey-l1);
|
|
padding: 30px 30px 45px;
|
|
}
|
|
|
|
.gh-pe-mobile-bezel {
|
|
width: 320px;
|
|
height: 657px;
|
|
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);
|
|
;
|
|
}
|
|
|
|
.gh-pe-mobile-screen {
|
|
width: 100%;
|
|
margin: 14px;
|
|
border: 1px solid var(--whitegrey-l1);
|
|
background: var(--white);
|
|
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: 361px;
|
|
height: 706px;
|
|
}
|
|
|
|
.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;
|
|
}
|
|
|
|
@media (max-width: 850px) {
|
|
.gh-pe-header {
|
|
flex-direction: column;
|
|
}
|
|
|
|
.gh-pe-header h2 {
|
|
display: none
|
|
}
|
|
}
|