mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
2243c12aca
closes https://github.com/TryGhost/Ghost/issues/8384 - fixes image uploads on settings/general by reverting to jQuery for triggering the file dialog because IE11 doesn't support `MouseEvent` events or have the `.closest` method on native DOM elements - gives all SVG elements an explicit `width` and `height` - if one property is set to `auto` or not specified IE11 will treat it as 100% of the container - fixes horizontal scroll + scrollbar on the main app viewport
203 lines
4.1 KiB
CSS
203 lines
4.1 KiB
CSS
/* Settings Menu
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
|
/* Container
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.settings-menu-container {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
z-index: 500;
|
|
overflow: hidden;
|
|
max-width: 100%;
|
|
width: 350px;
|
|
background: color(var(--lightgrey) l(+4%));
|
|
transition: transform 0.4s cubic-bezier(0.1, 0.7, 0.1, 1);
|
|
transform: translate3d(350px, 0px, 0px);
|
|
}
|
|
|
|
.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;
|
|
-webkit-overflow-scrolling: touch;
|
|
opacity: 1;
|
|
transform: translate3d(0, 0px, 0px);
|
|
}
|
|
|
|
@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.6rem;
|
|
line-height: 1.375;
|
|
font-weight: normal;
|
|
}
|
|
|
|
.settings-menu-header .close {
|
|
margin-right: -15px;
|
|
padding: 10px 15px;
|
|
font-size: 12px;
|
|
line-height: 12px;
|
|
}
|
|
|
|
.settings-menu-header .close svg {
|
|
height: 12px;
|
|
width: 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 {
|
|
height: 14px;
|
|
width: 14px;
|
|
}
|
|
|
|
.settings-menu-header.subview .back svg path {
|
|
fill: var(--darkgrey);
|
|
}
|
|
|
|
/* Content
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.settings-menu-content {
|
|
padding: 0 24px 24px;
|
|
}
|
|
|
|
.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 {
|
|
margin-top: 0;
|
|
min-height: 50px;
|
|
max-height: 250px;
|
|
width: auto;
|
|
}
|
|
|
|
.settings-menu-content textarea {
|
|
height: 108px;
|
|
}
|
|
|
|
.settings-menu-content .nav-list {
|
|
margin-top: 3rem;
|
|
}
|
|
|
|
.settings-menu-content .word-count {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.ghost-url-preview {
|
|
/* Preview never wider than input */
|
|
overflow: hidden;
|
|
width: 98%;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.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 {
|
|
fill: var(--red);
|
|
stroke: var(--red);
|
|
stroke-width: 1px;
|
|
}
|
|
|
|
.settings-menu-delete-button:hover,
|
|
.settings-menu-delete-button:hover svg path {
|
|
color: color(var(--red) lightness(-10%));
|
|
fill: color(var(--red) lightness(-10%));
|
|
stroke: color(var(--red) lightness(-10%));
|
|
}
|
|
|
|
|
|
/* Background
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.settings-menu-expanded .content-cover,
|
|
.mobile-menu-expanded .content-cover {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 900;
|
|
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);
|
|
}
|