Changeset 13459 in josm


Ignore:
Timestamp:
2018-02-25T15:50:51+01:00 (5 months ago)
Author:
Don-vip
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/help-browser.css

    r13428 r13459  
    2121em {font-style: italic}
    2222i {font-style: italic}
    23 code, pre, samp, tt {font-family: Courier New}
     23code, pre, samp, tt {
     24        background-color: rgb(240, 240, 240);
     25        font-family: Courier New;
     26        color: rgb(102, 0, 0);
     27}
    2428code, tt {
    25         background-color: rgb(240, 240, 240);
    2629        font-size: 110%;
    27         color: rgb(102, 0, 0);
    2830}
    2931.warning-header {
     
    5254        border-width: 1px;
    5355}
     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 TracChangeset for help on using the changeset viewer.