2022-05-17 15:37:07 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
html {
|
|
|
|
|
--text-color:rgba(0, 0, 0, 0.87);
|
2022-06-28 16:04:53 +00:00
|
|
|
--selected-text-color:#D42A20;
|
|
|
|
|
--text-placeholder-color: rgba(0,0,0,0.54);
|
2022-05-17 15:37:07 +00:00
|
|
|
--text-link-color:#0070e0;
|
|
|
|
|
--background-color:white;
|
|
|
|
|
--shadow-color:black;
|
|
|
|
|
color: var(--text-color);
|
|
|
|
|
background-color: var(--background-color);
|
2022-06-28 16:04:53 +00:00
|
|
|
--divider-color: rgba(0,0,0,0.15);
|
2022-05-17 15:37:07 +00:00
|
|
|
}
|
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
|
|
|
html {
|
|
|
|
|
--text-color:white;
|
2022-06-28 16:04:53 +00:00
|
|
|
--selected-text-color:#e45149;
|
|
|
|
|
--text-placeholder-color:rgba(255,255,255,0.33);
|
2022-05-17 15:37:07 +00:00
|
|
|
--text-link-color:#40a0ff;
|
|
|
|
|
--background-color:#111;
|
|
|
|
|
--shadow-color:black;
|
2022-06-28 16:04:53 +00:00
|
|
|
--divider-color: rgba(255,255,255,0.15);
|
2022-05-17 15:37:07 +00:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2018-05-26 00:16:21 +00:00
|
|
|
body {
|
2022-05-17 15:37:07 +00:00
|
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
|
2018-07-08 16:18:51 +00:00
|
|
|
line-height: 1.5em;
|
2022-06-28 16:04:53 +00:00
|
|
|
min-height:100vh;
|
2022-06-29 15:34:40 +00:00
|
|
|
display:
|
|
|
|
|
flex;
|
|
|
|
|
flex-direction: row-reverse;
|
2022-06-30 15:49:56 +00:00
|
|
|
/* justify-content: space-between; */
|
2022-06-29 15:34:40 +00:00
|
|
|
margin: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.editor-container {
|
2022-06-30 15:49:56 +00:00
|
|
|
/* margin: 0 auto; */
|
|
|
|
|
padding: 160px 6vmin 4vmin 6vmin;
|
|
|
|
|
/* max-width: 100%; */
|
2022-06-29 15:34:40 +00:00
|
|
|
/* background-color:#0070e0; */
|
2022-06-30 15:49:56 +00:00
|
|
|
/* box-sizing:
|
|
|
|
|
border-box; */
|
|
|
|
|
/* width: auto; */
|
|
|
|
|
width: 100%;
|
|
|
|
|
max-width: 45em;
|
|
|
|
|
margin: 0 auto;
|
2018-05-26 00:16:21 +00:00
|
|
|
}
|
|
|
|
|
|
2022-06-29 15:34:40 +00:00
|
|
|
body:not(.preview) #preview-frame {
|
|
|
|
|
display:none;
|
|
|
|
|
}
|
|
|
|
|
#preview-frame {
|
|
|
|
|
background-color:#fafafa;
|
|
|
|
|
border:0;
|
|
|
|
|
/* position:absolute; */
|
|
|
|
|
right:0;
|
|
|
|
|
width:50%;
|
|
|
|
|
bottom:0;
|
|
|
|
|
height:100vh;
|
|
|
|
|
background: repeating-conic-gradient(rgba(128,128,128,.10) 0% 25%, transparent 0% 50%) 50% / 4px 4px;
|
2022-06-30 15:49:56 +00:00
|
|
|
padding-top: 80px;
|
2022-06-29 15:34:40 +00:00
|
|
|
}
|
2018-07-08 16:18:51 +00:00
|
|
|
h1 {
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
}
|
|
|
|
|
h2 {
|
|
|
|
|
font-weight: 500;
|
|
|
|
|
}
|
2018-05-26 00:16:21 +00:00
|
|
|
|
2018-05-30 05:10:16 +00:00
|
|
|
a {
|
2022-05-17 15:37:07 +00:00
|
|
|
color: var(--text-link-color);
|
2018-05-30 05:10:16 +00:00
|
|
|
}
|
2018-06-10 14:41:58 +00:00
|
|
|
|
2018-07-08 16:18:51 +00:00
|
|
|
*[contenteditable="true"] {
|
2022-05-08 15:43:56 +00:00
|
|
|
/* display: inline-block; */
|
2018-07-08 16:18:51 +00:00
|
|
|
}
|
2018-06-10 14:41:58 +00:00
|
|
|
|
|
|
|
|
body.loaded:not(.edited) #placeholder {
|
2018-07-08 16:18:51 +00:00
|
|
|
display: block;
|
2018-05-26 00:16:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#placeholder {
|
2018-07-08 16:18:51 +00:00
|
|
|
display: none;
|
|
|
|
|
font-style: italic;
|
2022-05-17 15:37:07 +00:00
|
|
|
color: var(--text-placeholder-color);
|
2018-05-26 00:16:21 +00:00
|
|
|
pointer-events: none;
|
2018-07-08 16:18:51 +00:00
|
|
|
position: absolute;
|
2022-12-04 18:04:34 +00:00
|
|
|
z-index: 100;
|
2018-05-26 00:16:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body.drag #content {
|
|
|
|
|
outline: 3px dashed #ccc;
|
2018-07-08 16:18:51 +00:00
|
|
|
background-color: #fafafa;
|
|
|
|
|
border-radius: 1em;
|
2018-05-26 00:16:21 +00:00
|
|
|
pointer-events: all;
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-08 16:18:51 +00:00
|
|
|
#content,
|
|
|
|
|
#placeholder {
|
|
|
|
|
margin: -1em;
|
|
|
|
|
padding: 1em;
|
|
|
|
|
min-height: 7em;
|
2022-06-30 15:49:56 +00:00
|
|
|
/* margin-top: -3.6em; */
|
2018-05-26 00:16:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#content {
|
2018-07-08 16:18:51 +00:00
|
|
|
width: 100%;
|
|
|
|
|
outline: none;
|
2018-05-26 00:16:21 +00:00
|
|
|
}
|
|
|
|
|
#content:focus {
|
|
|
|
|
outline-color: #ccc;
|
|
|
|
|
}
|
2018-06-10 14:41:58 +00:00
|
|
|
|
|
|
|
|
#doc-title {
|
2018-07-08 16:18:51 +00:00
|
|
|
outline: none;
|
2022-06-28 16:04:53 +00:00
|
|
|
/* min-width: 180px; */
|
2022-12-04 18:04:34 +00:00
|
|
|
/* top: 0; */
|
|
|
|
|
position: absolute;
|
2022-06-28 16:04:53 +00:00
|
|
|
padding: 0 1em;
|
2022-12-04 18:04:34 +00:00
|
|
|
font-weight: bold;
|
2022-06-30 15:49:56 +00:00
|
|
|
/* opacity:0.33; */
|
2022-06-28 16:04:53 +00:00
|
|
|
user-select: none;
|
|
|
|
|
cursor:
|
|
|
|
|
default;
|
|
|
|
|
margin-left: -1em;
|
|
|
|
|
line-height: 2.5em;
|
|
|
|
|
display: inline-block;
|
2022-06-30 15:49:56 +00:00
|
|
|
margin-top: -2.7em;
|
|
|
|
|
z-index: 2000;
|
|
|
|
|
float: left;
|
2022-06-28 16:04:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#doc-title.open {
|
2022-06-30 15:49:56 +00:00
|
|
|
background-color:
|
|
|
|
|
var(--text-color);
|
|
|
|
|
color:
|
|
|
|
|
var(--background-color);
|
|
|
|
|
/* opacity:1.0; */
|
|
|
|
|
font-weight:
|
|
|
|
|
bold;
|
2022-06-28 16:04:53 +00:00
|
|
|
}
|
|
|
|
|
|
2022-12-04 18:04:34 +00:00
|
|
|
.no-metadata .metadata-on {
|
|
|
|
|
display:none;
|
|
|
|
|
}
|
2022-06-28 16:04:53 +00:00
|
|
|
|
2022-06-30 15:49:56 +00:00
|
|
|
#doc-title-text:empty:after {
|
2022-06-28 16:04:53 +00:00
|
|
|
content:"untitled";
|
2022-06-30 15:49:56 +00:00
|
|
|
opacity:0.5;
|
2022-12-04 18:04:34 +00:00
|
|
|
font-weight:normal;
|
2022-06-28 16:04:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#doc-title.open #metadata-text {
|
|
|
|
|
display:none;
|
2018-06-10 14:41:58 +00:00
|
|
|
}
|
2018-07-06 14:04:21 +00:00
|
|
|
|
2022-06-28 16:04:53 +00:00
|
|
|
body:not(.edited) #doc-title {
|
2022-06-30 15:49:56 +00:00
|
|
|
/* display:none; */
|
2022-06-28 16:04:53 +00:00
|
|
|
}
|
|
|
|
|
body.edited #doc-title:empty:after{
|
2018-07-08 16:18:51 +00:00
|
|
|
content: "untitled";
|
2022-05-17 15:37:07 +00:00
|
|
|
color: var(--text-placeholder-color);
|
2018-07-06 14:04:21 +00:00
|
|
|
}
|
|
|
|
|
|
2022-06-28 16:04:53 +00:00
|
|
|
body.edited #doc-title.open:after {
|
|
|
|
|
content:"metadata";
|
|
|
|
|
color: var(--background-color);
|
|
|
|
|
}
|
|
|
|
|
|
2018-06-10 14:41:58 +00:00
|
|
|
#doc-title:focus {
|
2022-06-28 16:04:53 +00:00
|
|
|
border-bottom: 1px solid var(--divider-color);
|
2018-06-10 14:41:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#doc-title:empty:before {
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
2022-05-17 15:37:07 +00:00
|
|
|
|
2018-05-26 00:16:21 +00:00
|
|
|
#content:empty:before {
|
|
|
|
|
content: attr(placeholder);
|
|
|
|
|
color: rgba(0, 0, 0, 0.2);
|
|
|
|
|
background: transparent;
|
|
|
|
|
}
|
2022-05-17 15:37:07 +00:00
|
|
|
|
2022-06-28 16:04:53 +00:00
|
|
|
#md-contents {
|
|
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
position: absolute;
|
|
|
|
|
/* top: 2em; */
|
|
|
|
|
background-color: var(--background-color);
|
|
|
|
|
padding: 1em;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
border: 2px solid var(--text-color);
|
|
|
|
|
box-shadow: 2px 1px var(--text-color);
|
|
|
|
|
gap: 2px;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
margin-left: -1em;
|
|
|
|
|
line-height:1.5em;
|
|
|
|
|
/* min-width: 320px; */
|
|
|
|
|
}
|
|
|
|
|
input {
|
|
|
|
|
border: none;
|
|
|
|
|
background-color: transparent;
|
|
|
|
|
border-left: -18px solid transparent;
|
|
|
|
|
margin:-1px -2px;
|
|
|
|
|
padding:1px 2px;
|
|
|
|
|
min-width: 18em;
|
|
|
|
|
color:var(--text-color);
|
|
|
|
|
}
|
|
|
|
|
input::placeholder {
|
|
|
|
|
color:var(--text-placeholder-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input:focus {
|
|
|
|
|
outline:none;
|
|
|
|
|
}
|
2018-07-04 19:22:21 +00:00
|
|
|
#doc-file {
|
2018-05-26 00:16:21 +00:00
|
|
|
border-radius: 1em;
|
2022-05-17 15:37:07 +00:00
|
|
|
background-color: #fafafa;
|
2018-05-26 00:16:21 +00:00
|
|
|
padding: 0.25em 1em;
|
2018-07-08 16:18:51 +00:00
|
|
|
margin-bottom: 2em;
|
2022-05-17 15:37:07 +00:00
|
|
|
background-position: top center;
|
|
|
|
|
background-repeat: no-repeat;
|
2022-06-28 16:04:53 +00:00
|
|
|
background-image: url("data:image/svg+xml,%3Csvg width='128' height='128' viewBox='0 0 128 128' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M112 126H20C18.8954 126 18 125.105 18 124V4C18 2.89543 18.8954 2 20 2H88.3431C88.8736 2 89.3823 2.21071 89.7574 2.58579L113.414 26.2426C113.789 26.6177 114 27.1264 114 27.6569V124C114 125.105 113.105 126 112 126Z' fill='white' stroke='black' stroke-width='4'/%3E%3Crect x='88' y='4' width='4' height='24' fill='black'/%3E%3Crect x='88' y='24' width='24' height='4' fill='black'/%3E%3C/svg%3E%0A");
|
2022-06-29 01:54:46 +00:00
|
|
|
background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgdmlld0JveD0iMCAwIDEyOCAxMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xMTIgMTI2SDIwQzE4Ljg5NTQgMTI2IDE4IDEyNS4xMDUgMTggMTI0VjRDMTggMi44OTU0MyAxOC44OTU0IDIgMjAgMkg4OC4zNDMxQzg4Ljg3MzYgMiA4OS4zODIzIDIuMjEwNzEgODkuNzU3NCAyLjU4NTc5TDExMy40MTQgMjYuMjQyNkMxMTMuNzg5IDI2LjYxNzcgMTE0IDI3LjEyNjQgMTE0IDI3LjY1NjlWMTI0QzExNCAxMjUuMTA1IDExMy4xMDUgMTI2IDExMiAxMjZaIiBmaWxsPSJ3aGl0ZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSI0Ii8+CjxyZWN0IHg9Ijg4IiB5PSI0IiB3aWR0aD0iNCIgaGVpZ2h0PSIyNCIgZmlsbD0iYmxhY2siLz4KPHJlY3QgeD0iODgiIHk9IjI0IiB3aWR0aD0iMjQiIGhlaWdodD0iNCIgZmlsbD0iYmxhY2siLz4KPC9zdmc+Cg==");
|
2022-06-28 16:04:53 +00:00
|
|
|
min-height: 160px;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding-top: 200px;
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
2022-07-21 09:39:52 +00:00
|
|
|
width: 100vw;
|
2022-06-28 16:04:53 +00:00
|
|
|
height: 100vh;
|
|
|
|
|
background-position: center 60px;
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
2018-07-04 19:22:21 +00:00
|
|
|
#doc-file:empty {
|
2018-07-08 16:18:51 +00:00
|
|
|
display: none;
|
2018-05-26 00:16:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ib-info {
|
2018-06-10 14:41:58 +00:00
|
|
|
pointer-events: all;
|
2018-05-26 00:16:21 +00:00
|
|
|
}
|
2018-06-10 14:41:58 +00:00
|
|
|
#ib-info:hover {
|
|
|
|
|
pointer-events: all;
|
2022-12-04 18:04:34 +00:00
|
|
|
color: var(--text-color);
|
2018-06-10 14:41:58 +00:00
|
|
|
}
|
|
|
|
|
|
2018-05-26 00:16:21 +00:00
|
|
|
/*#toolbar a#copy {
|
|
|
|
|
transition: transform 1s;
|
|
|
|
|
cursor: default;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#copy:active {
|
|
|
|
|
transform:translate(0, -0.5em);
|
|
|
|
|
transition: transform 100ms;
|
|
|
|
|
color:red;
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
|
2018-06-10 14:41:58 +00:00
|
|
|
#sharehint {
|
2018-07-08 16:18:51 +00:00
|
|
|
display: none;
|
|
|
|
|
position: fixed;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
text-align: center;
|
2018-06-10 14:41:58 +00:00
|
|
|
}
|
2018-05-26 00:16:21 +00:00
|
|
|
|
|
|
|
|
#toolbar button {
|
|
|
|
|
vertical-align: baseline;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#toolbar a.invalid {
|
|
|
|
|
text-decoration: line-through;
|
|
|
|
|
}
|
|
|
|
|
|
2018-07-08 16:18:51 +00:00
|
|
|
#length {
|
2022-06-28 16:04:53 +00:00
|
|
|
color:var(--text-placeholder-color);
|
|
|
|
|
text-align: right;
|
2018-07-08 16:18:51 +00:00
|
|
|
}
|
2018-06-10 14:41:58 +00:00
|
|
|
|
|
|
|
|
/*body.edited #toolbar {
|
|
|
|
|
opacity:1.0;
|
|
|
|
|
transform: translateY(0);
|
|
|
|
|
}
|
|
|
|
|
*/
|
2022-06-28 16:04:53 +00:00
|
|
|
|
|
|
|
|
.toolbar {
|
|
|
|
|
font-size: 0.25rem;
|
|
|
|
|
}
|
|
|
|
|
.toolbar .spacer {
|
|
|
|
|
width:auto;
|
|
|
|
|
flex-grow: 1;
|
|
|
|
|
}
|
|
|
|
|
#menubar {
|
|
|
|
|
font-size:1rem;
|
2018-07-08 16:18:51 +00:00
|
|
|
position: fixed;
|
2022-06-28 16:04:53 +00:00
|
|
|
/* top: 0; */
|
2018-07-08 16:18:51 +00:00
|
|
|
right: 0;
|
2022-06-28 16:04:53 +00:00
|
|
|
left: 0;
|
|
|
|
|
font-weight: 600;
|
2018-06-10 14:41:58 +00:00
|
|
|
transition: transform 100ms ease-out;
|
2018-07-08 16:18:51 +00:00
|
|
|
cursor: pointer;
|
2022-06-28 16:04:53 +00:00
|
|
|
/* height: 40px; */
|
|
|
|
|
/* height: 2.5rem; */
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
padding:0;
|
|
|
|
|
user-select: none;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
flex-direction: row;
|
2022-06-30 15:49:56 +00:00
|
|
|
/* flex-wrap: wrap; */
|
2022-06-28 16:04:53 +00:00
|
|
|
border: none;
|
|
|
|
|
/* background: var(--divider-color); */
|
|
|
|
|
/* z-index: 100; */
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
left:0;
|
|
|
|
|
right:0;
|
|
|
|
|
/* max-height: 5rem; */
|
|
|
|
|
padding:0;
|
|
|
|
|
border:
|
|
|
|
|
none;
|
2022-06-30 15:49:56 +00:00
|
|
|
/* background-color:
|
|
|
|
|
var(--background-color); */
|
2022-06-28 16:04:53 +00:00
|
|
|
display:
|
|
|
|
|
flex;
|
|
|
|
|
align-items: left;
|
2022-06-30 15:49:56 +00:00
|
|
|
flex-direction: row-reverse;
|
|
|
|
|
justify-content: flex-end;
|
|
|
|
|
/* flex-wrap: nowrap; */
|
2022-06-28 16:04:53 +00:00
|
|
|
/* height: 10rem; */
|
2022-06-30 15:49:56 +00:00
|
|
|
/* padding-left: 4vmin; */
|
|
|
|
|
z-index: 10;
|
2022-06-28 16:04:53 +00:00
|
|
|
}
|
2022-06-30 15:49:56 +00:00
|
|
|
|
2022-06-28 16:04:53 +00:00
|
|
|
#menubar > span {
|
|
|
|
|
display: flex;
|
|
|
|
|
/* outline:1px solid red; */
|
|
|
|
|
width:
|
|
|
|
|
auto;
|
|
|
|
|
margin-right: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.hide-before-edit,
|
|
|
|
|
.ql-formats {
|
|
|
|
|
opacity:1.0;
|
2022-06-30 15:49:56 +00:00
|
|
|
transition:
|
|
|
|
|
opacity 1s, transform 1s;
|
2022-06-28 16:04:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body:not(.edited) .hide-before-edit {
|
2022-06-30 15:49:56 +00:00
|
|
|
opacity: 0 !important;
|
2022-06-28 16:04:53 +00:00
|
|
|
pointer-events: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* body.loaded:not(.edited) #menubar .ql-formats{
|
|
|
|
|
opacity: 0;
|
|
|
|
|
pointer-events: none;
|
|
|
|
|
transform:translateX(-2px)
|
|
|
|
|
} */
|
2018-07-08 15:50:16 +00:00
|
|
|
#copy-message {
|
2018-07-08 16:18:51 +00:00
|
|
|
background: #2d2d2d;
|
|
|
|
|
color: white;
|
|
|
|
|
top: 0.5em;
|
|
|
|
|
right: 0.5em;
|
|
|
|
|
position: absolute;
|
|
|
|
|
padding: 0.5em 1em;
|
|
|
|
|
z-index: 100;
|
|
|
|
|
font-weight: bold;
|
2018-07-08 15:50:16 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body:not(.copied) #copy-message {
|
2018-07-08 16:18:51 +00:00
|
|
|
display: none;
|
2018-07-08 15:50:16 +00:00
|
|
|
}
|
|
|
|
|
|
2018-06-10 14:41:58 +00:00
|
|
|
#menus-share-hint {
|
2018-07-08 16:18:51 +00:00
|
|
|
content: "hello";
|
2022-06-28 16:04:53 +00:00
|
|
|
padding-left: 1em;
|
2018-06-10 14:41:58 +00:00
|
|
|
}
|
2022-06-28 16:04:53 +00:00
|
|
|
#menubar .disabled {
|
2018-07-08 16:18:51 +00:00
|
|
|
opacity: 0.333;
|
|
|
|
|
}
|
2022-06-28 16:04:53 +00:00
|
|
|
#menubar > div {
|
|
|
|
|
/* margin-left: 0.5em; */
|
2018-07-08 16:18:51 +00:00
|
|
|
cursor: pointer;
|
|
|
|
|
text-decoration: none;
|
2022-05-17 15:37:07 +00:00
|
|
|
color: var(--text-color);
|
|
|
|
|
vertical-align: middle;
|
2022-06-30 15:49:56 +00:00
|
|
|
padding: 0;
|
2022-06-28 16:04:53 +00:00
|
|
|
line-height: 2.5em;
|
|
|
|
|
/* height: 2em; */
|
|
|
|
|
/* margin-top: 2px; */
|
|
|
|
|
/* box-sizing: border-box; */
|
|
|
|
|
/* display: inline-block; */
|
|
|
|
|
height: 2.5rem;
|
|
|
|
|
/* overflow: hidden; */
|
|
|
|
|
/* width: 3.7rem; */
|
|
|
|
|
z-index: 100;
|
|
|
|
|
white-space: nowrap;
|
|
|
|
|
position: relative;
|
2018-07-08 16:18:51 +00:00
|
|
|
}
|
2022-06-28 16:04:53 +00:00
|
|
|
#menubar .menu a:hover {
|
|
|
|
|
/* text-decoration: underline; */
|
|
|
|
|
background-color: var(--text-color);
|
|
|
|
|
color: var(--background-color);
|
2018-06-10 14:41:58 +00:00
|
|
|
}
|
2018-05-26 00:16:21 +00:00
|
|
|
|
2018-06-10 14:41:58 +00:00
|
|
|
.menu {
|
2018-07-08 16:18:51 +00:00
|
|
|
width: auto;
|
|
|
|
|
display: none;
|
2022-06-28 16:04:53 +00:00
|
|
|
color: var(--text-color);
|
|
|
|
|
/* background-color: var(--background-color); */
|
2022-05-17 15:37:07 +00:00
|
|
|
border: 2px solid currentColor;
|
2022-06-28 16:04:53 +00:00
|
|
|
padding: 0.5em 0;
|
2022-05-17 15:37:07 +00:00
|
|
|
box-shadow: 2px 2px var(--shadow-color);
|
2022-06-28 16:04:53 +00:00
|
|
|
margin-right: 2px;
|
|
|
|
|
border-radius: 2px;
|
|
|
|
|
margin-top: -2px;
|
|
|
|
|
z-index: 300;
|
|
|
|
|
/* top: 100px; */
|
|
|
|
|
/* text-align: left; */
|
|
|
|
|
/* float: right; */
|
|
|
|
|
/* width: 10rem; */
|
|
|
|
|
position: absolute;
|
|
|
|
|
/* right: 1rem; */
|
|
|
|
|
}
|
2022-05-17 15:37:07 +00:00
|
|
|
|
2022-06-28 16:04:53 +00:00
|
|
|
#ql-header .ql-picker-label:before {
|
|
|
|
|
/* min-width: 7.5rem !important; */
|
|
|
|
|
max-width:20px;
|
|
|
|
|
overflow:
|
|
|
|
|
hidden;
|
|
|
|
|
content:
|
|
|
|
|
"H";
|
|
|
|
|
font-size: 19px;
|
|
|
|
|
line-height: 17px;
|
|
|
|
|
}
|
|
|
|
|
div.menu-contents {
|
|
|
|
|
display:none;
|
|
|
|
|
}
|
2022-05-17 15:37:07 +00:00
|
|
|
|
2022-06-28 16:04:53 +00:00
|
|
|
.menu-visible .menu {
|
2018-07-08 16:18:51 +00:00
|
|
|
display: block;
|
2022-06-28 16:04:53 +00:00
|
|
|
background-color: var(--background-color);
|
2018-06-10 14:41:58 +00:00
|
|
|
}
|
2018-05-26 00:16:21 +00:00
|
|
|
|
2022-06-28 16:04:53 +00:00
|
|
|
#menubar > a:active,
|
|
|
|
|
#menubar.menu-visible .menu-item {
|
|
|
|
|
background-color: var(--text-color);
|
|
|
|
|
color: var(--background-color);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#md-contents:not(.menu-visible) {
|
|
|
|
|
display:none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.menu-visible > .menu-item {
|
|
|
|
|
background-color: var(--text-color);
|
|
|
|
|
color: var(--background-color);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.menu-item {
|
2022-06-30 15:49:56 +00:00
|
|
|
padding: 0 1em;
|
|
|
|
|
cursor:
|
|
|
|
|
default;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
line-height: 40px;
|
|
|
|
|
}
|
|
|
|
|
.toolbar-right .menu-item {
|
|
|
|
|
margin-left: -0.5em;
|
|
|
|
|
}
|
|
|
|
|
.menu-item:hover {
|
|
|
|
|
background-color:var(--text-color);
|
|
|
|
|
color:var(--background-color) !important;
|
2018-07-04 17:47:41 +00:00
|
|
|
}
|
2018-05-26 00:16:21 +00:00
|
|
|
|
2018-06-10 14:41:58 +00:00
|
|
|
.menu hr {
|
2018-07-08 16:18:51 +00:00
|
|
|
border: none;
|
2022-06-28 16:04:53 +00:00
|
|
|
background-color: transparent;
|
|
|
|
|
height: 0;
|
|
|
|
|
border-bottom: 1px dotted var(--text-color);
|
|
|
|
|
cursor:default;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.inputrow {
|
|
|
|
|
padding: 0.2em 0;
|
|
|
|
|
border-bottom: 1px solid var(--divider-color);
|
|
|
|
|
display: flex;
|
|
|
|
|
margin-bottom: 0.5em;
|
|
|
|
|
}
|
|
|
|
|
.inputrow:focus-within {
|
|
|
|
|
border-bottom:2px solid var(--text-color);
|
|
|
|
|
padding-bottom:calc(0.2em - 1px);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
input {
|
|
|
|
|
font-size:16px;
|
|
|
|
|
}
|
|
|
|
|
label:first-child {
|
|
|
|
|
min-width: 6em;
|
|
|
|
|
display: block;
|
|
|
|
|
margin-right: 1em;
|
|
|
|
|
user-select:none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#editor .ql-editor {
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
padding:0;
|
2022-06-30 15:49:56 +00:00
|
|
|
/* max-width: 100%; */
|
2022-06-28 16:04:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-06-30 15:49:56 +00:00
|
|
|
@media only screen and (max-device-width: 512px) {
|
|
|
|
|
#menubar {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
iframe, #preview-frame {
|
|
|
|
|
display:none;
|
|
|
|
|
}
|
2022-06-28 16:04:53 +00:00
|
|
|
#twitter,
|
|
|
|
|
#copy {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
#sharehint {
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
#menu-share-hint {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
|
|
|
|
.inputrow {
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
}
|
|
|
|
|
label {
|
|
|
|
|
font-size:10px;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#editor .ql-toolbar {
|
|
|
|
|
/* background-color: red; */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#editor .ql-tooltip {
|
|
|
|
|
background-color: var(--background-color);
|
|
|
|
|
/* border: 2px solid var(--text-color); */
|
|
|
|
|
box-shadow: 1px 2px 0 2px var(--text-color), 0 0 0px 2px var(--text-color);
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#ql-editor .ql-bubble .ql-stroke {
|
|
|
|
|
stroke: red;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ql-bubble .ql-stroke {
|
|
|
|
|
stroke: currentColor !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ql-picker-item.ql-selected {
|
|
|
|
|
color: red !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.menu a {
|
|
|
|
|
color: var(--text-color);
|
|
|
|
|
text-decoration: none;
|
|
|
|
|
line-height: 2em;
|
|
|
|
|
text-align: left;
|
|
|
|
|
display: block;
|
|
|
|
|
padding: 0 1em;
|
|
|
|
|
cursor:default;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.menu {
|
|
|
|
|
cursor:default;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-29 15:34:40 +00:00
|
|
|
#formatbar.ql-snow.ql-toolbar button,
|
|
|
|
|
#formatbar.ql-snow.ql-toolbar .ql-picker {
|
2022-06-28 16:04:53 +00:00
|
|
|
height: 40px;
|
|
|
|
|
min-width: 40px;
|
|
|
|
|
float: none;
|
|
|
|
|
vertical-align: middle;
|
|
|
|
|
text-align: revert;
|
|
|
|
|
width: 40px;
|
|
|
|
|
}
|
2022-06-29 15:34:40 +00:00
|
|
|
#formatbar.ql-snow.ql-toolbar button,
|
|
|
|
|
#formatbar.ql-snow.ql-toolbar .ql-picker .ql-picker-label {
|
2022-06-28 16:04:53 +00:00
|
|
|
/* background-size: 24px; */
|
|
|
|
|
padding: 10px;
|
2022-06-30 15:49:56 +00:00
|
|
|
font-weight: bold;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
line-height: 23px;
|
2022-06-28 16:04:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div#editor.ql-container.ql-snow {
|
|
|
|
|
border: none;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#menubar.ql-snow .ql-color-picker .ql-picker-item {
|
|
|
|
|
margin: 0;
|
|
|
|
|
width: 1.5rem;
|
|
|
|
|
height: 1.5rem;
|
2018-07-08 16:18:51 +00:00
|
|
|
}
|
2022-06-28 16:04:53 +00:00
|
|
|
|
2022-06-29 15:34:40 +00:00
|
|
|
#formatbar.ql-snow .ql-color-picker .ql-picker-options {
|
2022-06-28 16:04:53 +00:00
|
|
|
width: 11.2rem;
|
|
|
|
|
padding: 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.toolbar-right {
|
|
|
|
|
display: flex;
|
|
|
|
|
width: auto;
|
|
|
|
|
flex-wrap: nowrap;
|
|
|
|
|
justify-self: flex-end;
|
|
|
|
|
margin-left: auto;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-29 15:34:40 +00:00
|
|
|
#formatbar .ql-toolbar,
|
|
|
|
|
#formatbar .ql-stroke,
|
2022-12-04 18:04:34 +00:00
|
|
|
#formatbar .ql-picker:not(.ql-color-picker),
|
2022-06-29 15:34:40 +00:00
|
|
|
#formatbar.ql-snow a {
|
2022-06-28 16:04:53 +00:00
|
|
|
color: var(--text-color) ;
|
|
|
|
|
stroke: var(--text-color) ;
|
|
|
|
|
}
|
|
|
|
|
.ql-picker-label:hover,
|
|
|
|
|
.ql-active {
|
|
|
|
|
color: var(--text-color) !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ql-picker-options {
|
|
|
|
|
background-color: var(--background-color) !important;
|
|
|
|
|
}
|
|
|
|
|
.ql-picker-item.ql-selected {
|
|
|
|
|
color: #e45149 !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#mainmenu .menu {
|
|
|
|
|
right: 0;
|
|
|
|
|
/* top: 1px; */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
div#mainmenu {
|
|
|
|
|
position: relative;
|
|
|
|
|
}
|
|
|
|
|
|
2022-12-04 18:04:34 +00:00
|
|
|
input#md-include {min-width: unset;/* height: 2em; */width: 1em;margin-right: 0.5em;}
|
2022-06-28 16:04:53 +00:00
|
|
|
|
|
|
|
|
label:not(:first-child) {
|
|
|
|
|
font-weight: normal;
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-29 15:34:40 +00:00
|
|
|
#formatbar .ql-formats {
|
2022-06-30 15:49:56 +00:00
|
|
|
opacity: 0.5;
|
|
|
|
|
margin-right:0;/* display: contents; */
|
|
|
|
|
}
|
|
|
|
|
body:not(.format) #formatbar .ql-formats {
|
|
|
|
|
display:none;
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-29 01:54:46 +00:00
|
|
|
|
|
|
|
|
body:not(.dragging) #drop-zone {
|
|
|
|
|
display:none;
|
|
|
|
|
}
|
|
|
|
|
#drop-zone {
|
|
|
|
|
/* display:none; */
|
|
|
|
|
background: #e5e5e5;
|
|
|
|
|
height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
z-index: 9999;
|
|
|
|
|
text-align: center;
|
|
|
|
|
left: 0;
|
|
|
|
|
font-size: 100px;
|
|
|
|
|
font-family: sans-serif;
|
|
|
|
|
color: white;
|
|
|
|
|
line-height: 100vh;
|
2022-06-29 15:34:40 +00:00
|
|
|
opacity:0.2;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#formatbar {
|
|
|
|
|
border:
|
|
|
|
|
none;
|
|
|
|
|
/* border-bottom:1px solid
|
|
|
|
|
var(--divider-color); */
|
2022-06-30 15:49:56 +00:00
|
|
|
/* position: fixed; */
|
|
|
|
|
/* top: 0; */
|
2022-06-29 15:34:40 +00:00
|
|
|
z-index: 100;
|
2022-06-30 15:49:56 +00:00
|
|
|
/* background-color: var(--background-color); */
|
2022-06-29 15:34:40 +00:00
|
|
|
padding: 0;
|
2022-06-30 15:49:56 +00:00
|
|
|
/* margin: 0 -12px; */
|
2022-06-29 15:34:40 +00:00
|
|
|
display: flex;
|
|
|
|
|
flex-wrap: wrap;
|
2022-06-30 15:49:56 +00:00
|
|
|
opacity: 1.0;
|
|
|
|
|
/* margin-top: -5em; */
|
|
|
|
|
/* float: left; */
|
|
|
|
|
/* top: 44px; */
|
|
|
|
|
width: fit-content;
|
|
|
|
|
left: 0;
|
|
|
|
|
/* display: contents; */
|
2022-06-29 15:34:40 +00:00
|
|
|
}
|
|
|
|
|
#formatbar:hover {
|
|
|
|
|
opacity:1.0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
body.filecontent #formatbar {
|
|
|
|
|
display:none;
|
2022-06-30 15:49:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#formatbar:hover .ql-formats {
|
|
|
|
|
opacity: 1.0;
|
2022-06-29 15:34:40 +00:00
|
|
|
}
|