-
Notifications
You must be signed in to change notification settings - Fork 89
/
wysiwyg.css
107 lines (93 loc) · 1.72 KB
/
wysiwyg.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
a {
cursor: pointer;
}
#editor {
box-shadow: 0 0 2px #CCC;
min-height: 150px;
overflow: auto;
padding: 1em;
margin-top: 20px;
resize: vertical;
outline: none;
}
.toolbar {
text-align: center;
}
.toolbar a,
.fore-wrapper,
.back-wrapper {
border: 1px solid #AAA;
background: #FFF;
font-family: 'Candal';
border-radius: 1px;
color: black;
padding: 5px;
width: 1.5em;
margin: -2px;
margin-top: 10px;
display: inline-block;
text-decoration: none;
box-shadow: 0px 1px 0px #CCC;
}
.toolbar a:hover,
.fore-wrapper:hover,
.back-wrapper:hover {
background: #f2f2f2;
border-color: #8c8c8c;
}
a[data-command='redo'],
a[data-command='strikeThrough'],
a[data-command='justifyFull'],
a[data-command='insertOrderedList'],
a[data-command='outdent'],
a[data-command='p'],
a[data-command='superscript'] {
margin-right: 5px;
border-radius: 0 3px 3px 0;
}
a[data-command='undo'],
.fore-wrapper,
a[data-command='justifyLeft'],
a[data-command='insertUnorderedList'],
a[data-command='indent'],
a[data-command='h1'],
a[data-command='subscript'] {
border-radius: 3px 0 0 3px;
}
a.palette-item {
height: 1em;
border-radius: 3px;
margin: 2px;
width: 1em;
border: 1px solid #CCC;
}
a.palette-item:hover {
border: 1px solid #CCC;
box-shadow: 0 0 3px #333;
}
.fore-palette,
.back-palette {
display: none;
}
.fore-wrapper,
.back-wrapper {
display: inline-block;
cursor: pointer;
}
.fore-wrapper:hover .fore-palette,
.back-wrapper:hover .back-palette {
display: block;
float: left;
position: absolute;
padding: 3px;
width: 160px;
background: #FFF;
border: 1px solid #DDD;
box-shadow: 0 0 5px #CCC;
height: 70px;
}
.fore-palette a,
.back-palette a {
background: #FFF;
margin-bottom: 2px;
}