2021-04-30 15:38:28 +02:00
|
|
|
@classicHorizMargin: 2rem;
|
|
|
|
|
2020-03-11 18:28:02 +01:00
|
|
|
body#pad.classic {
|
|
|
|
header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
#editor {
|
|
|
|
top: 4em;
|
2021-04-30 15:38:28 +02:00
|
|
|
bottom: 1em;
|
2020-03-11 18:28:02 +01:00
|
|
|
}
|
|
|
|
#title {
|
|
|
|
top: 4.25rem;
|
|
|
|
bottom: unset;
|
|
|
|
height: auto;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 2em;
|
2021-04-30 15:38:28 +02:00
|
|
|
padding: 0;
|
2020-03-11 18:28:02 +01:00
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
#tools {
|
|
|
|
#belt {
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#target {
|
|
|
|
ul {
|
|
|
|
a {
|
|
|
|
padding: 0 0.5em !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-30 15:38:28 +02:00
|
|
|
#title {
|
|
|
|
margin-left: @classicHorizMargin;
|
|
|
|
margin-right: @classicHorizMargin;
|
|
|
|
}
|
|
|
|
|
2020-03-11 17:42:43 +01:00
|
|
|
.ProseMirror {
|
|
|
|
position: relative;
|
|
|
|
height: calc(~"100% - 1.6em");
|
|
|
|
overflow-y: auto;
|
|
|
|
box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
font-size: 1.2em;
|
|
|
|
word-wrap: break-word;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
-webkit-font-variant-ligatures: none;
|
|
|
|
font-variant-ligatures: none;
|
2021-04-30 15:38:28 +02:00
|
|
|
padding: 0.5em @classicHorizMargin;
|
2020-03-11 18:28:02 +01:00
|
|
|
line-height: 1.5;
|
|
|
|
outline: none;
|
2020-03-11 17:42:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror pre {
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror li {
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-hideselection *::selection {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-hideselection *::-moz-selection {
|
|
|
|
background: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-hideselection {
|
|
|
|
caret-color: transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-selectednode {
|
|
|
|
outline: 2px solid #8cf;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Make sure li selections wrap around markers */
|
|
|
|
|
|
|
|
li.ProseMirror-selectednode {
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
li.ProseMirror-selectednode:after {
|
|
|
|
content: "";
|
|
|
|
position: absolute;
|
|
|
|
left: -32px;
|
|
|
|
right: -2px;
|
|
|
|
top: -2px;
|
|
|
|
bottom: -2px;
|
|
|
|
border: 2px solid #8cf;
|
|
|
|
pointer-events: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-textblock-dropdown {
|
|
|
|
min-width: 3em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu {
|
|
|
|
margin: 0 -4px;
|
|
|
|
line-height: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-tooltip .ProseMirror-menu {
|
|
|
|
width: -webkit-fit-content;
|
|
|
|
width: fit-content;
|
|
|
|
white-space: pre;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menuitem {
|
|
|
|
margin-right: 3px;
|
|
|
|
display: inline-block;
|
2021-03-03 23:02:56 +01:00
|
|
|
div {
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
2020-03-11 17:42:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menuseparator {
|
|
|
|
border-right: 1px solid #ddd;
|
|
|
|
margin-right: 3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-dropdown, .ProseMirror-menu-dropdown-menu {
|
|
|
|
font-size: 90%;
|
|
|
|
white-space: nowrap;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-dropdown {
|
|
|
|
vertical-align: 1px;
|
|
|
|
cursor: pointer;
|
|
|
|
position: relative;
|
|
|
|
padding-right: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-dropdown-wrap {
|
|
|
|
padding: 1px 0 1px 4px;
|
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-dropdown:after {
|
|
|
|
content: "";
|
|
|
|
border-left: 4px solid transparent;
|
|
|
|
border-right: 4px solid transparent;
|
|
|
|
border-top: 4px solid currentColor;
|
|
|
|
opacity: .6;
|
|
|
|
position: absolute;
|
|
|
|
right: 4px;
|
|
|
|
top: calc(50% - 2px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-dropdown-menu, .ProseMirror-menu-submenu {
|
|
|
|
position: absolute;
|
|
|
|
background: white;
|
|
|
|
color: #666;
|
|
|
|
border: 1px solid #aaa;
|
|
|
|
padding: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-dropdown-menu {
|
|
|
|
z-index: 15;
|
|
|
|
min-width: 6em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-dropdown-item {
|
|
|
|
cursor: pointer;
|
|
|
|
padding: 2px 8px 2px 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-dropdown-item:hover {
|
|
|
|
background: #f2f2f2;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-submenu-wrap {
|
|
|
|
position: relative;
|
|
|
|
margin-right: -4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-submenu-label:after {
|
|
|
|
content: "";
|
|
|
|
border-top: 4px solid transparent;
|
|
|
|
border-bottom: 4px solid transparent;
|
|
|
|
border-left: 4px solid currentColor;
|
|
|
|
opacity: .6;
|
|
|
|
position: absolute;
|
|
|
|
right: 4px;
|
|
|
|
top: calc(50% - 4px);
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-submenu {
|
|
|
|
display: none;
|
|
|
|
min-width: 4em;
|
|
|
|
left: 100%;
|
|
|
|
top: -3px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-active {
|
|
|
|
background: #eee;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-active {
|
|
|
|
background: #eee;
|
|
|
|
border-radius: 4px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-disabled {
|
|
|
|
opacity: .3;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-submenu-wrap:hover .ProseMirror-menu-submenu, .ProseMirror-menu-submenu-wrap-active .ProseMirror-menu-submenu {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menubar {
|
2021-04-30 15:25:24 +02:00
|
|
|
font-family: @sansFont;
|
2020-03-11 17:42:43 +01:00
|
|
|
position: relative;
|
|
|
|
min-height: 1em;
|
|
|
|
color: #666;
|
|
|
|
padding: 0.5em;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
right: 0;
|
|
|
|
background: rgba(255, 255, 255, 0.8);
|
|
|
|
z-index: 10;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: visible;
|
2021-04-30 15:38:28 +02:00
|
|
|
margin-left: @classicHorizMargin;
|
|
|
|
margin-right: @classicHorizMargin;
|
2020-03-11 17:42:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-icon {
|
|
|
|
display: inline-block;
|
|
|
|
line-height: .8;
|
|
|
|
vertical-align: -2px; /* Compensate for padding */
|
|
|
|
padding: 2px 8px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menu-disabled.ProseMirror-icon {
|
|
|
|
cursor: default;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-icon svg {
|
|
|
|
fill: currentColor;
|
|
|
|
height: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-icon span {
|
|
|
|
vertical-align: text-top;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-gapcursor {
|
|
|
|
display: none;
|
|
|
|
pointer-events: none;
|
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-gapcursor:after {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
position: absolute;
|
|
|
|
top: -2px;
|
|
|
|
width: 20px;
|
|
|
|
border-top: 1px solid black;
|
|
|
|
animation: ProseMirror-cursor-blink 1.1s steps(2, start) infinite;
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes ProseMirror-cursor-blink {
|
|
|
|
to {
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-focused .ProseMirror-gapcursor {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Add space around the hr to make clicking it easier */
|
|
|
|
|
|
|
|
.ProseMirror-example-setup-style hr {
|
2021-04-29 23:05:18 +02:00
|
|
|
padding: 4px 10px;
|
2020-03-11 17:42:43 +01:00
|
|
|
border: none;
|
|
|
|
margin: 1em 0;
|
2021-04-29 23:05:18 +02:00
|
|
|
background: initial;
|
2020-03-11 17:42:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-example-setup-style hr:after {
|
|
|
|
content: "";
|
|
|
|
display: block;
|
|
|
|
height: 1px;
|
2021-04-29 23:05:18 +02:00
|
|
|
background-color: #ccc;
|
2020-03-11 17:42:43 +01:00
|
|
|
line-height: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror ul, .ProseMirror ol {
|
|
|
|
padding-left: 30px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror blockquote {
|
|
|
|
padding-left: 1em;
|
2021-04-29 23:07:40 +02:00
|
|
|
border-left: 4px solid #ddd;
|
|
|
|
color: #767676;
|
2020-03-11 17:42:43 +01:00
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-example-setup-style img {
|
|
|
|
cursor: default;
|
2021-03-19 21:59:01 +01:00
|
|
|
max-width: 100%;
|
2020-03-11 17:42:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-prompt {
|
|
|
|
background: white;
|
2021-03-03 22:41:21 +01:00
|
|
|
padding: 1em;
|
2020-03-11 17:42:43 +01:00
|
|
|
border: 1px solid silver;
|
|
|
|
position: fixed;
|
2021-03-03 22:41:21 +01:00
|
|
|
border-radius: 0.25em;
|
2020-03-11 17:42:43 +01:00
|
|
|
z-index: 11;
|
|
|
|
box-shadow: -.5px 2px 5px rgba(0, 0, 0, .2);
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-prompt h5 {
|
2021-03-03 22:41:21 +01:00
|
|
|
margin: 0 0 0.75em;
|
|
|
|
font-family: @sansFont;
|
2020-03-11 17:42:43 +01:00
|
|
|
font-size: 100%;
|
|
|
|
color: #444;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-prompt input[type="text"],
|
|
|
|
.ProseMirror-prompt textarea {
|
|
|
|
background: #eee;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-prompt input[type="text"] {
|
2021-03-03 22:41:21 +01:00
|
|
|
margin: 0.25em 0;
|
2020-03-11 17:42:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-prompt-close {
|
|
|
|
position: absolute;
|
|
|
|
left: 2px;
|
|
|
|
top: 1px;
|
|
|
|
color: #666;
|
|
|
|
border: none;
|
|
|
|
background: transparent;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-prompt-close:after {
|
|
|
|
content: "✕";
|
|
|
|
font-size: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-invalid {
|
|
|
|
background: #ffc;
|
|
|
|
border: 1px solid #cc7;
|
|
|
|
border-radius: 4px;
|
|
|
|
padding: 5px 10px;
|
|
|
|
position: absolute;
|
|
|
|
min-width: 10em;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-prompt-buttons {
|
|
|
|
margin-top: 5px;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#editor, .editor {
|
|
|
|
position: fixed;
|
|
|
|
top: 0;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
left: 0;
|
|
|
|
color: black;
|
|
|
|
background-clip: padding-box;
|
|
|
|
padding: 5px 0;
|
|
|
|
margin: 4em auto 23px auto;
|
|
|
|
}
|
|
|
|
|
2021-04-30 15:38:28 +02:00
|
|
|
.dark #editor {
|
|
|
|
color: white;
|
|
|
|
}
|
|
|
|
|
2020-03-11 17:42:43 +01:00
|
|
|
.ProseMirror p:first-child,
|
|
|
|
.ProseMirror h1:first-child,
|
|
|
|
.ProseMirror h2:first-child,
|
|
|
|
.ProseMirror h3:first-child,
|
|
|
|
.ProseMirror h4:first-child,
|
|
|
|
.ProseMirror h5:first-child,
|
|
|
|
.ProseMirror h6:first-child {
|
|
|
|
margin-top: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror p {
|
|
|
|
margin-bottom: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
textarea {
|
|
|
|
width: 100%;
|
|
|
|
height: 123px;
|
|
|
|
border: 1px solid silver;
|
|
|
|
box-sizing: border-box;
|
|
|
|
-moz-box-sizing: border-box;
|
|
|
|
padding: 3px 10px;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
font-family: inherit;
|
|
|
|
font-size: inherit;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menubar-wrapper {
|
|
|
|
height: 100%;
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
|
|
|
|
.ProseMirror-menubar-wrapper, #markdown textarea {
|
|
|
|
display: block;
|
|
|
|
margin-bottom: 4px;
|
|
|
|
}
|
|
|
|
|
2021-03-03 23:02:56 +01:00
|
|
|
.editorreadmore {
|
|
|
|
color: @textLinkColor;
|
|
|
|
text-decoration: underline;
|
|
|
|
text-align: center;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
2020-03-11 17:42:43 +01:00
|
|
|
@media all and (min-width: 50em) {
|
2021-04-30 15:38:28 +02:00
|
|
|
#photo-upload label {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
.ProseMirror-menubar, #title, #photo-upload {
|
2020-03-11 17:42:43 +01:00
|
|
|
margin-left: 10%;
|
|
|
|
margin-right: 10%;
|
|
|
|
}
|
2021-04-30 15:38:28 +02:00
|
|
|
.ProseMirror {
|
|
|
|
padding-left: 10%;
|
|
|
|
padding-right: 10%;
|
|
|
|
}
|
2020-03-11 17:42:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width: 60em) {
|
2021-04-30 15:38:28 +02:00
|
|
|
.ProseMirror-menubar, #title, #photo-upload {
|
2020-03-11 17:42:43 +01:00
|
|
|
margin-left: 15%;
|
|
|
|
margin-right: 15%;
|
|
|
|
}
|
2021-04-30 15:38:28 +02:00
|
|
|
.ProseMirror {
|
|
|
|
padding-left: 15%;
|
|
|
|
padding-right: 15%;
|
|
|
|
}
|
2020-03-11 17:42:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width: 70em) {
|
2021-04-30 15:38:28 +02:00
|
|
|
.ProseMirror-menubar, #title, #photo-upload {
|
2020-03-11 17:42:43 +01:00
|
|
|
margin-left: 20%;
|
|
|
|
margin-right: 20%;
|
|
|
|
}
|
2021-04-30 15:38:28 +02:00
|
|
|
.ProseMirror {
|
|
|
|
padding-left: 20%;
|
|
|
|
padding-right: 20%;
|
|
|
|
}
|
2020-03-11 17:42:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width: 85em) {
|
2021-04-30 15:38:28 +02:00
|
|
|
.ProseMirror-menubar, #title, #photo-upload {
|
2020-03-11 17:42:43 +01:00
|
|
|
margin-left: 25%;
|
|
|
|
margin-right: 25%;
|
|
|
|
}
|
2021-04-30 15:38:28 +02:00
|
|
|
.ProseMirror {
|
|
|
|
padding-left: 25%;
|
|
|
|
padding-right: 25%;
|
|
|
|
}
|
2020-03-11 17:42:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
@media all and (min-width: 105em) {
|
2021-04-30 15:38:28 +02:00
|
|
|
.ProseMirror-menubar, #title, #photo-upload {
|
2020-03-11 17:42:43 +01:00
|
|
|
margin-left: 30%;
|
|
|
|
margin-right: 30%;
|
|
|
|
}
|
2021-04-30 15:38:28 +02:00
|
|
|
.ProseMirror {
|
|
|
|
padding-left: 30%;
|
|
|
|
padding-right: 30%;
|
|
|
|
}
|
2020-03-11 17:42:43 +01:00
|
|
|
}
|