mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
f90cb0c8de
No issue The style for the URL input when uploading images are a bit broken. This PR reduces the horizontal spacing in the settings menu uploader (to widen the input), corrects the button with black text in the editor uploader and makes sure all image upload inputs fill the container.
199 lines
3.9 KiB
SCSS
199 lines
3.9 KiB
SCSS
// ------------------------------------------------------------
|
|
// Settings Menu
|
|
//
|
|
// Styles for the settings menu component
|
|
//
|
|
// * Wrapper
|
|
// * Header
|
|
// * Content
|
|
// * Content Cover
|
|
// ------------------------------------------------------------
|
|
|
|
//
|
|
// Wrapper
|
|
// --------------------------------------------------
|
|
|
|
.settings-menu-container {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: $lightestgrey;
|
|
width: 100%;
|
|
max-width: 350px;
|
|
overflow: hidden;
|
|
|
|
transition: transform $settings-menu-transition cubic-bezier($settings-menu-bezier);
|
|
transform: translate3d(60px, 0px, 0px);
|
|
|
|
// This selector ends up being `body.settings-menu-expanded .settings-menu-container`
|
|
body.settings-menu-expanded & {
|
|
transform: translate3d(0, 0px, 0px);
|
|
}
|
|
|
|
.settings-menu-pane {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
transform: translate3d(0, 0px, 0px);
|
|
opacity: 1;
|
|
overflow: auto;
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
@media (min-width: 901px) {
|
|
transition: transform $settings-menu-transition cubic-bezier($settings-menu-bezier);
|
|
}
|
|
|
|
&.settings-menu-pane-out-left {
|
|
transform: translate3d(-100%, 0px, 0px);
|
|
}
|
|
|
|
&.settings-menu-pane-out-right {
|
|
transform: translate3d(100%, 0px, 0px);
|
|
}
|
|
|
|
&.settings-menu-pane-in {
|
|
transform: translate3d(0, 0px, 0px);
|
|
}
|
|
}//.settings-menu-pane
|
|
}//.settings-menu-container
|
|
|
|
//
|
|
// Header
|
|
// --------------------------------------------------
|
|
|
|
.settings-menu-header {
|
|
position: relative;
|
|
padding: 19px 24px;
|
|
|
|
h4 {
|
|
font-weight: normal;
|
|
font-size: 1.6rem;
|
|
line-height: 1.375;
|
|
margin: 0;
|
|
}
|
|
|
|
.close {
|
|
right: 0;
|
|
|
|
&:before {
|
|
right: 22px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.settings-menu-header.subview {
|
|
|
|
h4 {
|
|
text-align: center;
|
|
}
|
|
|
|
.back {
|
|
left: 0;
|
|
|
|
&:before {
|
|
left: 19px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.settings-menu-header-action {
|
|
position: absolute;
|
|
top: 0;
|
|
bottom: 7px;
|
|
width: 45px;
|
|
padding: 0;
|
|
|
|
&:before {
|
|
position: absolute;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
color: $midbrown;
|
|
font-size: 2rem;
|
|
}
|
|
|
|
&:hover {
|
|
|
|
&:before {
|
|
color: $midgrey;
|
|
}
|
|
}
|
|
}
|
|
|
|
//
|
|
// Content
|
|
// --------------------------------------------------
|
|
|
|
.settings-menu-content {
|
|
padding: 0 24px 24px;
|
|
|
|
.image-uploader {
|
|
padding-top: 35px;
|
|
padding-bottom: 35px;
|
|
margin: 0 0 1.6rem 0;
|
|
|
|
&.image-uploader-url {
|
|
padding: 35px 45px;
|
|
}
|
|
}
|
|
|
|
textarea {
|
|
height: 108px;
|
|
}
|
|
|
|
.tag-delete-button {
|
|
padding-left: 0;
|
|
color: $red;
|
|
|
|
&:before {
|
|
margin-right: 4px;
|
|
top: -1px;
|
|
position: relative;
|
|
}
|
|
|
|
&:hover {
|
|
&, &:before {
|
|
color: darken($red, 10%);
|
|
}
|
|
}
|
|
}
|
|
|
|
.nav-list {
|
|
margin-top: 3rem;
|
|
}
|
|
|
|
.pre-image-uploader {
|
|
width: auto;
|
|
min-height: 50px;
|
|
max-height: 250px;
|
|
margin-top: 0;
|
|
}
|
|
|
|
.word-count {
|
|
font-weight: bold;
|
|
}
|
|
}//.settings-menu-content
|
|
|
|
|
|
//
|
|
// Content Cover
|
|
// --------------------------------------------------
|
|
// A transparent div that goes over the content, used
|
|
// to listen for clicks to close the settings menu
|
|
|
|
body.settings-menu-expanded {
|
|
|
|
.content-cover {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
z-index: 600;
|
|
transition: transform $settings-menu-transition cubic-bezier($settings-menu-bezier);
|
|
transform: translate3d(-350px, 0px, 0px); // Not off the screen, to give a parallax effect
|
|
}//.editor-cover
|
|
|
|
}//body.settings-menu-expanded
|