mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 00:11:49 +03:00
333 lines
7.2 KiB
CSS
333 lines
7.2 KiB
CSS
/* Settings Menu
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
|
/* Container
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.settings-menu-container {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 500;
|
|
width: 350px;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
background: var(--whitegrey-l2);
|
|
border-left: 1px solid var(--whitegrey);
|
|
transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
|
|
transform: translate3d(360px, 0px, 0px);
|
|
/* box-shadow: 0 0 1px rgba(99, 114, 130, 0.1), 1px 0 16px rgba(27, 39, 51, 0.08); */
|
|
}
|
|
|
|
.settings-menu-expanded .settings-menu-container {
|
|
transform: translate3d(0, 0px, 0px);
|
|
}
|
|
|
|
.settings-menu-container .settings-menu-pane {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
overflow: auto;
|
|
opacity: 1;
|
|
transform: translate3d(0, 0px, 0px);
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
@media (min-width: 901px) {
|
|
.settings-menu-container .settings-menu-pane {
|
|
transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
|
|
}
|
|
}
|
|
|
|
.settings-menu-container .settings-menu-pane.settings-menu-pane-out-left {
|
|
transform: translate3d(-100%, 0px, 0px);
|
|
}
|
|
|
|
.settings-menu-container .settings-menu-pane.settings-menu-pane-out-right {
|
|
transform: translate3d(100%, 0px, 0px);
|
|
}
|
|
|
|
.settings-menu-container .settings-menu-pane.settings-menu-pane-in {
|
|
transform: translate3d(0, 0px, 0px);
|
|
}
|
|
|
|
|
|
/* Header
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.settings-menu-header {
|
|
position: relative;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 15px 24px;
|
|
}
|
|
|
|
.settings-menu-header h4 {
|
|
margin: 0;
|
|
font-size: 1.75rem;
|
|
line-height: 1.375;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.settings-menu-header .close {
|
|
margin-right: -15px;
|
|
padding: 10px 15px;
|
|
font-size: 12px;
|
|
line-height: 12px;
|
|
}
|
|
|
|
.settings-menu-header .close svg {
|
|
width: 12px;
|
|
height: 12px;
|
|
fill: var(--darkgrey);
|
|
}
|
|
|
|
.settings-menu-header.subview h4 {
|
|
text-align: center;
|
|
}
|
|
|
|
.settings-menu-header.subview .back {
|
|
margin-left: -15px;
|
|
padding: 10px 15px;
|
|
line-height: 14px;
|
|
}
|
|
|
|
.settings-menu-header.subview .back svg {
|
|
width: 14px;
|
|
height: 14px;
|
|
}
|
|
|
|
.settings-menu-header.subview .back svg path {
|
|
fill: var(--darkgrey);
|
|
}
|
|
|
|
/* Content
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.settings-menu-container:not(.ember-power-select-multiple-trigger):not(.tag-settings) input:not([disabled]),
|
|
.settings-menu-container:not(.tag-settings) .gh-input:not([disabled]),
|
|
.settings-menu-pane .gh-date-time-picker-date,
|
|
.settings-menu-pane .gh-date-time-picker-time {
|
|
background: var(--white);
|
|
border: 1px solid color-mod(var(--lightgrey) l(-5%) s(-10%));
|
|
}
|
|
|
|
.settings-menu-container .ember-power-select-multiple-trigger input,
|
|
.settings-menu-pane .gh-date-time-picker-date input,
|
|
.settings-menu-pane .gh-date-time-picker-time input {
|
|
border: none !important;
|
|
}
|
|
|
|
.settings-menu-content {
|
|
padding: 0 24px 24px;
|
|
}
|
|
|
|
.settings-menu-content label code {
|
|
font-weight: normal;
|
|
}
|
|
|
|
.settings-menu-content .gh-image-uploader {
|
|
margin: 0 0 1.6rem 0;
|
|
}
|
|
|
|
.settings-menu-content .gh-image-uploader .description {
|
|
font-size: 1.4rem;
|
|
}
|
|
|
|
.settings-menu-content .gh-image-uploader form {
|
|
padding: 35px 45px;
|
|
}
|
|
|
|
.settings-menu-content .gh-image-uploader.-with-image {
|
|
width: auto;
|
|
min-height: 50px;
|
|
max-height: 250px;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.settings-menu-content textarea {
|
|
height: 108px;
|
|
}
|
|
|
|
.settings-menu-content textarea.gh-input {
|
|
font-size: 1.5rem;
|
|
line-height: 1.4em;
|
|
}
|
|
|
|
.settings-menu-content .gh-cm-editor-textarea {
|
|
min-height: 170px;
|
|
}
|
|
|
|
.settings-menu-content .nav-list {
|
|
margin-top: 3rem;
|
|
}
|
|
|
|
.settings-menu-content .word-count {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ghost-url-preview {
|
|
width: 98%;
|
|
/* Preview never wider than input */
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.settings-menu-delete-button {
|
|
background: transparent;
|
|
box-shadow: none;
|
|
color: var(--red);
|
|
border: none;
|
|
}
|
|
|
|
.settings-menu-delete-button:hover {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.settings-menu-delete-button span {
|
|
font-size: inherit;
|
|
padding: 6px 0;
|
|
}
|
|
|
|
.settings-menu-delete-button svg {
|
|
margin-bottom: 1px;
|
|
}
|
|
|
|
.settings-menu-delete-button svg path {
|
|
stroke: var(--red);
|
|
fill: var(--red);
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.settings-menu-delete-button:hover,
|
|
.settings-menu-delete-button:hover svg path {
|
|
stroke: color-mod(var(--red) lightness(-10%));
|
|
fill: color-mod(var(--red) lightness(-10%));
|
|
color: color-mod(var(--red) lightness(-10%));
|
|
}
|
|
|
|
.post-setting-custom-excerpt {
|
|
font-size: 1.5rem;
|
|
line-height: 1.35em;
|
|
}
|
|
|
|
.settings-menu-content .CodeMirror {
|
|
height: 170px;
|
|
min-height: 170px;
|
|
padding: 0;
|
|
}
|
|
|
|
.settings-menu-content .CodeMirror:hover {
|
|
cursor: text;
|
|
}
|
|
|
|
.settings-menu-content .CodeMirror-scroll {
|
|
min-height: 170px;
|
|
}
|
|
|
|
.settings-menu-content .for-radio .input-toggle-component,
|
|
.settings-menu-content .for-checkbox .input-toggle-component {
|
|
background: #fff;
|
|
}
|
|
|
|
/* .settings-menu-pane .ember-power-select-multiple-trigger {
|
|
border: var(--input-border);
|
|
background: var(--input-bg-color);
|
|
}
|
|
|
|
.settings-menu-pane .ember-power-select-trigger[aria-expanded=true] {
|
|
border-color: transparent;
|
|
background: color-mod(var(--input-bg-color) l(-3%));
|
|
} */
|
|
|
|
.settings-menu-pane .ember-power-select-dropdown {
|
|
border: none;
|
|
border-top: none;
|
|
margin: 0 1px;
|
|
width: calc(100% - 2px);
|
|
box-shadow: 0 0 0 1px rgba(99,114,130,0.16), 0 8px 16px rgba(27,39,51,0.08);
|
|
}
|
|
|
|
.settings-menu-pane .gh-date-time-picker-date,
|
|
.settings-menu-pane .gh-date-time-picker-time {
|
|
margin: 0;
|
|
}
|
|
|
|
.settings-menu-pane .gh-date-time-picker-date {
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.settings-menu-pane .gh-date-time-picker-time {
|
|
margin-left: 4px;
|
|
}
|
|
|
|
|
|
/* Background
|
|
/* ---------------------------------------------------------- */
|
|
@keyframes coverFadeIn {
|
|
0% {
|
|
opacity: 0;
|
|
}
|
|
100% {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
.settings-menu-expanded .content-cover,
|
|
.mobile-menu-expanded .content-cover {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 900;
|
|
opacity: 0;
|
|
transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
|
|
background: transparent;
|
|
/* Not off the screen, to give a parallax effect */
|
|
animation: coverFadeIn 0.3s ease 0.1s 1 forwards;
|
|
}
|
|
|
|
.settings-menu-expanded .content-cover {
|
|
transform: translate3d(-350px, 0px, 0px);
|
|
}
|
|
|
|
.mobile-menu-expanded .content-cover {
|
|
transform: translate3d(205px, 0px, 0px);
|
|
}
|
|
|
|
|
|
/* Badges
|
|
/* ---------------------------------------------------------- */
|
|
.gh-setting-title .gh-badge {
|
|
font-size: 13px;
|
|
}
|
|
|
|
/* Email
|
|
/* ---------------------------------------------------------- */
|
|
.settings-menu-email-button span {
|
|
padding: 4px 0;
|
|
line-height: 1em;
|
|
height: unset;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.settings-menu-mailgun-warning .gh-box-info {
|
|
border-left: var(--yellow);
|
|
}
|
|
|
|
.settings-menu-mailgun-warning a {
|
|
text-decoration: underline;
|
|
color: color-mod(var(--yellow) l(-8%) s(+10%));
|
|
}
|
|
|
|
.settings-menu-email .disabled button,
|
|
.settings-menu-email .disabled input {
|
|
opacity: 0.5;
|
|
} |