|
|
@ -1,3 +1,5 @@ |
|
|
|
|
|
|
|
@classicHorizMargin: 2rem; |
|
|
|
|
|
|
|
|
|
|
|
body#pad.classic { |
|
|
|
body#pad.classic { |
|
|
|
header { |
|
|
|
header { |
|
|
|
display: flex; |
|
|
|
display: flex; |
|
|
@ -6,6 +8,7 @@ body#pad.classic { |
|
|
|
} |
|
|
|
} |
|
|
|
#editor { |
|
|
|
#editor { |
|
|
|
top: 4em; |
|
|
|
top: 4em; |
|
|
|
|
|
|
|
bottom: 1em; |
|
|
|
} |
|
|
|
} |
|
|
|
#title { |
|
|
|
#title { |
|
|
|
top: 4.25rem; |
|
|
|
top: 4.25rem; |
|
|
@ -13,8 +16,7 @@ body#pad.classic { |
|
|
|
height: auto; |
|
|
|
height: auto; |
|
|
|
font-weight: bold; |
|
|
|
font-weight: bold; |
|
|
|
font-size: 2em; |
|
|
|
font-size: 2em; |
|
|
|
padding-top: 0; |
|
|
|
padding: 0; |
|
|
|
padding-bottom: 0; |
|
|
|
|
|
|
|
border: 0; |
|
|
|
border: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
#tools { |
|
|
|
#tools { |
|
|
@ -31,6 +33,11 @@ body#pad.classic { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#title { |
|
|
|
|
|
|
|
margin-left: @classicHorizMargin; |
|
|
|
|
|
|
|
margin-right: @classicHorizMargin; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ProseMirror { |
|
|
|
.ProseMirror { |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
height: calc(~"100% - 1.6em"); |
|
|
|
height: calc(~"100% - 1.6em"); |
|
|
@ -42,7 +49,7 @@ body#pad.classic { |
|
|
|
white-space: pre-wrap; |
|
|
|
white-space: pre-wrap; |
|
|
|
-webkit-font-variant-ligatures: none; |
|
|
|
-webkit-font-variant-ligatures: none; |
|
|
|
font-variant-ligatures: none; |
|
|
|
font-variant-ligatures: none; |
|
|
|
padding: 0.5em 0; |
|
|
|
padding: 0.5em @classicHorizMargin; |
|
|
|
line-height: 1.5; |
|
|
|
line-height: 1.5; |
|
|
|
outline: none; |
|
|
|
outline: none; |
|
|
|
} |
|
|
|
} |
|
|
@ -209,6 +216,7 @@ li.ProseMirror-selectednode:after { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ProseMirror-menubar { |
|
|
|
.ProseMirror-menubar { |
|
|
|
|
|
|
|
font-family: @sansFont; |
|
|
|
position: relative; |
|
|
|
position: relative; |
|
|
|
min-height: 1em; |
|
|
|
min-height: 1em; |
|
|
|
color: #666; |
|
|
|
color: #666; |
|
|
@ -221,6 +229,8 @@ li.ProseMirror-selectednode:after { |
|
|
|
-moz-box-sizing: border-box; |
|
|
|
-moz-box-sizing: border-box; |
|
|
|
box-sizing: border-box; |
|
|
|
box-sizing: border-box; |
|
|
|
overflow: visible; |
|
|
|
overflow: visible; |
|
|
|
|
|
|
|
margin-left: @classicHorizMargin; |
|
|
|
|
|
|
|
margin-right: @classicHorizMargin; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ProseMirror-icon { |
|
|
|
.ProseMirror-icon { |
|
|
@ -273,16 +283,17 @@ li.ProseMirror-selectednode:after { |
|
|
|
/* Add space around the hr to make clicking it easier */ |
|
|
|
/* Add space around the hr to make clicking it easier */ |
|
|
|
|
|
|
|
|
|
|
|
.ProseMirror-example-setup-style hr { |
|
|
|
.ProseMirror-example-setup-style hr { |
|
|
|
padding: 2px 10px; |
|
|
|
padding: 4px 10px; |
|
|
|
border: none; |
|
|
|
border: none; |
|
|
|
margin: 1em 0; |
|
|
|
margin: 1em 0; |
|
|
|
|
|
|
|
background: initial; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ProseMirror-example-setup-style hr:after { |
|
|
|
.ProseMirror-example-setup-style hr:after { |
|
|
|
content: ""; |
|
|
|
content: ""; |
|
|
|
display: block; |
|
|
|
display: block; |
|
|
|
height: 1px; |
|
|
|
height: 1px; |
|
|
|
background-color: silver; |
|
|
|
background-color: #ccc; |
|
|
|
line-height: 2px; |
|
|
|
line-height: 2px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -292,13 +303,15 @@ li.ProseMirror-selectednode:after { |
|
|
|
|
|
|
|
|
|
|
|
.ProseMirror blockquote { |
|
|
|
.ProseMirror blockquote { |
|
|
|
padding-left: 1em; |
|
|
|
padding-left: 1em; |
|
|
|
border-left: 3px solid #eee; |
|
|
|
border-left: 4px solid #ddd; |
|
|
|
|
|
|
|
color: #767676; |
|
|
|
margin-left: 0; |
|
|
|
margin-left: 0; |
|
|
|
margin-right: 0; |
|
|
|
margin-right: 0; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ProseMirror-example-setup-style img { |
|
|
|
.ProseMirror-example-setup-style img { |
|
|
|
cursor: default; |
|
|
|
cursor: default; |
|
|
|
|
|
|
|
max-width: 100%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ProseMirror-prompt { |
|
|
|
.ProseMirror-prompt { |
|
|
@ -370,6 +383,10 @@ li.ProseMirror-selectednode:after { |
|
|
|
margin: 4em auto 23px auto; |
|
|
|
margin: 4em auto 23px auto; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.dark #editor { |
|
|
|
|
|
|
|
color: white; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
.ProseMirror p:first-child, |
|
|
|
.ProseMirror p:first-child, |
|
|
|
.ProseMirror h1:first-child, |
|
|
|
.ProseMirror h1:first-child, |
|
|
|
.ProseMirror h2:first-child, |
|
|
|
.ProseMirror h2:first-child, |
|
|
@ -415,36 +432,59 @@ textarea { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@media all and (min-width: 50em) { |
|
|
|
@media all and (min-width: 50em) { |
|
|
|
#editor { |
|
|
|
#photo-upload label { |
|
|
|
|
|
|
|
display: inline; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.ProseMirror-menubar, #title, #photo-upload { |
|
|
|
margin-left: 10%; |
|
|
|
margin-left: 10%; |
|
|
|
margin-right: 10%; |
|
|
|
margin-right: 10%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.ProseMirror { |
|
|
|
|
|
|
|
padding-left: 10%; |
|
|
|
|
|
|
|
padding-right: 10%; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@media all and (min-width: 60em) { |
|
|
|
@media all and (min-width: 60em) { |
|
|
|
#editor { |
|
|
|
.ProseMirror-menubar, #title, #photo-upload { |
|
|
|
margin-left: 15%; |
|
|
|
margin-left: 15%; |
|
|
|
margin-right: 15%; |
|
|
|
margin-right: 15%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.ProseMirror { |
|
|
|
|
|
|
|
padding-left: 15%; |
|
|
|
|
|
|
|
padding-right: 15%; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@media all and (min-width: 70em) { |
|
|
|
@media all and (min-width: 70em) { |
|
|
|
#editor { |
|
|
|
.ProseMirror-menubar, #title, #photo-upload { |
|
|
|
margin-left: 20%; |
|
|
|
margin-left: 20%; |
|
|
|
margin-right: 20%; |
|
|
|
margin-right: 20%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.ProseMirror { |
|
|
|
|
|
|
|
padding-left: 20%; |
|
|
|
|
|
|
|
padding-right: 20%; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@media all and (min-width: 85em) { |
|
|
|
@media all and (min-width: 85em) { |
|
|
|
#editor { |
|
|
|
.ProseMirror-menubar, #title, #photo-upload { |
|
|
|
margin-left: 25%; |
|
|
|
margin-left: 25%; |
|
|
|
margin-right: 25%; |
|
|
|
margin-right: 25%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.ProseMirror { |
|
|
|
|
|
|
|
padding-left: 25%; |
|
|
|
|
|
|
|
padding-right: 25%; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@media all and (min-width: 105em) { |
|
|
|
@media all and (min-width: 105em) { |
|
|
|
#editor { |
|
|
|
.ProseMirror-menubar, #title, #photo-upload { |
|
|
|
margin-left: 30%; |
|
|
|
margin-left: 30%; |
|
|
|
margin-right: 30%; |
|
|
|
margin-right: 30%; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.ProseMirror { |
|
|
|
|
|
|
|
padding-left: 30%; |
|
|
|
|
|
|
|
padding-right: 30%; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|