mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
336 lines
5.6 KiB
CSS
336 lines
5.6 KiB
CSS
/* Settings
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.gh-setting-header {
|
|
margin: 3vw 0 5px 0;
|
|
color: var(--midgrey);
|
|
}
|
|
|
|
.gh-setting {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 25px 0;
|
|
border-top: var(--lightgrey) 1px solid;
|
|
}
|
|
|
|
.gh-setting-content {
|
|
width: 100%;
|
|
margin: 0 50px 0 0;
|
|
}
|
|
|
|
.gh-setting-title {
|
|
margin-bottom: 2px;
|
|
font-size: 1.8rem;
|
|
line-height: 1.15em;
|
|
font-weight: 600;
|
|
color: var(--darkgrey);
|
|
}
|
|
|
|
.gh-setting-desc {
|
|
line-height: 1.3em;
|
|
color: var(--midgrey);
|
|
font-weight: 200;
|
|
letter-spacing: 0.3px;
|
|
}
|
|
|
|
.gh-setting-action {
|
|
flex-shrink: 0;
|
|
margin: 1px 0 0 0;
|
|
}
|
|
|
|
.gh-setting-action .input-toggle-component {
|
|
float: none;
|
|
margin-right: 0;
|
|
width: 30px;
|
|
height: 30px;
|
|
}
|
|
|
|
.gh-setting-action .input-toggle-component:before {
|
|
top: 7px;
|
|
left: 6px;
|
|
width: 15px;
|
|
height: 9px;
|
|
}
|
|
|
|
.gh-setting-content-extended {
|
|
width: 100%;
|
|
margin-top: 25px;
|
|
}
|
|
|
|
|
|
/* Navigation
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.gh-blognav {
|
|
margin: 20px 0;
|
|
}
|
|
|
|
.gh-blognav-item {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.gh-blognav-item--error {
|
|
margin-bottom: calc(1em + 10px);
|
|
}
|
|
|
|
.gh-blognav-item .response {
|
|
position: absolute;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.gh-blognav-grab {
|
|
padding: 0 16px 0 0;
|
|
width: 16px;
|
|
color: #d1d1d1;
|
|
text-indent: -4px;
|
|
font-size: 16px;
|
|
cursor: move;
|
|
}
|
|
|
|
.gh-blognav-line {
|
|
display: flex;
|
|
width: 100%;
|
|
}
|
|
|
|
.gh-blognav-label {
|
|
flex-grow: 1;
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.gh-blognav-url {
|
|
flex-grow: 3;
|
|
}
|
|
|
|
.gh-blognav-delete {
|
|
padding: 8px 0 8px 10px;
|
|
color: #c1c1c1;
|
|
font-size: 14px;
|
|
transition: color 0.1s linear;
|
|
}
|
|
|
|
.gh-blognav-delete:hover,
|
|
.gh-blognav-delete:focus {
|
|
color: var(--red);
|
|
}
|
|
|
|
.gh-blognav-add {
|
|
margin-right: -2px;
|
|
margin-left: 10px;
|
|
width: 16px;
|
|
height: 16px;
|
|
background: var(--green);
|
|
border-radius: 2px;
|
|
color: #fff;
|
|
text-align: center;
|
|
font-size: 10px;
|
|
line-height: 8px;
|
|
transition: background 0.1s linear;
|
|
}
|
|
|
|
.gh-blognav-add:hover,
|
|
.gh-blognav-add:focus {
|
|
background: color(var(--green) lightness(-10%));
|
|
}
|
|
|
|
.gh-blognav-item:not(.gh-blognav-item--sortable) {
|
|
padding-left: 16px;
|
|
}
|
|
|
|
/* Remove space between inputs on smaller screens */
|
|
@media (max-width: 800px) {
|
|
.gh-blognav-label {
|
|
margin-right: -1px;
|
|
}
|
|
.gh-blognav-label input {
|
|
border-right-color: #eaeaea;
|
|
border-radius: 4px 0 0 4px;
|
|
}
|
|
.gh-blognav-url input {
|
|
border-left-color: #eaeaea;
|
|
border-radius: 0 4px 4px 0;
|
|
}
|
|
.gh-blognav-item input:focus {
|
|
position: relative;
|
|
z-index: 100;
|
|
}
|
|
}
|
|
|
|
|
|
/* Code injection
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.settings-code {
|
|
max-width: 700px;
|
|
}
|
|
|
|
.settings-code p {
|
|
margin: 0 0 4px 0;
|
|
}
|
|
|
|
.settings-code code {
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.settings-code-editor {
|
|
padding: 0;
|
|
min-width: 250px;
|
|
min-height: 300px;
|
|
max-width: 680px;
|
|
width: 100%;
|
|
height: auto;
|
|
border: 1px solid #e0dfd7;
|
|
border-radius: var(--border-radius);
|
|
line-height: 22px;
|
|
transition: border-color 0.15s linear;
|
|
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
.settings-code-editor.focused {
|
|
outline: 0;
|
|
border-color: var(--midgrey);
|
|
}
|
|
|
|
.settings-code-editor .CodeMirror {
|
|
border-radius: inherit;
|
|
}
|
|
|
|
.settings-code-editor .cm-s-xq-light span.cm-meta {
|
|
color: #000;
|
|
}
|
|
|
|
|
|
|
|
/* Labs
|
|
/* ---------------------------------------------------------- */
|
|
|
|
#startupload {
|
|
line-height: inherit;
|
|
}
|
|
|
|
@media (max-width: 400px) {
|
|
#startupload {
|
|
margin-top: 5px;
|
|
}
|
|
}
|
|
|
|
|
|
/* Themes
|
|
/* ---------------------------------------------------------- */
|
|
|
|
.settings-themes {
|
|
max-width: 500px;
|
|
}
|
|
|
|
.settings-themes h3 {
|
|
margin-bottom: 1.6em;
|
|
font-size: 16px;
|
|
}
|
|
|
|
.theme-list-item {
|
|
display: flex;
|
|
justify-content: start;
|
|
align-items: center;
|
|
padding: 13px 15px;
|
|
border-top: 1px solid #dfe1e3;
|
|
}
|
|
|
|
.theme-list-item--active {
|
|
background: color(#dfe1e3 lightness(+10%));
|
|
}
|
|
|
|
.theme-list-item-body .name {
|
|
display: inline-block;
|
|
color: var(--darkgrey);
|
|
font-weight: 400;
|
|
user-select: all;
|
|
}
|
|
|
|
.theme-list-item:last-of-type {
|
|
margin-bottom: 1em;
|
|
border-bottom: 1px solid #dfe1e3;
|
|
}
|
|
|
|
.theme-list-item-body {
|
|
flex: 1;
|
|
align-items: stretch;
|
|
line-height: 1;
|
|
}
|
|
|
|
.theme-list-item-aside {
|
|
flex: 1;
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
.theme-list-action:last-child {
|
|
margin-right: 0;
|
|
}
|
|
|
|
.theme-list-action {
|
|
float: left;
|
|
margin-right: 20px;
|
|
text-transform: uppercase;
|
|
font-size: 11px;
|
|
}
|
|
|
|
a.theme-list-action {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
/* account for length difference between Active and Activate */
|
|
.theme-list-action-activate {
|
|
min-width: 52px;
|
|
}
|
|
|
|
.theme-list-item--active .theme-list-action-activate {
|
|
color: var(--green);
|
|
}
|
|
|
|
@media (max-width: 550px) {
|
|
.theme-list-item {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
height: auto;
|
|
}
|
|
|
|
.theme-list-item-body .name {
|
|
font-size: 15px;
|
|
}
|
|
|
|
.theme-list-item-aside {
|
|
display: flex;
|
|
flex-direction: row-reverse;
|
|
}
|
|
|
|
.theme-list-item-body {
|
|
margin-bottom: 0.35em;
|
|
width: 100%;
|
|
}
|
|
|
|
.theme-list-action:last-child {
|
|
margin-right: 20px;
|
|
}
|
|
}
|
|
|
|
.theme-validation-errors {
|
|
padding-left: 0;
|
|
}
|
|
|
|
.theme-validation-errors p {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.theme-validation-errors > li {
|
|
margin-bottom: 1.2em;
|
|
list-style: none;
|
|
font-size: 15px;
|
|
}
|
|
|
|
.theme-validation-errors > li > ul {
|
|
margin-top: 0.2em;
|
|
font-size: 13px;
|
|
}
|