1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
| @charset "UTF-8";
|
| @import "lib/variables";
| @import "lib/prefixes";
|
| .editormd {
| width: 90%;
| height: 640px;
| margin: 0 auto;
| text-align: left;
| overflow: hidden;
| position: relative;
| margin-bottom: 15px;
| border: 1px solid $borderColor;
| font-family: "Meiryo UI", "Microsoft YaHei", "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, "Monaco", monospace, Tahoma, STXihei, "华文细黑", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "宋体", Heiti, "黑体", sans-serif;
|
| *, *:before, *:after {
| @include box-sizing(border-box);
| }
|
| a {
| text-decoration: none;
| }
|
| img {
| border: none;
| vertical-align: middle;
| }
|
| > textarea,
| #{$prefix}html-textarea,
| #{$prefix}markdown-textarea {
| width: 0;
| height: 0;
| outline: 0;
| resize:none;
| }
|
| #{$prefix}html-textarea,
| #{$prefix}markdown-textarea {
| display : none;
| }
|
| input[type="text"],
| input[type="button"],
| input[type="submit"],
| select, textarea, button {
| @include appearance(none);
| }
|
| ::-webkit-scrollbar {
| height: 10px;
| width: 7px;
| background: rgba(0, 0, 0, .1);
|
| &:hover {
| background: rgba(0, 0, 0, .2);
| }
| }
|
| ::-webkit-scrollbar-thumb {
| background: rgba(0,0,0,0.3);
| @include border-radius(6px);
|
| &:hover {
| @include box-shadow(inset 1px 1px 1px rgba(0, 0, 0, .25));
| background-color: rgba(0, 0, 0, .4);
| }
| }
| }
|
| #{$prefix}user-unselect {
| @include user-select(none);
| }
|
| #{$prefix}toolbar {
| width: 100%;
| min-height: 37px;
| background: #fff;
| display: none;
| position: absolute;
| top: 0;
| left: 0;
| z-index: 10;
| border-bottom: 1px solid $borderColor;
| }
|
| #{$prefix}toolbar-container {
| padding: 0 8px;
| min-height: 35px;
| @include user-select(none);
| }
|
| @import "editormd.menu";
|
| #{$prefix}container {
| margin: 0;
| width: 100%;
| height: 100%;
| overflow: hidden;
| padding: 35px 0 0;
| position: relative;
| background: #fff;
| @include box-sizing(border-box);
| }
|
| @import "editormd.dialog";
| @import "editormd.grid";
| @import "editormd.tab";
| @import "editormd.form";
| @import "editormd.codemirror";
| @import "editormd.preview";
| @import "editormd.preview.themes";
|
| #{$prefix}onlyread {
| #{$prefix}toolbar {
| display: none;
| }
|
| .CodeMirror {
| margin-top: 0;
| }
|
| #{$prefix}preview {
| top: 0;
| }
| }
|
| #{$prefix}fullscreen {
| position: fixed;
| top : 0;
| left : 0;
| border: none;
| margin: 0 auto;
| }
|
| @import "editormd.themes";
|
|