0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/client/assets/sass/layouts/settings.scss

322 lines
8.7 KiB
SCSS
Raw Normal View History

2014-03-11 23:23:42 +00:00
//
// Settings
// --------------------------------------------------
2014-02-23 15:07:01 +01:00
.settings {
// The main white bg for the page
.wrapper {
background: #fff;
box-shadow: $shadow;
position: relative;
width: 100%;
height: 100%;
2014-05-25 14:21:59 +02:00
margin: 0;
padding: 0;
2014-02-23 15:07:01 +01:00
@include breakpoint($tablet) {
overflow-x: hidden;
}
}
.title {
text-transform: uppercase;
font-weight: normal;
font-size: 1.6em;
line-height: 0.8em;
2014-05-25 14:21:59 +02:00
margin: 0 0 18px 0;
padding: 0;
2014-02-23 15:07:01 +01:00
border: none;
}
2014-05-25 14:16:42 +02:00
}//.settings
2014-02-23 15:07:01 +01:00
/* =============================================================================
Sidebar
============================================================================= */
2014-05-25 14:16:42 +02:00
//The whole left column sidebar, duh.
.settings-sidebar {
2014-05-25 14:21:59 +02:00
width: 20%;
position: absolute;
top: 0;
left: 0;
bottom: 0;
2014-05-25 14:16:42 +02:00
z-index: 700;
background: #fff;
box-shadow: $lightbrown 1px 0 0;
@include breakpoint($tablet) {
2014-05-25 14:21:59 +02:00
width: 100%;
2014-05-25 14:16:42 +02:00
box-shadow: none;
}
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
> header {
position: relative;
z-index: 400;
height: 17px;
padding: 30px 15px 30px 40px;
margin-bottom: 0;
border-bottom: none;
box-shadow: #edece4 0 -1px 0 inset, #edece4 1px 0 0;
//Transparent gradient to make bg fade out as it goes out the top.
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(25%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0.90)));
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 25%,rgba(255,255,255,0.90) 100%);
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 25%,rgba(255,255,255,0.90) 100%);
@include breakpoint($netbook) {
padding-left: 15px;
};
}
}//.settings-sidebar
//Main settings-menu styles, apply to every item
.settings-menu {
2014-05-25 14:21:59 +02:00
position: absolute;
2014-05-25 14:16:42 +02:00
top: 0;
2014-05-25 14:21:59 +02:00
left: 0;
bottom: 0;
right: -1px;
2014-05-25 14:16:42 +02:00
overflow: auto;
2014-05-25 14:21:59 +02:00
@include breakpoint($tablet) { right: 0; };
2014-05-25 14:16:42 +02:00
// Create placeholder the same height as the floating header
// to push content down by the same amount
&:before {
display: block;
content: "";
height: 77px; //30px + 17px title + 30px
}
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
ul {
2014-05-25 14:21:59 +02:00
border-top: none;
2014-05-25 14:16:42 +02:00
@include breakpoint($tablet) { border-bottom: #edece4 1px solid; }
}
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
li {
2014-05-25 14:21:59 +02:00
margin-right: 1px;
2014-05-25 14:16:42 +02:00
border-top: #fff 1px solid;
@include breakpoint($tablet) {
2014-05-25 14:21:59 +02:00
margin-right: 0;
2014-05-25 14:16:42 +02:00
border-top: #edece4 1px solid;
2014-02-23 15:07:01 +01:00
}
2014-05-25 14:16:42 +02:00
a {
2014-05-25 14:21:59 +02:00
padding: 15px 15px 15px 40px;
border-bottom: none;
2014-05-25 14:16:42 +02:00
@include breakpoint($netbook) { padding-left: 15px; }
2014-02-23 15:07:01 +01:00
@include breakpoint($tablet) {
2014-05-25 14:21:59 +02:00
@include icon-after($i-chevron) {float: right;margin-top: 5px;};
2014-02-23 15:07:01 +01:00
}
2014-05-25 14:16:42 +02:00
}
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
&:first-child { border-top: none; }
2014-05-25 14:21:59 +02:00
&:first-child.active { border-top: none; }
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
&.active {
@include breakpoint($biggerthan-tablet) {
// only apply active styles on larger devices
2014-02-23 15:07:01 +01:00
2014-05-25 14:21:59 +02:00
margin-right: 0;
position: relative;
2014-05-25 14:16:42 +02:00
z-index: 300;
border-top: #edece4 1px solid;
2014-05-25 14:21:59 +02:00
box-shadow:
2014-05-25 14:16:42 +02:00
#fff 1px 0 0,
#edece4 0 1px 0;
@include transition;
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
a {
color: $darkgrey;
font-weight: bold;
background: #fff;
2014-02-23 15:07:01 +01:00
}
}
2014-05-25 14:16:42 +02:00
}//.active
}//li
// Give all icons some space
li a:before {
margin-right: 20px;
@include breakpoint($netbook) {
margin-right: 15px;
2014-02-23 15:07:01 +01:00
}
2014-05-25 14:16:42 +02:00
}
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
// Add the icons for specific menu items
.general a { @include icon($i-settings) }
.publishing a { @include icon($i-content) }
.services a { @include icon($i-services) }
.users a { @include icon($i-users) }
.appearance a { @include icon($i-appearance) }
.apps a { @include icon($i-app) }
.code a { @include icon($i-code) }
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
}//.settings-menu
2014-02-23 15:07:01 +01:00
/* =============================================================================
Content
============================================================================= */
2014-05-25 14:16:42 +02:00
// The main content panel on the right
.settings-content {
2014-05-25 14:21:59 +02:00
padding: 0;
position: absolute;
top: 0;
right: 0;
left: 20%;
bottom: 0;
2014-05-25 14:16:42 +02:00
background: #fff;
@include breakpoint($tablet) {
2014-02-23 15:07:01 +01:00
display: none;
2014-05-25 14:16:42 +02:00
width: 100%;
left: 100%;
right: -100%;
margin-left: 15px;
}
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
img {
max-width: 100%;
}
display: none;
2014-05-25 14:21:59 +02:00
&.active {display: block;}
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
> header {
position: relative;
z-index: 200;
height: 17px;
padding: 30px 220px 29px 40px;
2014-05-25 14:21:59 +02:00
border-bottom: $lightbrown 1px solid;
margin-bottom: 40px;
2014-05-25 14:16:42 +02:00
text-transform: none;
font-weight: normal;
line-height: inherit;
color: inherit;
//Transparent gradient to make bg fade out as it goes out the top.
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(255,255,255,1) 25%, rgba(255,255,255,0.90) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(25%,rgba(255,255,255,1)), color-stop(100%,rgba(255,255,255,0.90)));
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 25%,rgba(255,255,255,0.90) 100%);
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 25%,rgba(255,255,255,0.90) 100%);
background: -ms-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 25%,rgba(255,255,255,0.90) 100%);
background: linear-gradient(to bottom, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 25%,rgba(255,255,255,0.90) 100%);
2014-05-25 14:21:59 +02:00
@include breakpoint($netbook) { padding-left: 15px; }
@include breakpoint($tablet) { padding-left: 115px; }
2014-05-25 14:16:42 +02:00
@include breakpoint($letterbox) {
height: auto;
padding: 5px;
position: absolute;
2014-05-25 14:21:59 +02:00
top: 0;
right: 0;
border: none;
2014-05-25 14:16:42 +02:00
background: transparent;
2014-02-23 15:07:01 +01:00
2014-05-25 14:21:59 +02:00
.title { display: none; }
2014-05-25 14:16:42 +02:00
}
@include breakpoint(650px) {
2014-05-25 14:21:59 +02:00
padding-left: 15px;
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
.button-back {
2014-02-23 15:07:01 +01:00
position: fixed;
top: 5px;
2014-05-25 14:16:42 +02:00
left: 14px;
min-height: 0;
height: 30px;
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
&:before {
left: -9px;
border-width: 15px 9px 15px 0;
2014-02-23 15:07:01 +01:00
}
}
}
2014-05-25 14:16:42 +02:00
}//header
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
.page-actions {
2014-05-25 14:21:59 +02:00
position: absolute;
top: 20px;
right: 40px;
2014-05-25 14:16:42 +02:00
z-index: 700;
font-size: 1em;
2014-05-25 14:21:59 +02:00
@include breakpoint($netbook) { right: 15px; }
2014-05-25 14:16:42 +02:00
@include breakpoint(650px) {
position: fixed;
top: 5px;
right: 4px;
button {
min-height: 0;
height: 30px;
padding: 0.5em 1.37em;
2014-02-23 15:07:01 +01:00
}
2014-05-25 14:16:42 +02:00
}
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
.button-add {
2014-05-25 14:21:59 +02:00
position: relative;
padding-left: 50px;
2014-05-25 14:16:42 +02:00
@include icon($i-add, 1.4em, rgba(255,255,255,0.6)) {
position: absolute;
2014-05-25 14:21:59 +02:00
top: 0;
padding: 9px 8px 0 0;
left: 9px;
bottom: 0;
2014-05-25 14:16:42 +02:00
width: 20px;
border-right: darken($green, 8%) 1px solid;
};
2014-02-23 15:07:01 +01:00
}
2014-05-25 14:16:42 +02:00
}
.content {
position: absolute;
2014-05-25 14:21:59 +02:00
top: 0;
right: 0;
left: 0;
bottom: 0;
padding: 40px;
2014-05-25 14:16:42 +02:00
overflow: auto;
-webkit-overflow-scrolling: touch;
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
// Create placeholder the same height as the floating header
// to push content down by the same amount
&:before {
display: block;
content: "";
height: 77px; //30px + 17px title + 30px
@include breakpoint($letterbox) { display: none; }
2014-02-23 15:07:01 +01:00
}
2014-05-25 14:16:42 +02:00
&.no-padding {
padding: 0;
2014-02-23 15:07:01 +01:00
}
2014-05-25 14:21:59 +02:00
@include breakpoint($netbook) { padding-left: 15px; }
2014-05-25 14:16:42 +02:00
@include breakpoint(550px) { padding: 0 15px 40px; }
}
2014-02-23 15:07:01 +01:00
2014-05-25 14:16:42 +02:00
.description-container, .bio-container {
max-width: 370px;
}
.word-count {
margin-right: 30px;
float: right;
font-weight: bold;
color: darken($brown, 5%);
}
}//.settings-content
2014-05-25 14:40:34 +02:00
/* =============================================================================
Code Injection
============================================================================= */
.header-injection,
.footer-injection {
margin-top: 3.2em;
}