2014-11-13 14:27:45 +03:00
|
|
|
// ------------------------------------------------------------
|
2014-10-13 19:23:06 +04:00
|
|
|
// Settings Menu
|
2014-11-13 14:27:45 +03:00
|
|
|
//
|
|
|
|
// Styles for the settings menu component
|
|
|
|
//
|
|
|
|
// * Wrapper
|
|
|
|
// * Header
|
|
|
|
// * Content
|
|
|
|
// * Content Cover
|
|
|
|
// ------------------------------------------------------------
|
2014-10-13 19:23:06 +04:00
|
|
|
|
2014-11-13 14:27:45 +03:00
|
|
|
//
|
2014-10-13 19:23:06 +04:00
|
|
|
// Wrapper
|
2014-11-13 14:27:45 +03:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-10-13 19:23:06 +04:00
|
|
|
.settings-menu-container {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
2014-11-13 14:27:45 +03:00
|
|
|
background: $lightestgrey;
|
|
|
|
width: 100%;
|
|
|
|
max-width: 350px;
|
2014-10-13 19:23:06 +04:00
|
|
|
overflow: hidden;
|
2014-11-13 14:27:45 +03:00
|
|
|
|
2014-10-26 20:07:35 +03:00
|
|
|
transition: transform $settings-menu-transition cubic-bezier($settings-menu-bezier);
|
2014-10-13 19:23:06 +04:00
|
|
|
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);
|
|
|
|
}
|
2014-11-13 14:27:45 +03:00
|
|
|
|
2014-10-13 19:23:06 +04:00
|
|
|
.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) {
|
2014-10-26 20:07:35 +03:00
|
|
|
transition: transform $settings-menu-transition cubic-bezier($settings-menu-bezier);
|
2014-10-13 19:23:06 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.settings-menu-pane-out-left {
|
|
|
|
transform: translate3d(-100%, 0px, 0px);
|
|
|
|
}
|
2014-11-13 14:27:45 +03:00
|
|
|
|
2014-10-13 19:23:06 +04:00
|
|
|
&.settings-menu-pane-out-right {
|
|
|
|
transform: translate3d(100%, 0px, 0px);
|
|
|
|
}
|
2014-11-13 14:27:45 +03:00
|
|
|
|
2014-10-13 19:23:06 +04:00
|
|
|
&.settings-menu-pane-in {
|
|
|
|
transform: translate3d(0, 0px, 0px);
|
|
|
|
}
|
2014-11-13 14:27:45 +03:00
|
|
|
}//.settings-menu-pane
|
|
|
|
}//.settings-menu-container
|
2014-10-13 19:23:06 +04:00
|
|
|
|
2014-11-13 14:27:45 +03:00
|
|
|
//
|
2014-10-13 19:23:06 +04:00
|
|
|
// Header
|
2014-11-13 14:27:45 +03:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-10-13 19:23:06 +04:00
|
|
|
.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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2014-11-13 14:27:45 +03:00
|
|
|
//
|
2014-10-13 19:23:06 +04:00
|
|
|
// Content
|
2014-11-13 14:27:45 +03:00
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-10-13 19:23:06 +04:00
|
|
|
.settings-menu-content {
|
|
|
|
padding: 0 24px 24px;
|
|
|
|
|
|
|
|
.image-uploader {
|
|
|
|
padding-top: 35px;
|
|
|
|
padding-bottom: 35px;
|
|
|
|
margin: 0 0 1.6rem 0;
|
|
|
|
|
|
|
|
input {
|
|
|
|
width: auto;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
height: 108px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.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
|
2014-11-13 14:27:45 +03:00
|
|
|
// to listen for clicks to close the settings menu
|
2014-10-13 19:23:06 +04:00
|
|
|
|
|
|
|
body.settings-menu-expanded {
|
|
|
|
|
|
|
|
.content-cover {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
z-index: 600;
|
2014-10-26 20:07:35 +03:00
|
|
|
transition: transform $settings-menu-transition cubic-bezier($settings-menu-bezier);
|
2014-10-13 19:23:06 +04:00
|
|
|
transform: translate3d(-350px, 0px, 0px); // Not off the screen, to give a parallax effect
|
|
|
|
}//.editor-cover
|
|
|
|
|
|
|
|
}//body.settings-menu-expanded
|