2015-05-14 16:45:37 +03:00
|
|
|
/* Editor /ghost/editor/
|
|
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
2015-08-13 10:09:07 +03:00
|
|
|
.editor-options .dropdown-menu {
|
|
|
|
top: 35px;
|
|
|
|
right: 0;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
|
2015-05-14 16:45:37 +03:00
|
|
|
|
2015-08-10 16:22:37 +03:00
|
|
|
/* Tags input CSS (TODO: needs some revision)
|
|
|
|
/* ------------------------------------------------------ */
|
|
|
|
.tags-input-list {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
list-style-type: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tags-input-list li {
|
|
|
|
flex: 1 0 auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.label-tag {
|
|
|
|
margin-right: 0.3em;
|
|
|
|
padding: 0.2em 0.6em 0.3em;
|
|
|
|
background-color: var(--darkgrey);
|
|
|
|
border-radius: 0.25em;
|
|
|
|
color: var(--lightgrey);
|
|
|
|
text-align: center;
|
|
|
|
font-weight: 300;
|
|
|
|
}
|
|
|
|
|
|
|
|
.label-tag.highlight {
|
|
|
|
background: var(--midgrey);
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tag-input {
|
|
|
|
margin-top: 5px;
|
|
|
|
border: none;
|
|
|
|
font-weight: 300;
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
.tag-input:focus {
|
|
|
|
outline: 0;
|
|
|
|
}
|
|
|
|
|
2015-05-14 16:45:37 +03:00
|
|
|
.publish-bar-actions {
|
|
|
|
flex: 1 0 auto;
|
|
|
|
align-self: auto;
|
2015-05-16 14:43:12 +03:00
|
|
|
display: flex;
|
2015-05-14 16:45:37 +03:00
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-settings {
|
2015-05-16 14:43:12 +03:00
|
|
|
position: relative;
|
2015-05-14 16:45:37 +03:00
|
|
|
display: inline-block;
|
2017-05-22 19:43:54 +03:00
|
|
|
padding: 15px 0 15px 15px;
|
2015-05-14 16:45:37 +03:00
|
|
|
color: var(--midgrey);
|
|
|
|
transition: all 0.15s ease-out 0s;
|
2017-04-19 16:20:42 +03:00
|
|
|
line-height: 0;
|
2017-04-24 10:26:31 +03:00
|
|
|
z-index: 1000;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.post-settings:hover,
|
|
|
|
.post-settings.active {
|
|
|
|
color: var(--darkgrey);
|
|
|
|
}
|
|
|
|
|
2017-04-07 18:23:45 +03:00
|
|
|
.post-settings svg {
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
fill: var(--midgrey);
|
|
|
|
}
|
|
|
|
|
2017-05-22 19:43:54 +03:00
|
|
|
.post-settings:hover svg,
|
2017-04-07 18:23:45 +03:00
|
|
|
.post-settings.active svg {
|
|
|
|
fill: var(--darkgrey);
|
|
|
|
}
|
|
|
|
|
2015-05-14 16:45:37 +03:00
|
|
|
.post-settings-menu .dropdown-menu {
|
|
|
|
top: auto;
|
2015-05-16 14:43:12 +03:00
|
|
|
right: 100%;
|
2015-05-14 16:45:37 +03:00
|
|
|
bottom: 100%;
|
|
|
|
left: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.post-view-link {
|
|
|
|
position: absolute;
|
|
|
|
top: 1px;
|
|
|
|
right: 0;
|
|
|
|
font-size: 1.3rem;
|
|
|
|
}
|
|
|
|
|
2017-04-07 18:23:45 +03:00
|
|
|
.post-view-link svg {
|
2016-02-19 07:48:20 +03:00
|
|
|
display: inline;
|
2017-04-07 18:23:45 +03:00
|
|
|
height: 10px;
|
2017-06-02 00:02:03 +03:00
|
|
|
width: 10px;
|
2017-04-07 18:23:45 +03:00
|
|
|
fill: var(--blue);
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* Post settings meta
|
|
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
|
|
|
/* Google Imitation */
|
|
|
|
.seo-preview {
|
|
|
|
font-family: Arial, sans-serif;
|
|
|
|
}
|
|
|
|
|
|
|
|
.seo-preview-title {
|
2015-05-16 00:28:30 +03:00
|
|
|
color: #1e0fbe;
|
2015-05-14 16:45:37 +03:00
|
|
|
text-overflow: ellipses;
|
|
|
|
word-wrap: break-word;
|
2015-05-16 14:43:12 +03:00
|
|
|
font-size: 1.8rem;
|
|
|
|
line-height: 2.16rem;
|
|
|
|
|
|
|
|
-webkit-text-overflow: ellipsis;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.seo-preview-link {
|
|
|
|
margin: 1px 0 2px 0;
|
|
|
|
color: #006621;
|
|
|
|
word-wrap: break-word;
|
2015-05-16 14:43:12 +03:00
|
|
|
font-size: 1.3rem;
|
|
|
|
line-height: 1.6rem;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.seo-preview-description {
|
|
|
|
color: #545454;
|
|
|
|
word-wrap: break-word;
|
2015-05-16 14:43:12 +03:00
|
|
|
font-size: 1.3rem;
|
|
|
|
line-height: 1.4;
|
2015-05-14 16:45:37 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2016-10-24 13:55:55 +03:00
|
|
|
|
|
|
|
/* NEW editor
|
|
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
2017-05-08 21:15:56 +03:00
|
|
|
.gh-main > section.gh-editor-fullscreen {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
z-index: 1000;
|
|
|
|
background-color: white;
|
|
|
|
}
|
|
|
|
|
2016-10-24 13:55:55 +03:00
|
|
|
.gh-editor-header {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
left: 0;
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2017-02-27 13:02:10 +03:00
|
|
|
padding: 0 30px;
|
|
|
|
height: 80px;
|
|
|
|
}
|
|
|
|
@media (max-width: 750px) {
|
|
|
|
.gh-editor-header { padding: 0 4vw; }
|
2016-10-24 13:55:55 +03:00
|
|
|
}
|
|
|
|
|
2017-05-08 13:35:42 +03:00
|
|
|
.gh-editor-header-small {
|
|
|
|
height: 43px;
|
|
|
|
padding: 0;
|
|
|
|
padding-left: 15px;
|
2017-05-22 19:43:54 +03:00
|
|
|
border-bottom: var(--lightgrey) 1px solid;
|
2017-05-08 13:35:42 +03:00
|
|
|
z-index: 100;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor-header-small .gh-publishmenu {
|
|
|
|
line-height: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor-header-small .post-settings {
|
|
|
|
padding: 13px 15px;
|
|
|
|
}
|
|
|
|
|
2016-11-14 12:55:08 +03:00
|
|
|
.gh-editor-status {
|
|
|
|
color: var(--midgrey);
|
|
|
|
font-weight: 300;
|
2017-05-22 19:43:54 +03:00
|
|
|
font-size: 1.3rem;
|
2016-11-14 12:55:08 +03:00
|
|
|
}
|
|
|
|
|
2016-10-24 13:55:55 +03:00
|
|
|
.gh-editor-container {
|
2017-03-20 15:33:06 +03:00
|
|
|
position: absolute;
|
2016-10-24 13:55:55 +03:00
|
|
|
overflow-y: auto;
|
2016-11-14 12:55:08 +03:00
|
|
|
padding: 10vw 4vw;
|
2016-10-24 13:55:55 +03:00
|
|
|
width: 100%;
|
2017-02-04 01:51:18 +03:00
|
|
|
height: 100%;
|
2017-05-08 13:35:42 +03:00
|
|
|
z-index: 0;
|
2016-10-24 13:55:55 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor-inner {
|
|
|
|
margin: 0 auto;
|
2017-05-08 13:35:42 +03:00
|
|
|
max-width: 760px;
|
2017-02-04 01:51:18 +03:00
|
|
|
height: 100%;
|
2016-10-24 13:55:55 +03:00
|
|
|
}
|
2017-04-19 16:20:42 +03:00
|
|
|
|
2017-05-08 13:35:42 +03:00
|
|
|
.gh-editor-title {
|
2017-05-22 19:43:54 +03:00
|
|
|
display: block;
|
2017-05-08 13:35:42 +03:00
|
|
|
width: 100%;
|
2017-05-22 19:43:54 +03:00
|
|
|
min-height: auto;
|
2017-05-08 13:35:42 +03:00
|
|
|
margin-bottom: 2vw;
|
|
|
|
border: none;
|
|
|
|
letter-spacing: 0.8px;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 3.2rem;
|
2017-05-22 19:43:54 +03:00
|
|
|
line-height: 1.15em;
|
|
|
|
color: var(--darkgrey);
|
2017-04-19 16:20:42 +03:00
|
|
|
|
|
|
|
}
|
2017-04-25 14:32:27 +03:00
|
|
|
|
|
|
|
.gh-editor-wordcount {
|
2017-05-08 13:35:42 +03:00
|
|
|
position: fixed;
|
|
|
|
bottom: 0px;
|
|
|
|
padding:10px;
|
2017-04-25 14:32:27 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
.gh-editor-wordcount {
|
|
|
|
display: none;
|
|
|
|
}
|
2017-05-08 12:44:02 +03:00
|
|
|
}
|
2017-05-08 13:35:42 +03:00
|
|
|
|
|
|
|
/* SimpleMDE editor
|
|
|
|
/* ---------------------------------------------------------- */
|
|
|
|
|
2017-05-08 21:15:56 +03:00
|
|
|
.gh-editor-title {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
2017-06-01 17:56:06 +03:00
|
|
|
.gh-editor-title::placeholder {
|
2017-05-08 21:15:56 +03:00
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-markdown-editor {
|
2017-05-08 13:35:42 +03:00
|
|
|
position: relative;
|
2017-05-08 21:15:56 +03:00
|
|
|
width: 100%;
|
2017-05-17 13:56:28 +03:00
|
|
|
height: 100vh;
|
2017-05-08 21:15:56 +03:00
|
|
|
overflow-y: auto;
|
|
|
|
z-index: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-markdown-editor-pane,
|
|
|
|
.gh-markdown-editor-preview {
|
|
|
|
padding: 10vw 4vw;
|
|
|
|
}
|
|
|
|
|
2017-05-22 19:43:54 +03:00
|
|
|
.gh-markdown-editor-side-by-side .gh-markdown-editor-pane,
|
|
|
|
.gh-markdown-editor-side-by-side .gh-markdown-editor-preview {
|
|
|
|
padding: 4vw;
|
|
|
|
}
|
|
|
|
|
2017-05-08 21:15:56 +03:00
|
|
|
.gh-markdown-editor-side-by-side {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
overflow-y: hidden;
|
2017-05-22 19:43:54 +03:00
|
|
|
margin-top: 43px;
|
2017-05-08 21:15:56 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-markdown-editor-side-by-side .gh-markdown-editor-pane,
|
|
|
|
.gh-markdown-editor-side-by-side .gh-markdown-editor-preview {
|
|
|
|
width: 50%;
|
|
|
|
height: 100%;
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-markdown-editor-preview {
|
2017-05-22 19:43:54 +03:00
|
|
|
border-left: var(--lightgrey) 1px solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-markdown-editor-preview a {
|
|
|
|
text-decoration: underline;
|
2017-05-08 13:35:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor-footer {
|
2017-06-01 17:54:23 +03:00
|
|
|
height: 46px;
|
|
|
|
min-height: 46px;
|
2017-05-08 13:35:42 +03:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
2017-05-22 19:43:54 +03:00
|
|
|
border-top: var(--lightgrey) 1px solid;
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 800px) {
|
|
|
|
.gh-editor-footer { display: none; }
|
2017-05-08 13:35:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor-footer .editor-toolbar {
|
|
|
|
border: none;
|
|
|
|
border-radius: 0;
|
2017-06-12 18:13:10 +03:00
|
|
|
background: transparent;
|
2017-05-08 13:35:42 +03:00
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor-footer .editor-toolbar:before,
|
|
|
|
.gh-editor-footer .editor-toolbar:after {
|
|
|
|
content: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor-footer .editor-toolbar a:focus {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor .CodeMirror {
|
|
|
|
padding: 0;
|
|
|
|
overflow: visible;
|
2017-06-12 18:13:10 +03:00
|
|
|
background: transparent;
|
2017-05-08 13:35:42 +03:00
|
|
|
}
|
|
|
|
|
2017-06-21 15:04:12 +03:00
|
|
|
.gh-editor .CodeMirror-cursor {
|
|
|
|
border-color: var(--blue);
|
|
|
|
border-width: 3px;
|
|
|
|
}
|
|
|
|
|
2017-05-10 15:36:07 +03:00
|
|
|
/* fix visible scrollbars when OSX is set to show them */
|
|
|
|
.gh-editor .CodeMirror-scroll {
|
|
|
|
overflow: visible !important;
|
|
|
|
}
|
|
|
|
|
2017-06-05 17:31:57 +03:00
|
|
|
.gh-editor .CodeMirror-scroll:hover {
|
|
|
|
cursor: text;
|
|
|
|
}
|
|
|
|
|
2017-05-12 11:06:56 +03:00
|
|
|
/* prevent markdown content showing after the preview if the preview is shorter */
|
|
|
|
.gh-editor-preview .CodeMirror-scroll {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2017-05-08 13:35:42 +03:00
|
|
|
.gh-editor .gh-editor-title,
|
|
|
|
.gh-editor .CodeMirror-wrap {
|
|
|
|
max-width: 760px;
|
2017-05-22 19:43:54 +03:00
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
2017-05-08 13:35:42 +03:00
|
|
|
border: none;
|
2017-06-12 18:13:10 +03:00
|
|
|
background: transparent;
|
2017-05-08 13:35:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor .CodeMirror pre {
|
|
|
|
padding: 0;
|
2017-05-22 19:43:54 +03:00
|
|
|
font-family: “Consolas”, monaco, monospace;
|
|
|
|
font-size: 1.6rem;
|
|
|
|
color: color(var(--darkgrey) l(+5%));
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 960px) {
|
|
|
|
.gh-editor .CodeMirror pre {
|
|
|
|
font-size: 1.4rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor .CodeMirror .cm-strong {
|
|
|
|
color: var(--darkgrey);
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor .CodeMirror .cm-url {
|
|
|
|
text-decoration: underline;
|
2017-05-08 13:35:42 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor .editor-preview {
|
|
|
|
height: auto;
|
|
|
|
margin-top: 4px;
|
|
|
|
padding: 0;
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
|
2017-05-22 19:43:54 +03:00
|
|
|
.gh-editor .editor-preview,
|
|
|
|
.gh-markdown-editor-preview {
|
|
|
|
font-family: Georgia, Times, Serif;
|
|
|
|
font-size: 1.9rem;
|
|
|
|
color: color(var(--darkgrey) l(+5%));
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-markdown-editor-preview-title {
|
|
|
|
margin-bottom: 2vw;
|
|
|
|
}
|
|
|
|
|
2017-05-08 13:35:42 +03:00
|
|
|
.gh-editor-drop-target,
|
|
|
|
.gh-editor-image-upload {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
border: 2px solid blue;
|
|
|
|
content: '';
|
|
|
|
z-index: 9999;
|
|
|
|
background-color: rgba(255,255,255,0.6);
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor-drop-target .drop-target-message {
|
|
|
|
padding: 1em;
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor-image-upload.-error {
|
|
|
|
border: 2px solid red;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor-image-upload-content {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
flex-direction: column;
|
|
|
|
padding: 1em;
|
|
|
|
background-color: #fff;
|
|
|
|
border-radius: 1em;
|
|
|
|
max-width: 80%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.gh-editor-image-upload .gh-progress-container-progress {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* TODO: need a way to make stroke + fill global without causing issues with certain icons */
|
|
|
|
.gh-editor-image-upload .gh-btn-grey svg path {
|
|
|
|
stroke: color(var(--darkgrey) l(+15%));
|
|
|
|
}
|
2017-05-10 15:36:07 +03:00
|
|
|
|
2017-06-12 18:13:10 +03:00
|
|
|
.editor-toolbar a {
|
|
|
|
color: var(--darkgrey) !important;
|
|
|
|
}
|
|
|
|
|
2017-05-12 11:06:56 +03:00
|
|
|
.editor-toolbar a.disabled,
|
|
|
|
.gh-editor-preview .editor-toolbar a:not(.no-disable) {
|
2017-05-10 15:36:07 +03:00
|
|
|
pointer-events: none;
|
2017-06-12 18:13:10 +03:00
|
|
|
color: var(--lightgrey) !important;
|
2017-05-10 15:36:07 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
.editor-toolbar a.disabled:hover {
|
|
|
|
border: none;
|
|
|
|
}
|
2017-05-18 13:08:50 +03:00
|
|
|
|
|
|
|
.editor-toolbar .fa-check {
|
|
|
|
position: relative;
|
|
|
|
vertical-align: bottom;
|
|
|
|
}
|
|
|
|
.editor-toolbar .fa-check:before {
|
|
|
|
font-size: 14px;
|
|
|
|
position: absolute;
|
|
|
|
line-height: 14px;
|
|
|
|
right: 3px;
|
|
|
|
bottom: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.editor-toolbar .fa-check:after {
|
|
|
|
content: 'abc';
|
|
|
|
font-family: var(--font-family);
|
|
|
|
position: absolute;
|
|
|
|
left: 4px;
|
|
|
|
font-size: 9px;
|
|
|
|
top: 6px;
|
|
|
|
line-height: 9px;
|
|
|
|
}
|
2017-05-22 19:43:54 +03:00
|
|
|
|
|
|
|
.editor-statusbar .words:before {
|
|
|
|
content: "Words: ";
|
|
|
|
}
|
|
|
|
|
|
|
|
.CodeMirror .CodeMirror-code .cm-link {
|
|
|
|
color: var(--blue);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.editor-statusbar {
|
|
|
|
padding: 8px 15px;
|
|
|
|
color: var(--midgrey);
|
|
|
|
}
|
|
|
|
|
|
|
|
.editor-toolbar i.separator {
|
|
|
|
border-left: color(var(--lightgrey) l(-3%)) 1px solid;
|
|
|
|
border-right: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.editor-toolbar a.active,
|
|
|
|
.editor-toolbar a:hover {
|
|
|
|
border-color: color(var(--lightgrey) l(-5%));
|
|
|
|
}
|
|
|
|
|
2017-06-21 15:39:35 +03:00
|
|
|
.CodeMirror .CodeMirror-selectedtext {
|
|
|
|
color: #000;
|
|
|
|
}
|
|
|
|
|
2017-05-22 19:43:54 +03:00
|
|
|
.CodeMirror .CodeMirror-selected {
|
|
|
|
background: color(var(--blue) lightness(+30%));
|
|
|
|
}
|