Dotclear

source: plugins/dcLegacyEditor/css/jsToolBar/jsToolBar.css @ 3602:8a1b100e0a84

Revision 3602:8a1b100e0a84, 4.3 KB checked in by franck <carnet.franck.paul@…>, 8 years ago (diff)

Do not use border and background on select to use the system aspect of them in Firefox (else FF will use the oldest Netscape ugly look).
Target Safari to cope wit font-size select/option problem.
The font-size of option element cannot be changed in Firefox (very old bug)

Line 
1.jstEditor {
2     border-width : 0 1px 1px 1px;
3     border-style : solid;
4     border-color : #ddd;
5     background : #f7f7f7;
6}
7.jstEditor textarea, .jstEditor iframe {
8     -webkit-box-sizing: border-box;
9     -moz-box-sizing: border-box;
10     box-sizing: border-box;
11     margin: 0;
12     border: 1px solid #fbfbfb;
13     width: 100%;
14     padding: .5em 0 0 0;
15     min-height: 100px;
16}
17.jstHandle {
18     height: 8px;
19     background: #ccc url(?pf=dcLegacyEditor/css/jsToolBar/resize.png) no-repeat center center;
20     font-size: 0.1em;
21     cursor: s-resize;
22     border-color: #ccc #ccc #ccc #000;
23     border-width: 0 1px 1px 1px;
24     border-style: solid;
25}
26.jstEditor textarea:focus, .jstEditor iframe:focus {
27     border-color: #bee74b;
28}
29.jstElements {
30     -webkit-box-sizing: border-box;
31     -moz-box-sizing: border-box;
32     box-sizing: border-box;
33     padding: 0 32px 0 1rem;
34     border: 1px solid #dfdfdf;
35     overflow: hidden;
36     background: #f5f5f5;
37     border-radius: 4px 4px 0 0;
38     position: relative;
39     line-height: 30px;
40}
41.jstElements select, .jstElements button {
42     vertical-align: middle;
43}
44.jstElements select {
45     width: 12em;
46     margin-right: .6rem;
47}
48.jstElements button {
49     width: 30px;
50     height: 28px;
51     border-style: solid;
52     border-width: 1px;
53     margin-left: 2px;
54     margin-bottom: 2px;
55     border-color: #e5e5e5 #ccc #ccc #e5e5e5;
56     background-color : #f7f7f7;
57     background-position : 50% 50%;
58     background-repeat: no-repeat;
59     background-size: inherit;
60}
61.jstElements button:hover, .jstElements button:focus {
62     border-color : #ddd;
63     background-color: #fff;
64}
65.jstElements button span {
66     display: none;
67}
68.jstElements span {
69     display : inline-block;
70     vertical-align: top;
71}
72span.jstSpacer {
73     width : 8px;
74}
75.jstSwitcher {
76     display: block;
77     list-style: none;
78     margin: 0;
79     padding: 0 0 5px 0;
80     background: #dfdfdf;
81     border-top: 1px solid #999;
82}
83.jstSwitcher li {
84     display: inline;
85     margin: 0 0 0 5px;
86     padding: 2px 8px;
87}
88.jstSwitcher li.jstSwitcherCurrent {
89     color: #fff;
90     background: #677374;
91     border-radius: 0 0 2px 2px;
92}
93.jstSwitcher a {
94     font-weight: normal;
95     border-bottom: none !important;
96}
97
98/* Buttons
99-------------------------------------------------------- */
100button.jstb_strong {
101     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_strong.png);
102}
103button.jstb_em {
104     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_em.png);
105}
106button.jstb_ins {
107     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_ins.png);
108}
109button.jstb_del {
110     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_del.png);
111}
112button.jstb_quote {
113     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_quote.png);
114}
115button.jstb_code {
116     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_code.png);
117}
118button.jstb_mark {
119     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_mark.png);
120}
121button.jstb_paragraph {
122     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_paragraph.png);
123}
124button.jstb_br {
125     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_br.png);
126}
127button.jstb_blockquote {
128     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_bquote.png);
129}
130button.jstb_pre {
131     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_pre.png);
132}
133button.jstb_ul {
134     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_ul.png);
135}
136button.jstb_ol {
137     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_ol.png);
138}
139button.jstb_link {
140     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_link.png);
141}
142button.jstb_img {
143     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_img.png);
144}
145button.jstb_img_select {
146     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_img_select.png);
147}
148button.jstb_post_link {
149     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_post.png);
150}
151button.jstb_removeFormat {
152     background-color: #e5e5e5;
153     background-image: url(?pf=dcLegacyEditor/css/jsToolBar/bt_clean.png);
154     position: absolute;
155     right: 2px;
156     top: 1px;
157     border-color: #ccc;
158}
159
160/* WYSIWYG Iframe */
161.wysiwygIframe {
162     border-width : 1px;
163     border-style : solid;
164     border-color : #000 #ccc #ccc #000;
165     width : 100%;
166}
167
168/* WYSIWYG Document */
169body.wysiwygDoc {
170     font: 12px "DejaVu Sans","Lucida Grande","Lucida Sans Unicode",Arial,sans-serif;
171     color : #000;
172     background: #f9f9f9;
173     margin: 0;
174     padding : 2px;
175     border: none;
176}
177.wysiwygDoc pre, .wysiwygDoc code, .wysiwygDoc kbd, .wysiwygDoc samp {
178     font-family:"Courier New",Courier,monospace;
179     font-size : 1.1em;
180}
181.wysiwygDoc code {
182     color : #666;
183     font-weight : bold;
184}
185body.wysiwygDoc  > p:first-child {
186     margin-top: 0;
187}
Note: See TracBrowser for help on using the repository browser.

Sites map