1 | /* |
---|
2 | * WYMeditor : what you see is What You Mean web-based editor |
---|
3 | * Copyright (c) 2005 - 2009 Jean-Francois Hovinne, http://www.wymeditor.org/ |
---|
4 | * Dual licensed under the MIT (MIT-license.txt) |
---|
5 | * and GPL (GPL-license.txt) licenses. |
---|
6 | * |
---|
7 | * For further information visit: |
---|
8 | * http://www.wymeditor.org/ |
---|
9 | * |
---|
10 | * File Name: |
---|
11 | * skin.css |
---|
12 | * main stylesheet for the default WYMeditor skin |
---|
13 | * See the documentation for more info. |
---|
14 | * |
---|
15 | * File Authors: |
---|
16 | * Daniel Reszka (d.reszka a-t wymeditor dotorg) |
---|
17 | */ |
---|
18 | |
---|
19 | /*TRYING TO RESET STYLES THAT MAY INTERFERE WITH WYMEDITOR*/ |
---|
20 | .wym_skin_default p, .wym_skin_default h2, .wym_skin_default h3, |
---|
21 | .wym_skin_default ul, .wym_skin_default li { background: transparent url(); margin: 0; padding: 0; border-width:0; list-style: none; } |
---|
22 | |
---|
23 | |
---|
24 | /*HIDDEN BY DEFAULT*/ |
---|
25 | .wym_skin_default .wym_area_left { display: none; } |
---|
26 | .wym_skin_default .wym_area_right { display: block; } |
---|
27 | |
---|
28 | |
---|
29 | /*TYPO*/ |
---|
30 | .wym_skin_default { font-size: 62.5%; font-family: Verdana, Arial, sans-serif; } |
---|
31 | .wym_skin_default h2 { font-size: 110%; /* = 11px */} |
---|
32 | .wym_skin_default h3 { font-size: 100%; /* = 10px */} |
---|
33 | .wym_skin_default li { font-size: 100%; /* = 10px */} |
---|
34 | |
---|
35 | |
---|
36 | /*WYM_BOX*/ |
---|
37 | .wym_skin_default { border: 1px solid gray; background: #f2f2f2; padding: 5px} |
---|
38 | |
---|
39 | /*auto-clear the wym_box*/ |
---|
40 | .wym_skin_default:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } |
---|
41 | * html .wym_skin_default { height: 1%;} |
---|
42 | |
---|
43 | |
---|
44 | /*WYM_HTML*/ |
---|
45 | .wym_skin_default .wym_html { width: 98%;} |
---|
46 | .wym_skin_default .wym_html textarea { width: 100%; height: 200px; border: 1px solid gray; background: white; } |
---|
47 | |
---|
48 | |
---|
49 | /*WYM_IFRAME*/ |
---|
50 | .wym_skin_default .wym_iframe { width: 98%;} |
---|
51 | .wym_skin_default .wym_iframe iframe { width: 100%; height: 200px; border: 1px solid gray; background: white } |
---|
52 | |
---|
53 | |
---|
54 | /*AREAS*/ |
---|
55 | .wym_skin_default .wym_area_left { width: 150px; float: left;} |
---|
56 | .wym_skin_default .wym_area_right { width: 150px; float: right;} |
---|
57 | .wym_skin_default .wym_area_bottom { height: 1%; clear: both;} |
---|
58 | * html .wym_skin_default .wym_area_main { height: 1%;} |
---|
59 | * html .wym_skin_default .wym_area_top { height: 1%;} |
---|
60 | *+html .wym_skin_default .wym_area_top { height: 1%;} |
---|
61 | |
---|
62 | /*SECTIONS SYSTEM*/ |
---|
63 | |
---|
64 | /*common defaults for all sections*/ |
---|
65 | .wym_skin_default .wym_section { margin-bottom: 5px; } |
---|
66 | .wym_skin_default .wym_section h2, |
---|
67 | .wym_skin_default .wym_section h3 { padding: 1px 3px; margin: 0; } |
---|
68 | .wym_skin_default .wym_section a { padding: 0 3px; display: block; text-decoration: none; color: black; } |
---|
69 | .wym_skin_default .wym_section a:hover { background-color: yellow; } |
---|
70 | /*hide section titles by default*/ |
---|
71 | .wym_skin_default .wym_section h2 { display: none; } |
---|
72 | /*disable any margin-collapse*/ |
---|
73 | .wym_skin_default .wym_section { padding-top: 1px; padding-bottom: 1px; } |
---|
74 | /*auto-clear sections*/ |
---|
75 | .wym_skin_default .wym_section ul:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } |
---|
76 | * html .wym_skin_default .wym_section ul { height: 1%;} |
---|
77 | |
---|
78 | /*option: add this class to a section to make it render as a panel*/ |
---|
79 | .wym_skin_default .wym_panel { } |
---|
80 | .wym_skin_default .wym_panel h2 { display: block; } |
---|
81 | |
---|
82 | /*option: add this class to a section to make it render as a dropdown menu*/ |
---|
83 | .wym_skin_default .wym_dropdown h2 { display: block; } |
---|
84 | .wym_skin_default .wym_dropdown ul { display: none; position: absolute; background: white; } |
---|
85 | .wym_skin_default .wym_dropdown:hover ul, |
---|
86 | .wym_skin_default .wym_dropdown.hover ul { display: block; } |
---|
87 | |
---|
88 | /*option: add this class to a section to make its elements render buttons (icons are only available for the wym_tools section for now)*/ |
---|
89 | .wym_skin_default .wym_buttons li { float:left;} |
---|
90 | .wym_skin_default .wym_buttons a { width: 20px; height: 20px; overflow: hidden; padding: 2px } |
---|
91 | /*image replacements*/ |
---|
92 | .wym_skin_default .wym_buttons li a { background: url(icons.png) no-repeat; text-indent: -9999px;} |
---|
93 | .wym_skin_default .wym_buttons li.wym_tools_strong a { background-position: 0 -382px;} |
---|
94 | .wym_skin_default .wym_buttons li.wym_tools_emphasis a { background-position: 0 -22px;} |
---|
95 | .wym_skin_default .wym_buttons li.wym_tools_superscript a { background-position: 0 -430px;} |
---|
96 | .wym_skin_default .wym_buttons li.wym_tools_subscript a { background-position: 0 -454px;} |
---|
97 | .wym_skin_default .wym_buttons li.wym_tools_ordered_list a { background-position: 0 -48px;} |
---|
98 | .wym_skin_default .wym_buttons li.wym_tools_unordered_list a{ background-position: 0 -72px;} |
---|
99 | .wym_skin_default .wym_buttons li.wym_tools_indent a { background-position: 0 -574px;} |
---|
100 | .wym_skin_default .wym_buttons li.wym_tools_outdent a { background-position: 0 -598px;} |
---|
101 | .wym_skin_default .wym_buttons li.wym_tools_undo a { background-position: 0 -502px;} |
---|
102 | .wym_skin_default .wym_buttons li.wym_tools_redo a { background-position: 0 -526px;} |
---|
103 | .wym_skin_default .wym_buttons li.wym_tools_link a { background-position: 0 -96px;} |
---|
104 | .wym_skin_default .wym_buttons li.wym_tools_unlink a { background-position: 0 -168px;} |
---|
105 | .wym_skin_default .wym_buttons li.wym_tools_image a { background-position: 0 -121px;} |
---|
106 | .wym_skin_default .wym_buttons li.wym_tools_table a { background-position: 0 -144px;} |
---|
107 | .wym_skin_default .wym_buttons li.wym_tools_paste a { background-position: 0 -552px;} |
---|
108 | .wym_skin_default .wym_buttons li.wym_tools_html a { background-position: 0 -193px;} |
---|
109 | .wym_skin_default .wym_buttons li.wym_tools_preview a { background-position: 0 -408px;} |
---|
110 | |
---|
111 | /*DECORATION*/ |
---|
112 | .wym_skin_default .wym_section h2 { background: #ddd; border: solid gray; border-width: 0 0 1px;} |
---|
113 | .wym_skin_default .wym_section h2 span { color: gray;} |
---|
114 | .wym_skin_default .wym_panel { padding: 0; border: solid gray; border-width: 1px; background: white;} |
---|
115 | .wym_skin_default .wym_panel ul { margin: 2px 0 5px; } |
---|
116 | .wym_skin_default .wym_dropdown { padding: 0; border: solid gray; border-width: 1px 1px 0 1px; } |
---|
117 | .wym_skin_default .wym_dropdown ul { border: solid gray; border-width: 0 1px 1px 1px; margin-left: -1px; padding: 5px 10px 5px 3px;} |
---|
118 | |
---|
119 | /*DIALOGS*/ |
---|
120 | .wym_dialog div.row { margin-bottom: 5px;} |
---|
121 | .wym_dialog div.row input { margin-right: 5px;} |
---|
122 | .wym_dialog div.row label { float: left; width: 150px; display: block; text-align: right; margin-right: 10px; } |
---|
123 | .wym_dialog div.row-indent { padding-left: 160px; } |
---|
124 | /*autoclearing*/ |
---|
125 | .wym_dialog div.row:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } |
---|
126 | .wym_dialog div.row { display: inline-block; } |
---|
127 | /* Hides from IE-mac \*/ |
---|
128 | * html .wym_dialog div.row { height: 1%; } |
---|
129 | .wym_dialog div.row { display: block; } |
---|
130 | /* End hide from IE-mac */ |
---|
131 | |
---|
132 | /*WYMEDITOR_LINK*/ |
---|
133 | a.wym_wymeditor_link { text-indent: -9999px; float: right; display: block; width: 50px; height: 15px; background: url(../wymeditor_icon.png); overflow: hidden; text-decoration: none; } |
---|