mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
8e7b8f8bfa
- Uses Node Bourbon https://www.npmjs.org/package/node-bourbon - Produces source maps - Removed all ruby dependencie History: - Remove bourbon from package and cleanup grunt tasks - Un-bourbon keyframe animations - Un-bourbon transitions - Un-bourbon box-sizing - Un-bourbon font-feature-settings - Import bourbon clearfix mixin - Un-bourbon linear gradients - Un-bourbon input types - Un-bourbon positions - Un-bourbon transforms - Un-bourbon notification animations - Un-bourbon uploader box-sizing - Un-bourbon border-radius - Un-bourbon splitbutton transitions - Add triangle mixin - Un-bourbon default container positioning - Un-bourbon flexbox properties - Fix triangle mixin - It now has the same output as the Bourbon mixin - Add autoprefixer - Correct global default font size - Remove unwanted prefixes - Because, y'know, autoprefixer - Output from node sass migration - Includes all the files we usually have, plus source maps
306 lines
6.3 KiB
SCSS
306 lines
6.3 KiB
SCSS
//
|
|
// Settings
|
|
// --------------------------------------------------
|
|
// Slug: /ghost/settings/
|
|
// --------------------------------------------------
|
|
|
|
|
|
//
|
|
// Sidebar
|
|
// --------------------------------------------------
|
|
|
|
// Main settings-menu styles, apply to every item
|
|
.settings-menu {
|
|
width: 25%;
|
|
position: fixed;
|
|
top: 60px;
|
|
left: 0;
|
|
bottom: 0;
|
|
z-index: 700;
|
|
background: #fff;
|
|
box-shadow: $lightbrown 1px 0 0;
|
|
@media (max-width: 900px) {
|
|
width: 100%;
|
|
}
|
|
|
|
@media (max-width: 900px) {
|
|
top: 44px;
|
|
}
|
|
|
|
ul {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
border-top: none;
|
|
@media (max-width: 900px) { border-bottom: #edece4 1px solid; }
|
|
}
|
|
|
|
li {
|
|
border-top: #fff 1px solid;
|
|
@media (max-width: 900px) {
|
|
margin-right: 0;
|
|
border-top: #edece4 1px solid;
|
|
}
|
|
|
|
a {
|
|
display: block;
|
|
border-bottom: $lightbrown 1px solid;
|
|
padding: 15px 15px 15px 40px;
|
|
border-bottom: none;
|
|
color: $brown;
|
|
|
|
@media (max-width: 900px) {
|
|
padding-left: 15px ;
|
|
@include icon-after($i-chevron) {
|
|
float: right;
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
|
|
&:hover,
|
|
&:focus {
|
|
color: $darkgrey;
|
|
background: $lightbrown;
|
|
text-decoration: none;
|
|
}
|
|
|
|
// Make space for icons
|
|
&:before {
|
|
margin-right: 20px;
|
|
@media (max-width: 900px) {
|
|
margin-right: 15px;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.active {
|
|
@media (min-width: 900px) {
|
|
// only apply active styles on larger devices
|
|
|
|
margin-right: 0;
|
|
position: relative;
|
|
z-index: 300;
|
|
border-top: #edece4 1px solid;
|
|
box-shadow: #fff 1px 0 0, #edece4 0 1px 0;
|
|
transition: all 0.15s ease-out 0s;
|
|
|
|
a {
|
|
color: $darkgrey;
|
|
font-weight: bold;
|
|
background: #fff;
|
|
&:focus {
|
|
background: $lightbrown;
|
|
}
|
|
}
|
|
|
|
}
|
|
} // .active
|
|
|
|
&:first-of-type {
|
|
border-top: none;
|
|
}
|
|
&:first-of-type.active {
|
|
border-top: none;
|
|
}
|
|
|
|
} // li
|
|
|
|
// Add the icons for specific menu items
|
|
.about a {
|
|
@include icon($i-ghost);
|
|
}
|
|
.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);
|
|
}
|
|
|
|
} // .settings-menu
|
|
|
|
|
|
//
|
|
// Content
|
|
// --------------------------------------------------
|
|
|
|
// The main content panel on the right
|
|
.settings-content {
|
|
margin-left: 25%;
|
|
|
|
.settings-general img {
|
|
max-width: 100%;
|
|
max-height: 400px;
|
|
}
|
|
|
|
.content {
|
|
padding: 40px;
|
|
|
|
@media (max-width: 900px) {
|
|
padding-left: 15px;
|
|
padding-right: 15px;
|
|
}
|
|
@media (max-width: 550px) {
|
|
padding: 0 15px 40px;
|
|
}
|
|
} // .content
|
|
|
|
} // .settings-content
|
|
|
|
// 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;
|
|
}
|
|
|
|
.btn {
|
|
vertical-align: top;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.page-actions {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
|
|
}
|
|
|
|
// 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;
|
|
}
|
|
|
|
.btn {
|
|
vertical-align: middle;
|
|
line-height: 1.428571429;
|
|
}
|
|
|
|
.page-title {
|
|
display: inline;
|
|
padding: 0;
|
|
font-size: 2.6rem;
|
|
line-height: 1.3;
|
|
overflow: visible;
|
|
color: $darkgrey;
|
|
}
|
|
|
|
.page-actions {
|
|
position: static;
|
|
float: right;
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
// This is the header for /ghost/settings/view/subview/
|
|
// It's black and fixed position at the top of the screen
|
|
.settings-subview-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;
|
|
}
|
|
|
|
.btn {
|
|
vertical-align: top;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.page-actions {
|
|
position: absolute;
|
|
top: 4px;
|
|
right: 4px;
|
|
|
|
}
|
|
|
|
// 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;
|
|
}
|
|
|
|
.btn {
|
|
vertical-align: middle;
|
|
line-height: 1.428571429;
|
|
}
|
|
|
|
.page-title {
|
|
display: inline;
|
|
padding: 0;
|
|
font-size: 2.6rem;
|
|
line-height: 1.3;
|
|
overflow: visible;
|
|
color: $darkgrey;
|
|
}
|
|
|
|
.page-actions {
|
|
position: static;
|
|
float: right;
|
|
}
|
|
}
|
|
} |