// // 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; } } }