Ghost/ghost/admin/app/styles/components/settings-menu.css

242 lines
4.9 KiB
CSS
Raw Normal View History

2015-05-14 16:45:37 +03:00
/* Settings Menu
/* ---------------------------------------------------------- */
/* Container
/* ---------------------------------------------------------- */
.settings-menu-container {
position: fixed;
top: 0;
right: 0;
bottom: 0;
z-index: 500;
width: 350px;
max-width: 100%;
overflow: hidden;
2017-02-21 12:16:32 +03:00
background: color(var(--lightgrey) l(+4%));
2015-05-14 16:45:37 +03:00
transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
transform: translate3d(350px, 0px, 0px);
}
.settings-menu-expanded .settings-menu-container {
2015-05-14 16:45:37 +03:00
transform: translate3d(0, 0px, 0px);
}
.settings-menu-container .settings-menu-pane {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
overflow: auto;
2015-05-16 14:43:12 +03:00
opacity: 1;
transform: translate3d(0, 0px, 0px);
-webkit-overflow-scrolling: touch;
2015-05-14 16:45:37 +03:00
}
@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;
2015-05-18 19:30:59 +03:00
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 24px;
2015-05-14 16:45:37 +03:00
}
.settings-menu-header h4 {
2015-05-16 14:43:12 +03:00
margin: 0;
2015-05-14 16:45:37 +03:00
font-size: 1.6rem;
line-height: 1.375;
2015-05-16 14:43:12 +03:00
font-weight: normal;
2015-05-14 16:45:37 +03:00
}
.settings-menu-header .close {
margin-right: -15px;
padding: 10px 15px;
2015-05-18 19:30:59 +03:00
font-size: 12px;
line-height: 12px;
2015-05-14 16:45:37 +03:00
}
.settings-menu-header .close svg {
width: 12px;
height: 12px;
fill: var(--darkgrey);
}
2015-05-14 16:45:37 +03:00
.settings-menu-header.subview h4 {
text-align: center;
}
.settings-menu-header.subview .back {
margin-left: -15px;
padding: 10px 15px;
line-height: 14px;
2015-05-14 16:45:37 +03:00
}
.settings-menu-header.subview .back svg {
width: 14px;
height: 14px;
}
2015-05-14 16:45:37 +03:00
.settings-menu-header.subview .back svg path {
fill: var(--darkgrey);
}
2015-05-14 16:45:37 +03:00
/* Content
/* ---------------------------------------------------------- */
.settings-menu-content {
padding: 0 24px 24px;
}
.settings-menu-content label code {
font-weight: normal;
}
.settings-menu-content .gh-image-uploader {
2015-05-16 14:43:12 +03:00
margin: 0 0 1.6rem 0;
2015-05-14 16:45:37 +03:00
}
.settings-menu-content .gh-image-uploader .description {
font-size: 1.4rem;
}
.settings-menu-content .gh-image-uploader form {
2015-05-14 16:45:37 +03:00
padding: 35px 45px;
}
.settings-menu-content .gh-image-uploader.-with-image {
width: auto;
min-height: 50px;
max-height: 250px;
margin-top: 0;
}
2015-05-14 16:45:37 +03:00
.settings-menu-content textarea {
height: 108px;
}
.settings-menu-content textarea.gh-input {
font-size: 1.5rem;
line-height: 1.3em;
}
.settings-menu-content .gh-cm-editor-textarea {
min-height: 170px;
}
2015-05-14 16:45:37 +03:00
.settings-menu-content .nav-list {
margin-top: 3rem;
}
.settings-menu-content .word-count {
font-weight: bold;
}
.ghost-url-preview {
width: 98%;
2015-05-14 16:45:37 +03:00
/* Preview never wider than input */
overflow: hidden;
text-overflow: ellipsis;
2015-05-16 14:43:12 +03:00
white-space: nowrap;
2015-05-14 16:45:37 +03:00
}
.settings-menu-delete-button {
padding-left: 0;
color: var(--red);
font-size: 1rem;
text-transform: uppercase;
}
.settings-menu-delete-button span {
padding: 0;
font-size: inherit;
}
.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(var(--red) lightness(-10%));
fill: color(var(--red) lightness(-10%));
color: color(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;
overflow: hidden !important;
margin-right: 0;
}
2015-05-14 16:45:37 +03:00
.settings-menu-content .for-radio .input-toggle-component,
.settings-menu-content .for-checkbox .input-toggle-component {
background: #fff;
}
2015-05-14 16:45:37 +03:00
/* Background
/* ---------------------------------------------------------- */
.settings-menu-expanded .content-cover,
.mobile-menu-expanded .content-cover {
2015-05-14 16:45:37 +03:00
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 900;
2015-05-14 16:45:37 +03:00
transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
/* Not off the screen, to give a parallax effect */
}
.settings-menu-expanded .content-cover {
transform: translate3d(-350px, 0px, 0px);
}
.mobile-menu-expanded .content-cover {
transform: translate3d(205px, 0px, 0px);
}