-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheewakeditor.css
153 lines (124 loc) · 2.73 KB
/
eewakeditor.css
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
/**
* markdown 编辑器
*
* @author 煤老板 <[email protected]>
* @date 2017-03-13
*/
.eewakeditor {
border: solid 1px #e2e2e2;
background-color: #ffffff;
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
/* 编辑器按钮样式 */
.eewakeditor .eewakeditor-tool {
padding: 7px 4px 4px 4px;
border-bottom: solid 1px #e2e2e2;
overflow: hidden;
}
.eewakeditor-tool i,
.eewakeditor-tool span {
font-style: normal;
font-size: 16px;
text-align: center;
display: inline-block;
overflow: hidden;
}
.eewakeditor-tool span {
color: #cccccc;
}
.eewakeditor-tool i {
min-width: 18px;
height: 20px;
padding: 0 4px;
cursor: pointer;
color: #666;
border-radius: 2px;
background-color: #ffffff;
}
.eewakeditor-tool i:hover {
background-color: #b7b7b7;
color: #fff;
}
/* 编辑器【具体】按钮样式 */
.eewakeditor-tool .bold {
font-weight: bold;
}
.eewakeditor-tool .italic {
font-style: italic;
}
.eewakeditor-tool .quote,
.eewakeditor-tool .link,
.eewakeditor-tool .code,
.eewakeditor-tool .img {
background-image: url("./icon.png");
background-repeat: no-repeat;
}
.eewakeditor-tool .quote:hover {
background-position: -21px -21px;
}
.eewakeditor-tool .quote {
background-position: -21px 0;
}
.eewakeditor-tool .link:hover {
background-position: 0 -21px;
}
.eewakeditor-tool .link {
background-position: 0 0;
}
.eewakeditor-tool .code:hover {
background-position: -43px -21px;
}
.eewakeditor-tool .code {
background-position: -43px 0;
}
/* 编辑器【图片】按钮样式 */
.eewakeditor-tool .img:hover {
background-position: -65px -21px;
}
.eewakeditor-tool i.img {
width: 26px;
padding: 0;
background-position: -65px 0;
position: relative;
}
.eewakeditor-tool .img input[type=file] {
position: absolute;
top: 0;
left: 0;
opacity: 0;
filter: alpha(opacity=0);
}
/* 编辑器【切换】按钮样式 */
.eewakeditor-tool i.preview,
.eewakeditor-tool i.write,
.eewakeditor-tool i.full_screen,
.eewakeditor-tool i.normal_screen {
float: right;
}
.eewakeditor-tool i.write,
.eewakeditor-tool i.normal_screen {
display: none;
}
/* 编辑器 textarea 的样式 && 预览区域的样式 */
.eewakeditor textarea.eewakeditor-content,
.eewakeditor div.preview_box {
width: 100%;
padding: 9px;
margin: 0;
border: 0;
font-family: "Microsoft Yahei";
box-sizing: border-box;
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
}
.eewakeditor textarea.eewakeditor-content {
outline: none;
resize: none;
}
.eewakeditor div.preview_box {
overflow-y: auto;
display: none;
background-color: #ffffff;
}