simplemde-markdown-editor/src/css/simplemde.css

328 lines
6.7 KiB
CSS
Raw Normal View History

2015-08-11 11:22:42 +02:00
.CodeMirror {
2016-03-15 03:28:56 +01:00
height: auto;
min-height: 300px;
border: 1px solid #ddd;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
padding: 10px;
font: inherit;
z-index: 1;
2015-08-11 11:22:42 +02:00
}
.CodeMirror-scroll {
2016-03-15 03:28:56 +01:00
min-height: 300px
2015-08-11 11:22:42 +02:00
}
.CodeMirror-fullscreen {
2016-03-15 03:28:56 +01:00
background: #fff;
position: fixed !important;
top: 50px;
left: 0;
right: 0;
bottom: 0;
height: auto;
z-index: 9;
2015-08-11 11:22:42 +02:00
}
2015-09-01 08:40:33 +02:00
.CodeMirror-sided {
2016-03-15 03:28:56 +01:00
width: 50% !important;
2015-09-01 08:40:33 +02:00
}
2015-08-11 11:22:42 +02:00
.editor-toolbar {
2016-03-15 03:28:56 +01:00
position: relative;
opacity: .6;
-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 11:22:42 +02:00
}
2015-09-02 03:26:52 +02:00
.editor-toolbar:after,
.editor-toolbar:before {
2016-03-15 03:28:56 +01:00
display: block;
content: ' ';
height: 1px;
2015-08-11 11:22:42 +02:00
}
.editor-toolbar:before {
2016-03-15 03:28:56 +01:00
margin-bottom: 8px
2015-08-11 11:22:42 +02:00
}
.editor-toolbar:after {
2016-03-15 03:28:56 +01:00
margin-top: 8px
2015-08-11 11:22:42 +02:00
}
2015-09-02 03:26:52 +02:00
.editor-toolbar:hover,
.editor-wrapper input.title:focus,
.editor-wrapper input.title:hover {
2016-03-15 03:28:56 +01:00
opacity: .8
2015-08-11 11:22:42 +02:00
}
.editor-toolbar.fullscreen {
2016-03-15 03:28:56 +01: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 11:22:42 +02:00
}
.editor-toolbar.fullscreen::before {
2016-03-15 03:28:56 +01: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-15 03:28:56 +01: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;
}
2015-08-11 11:22:42 +02:00
.editor-toolbar a {
2016-03-15 03:28:56 +01:00
display: inline-block;
text-align: center;
text-decoration: none!important;
color: #2c3e50!important;
width: 30px;
height: 30px;
margin: 0;
border: 1px solid transparent;
border-radius: 3px;
cursor: pointer;
2015-08-11 11:22:42 +02:00
}
2015-09-02 03:26:52 +02:00
.editor-toolbar a.active,
.editor-toolbar a:hover {
2016-03-15 03:28:56 +01:00
background: #fcfcfc;
border-color: #95a5a6;
2015-08-11 11:22:42 +02:00
}
.editor-toolbar a:before {
2016-03-15 03:28:56 +01:00
line-height: 30px
2015-08-11 11:22:42 +02:00
}
.editor-toolbar i.separator {
2016-03-15 03:28:56 +01: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 11:22:42 +02:00
}
.editor-toolbar a.fa-header-x:after {
2016-03-15 03:28:56 +01:00
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
font-size: 65%;
vertical-align: text-bottom;
position: relative;
top: 2px;
}
.editor-toolbar a.fa-header-1:after {
2016-03-15 03:28:56 +01:00
content: "1";
}
.editor-toolbar a.fa-header-2:after {
2016-03-15 03:28:56 +01:00
content: "2";
}
.editor-toolbar a.fa-header-3:after {
2016-03-15 03:28:56 +01:00
content: "3";
2015-08-11 11:22:42 +02:00
}
2015-09-02 03:35:51 +02:00
.editor-toolbar a.fa-header-bigger:after {
2016-03-15 03:28:56 +01:00
content: "▲";
2015-09-02 03:35:51 +02:00
}
.editor-toolbar a.fa-header-smaller:after {
2016-03-15 03:28:56 +01:00
content: "▼";
2015-09-02 03:35:51 +02:00
}
.editor-toolbar.disabled-for-preview a:not(.no-disable) {
2016-03-15 03:28:56 +01:00
pointer-events: none;
background: #fff;
border-color: transparent;
text-shadow: inherit;
2015-08-11 11:22:42 +02:00
}
2015-09-02 07:46:23 +02:00
@media only screen and (max-width: 700px) {
2016-03-15 03:28:56 +01:00
.editor-toolbar a.no-mobile {
display: none;
}
2015-09-02 07:46:23 +02:00
}
2015-08-11 11:22:42 +02:00
.editor-statusbar {
2016-03-15 03:28:56 +01:00
padding: 8px 10px;
font-size: 12px;
color: #959694;
text-align: right;
2015-08-11 11:22:42 +02:00
}
.editor-statusbar span {
2016-03-15 03:28:56 +01:00
display: inline-block;
min-width: 4em;
margin-left: 1em;
2015-08-11 11:22:42 +02:00
}
.editor-statusbar .lines:before {
2016-03-15 03:28:56 +01:00
content: 'lines: '
2015-08-11 11:22:42 +02:00
}
.editor-statusbar .words:before {
2016-03-15 03:28:56 +01:00
content: 'words: '
2015-08-11 11:22:42 +02:00
}
2015-12-16 16:24:12 +01:00
.editor-statusbar .characters:before {
2016-03-15 03:28:56 +01:00
content: 'characters: '
2015-12-16 16:24:12 +01:00
}
2015-08-11 11:22:42 +02:00
.editor-preview {
2016-03-15 03:28:56 +01:00
padding: 10px;
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
background: #fafafa;
z-index: 7;
overflow: auto;
display: none;
box-sizing: border-box;
2015-08-11 11:22:42 +02:00
}
2015-09-01 08:40:33 +02:00
.editor-preview-side {
2016-03-15 03:28:56 +01:00
padding: 10px;
position: fixed;
bottom: 0;
width: 50%;
top: 50px;
right: 0;
background: #fafafa;
z-index: 9;
overflow: auto;
display: none;
box-sizing: border-box;
border: 1px solid #ddd;
2015-09-01 08:40:33 +02:00
}
.editor-preview-active-side {
2016-03-15 03:28:56 +01:00
display: block
2015-09-01 08:40:33 +02:00
}
2015-08-11 11:22:42 +02:00
.editor-preview-active {
2016-03-15 03:28:56 +01:00
display: block
2015-08-11 11:22:42 +02:00
}
2015-09-02 03:26:52 +02:00
.editor-preview>p,
.editor-preview-side>p {
2016-03-15 03:28:56 +01:00
margin-top: 0
2015-08-11 11:22:42 +02:00
}
2015-09-02 03:26:52 +02:00
.editor-preview pre,
.editor-preview-side pre {
2016-03-15 03:28:56 +01:00
background: #eee;
margin-bottom: 10px;
2015-08-11 11:22:42 +02:00
}
2015-09-02 03:26:52 +02:00
.editor-preview table td,
.editor-preview table th,
.editor-preview-side table td,
.editor-preview-side table th {
2016-03-15 03:28:56 +01:00
border: 1px solid #ddd;
padding: 5px;
2015-08-11 11:22:42 +02:00
}
2015-11-03 17:16:08 +01:00
.CodeMirror .CodeMirror-code .cm-tag {
2016-03-15 03:28:56 +01:00
color: #63a35c;
}
.CodeMirror .CodeMirror-code .cm-attribute {
2016-03-15 03:28:56 +01:00
color: #795da3;
}
.CodeMirror .CodeMirror-code .cm-string {
2016-03-15 03:28:56 +01:00
color: #183691;
}
2015-08-11 11:22:42 +02:00
.CodeMirror .CodeMirror-selected {
2016-03-15 03:28:56 +01:00
background: #d9d9d9;
2015-08-11 11:22:42 +02:00
}
.CodeMirror .CodeMirror-code .cm-header-1 {
2016-03-15 03:28:56 +01:00
font-size: 200%;
line-height: 200%;
2015-08-11 11:22:42 +02:00
}
.CodeMirror .CodeMirror-code .cm-header-2 {
2016-03-15 03:28:56 +01:00
font-size: 160%;
line-height: 160%;
2015-08-11 11:22:42 +02:00
}
.CodeMirror .CodeMirror-code .cm-header-3 {
2016-03-15 03:28:56 +01:00
font-size: 125%;
line-height: 125%;
2015-08-11 11:22:42 +02:00
}
.CodeMirror .CodeMirror-code .cm-header-4 {
2016-03-15 03:28:56 +01:00
font-size: 110%;
line-height: 110%;
2015-08-11 11:22:42 +02:00
}
.CodeMirror .CodeMirror-code .cm-comment {
2016-03-15 03:28:56 +01:00
background: rgba(0, 0, 0, .05);
border-radius: 2px;
2015-08-11 11:22:42 +02:00
}
.CodeMirror .CodeMirror-code .cm-link {
2016-03-15 03:28:56 +01:00
color: #7f8c8d;
2015-08-11 11:22:42 +02:00
}
.CodeMirror .CodeMirror-code .cm-url {
2016-03-15 03:28:56 +01:00
color: #aab2b3;
2015-08-11 11:22:42 +02:00
}
.CodeMirror .CodeMirror-code .cm-strikethrough {
2016-03-15 03:28:56 +01:00
text-decoration: line-through;
2015-12-10 22:47:34 +01:00
}
2016-01-22 19:26:50 +01:00
.CodeMirror .CodeMirror-placeholder {
2016-03-15 03:28:56 +01:00
opacity: .5;
2016-01-22 19:26:50 +01:00
}