source: josm/trunk/data/help-browser.css@ 13513

Last change on this file since 13513 was 13459, checked in by Don-vip, 6 years ago

see #15998 - improve rendering of code snippets in help browser

  • Property svn:eol-style set to native
File size: 9.7 KB
Line 
1@CHARSET "ISO-8859-1";
2/*
3 * This is the CSS file used in the internal help browser.
4 * Refer to https://docs.oracle.com/javase/8/docs/api/javax/swing/text/html/CSS.html
5 * and https://www.w3.org/TR/CSS1/ to see what CSS properties are supported by Java.
6 * - Not rendered are width, height, float, clear, display, font-variant and others.
7 * - Inline elements can't have borders, margins and paddings.
8 */
9body {margin-left: 0.2cm; font-family: Arial, sans-serif; font-size:14pt; font-weight:normal}
10p {margin-top: 5px; margin-bottom: 5px;}
11h1 {font-family: Arial, sans-serif; font-size:24pt; font-weight:bold}
12h2 {margin-top: 14pt; font-family: Arial, sans-serif; font-size:20pt; font-weight:bold}
13h3 {margin-top: 14pt; font-family: Arial, sans-serif; font-size:16pt; font-weight:bold}
14h4 {margin-top: 14pt; font-family: Arial, sans-serif; font-size:14pt; font-weight:bold}
15a {font-family: Arial, sans-serif; font-size:14pt; font-weight:normal; text-decoration: underline; color: blue}
16ul {margin-left: 1cm; list-style-type: disc}
17ul ul {margin-left: 1cm; list-style-type: circle}
18ol {margin-left: 1cm;}
19strong {font-weight: bold}
20b {font-weight: bold}
21em {font-style: italic}
22i {font-style: italic}
23code, pre, samp, tt {
24 background-color: rgb(240, 240, 240);
25 font-family: Courier New;
26 color: rgb(102, 0, 0);
27}
28code, tt {
29 font-size: 110%;
30}
31.warning-header {
32 font-family: Arial, sans-serif;
33 font-size:24pt;
34 font-weight:bold
35}
36.warning-body {
37 background-color:rgb(253,255,221);
38 padding: 10pt;
39 border-color:rgb(128,128,128);
40 border-style: solid;
41 border-width: 1px;
42}
43
44.error-header {
45 font-family: Arial, sans-serif;
46 font-size:24pt;
47 font-weight:bold
48}
49.error-body {
50 background-color:rgb(254,195,190);
51 padding: 10pt;
52 border-color:rgb(128,128,128);
53 border-style: solid;
54 border-width: 1px;
55}
56
57/********
58 TRAC CSS
59 ********/
60
61div.code pre .hll { background-color: #ffffcc }
62div.code pre { background: #ffffff; }
63div.code pre .c { color: #999988; font-style: italic } /* Comment */
64div.code pre .err { color: #a61717; background-color: #e3d2d2 } /* Error */
65div.code pre .k { font-weight: bold } /* Keyword */
66div.code pre .o { font-weight: bold } /* Operator */
67div.code pre .ch { color: #999988; font-style: italic } /* Comment.Hashbang */
68div.code pre .cm { color: #999988; font-style: italic } /* Comment.Multiline */
69div.code pre .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
70div.code pre .cpf { color: #999988; font-style: italic } /* Comment.PreprocFile */
71div.code pre .c1 { color: #999988; font-style: italic } /* Comment.Single */
72div.code pre .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
73div.code pre .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
74div.code pre .ge { font-style: italic } /* Generic.Emph */
75div.code pre .gr { color: #aa0000 } /* Generic.Error */
76div.code pre .gh { color: #999999 } /* Generic.Heading */
77div.code pre .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
78div.code pre .go { color: #888888 } /* Generic.Output */
79div.code pre .gp { color: #555555 } /* Generic.Prompt */
80div.code pre .gs { font-weight: bold } /* Generic.Strong */
81div.code pre .gu { color: #aaaaaa } /* Generic.Subheading */
82div.code pre .gt { color: #aa0000 } /* Generic.Traceback */
83div.code pre .kc { font-weight: bold } /* Keyword.Constant */
84div.code pre .kd { font-weight: bold } /* Keyword.Declaration */
85div.code pre .kn { font-weight: bold } /* Keyword.Namespace */
86div.code pre .kp { font-weight: bold } /* Keyword.Pseudo */
87div.code pre .kr { font-weight: bold } /* Keyword.Reserved */
88div.code pre .kt { color: #445588; font-weight: bold } /* Keyword.Type */
89div.code pre .m { color: #009999 } /* Literal.Number */
90div.code pre .s { color: #bb8844 } /* Literal.String */
91div.code pre .na { color: #008080 } /* Name.Attribute */
92div.code pre .nb { color: #999999 } /* Name.Builtin */
93div.code pre .nc { color: #445588; font-weight: bold } /* Name.Class */
94div.code pre .no { color: #008080 } /* Name.Constant */
95div.code pre .ni { color: #800080 } /* Name.Entity */
96div.code pre .ne { color: #990000; font-weight: bold } /* Name.Exception */
97div.code pre .nf { color: #990000; font-weight: bold } /* Name.Function */
98div.code pre .nn { color: #555555 } /* Name.Namespace */
99div.code pre .nt { color: #000080 } /* Name.Tag */
100div.code pre .nv { color: #008080 } /* Name.Variable */
101div.code pre .ow { font-weight: bold } /* Operator.Word */
102div.code pre .w { color: #bbbbbb } /* Text.Whitespace */
103div.code pre .mb { color: #009999 } /* Literal.Number.Bin */
104div.code pre .mf { color: #009999 } /* Literal.Number.Float */
105div.code pre .mh { color: #009999 } /* Literal.Number.Hex */
106div.code pre .mi { color: #009999 } /* Literal.Number.Integer */
107div.code pre .mo { color: #009999 } /* Literal.Number.Oct */
108div.code pre .sb { color: #bb8844 } /* Literal.String.Backtick */
109div.code pre .sc { color: #bb8844 } /* Literal.String.Char */
110div.code pre .sd { color: #bb8844 } /* Literal.String.Doc */
111div.code pre .s2 { color: #bb8844 } /* Literal.String.Double */
112div.code pre .se { color: #bb8844 } /* Literal.String.Escape */
113div.code pre .sh { color: #bb8844 } /* Literal.String.Heredoc */
114div.code pre .si { color: #bb8844 } /* Literal.String.Interpol */
115div.code pre .sx { color: #bb8844 } /* Literal.String.Other */
116div.code pre .sr { color: #808000 } /* Literal.String.Regex */
117div.code pre .s1 { color: #bb8844 } /* Literal.String.Single */
118div.code pre .ss { color: #bb8844 } /* Literal.String.Symbol */
119div.code pre .bp { color: #999999 } /* Name.Builtin.Pseudo */
120div.code pre .vc { color: #008080 } /* Name.Variable.Class */
121div.code pre .vg { color: #008080 } /* Name.Variable.Global */
122div.code pre .vi { color: #008080 } /* Name.Variable.Instance */
123div.code pre .il { color: #009999 } /* Literal.Number.Integer.Long */
124
125table.code td .hll { background-color: #ffffcc }
126table.code td { background: #ffffff; }
127table.code td .c { color: #999988; font-style: italic } /* Comment */
128table.code td .err { color: #a61717; background-color: #e3d2d2 } /* Error */
129table.code td .k { font-weight: bold } /* Keyword */
130table.code td .o { font-weight: bold } /* Operator */
131table.code td .ch { color: #999988; font-style: italic } /* Comment.Hashbang */
132table.code td .cm { color: #999988; font-style: italic } /* Comment.Multiline */
133table.code td .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
134table.code td .cpf { color: #999988; font-style: italic } /* Comment.PreprocFile */
135table.code td .c1 { color: #999988; font-style: italic } /* Comment.Single */
136table.code td .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
137table.code td .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
138table.code td .ge { font-style: italic } /* Generic.Emph */
139table.code td .gr { color: #aa0000 } /* Generic.Error */
140table.code td .gh { color: #999999 } /* Generic.Heading */
141table.code td .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
142table.code td .go { color: #888888 } /* Generic.Output */
143table.code td .gp { color: #555555 } /* Generic.Prompt */
144table.code td .gs { font-weight: bold } /* Generic.Strong */
145table.code td .gu { color: #aaaaaa } /* Generic.Subheading */
146table.code td .gt { color: #aa0000 } /* Generic.Traceback */
147table.code td .kc { font-weight: bold } /* Keyword.Constant */
148table.code td .kd { font-weight: bold } /* Keyword.Declaration */
149table.code td .kn { font-weight: bold } /* Keyword.Namespace */
150table.code td .kp { font-weight: bold } /* Keyword.Pseudo */
151table.code td .kr { font-weight: bold } /* Keyword.Reserved */
152table.code td .kt { color: #445588; font-weight: bold } /* Keyword.Type */
153table.code td .m { color: #009999 } /* Literal.Number */
154table.code td .s { color: #bb8844 } /* Literal.String */
155table.code td .na { color: #008080 } /* Name.Attribute */
156table.code td .nb { color: #999999 } /* Name.Builtin */
157table.code td .nc { color: #445588; font-weight: bold } /* Name.Class */
158table.code td .no { color: #008080 } /* Name.Constant */
159table.code td .ni { color: #800080 } /* Name.Entity */
160table.code td .ne { color: #990000; font-weight: bold } /* Name.Exception */
161table.code td .nf { color: #990000; font-weight: bold } /* Name.Function */
162table.code td .nn { color: #555555 } /* Name.Namespace */
163table.code td .nt { color: #000080 } /* Name.Tag */
164table.code td .nv { color: #008080 } /* Name.Variable */
165table.code td .ow { font-weight: bold } /* Operator.Word */
166table.code td .w { color: #bbbbbb } /* Text.Whitespace */
167table.code td .mb { color: #009999 } /* Literal.Number.Bin */
168table.code td .mf { color: #009999 } /* Literal.Number.Float */
169table.code td .mh { color: #009999 } /* Literal.Number.Hex */
170table.code td .mi { color: #009999 } /* Literal.Number.Integer */
171table.code td .mo { color: #009999 } /* Literal.Number.Oct */
172table.code td .sb { color: #bb8844 } /* Literal.String.Backtick */
173table.code td .sc { color: #bb8844 } /* Literal.String.Char */
174table.code td .sd { color: #bb8844 } /* Literal.String.Doc */
175table.code td .s2 { color: #bb8844 } /* Literal.String.Double */
176table.code td .se { color: #bb8844 } /* Literal.String.Escape */
177table.code td .sh { color: #bb8844 } /* Literal.String.Heredoc */
178table.code td .si { color: #bb8844 } /* Literal.String.Interpol */
179table.code td .sx { color: #bb8844 } /* Literal.String.Other */
180table.code td .sr { color: #808000 } /* Literal.String.Regex */
181table.code td .s1 { color: #bb8844 } /* Literal.String.Single */
182table.code td .ss { color: #bb8844 } /* Literal.String.Symbol */
183table.code td .bp { color: #999999 } /* Name.Builtin.Pseudo */
184table.code td .vc { color: #008080 } /* Name.Variable.Class */
185table.code td .vg { color: #008080 } /* Name.Variable.Global */
186table.code td .vi { color: #008080 } /* Name.Variable.Instance */
187table.code td .il { color: #009999 } /* Literal.Number.Integer.Long */
Note: See TracBrowser for help on using the repository browser.