2014-07-30 14:39:38 +04:00
|
|
|
//
|
|
|
|
// Settings
|
|
|
|
// --------------------------------------------------
|
|
|
|
// Slug: /ghost/settings/
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
// Sidebar
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-10-13 19:23:06 +04:00
|
|
|
// Settings navigation
|
|
|
|
.settings-nav {
|
2014-08-16 20:39:52 +04:00
|
|
|
width: 25%;
|
2014-09-21 23:35:33 +04:00
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
2014-07-30 14:39:38 +04:00
|
|
|
left: 0;
|
|
|
|
bottom: 0;
|
|
|
|
z-index: 700;
|
|
|
|
background: #fff;
|
|
|
|
box-shadow: $lightbrown 1px 0 0;
|
2014-08-16 20:39:52 +04:00
|
|
|
@media (max-width: 900px) {
|
2014-07-30 14:39:38 +04:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
@media (max-width: 900px) {
|
2014-09-21 23:35:33 +04:00
|
|
|
top: 0;
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
2014-08-06 20:46:43 +04:00
|
|
|
list-style: none;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
2014-07-30 14:39:38 +04:00
|
|
|
border-top: none;
|
2014-08-16 20:39:52 +04:00
|
|
|
@media (max-width: 900px) { border-bottom: #edece4 1px solid; }
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
border-top: #fff 1px solid;
|
2014-09-11 18:27:28 +04:00
|
|
|
position: relative;
|
2014-08-16 20:39:52 +04:00
|
|
|
@media (max-width: 900px) {
|
2014-07-30 14:39:38 +04:00
|
|
|
margin-right: 0;
|
|
|
|
border-top: #edece4 1px solid;
|
|
|
|
}
|
|
|
|
|
2014-09-11 18:27:28 +04:00
|
|
|
// The icon
|
|
|
|
&:before {
|
|
|
|
position: absolute;
|
|
|
|
top: 50%;
|
|
|
|
left: 30px;
|
|
|
|
transform: translateY(-50%);
|
2014-09-16 08:55:37 +04:00
|
|
|
|
2014-09-11 18:27:28 +04:00
|
|
|
transition: color 0.1s;
|
|
|
|
color: $brown;
|
|
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
left: 15px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
&:hover:before {
|
|
|
|
color: $darkgrey;
|
|
|
|
}
|
|
|
|
|
2014-07-30 14:39:38 +04:00
|
|
|
a {
|
2014-08-06 20:46:43 +04:00
|
|
|
display: block;
|
|
|
|
border-bottom: $lightbrown 1px solid;
|
2014-09-11 18:27:28 +04:00
|
|
|
padding: 15px 15px 15px 60px;
|
2014-07-30 14:39:38 +04:00
|
|
|
border-bottom: none;
|
2014-08-06 20:46:43 +04:00
|
|
|
color: $brown;
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
@media (max-width: 900px) {
|
2014-09-11 18:27:28 +04:00
|
|
|
padding-left: 45px;
|
2014-07-30 14:39:38 +04:00
|
|
|
@include icon-after($i-chevron) {
|
|
|
|
float: right;
|
|
|
|
margin-top: 5px;
|
2014-08-06 20:46:43 +04:00
|
|
|
}
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
|
|
|
|
2014-08-06 20:46:43 +04:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
|
|
|
color: $darkgrey;
|
|
|
|
background: $lightbrown;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
2014-08-14 20:56:23 +04:00
|
|
|
|
2014-08-06 20:46:43 +04:00
|
|
|
// Make space for icons
|
|
|
|
&:before {
|
|
|
|
margin-right: 20px;
|
2014-08-16 20:39:52 +04:00
|
|
|
@media (max-width: 900px) {
|
2014-08-06 20:46:43 +04:00
|
|
|
margin-right: 15px;
|
|
|
|
}
|
|
|
|
}
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
2014-08-16 20:39:52 +04:00
|
|
|
@media (min-width: 900px) {
|
2014-07-30 14:39:38 +04:00
|
|
|
// only apply active styles on larger devices
|
|
|
|
|
2014-09-11 18:27:28 +04:00
|
|
|
// The icon
|
|
|
|
&:before {
|
|
|
|
color: $darkgrey;
|
|
|
|
}
|
|
|
|
|
2014-07-30 14:39:38 +04:00
|
|
|
margin-right: 0;
|
|
|
|
position: relative;
|
|
|
|
z-index: 300;
|
|
|
|
border-top: #edece4 1px solid;
|
|
|
|
box-shadow: #fff 1px 0 0, #edece4 0 1px 0;
|
2014-08-26 14:56:02 +04:00
|
|
|
transition: all 0.15s ease-out 0s;
|
2014-07-30 14:39:38 +04:00
|
|
|
|
|
|
|
a {
|
|
|
|
color: $darkgrey;
|
|
|
|
font-weight: bold;
|
|
|
|
background: #fff;
|
|
|
|
&:focus {
|
|
|
|
background: $lightbrown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
} // .active
|
|
|
|
|
2014-08-06 20:46:43 +04:00
|
|
|
&:first-of-type {
|
|
|
|
border-top: none;
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
2014-08-06 20:46:43 +04:00
|
|
|
&:first-of-type.active {
|
|
|
|
border-top: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
} // li
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-10-13 19:23:06 +04:00
|
|
|
} // .settings-nav
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-11-28 16:22:05 +03:00
|
|
|
// Special cases for nav items
|
|
|
|
.settings-nav-labs .icon-labs:before {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
|
2014-07-30 14:39:38 +04:00
|
|
|
|
|
|
|
//
|
|
|
|
// Content
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
|
|
|
// The main content panel on the right
|
|
|
|
.settings-content {
|
2014-09-16 08:55:37 +04:00
|
|
|
|
|
|
|
@media (max-width: 900px) {
|
2014-09-11 17:19:16 +04:00
|
|
|
&.fade-in {
|
|
|
|
animation: none;
|
|
|
|
}
|
|
|
|
}
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-09-26 15:56:14 +04:00
|
|
|
@media (min-width: 901px) {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 25%;
|
|
|
|
bottom: 0;
|
|
|
|
|
|
|
|
overflow: auto;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
}
|
|
|
|
|
2014-07-30 14:39:38 +04:00
|
|
|
.settings-general img {
|
|
|
|
max-width: 100%;
|
|
|
|
max-height: 400px;
|
2014-09-03 16:32:58 +04:00
|
|
|
display: block;
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
.content {
|
|
|
|
padding: 40px;
|
|
|
|
|
|
|
|
@media (max-width: 900px) {
|
2014-07-30 14:39:38 +04:00
|
|
|
padding-left: 15px;
|
2014-08-16 20:39:52 +04:00
|
|
|
padding-right: 15px;
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
2014-08-16 20:39:52 +04:00
|
|
|
@media (max-width: 550px) {
|
2014-09-04 18:03:07 +04:00
|
|
|
padding-top: 15px;
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
2014-09-26 15:56:14 +04:00
|
|
|
|
|
|
|
@media (max-width: 900px) {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
overflow-x: hidden;
|
|
|
|
overflow-y: auto;
|
|
|
|
-webkit-overflow-scrolling: touch;
|
|
|
|
}
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
} // .content
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-09-15 04:43:18 +04:00
|
|
|
.word-count {
|
|
|
|
float: right;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
2014-08-16 20:39:52 +04:00
|
|
|
} // .settings-content
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
// This is the header for /ghost/settings/view/
|
|
|
|
// It's black and fixed position at the top of the screen
|
|
|
|
.settings-view-header {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 3000;
|
|
|
|
height: 44px;
|
|
|
|
line-height: 44px;
|
|
|
|
text-align: center;
|
|
|
|
color: #fff;
|
|
|
|
background: #242628;
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
.btn-back {
|
|
|
|
position: absolute;
|
|
|
|
top: 4px;
|
|
|
|
left: 4px;
|
|
|
|
color: #fff;
|
|
|
|
background: transparent;
|
|
|
|
}
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
.btn {
|
|
|
|
vertical-align: top;
|
|
|
|
line-height: 1.45;
|
|
|
|
}
|
2014-07-30 14:39:38 +04:00
|
|
|
|
|
|
|
.page-actions {
|
|
|
|
position: absolute;
|
2014-08-16 20:39:52 +04:00
|
|
|
top: 4px;
|
|
|
|
right: 4px;
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
}
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
// Desktop
|
|
|
|
// On larger viewports, make it look like a simple heading
|
|
|
|
@media (min-width: 900px) {
|
|
|
|
position: static;
|
|
|
|
height: auto;
|
|
|
|
padding: 30px 40px;
|
|
|
|
text-align: left;
|
|
|
|
line-height: 1.15em;
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
.btn-back {
|
|
|
|
display: none;
|
|
|
|
vertical-align: middle;
|
|
|
|
color: #666;
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
.btn {
|
|
|
|
vertical-align: middle;
|
|
|
|
line-height: 1.428571429;
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
.page-title {
|
|
|
|
display: inline;
|
2014-07-30 14:39:38 +04:00
|
|
|
padding: 0;
|
2014-08-16 20:39:52 +04:00
|
|
|
font-size: 2.6rem;
|
|
|
|
line-height: 1.3;
|
|
|
|
overflow: visible;
|
|
|
|
color: $darkgrey;
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
.page-actions {
|
|
|
|
position: static;
|
|
|
|
float: right;
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
|
|
|
}
|
2014-08-16 20:39:52 +04:00
|
|
|
}
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
|
|
|
|
// This is the header for /ghost/settings/view/subview/
|
|
|
|
// It's black and fixed position at the top of the screen
|
|
|
|
.settings-subview-header {
|
2014-09-04 18:03:07 +04:00
|
|
|
@include clearfix;
|
2014-08-16 20:39:52 +04:00
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
z-index: 3000;
|
|
|
|
height: 44px;
|
|
|
|
line-height: 44px;
|
|
|
|
text-align: center;
|
|
|
|
color: #fff;
|
|
|
|
background: #242628;
|
|
|
|
|
|
|
|
.btn-back {
|
|
|
|
position: absolute;
|
|
|
|
top: 4px;
|
|
|
|
left: 4px;
|
|
|
|
color: #fff;
|
|
|
|
background: transparent;
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
.btn {
|
|
|
|
vertical-align: top;
|
|
|
|
line-height: 1.45;
|
2014-08-14 20:56:23 +04:00
|
|
|
}
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
.page-actions {
|
|
|
|
position: absolute;
|
|
|
|
top: 4px;
|
|
|
|
right: 4px;
|
|
|
|
|
2014-07-30 14:39:38 +04:00
|
|
|
}
|
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
// Desktop
|
|
|
|
// On larger viewports, make it look like a simple heading
|
|
|
|
@media (min-width: 900px) {
|
|
|
|
position: static;
|
|
|
|
height: auto;
|
|
|
|
padding: 30px 40px;
|
|
|
|
line-height: 1.15em;
|
|
|
|
background: none;
|
|
|
|
|
|
|
|
.btn-back {
|
|
|
|
position: static;
|
|
|
|
float:left;
|
|
|
|
color: #666;
|
|
|
|
}
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
.btn {
|
|
|
|
vertical-align: middle;
|
|
|
|
line-height: 1.428571429;
|
|
|
|
}
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
.page-title {
|
|
|
|
display: inline;
|
|
|
|
padding: 0;
|
|
|
|
font-size: 2.6rem;
|
|
|
|
line-height: 1.3;
|
|
|
|
overflow: visible;
|
|
|
|
color: $darkgrey;
|
|
|
|
}
|
2014-07-30 14:39:38 +04:00
|
|
|
|
2014-08-16 20:39:52 +04:00
|
|
|
.page-actions {
|
|
|
|
position: static;
|
|
|
|
float: right;
|
|
|
|
}
|
|
|
|
}
|
2014-09-16 08:55:37 +04:00
|
|
|
}
|
2014-09-30 19:24:21 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
2014-11-16 19:47:47 +03:00
|
|
|
//
|
|
|
|
// Custom Permalinks
|
|
|
|
// --------------------------------------------------
|
|
|
|
|
2014-09-30 19:24:21 +04:00
|
|
|
.permalink-input-wrapper {
|
|
|
|
position: relative;
|
|
|
|
outline: 0; // Kills the blue outline we get by adding tabindex="0"
|
2014-11-16 19:47:47 +03:00
|
|
|
padding: 2px 0 2px 6px;
|
2014-09-30 19:24:21 +04:00
|
|
|
|
|
|
|
&:focus,
|
|
|
|
&.focus {
|
|
|
|
border-color: $brown;
|
|
|
|
|
|
|
|
// The button-looking thing that opens a popover
|
|
|
|
.permalink-help {
|
|
|
|
border-color: $brown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// A div that _looks_ like an input, but is a div
|
|
|
|
.permalink-fake-input {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
2014-11-16 19:47:47 +03:00
|
|
|
align-items: center;
|
|
|
|
margin-right: 40px;
|
2014-09-30 19:24:21 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
.permalink-domain {
|
2014-11-16 19:47:47 +03:00
|
|
|
margin: 5px -1px 3px 0;
|
2014-09-30 19:24:21 +04:00
|
|
|
color: #7E878B;
|
|
|
|
}
|
|
|
|
|
2014-11-16 19:47:47 +03:00
|
|
|
.permalink-parameter {
|
|
|
|
position: relative;
|
|
|
|
padding: 3px 6px 4px;
|
|
|
|
margin: 4px 0 4px 9px;
|
|
|
|
max-height: 18px;
|
2014-09-30 19:24:21 +04:00
|
|
|
|
2014-11-16 19:47:47 +03:00
|
|
|
// Change default label styles
|
|
|
|
background: #E3EDF2;
|
|
|
|
box-shadow: inset 0px 0px 0px 1px #CDD5D9;
|
|
|
|
color: #7E878B;
|
2014-09-30 19:24:21 +04:00
|
|
|
|
2014-11-16 19:47:47 +03:00
|
|
|
// The slash before each parameter (using :after)
|
|
|
|
// Using `:before` does funky stuff here in Safari
|
|
|
|
&:after {
|
|
|
|
content: "/";
|
|
|
|
position: absolute;
|
|
|
|
top: 2px;
|
|
|
|
left: -7px;
|
|
|
|
font-size: 1.4rem;
|
|
|
|
color: #7E878B;
|
2014-09-30 19:24:21 +04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// The actual input, which resets some styles inherited from the global input style
|
|
|
|
.permalink-input {
|
|
|
|
flex: 1 0;
|
2014-11-16 19:47:47 +03:00
|
|
|
margin: 0;
|
2014-09-30 19:24:21 +04:00
|
|
|
padding: 0 4px;
|
2014-11-16 19:47:47 +03:00
|
|
|
margin-right: -4px;
|
2014-09-30 19:24:21 +04:00
|
|
|
background: transparent;
|
|
|
|
min-width: 60px;
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Shove the popover button and its container over to the right
|
|
|
|
.popover,
|
|
|
|
.permalink-help {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
width: 36px;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Simple styles for the popover button-looking thing
|
|
|
|
.permalink-help {
|
|
|
|
border-left: 1px solid #E0DFD7;
|
|
|
|
transition: border-color 0.15s linear;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
color: #E0DFD7;
|
|
|
|
transition: color 0.15s linear;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover:before {
|
|
|
|
color: $brown;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Shift the popover (than opens over the top of everything) to the left a bit
|
|
|
|
.popover-item {
|
|
|
|
margin-left: -5px;
|
2014-11-16 19:47:47 +03:00
|
|
|
min-width: 320px;
|
2014-09-30 19:24:21 +04:00
|
|
|
}
|
|
|
|
}//.permalink-input-wrapper
|