-
Notifications
You must be signed in to change notification settings - Fork 0
/
hemingway-editor-style.css
126 lines (94 loc) · 2.7 KB
/
hemingway-editor-style.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
/*---------------------------------------------------------------------------------
Editor styles for Hemingway
---------------------------------------------------------------------------------*/
body#tinymce.wp-editor {
font-family: 'Lato', Helvetica, sans-serif;
font-size: 16px;
}
body#tinymce.wp-editor a { color: #1abc9c; }
body#tinymce.wp-editor a:hover { color: #1abc9c; text-decoration: underline; }
/* headlines */
body#tinymce.wp-editor h1, body#tinymce.wp-editor h2, body#tinymce.wp-editor h3, body#tinymce.wp-editor h4, body#tinymce.wp-editor h5, body#tinymce.wp-editor h6 {
color: #444;
line-height: 120%;
}
body#tinymce.wp-editor h1 { font-size: 2em; font-weight: 700; }
body#tinymce.wp-editor h2 { font-size: 1.75em; font-weight: 700; }
body#tinymce.wp-editor h3 { font-size: 1.5em; font-weight: 700; }
body#tinymce.wp-editor h4 { font-size: 1.25em; }
body#tinymce.wp-editor h5 { font-size: 1.1em; }
/* blockquote */
body#tinymce.wp-editor blockquote {
padding: 1.1em;
line-height: 150%;
color: #666;
background: #EEE;
font-family: 'Raleway', 'Helvetica Neue', sans-serif;
}
body#tinymce.wp-editor blockquote p:first-child { margin-top: 0; }
body#tinymce.wp-editor blockquote p:last-child { margin-bottom: 0; }
body#tinymce.wp-editor cite {
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
line-height: 140%;
color: #666;
font-style: normal;
}
body#tinymce.wp-editor cite:before { content: "— "; }
body#tinymce.wp-editor blockquote cite {
display: block;
margin-top: 1em;
font-size: 0.8em;
}
body#tinymce.wp-editor blockquote cite em { font-style: italic; font-weight: bold; }
/* media */
body#tinymce.wp-editor .alignright { margin-left: 20px; }
body#tinymce.wp-editor .alignleft { margin-right: 20px; }
body#tinymce.wp-editor .wp-caption {
padding: 0;
border: none;
background: none;
}
body#tinymce.wp-editor .wp-caption-dd {
font-size: 0.85em;
padding-top: 0.5em;
color: #888;
text-align: center;
padding: 10px 0;
}
/* tables */
body#tinymce.wp-editor table {
border-collapse: collapse;
border-spacing: 0;
empty-cells: show;
font-size: 0.9em;
width: 100%;
margin-bottom: 1.1em;
border: none;
}
body#tinymce.wp-editor th,
body#tinymce.wp-editor td {
font-family: 'Lato', Helvetica, sans-serif;
padding: 2%;
margin: 0;
overflow: visible;
line-height: 120%;
border: none;
border-bottom: 1px solid #DDD;
font-size: 1em;
}
body#tinymce.wp-editor caption {
color: #444;
text-align: center;
padding: 2%;
}
body#tinymce.wp-editor thead {
vertical-align: bottom;
white-space: nowrap;
}
body#tinymce.wp-editor th {
font-weight: bold;
color: #444;
}
body#tinymce.wp-editor table tbody > tr:nth-child(odd) > td { background: #f9f9f9; }