Dotclear

source: plugins/dcCKEditor/js/ckeditor/contents.css @ 3669:41c8e8a58e1f

Revision 3669:41c8e8a58e1f, 3.0 KB checked in by franck <carnet.franck.paul@…>, 8 years ago (diff)

Adjust editors base font size (CodeMirror?, dcLegacyEditor, dcCKEditor), should fix #2263

Line 
1/*
2Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
3For licensing, see LICENSE.md or http://ckeditor.com/license
4*/
5
6body
7{
8     /* Font */
9     font-family: sans-serif, Arial, Verdana, "Trebuchet MS";
10     font-size: 12px;
11
12     /* Text color */
13     color: #333;
14
15     /* Remove the background color to make it transparent */
16     background-color: #fff;
17
18     margin: 20px;
19}
20
21.cke_editable
22{
23     font-size: 13px;
24     line-height: 1.6;
25
26     /* Fix for missing scrollbars with RTL texts. (#10488) */
27     word-wrap: break-word;
28}
29
30/* Dotclear */
31:root {
32     --html-font-size: 62.5%; }
33
34html {
35     font-size: 62.5%;
36     font-size: var(--html-font-size); }
37
38body {
39     font-size: 1.4rem;
40     line-height: 1.5;
41     font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
42}
43.cke_editable
44{
45     font-size: 1.4rem;
46}
47/* End Dotclear */
48
49blockquote
50{
51     font-style: italic;
52     font-family: Georgia, Times, "Times New Roman", serif;
53     padding: 2px 0;
54     border-style: solid;
55     border-color: #ccc;
56     border-width: 0;
57}
58
59.cke_contents_ltr blockquote
60{
61     padding-left: 20px;
62     padding-right: 8px;
63     border-left-width: 5px;
64}
65
66.cke_contents_rtl blockquote
67{
68     padding-left: 8px;
69     padding-right: 20px;
70     border-right-width: 5px;
71}
72
73a
74{
75     color: #0782C1;
76}
77
78ol,ul,dl
79{
80     /* IE7: reset rtl list margin. (#7334) */
81     *margin-right: 0px;
82     /* preserved spaces for list items with text direction other than the list. (#6249,#8049)*/
83     padding: 0 40px;
84}
85
86h1,h2,h3,h4,h5,h6
87{
88     font-weight: normal;
89     line-height: 1.2;
90}
91
92hr
93{
94     border: 0px;
95     border-top: 1px solid #ccc;
96}
97
98img.right
99{
100     border: 1px solid #ccc;
101     float: right;
102     margin-left: 15px;
103     padding: 5px;
104}
105
106img.left
107{
108     border: 1px solid #ccc;
109     float: left;
110     margin-right: 15px;
111     padding: 5px;
112}
113
114pre
115{
116     white-space: pre-wrap; /* CSS 2.1 */
117     word-wrap: break-word; /* IE7 */
118     -moz-tab-size: 4;
119     tab-size: 4;
120}
121
122.marker
123{
124     background-color: Yellow;
125}
126
127span[lang]
128{
129     font-style: italic;
130}
131
132figure
133{
134     text-align: center;
135     border: solid 1px #ccc;
136     border-radius: 2px;
137     background: rgba(0,0,0,0.05);
138     padding: 10px;
139     margin: 10px 20px;
140     display: inline-block;
141}
142
143figure > figcaption
144{
145     text-align: center;
146     display: block; /* For IE8 */
147}
148
149a > img {
150     padding: 1px;
151     margin: 1px;
152     border: none;
153     outline: 1px solid #0782C1;
154}
155
156/* Widget Styles */
157.code-featured
158{
159     border: 5px solid red;
160}
161
162.math-featured
163{
164     padding: 20px;
165     box-shadow: 0 0 2px rgba(200, 0, 0, 1);
166     background-color: rgba(255, 0, 0, 0.05);
167     margin: 10px;
168}
169
170.image-clean
171{
172     border: 0;
173     background: none;
174     padding: 0;
175}
176
177.image-clean > figcaption
178{
179     font-size: .9em;
180     text-align: right;
181}
182
183.image-grayscale
184{
185     background-color: white;
186     color: #666;
187}
188
189.image-grayscale img, img.image-grayscale
190{
191     filter: grayscale(100%);
192}
193
194.embed-240p
195{
196     max-width: 426px;
197     max-height: 240px;
198     margin:0 auto;
199}
200
201.embed-360p
202{
203     max-width: 640px;
204     max-height: 360px;
205     margin:0 auto;
206}
207
208.embed-480p
209{
210     max-width: 854px;
211     max-height: 480px;
212     margin:0 auto;
213}
214
215.embed-720p
216{
217     max-width: 1280px;
218     max-height: 720px;
219     margin:0 auto;
220}
221
222.embed-1080p
223{
224     max-width: 1920px;
225     max-height: 1080px;
226     margin:0 auto;
227}
Note: See TracBrowser for help on using the repository browser.

Sites map