2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-22 01:14:28 -06:00

319 lines
6.3 KiB
CSS
Raw Normal View History

2015-08-11 06:22:42 -03:00
.CodeMirror {
box-sizing: border-box;
2016-03-14 21:28:56 -05:00
height: auto;
border: 1px solid #ddd;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
padding: 10px;
font: inherit;
z-index: 1;
word-wrap: break-word;
2015-08-11 06:22:42 -03:00
}
.CodeMirror-scroll {
cursor: text;
}
2015-08-11 06:22:42 -03:00
.CodeMirror-fullscreen {
2016-03-14 21:28:56 -05:00
background: #fff;
position: fixed !important;
top: 50px;
left: 0;
right: 0;
bottom: 0;
height: auto;
z-index: 9;
border-right: none !important;
border-bottom-right-radius: 0 !important;
2015-08-11 06:22:42 -03:00
}
2015-09-01 01:40:33 -05:00
.CodeMirror-sided {
2016-03-14 21:28:56 -05:00
width: 50% !important;
2015-09-01 01:40:33 -05:00
}
.CodeMirror-placeholder {
opacity: .5;
}
.CodeMirror-focused .CodeMirror-selected {
background: #d9d9d9;
}
2015-08-11 06:22:42 -03:00
.editor-toolbar {
2016-03-14 21:28:56 -05:00
position: relative;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
padding: 0 10px;
border-top: 1px solid #bbb;
border-left: 1px solid #bbb;
border-right: 1px solid #bbb;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
2015-08-11 06:22:42 -03:00
}
2015-09-01 20:26:52 -05:00
.editor-toolbar:after,
.editor-toolbar:before {
2016-03-14 21:28:56 -05:00
display: block;
content: ' ';
height: 1px;
2015-08-11 06:22:42 -03:00
}
.editor-toolbar:before {
2016-03-14 21:28:56 -05:00
margin-bottom: 8px
2015-08-11 06:22:42 -03:00
}
.editor-toolbar:after {
2016-03-14 21:28:56 -05:00
margin-top: 8px
2015-08-11 06:22:42 -03:00
}
.editor-toolbar.fullscreen {
2016-03-14 21:28:56 -05:00
width: 100%;
height: 50px;
overflow-x: auto;
overflow-y: hidden;
white-space: nowrap;
padding-top: 10px;
padding-bottom: 10px;
box-sizing: border-box;
background: #fff;
border: 0;
position: fixed;
top: 0;
left: 0;
opacity: 1;
z-index: 9;
2015-08-11 06:22:42 -03:00
}
.editor-toolbar.fullscreen::before {
2016-03-14 21:28:56 -05:00
width: 20px;
height: 50px;
background: -moz-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 1)), color-stop(100%, rgba(255, 255, 255, 0)));
background: -webkit-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
background: -o-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
background: -ms-linear-gradient(left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 100%);
position: fixed;
top: 0;
left: 0;
margin: 0;
padding: 0;
}
.editor-toolbar.fullscreen::after {
2016-03-14 21:28:56 -05:00
width: 20px;
height: 50px;
background: -moz-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
background: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(255, 255, 255, 1)));
background: -webkit-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
background: -o-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
background: -ms-linear-gradient(left, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
position: fixed;
top: 0;
right: 0;
margin: 0;
padding: 0;
}
.editor-toolbar button {
background: transparent;
2016-03-14 21:28:56 -05:00
display: inline-block;
text-align: center;
2017-12-05 11:51:36 +01:00
text-decoration: none !important;
2016-03-14 21:28:56 -05:00
width: 30px;
height: 30px;
margin: 0;
padding: 0;
2016-03-14 21:28:56 -05:00
border: 1px solid transparent;
border-radius: 3px;
cursor: pointer;
2015-08-11 06:22:42 -03:00
}
.editor-toolbar button.active,
.editor-toolbar button:hover {
2016-03-14 21:28:56 -05:00
background: #fcfcfc;
border-color: #95a5a6;
2015-08-11 06:22:42 -03:00
}
.editor-toolbar i.separator {
2016-03-14 21:28:56 -05:00
display: inline-block;
width: 0;
border-left: 1px solid #d9d9d9;
border-right: 1px solid #fff;
color: transparent;
text-indent: -10px;
margin: 0 6px;
2015-08-11 06:22:42 -03:00
}
2018-11-09 10:37:20 +01:00
.editor-toolbar button:after {
2016-03-14 21:28:56 -05:00
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
font-size: 65%;
vertical-align: text-bottom;
position: relative;
top: 2px;
}
2018-11-09 10:37:20 +01:00
.editor-toolbar button.heading-1:after {
2016-03-14 21:28:56 -05:00
content: "1";
}
2018-11-09 10:37:20 +01:00
.editor-toolbar button.heading-2:after {
2016-03-14 21:28:56 -05:00
content: "2";
}
2018-11-09 10:37:20 +01:00
.editor-toolbar button.heading-3:after {
2016-03-14 21:28:56 -05:00
content: "3";
2015-08-11 06:22:42 -03:00
}
2018-11-09 10:37:20 +01:00
.editor-toolbar button.heading-bigger:after {
2016-03-14 21:28:56 -05:00
content: "▲";
2015-09-01 20:35:51 -05:00
}
2018-11-09 10:37:20 +01:00
.editor-toolbar button.heading-smaller:after {
2016-03-14 21:28:56 -05:00
content: "▼";
2015-09-01 20:35:51 -05:00
}
.editor-toolbar.disabled-for-preview button:not(.no-disable) {
opacity: .6;
2016-03-14 21:28:56 -05:00
pointer-events: none;
2015-08-11 06:22:42 -03:00
}
2015-09-02 00:46:23 -05:00
@media only screen and (max-width: 700px) {
.editor-toolbar i.no-mobile {
2016-03-14 21:28:56 -05:00
display: none;
}
2015-09-02 00:46:23 -05:00
}
2015-08-11 06:22:42 -03:00
.editor-statusbar {
2016-03-14 21:28:56 -05:00
padding: 8px 10px;
font-size: 12px;
color: #959694;
text-align: right;
2015-08-11 06:22:42 -03:00
}
.editor-statusbar span {
2016-03-14 21:28:56 -05:00
display: inline-block;
min-width: 4em;
margin-left: 1em;
2015-08-11 06:22:42 -03:00
}
.editor-statusbar .lines:before {
2016-03-14 21:28:56 -05:00
content: 'lines: '
2015-08-11 06:22:42 -03:00
}
.editor-statusbar .words:before {
2016-03-14 21:28:56 -05:00
content: 'words: '
2015-08-11 06:22:42 -03:00
}
2015-12-16 18:24:12 +03:00
.editor-statusbar .characters:before {
2016-03-14 21:28:56 -05:00
content: 'characters: '
2015-12-16 18:24:12 +03:00
}
.editor-preview-full {
2016-03-14 21:28:56 -05:00
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
z-index: 7;
overflow: auto;
display: none;
box-sizing: border-box;
2015-08-11 06:22:42 -03:00
}
2015-09-01 01:40:33 -05:00
.editor-preview-side {
2016-03-14 21:28:56 -05:00
position: fixed;
bottom: 0;
width: 50%;
top: 50px;
right: 0;
z-index: 9;
overflow: auto;
display: none;
box-sizing: border-box;
border: 1px solid #ddd;
word-wrap: break-word;
2015-09-01 01:40:33 -05:00
}
.editor-preview-active-side {
2016-03-14 21:28:56 -05:00
display: block
2015-09-01 01:40:33 -05:00
}
2015-08-11 06:22:42 -03:00
.editor-preview-active {
2016-03-14 21:28:56 -05:00
display: block
2015-08-11 06:22:42 -03:00
}
.editor-preview {
padding: 10px;
background: #fafafa;
}
.editor-preview > p {
2016-03-14 21:28:56 -05:00
margin-top: 0
2015-08-11 06:22:42 -03:00
}
.editor-preview pre {
2016-03-14 21:28:56 -05:00
background: #eee;
margin-bottom: 10px;
2015-08-11 06:22:42 -03:00
}
2015-09-01 20:26:52 -05:00
.editor-preview table td,
.editor-preview table th {
2016-03-14 21:28:56 -05:00
border: 1px solid #ddd;
padding: 5px;
2015-08-11 06:22:42 -03:00
}
2015-11-03 10:16:08 -06:00
.cm-s-easymde .cm-tag {
2016-03-14 21:28:56 -05:00
color: #63a35c;
}
.cm-s-easymde .cm-attribute {
2016-03-14 21:28:56 -05:00
color: #795da3;
}
.cm-s-easymde .cm-string {
2016-03-14 21:28:56 -05:00
color: #183691;
}
2015-08-11 06:22:42 -03:00
.cm-s-easymde .cm-header-1 {
2016-03-14 21:28:56 -05:00
font-size: 200%;
line-height: 200%;
2015-08-11 06:22:42 -03:00
}
.cm-s-easymde .cm-header-2 {
2016-03-14 21:28:56 -05:00
font-size: 160%;
line-height: 160%;
2015-08-11 06:22:42 -03:00
}
.cm-s-easymde .cm-header-3 {
2016-03-14 21:28:56 -05:00
font-size: 125%;
line-height: 125%;
2015-08-11 06:22:42 -03:00
}
.cm-s-easymde .cm-header-4 {
2016-03-14 21:28:56 -05:00
font-size: 110%;
line-height: 110%;
2015-08-11 06:22:42 -03:00
}
.cm-s-easymde .cm-comment {
2016-03-14 21:28:56 -05:00
background: rgba(0, 0, 0, .05);
border-radius: 2px;
2015-08-11 06:22:42 -03:00
}
.cm-s-easymde .cm-link {
2016-03-14 21:28:56 -05:00
color: #7f8c8d;
2015-08-11 06:22:42 -03:00
}
.cm-s-easymde .cm-url {
2016-03-14 21:28:56 -05:00
color: #aab2b3;
2015-08-11 06:22:42 -03:00
}
.cm-s-easymde .cm-quote {
color: #7f8c8d;
font-style: italic;
2017-12-05 11:51:36 +01:00
}