mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
1973dbeae9
This patch adds support for displaying remarks with multiple lines. For such remarks, it creates a hidden div containing the message's lines except the first one in a <pre> tag. It also prepends a link (with '+' as text) to the regular remark line. This link can be used to show/hide the div containing the full remark. In combination with D57159, this allows for better displaying of multiline remarks in the html pages generated by opt-viewer. The Javascript is very simple and should be supported by any recent major browser. Reviewers: hfinkel, anemet, thegameg, serge-sans-paille Reviewed By: anemet Differential Revision: https://reviews.llvm.org/D57167 llvm-svn: 352223
219 lines
6.2 KiB
CSS
219 lines
6.2 KiB
CSS
.source {
|
|
table-layout: fixed;
|
|
width: 100%;
|
|
white-space: nowrap;
|
|
}
|
|
.source td {
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
.red {
|
|
background-color: #ffd0d0;
|
|
}
|
|
.cyan {
|
|
background-color: cyan;
|
|
}
|
|
body {
|
|
font-family: -apple-system, sans-serif;
|
|
}
|
|
pre {
|
|
margin-top: 0px !important;
|
|
margin-bottom: 0px !important;
|
|
}
|
|
.source-name-title {
|
|
padding: 5px 10px;
|
|
border-bottom: 1px solid #dbdbdb;
|
|
background-color: #eee;
|
|
line-height: 35px;
|
|
}
|
|
.centered {
|
|
display: table;
|
|
margin-left: left;
|
|
margin-right: auto;
|
|
border: 1px solid #dbdbdb;
|
|
border-radius: 3px;
|
|
}
|
|
.expansion-view {
|
|
background-color: rgba(0, 0, 0, 0);
|
|
margin-left: 0px;
|
|
margin-top: 5px;
|
|
margin-right: 5px;
|
|
margin-bottom: 5px;
|
|
border: 1px solid #dbdbdb;
|
|
border-radius: 3px;
|
|
}
|
|
table {
|
|
border-collapse: collapse;
|
|
}
|
|
.light-row {
|
|
background: #ffffff;
|
|
border: 1px solid #dbdbdb;
|
|
}
|
|
.column-entry {
|
|
text-align: right;
|
|
}
|
|
.column-entry-left {
|
|
text-align: left;
|
|
}
|
|
.column-entry-white {
|
|
text-align: right;
|
|
background-color: #ffffff;
|
|
}
|
|
.column-entry-red {
|
|
text-align: right;
|
|
background-color: #ffd0d0;
|
|
}
|
|
.column-entry-green {
|
|
text-align: right;
|
|
background-color: #d0ffd0;
|
|
}
|
|
.column-entry-yellow {
|
|
text-align: left;
|
|
background-color: #ffe1a6;
|
|
}
|
|
.column-entry-0 {
|
|
background-color: #ffffff;
|
|
}
|
|
.column-entry-1 {
|
|
background-color: #eeeeee;
|
|
}
|
|
.line-number {
|
|
text-align: right;
|
|
color: #aaa;
|
|
}
|
|
.covered-line {
|
|
text-align: right;
|
|
color: #0080ff;
|
|
}
|
|
.uncovered-line {
|
|
text-align: right;
|
|
color: #ff3300;
|
|
}
|
|
.tooltip {
|
|
position: relative;
|
|
display: inline;
|
|
background-color: #b3e6ff;
|
|
text-decoration: none;
|
|
}
|
|
.tooltip span.tooltip-content {
|
|
position: absolute;
|
|
width: 100px;
|
|
margin-left: -50px;
|
|
color: #FFFFFF;
|
|
background: #000000;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
text-align: center;
|
|
visibility: hidden;
|
|
border-radius: 6px;
|
|
}
|
|
.tooltip span.tooltip-content:after {
|
|
content: '';
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
margin-left: -8px;
|
|
width: 0; height: 0;
|
|
border-top: 8px solid #000000;
|
|
border-right: 8px solid transparent;
|
|
border-left: 8px solid transparent;
|
|
}
|
|
:hover.tooltip span.tooltip-content {
|
|
visibility: visible;
|
|
opacity: 0.8;
|
|
bottom: 30px;
|
|
left: 50%;
|
|
z-index: 999;
|
|
}
|
|
th, td {
|
|
vertical-align: top;
|
|
padding: 2px 5px;
|
|
border-collapse: collapse;
|
|
border-right: solid 1px #eee;
|
|
border-left: solid 1px #eee;
|
|
}
|
|
td:first-child {
|
|
border-left: none;
|
|
}
|
|
td:last-child {
|
|
border-right: none;
|
|
}
|
|
.expanded {
|
|
background-color: #f2f2f2;
|
|
padding-top: 5px;
|
|
padding-left: 5px;
|
|
}
|
|
.col-left {
|
|
float: left;
|
|
margin-bottom: -99999px;
|
|
padding-bottom: 99999px;
|
|
}
|
|
|
|
/* Generated with pygmentize -S colorful -f html >> style.css */
|
|
|
|
.hll { background-color: #ffffcc }
|
|
.c { color: #888888 } /* Comment */
|
|
.err { color: #FF0000; background-color: #FFAAAA } /* Error */
|
|
.k { color: #008800; font-weight: bold } /* Keyword */
|
|
.o { color: #333333 } /* Operator */
|
|
.ch { color: #888888 } /* Comment.Hashbang */
|
|
.cm { color: #888888 } /* Comment.Multiline */
|
|
.cp { color: #557799 } /* Comment.Preproc */
|
|
.cpf { color: #888888 } /* Comment.PreprocFile */
|
|
.c1 { color: #888888 } /* Comment.Single */
|
|
.cs { color: #cc0000; font-weight: bold } /* Comment.Special */
|
|
.gd { color: #A00000 } /* Generic.Deleted */
|
|
.ge { font-style: italic } /* Generic.Emph */
|
|
.gr { color: #FF0000 } /* Generic.Error */
|
|
.gh { color: #000080; font-weight: bold } /* Generic.Heading */
|
|
.gi { color: #00A000 } /* Generic.Inserted */
|
|
.go { color: #888888 } /* Generic.Output */
|
|
.gp { color: #c65d09; font-weight: bold } /* Generic.Prompt */
|
|
.gs { font-weight: bold } /* Generic.Strong */
|
|
.gu { color: #800080; font-weight: bold } /* Generic.Subheading */
|
|
.gt { color: #0044DD } /* Generic.Traceback */
|
|
.kc { color: #008800; font-weight: bold } /* Keyword.Constant */
|
|
.kd { color: #008800; font-weight: bold } /* Keyword.Declaration */
|
|
.kn { color: #008800; font-weight: bold } /* Keyword.Namespace */
|
|
.kp { color: #003388; font-weight: bold } /* Keyword.Pseudo */
|
|
.kr { color: #008800; font-weight: bold } /* Keyword.Reserved */
|
|
.kt { color: #333399; font-weight: bold } /* Keyword.Type */
|
|
.m { color: #6600EE; font-weight: bold } /* Literal.Number */
|
|
.s { background-color: #fff0f0 } /* Literal.String */
|
|
.na { color: #0000CC } /* Name.Attribute */
|
|
.nb { color: #007020 } /* Name.Builtin */
|
|
.nc { color: #BB0066; font-weight: bold } /* Name.Class */
|
|
.no { color: #003366; font-weight: bold } /* Name.Constant */
|
|
.nd { color: #555555; font-weight: bold } /* Name.Decorator */
|
|
.ni { color: #880000; font-weight: bold } /* Name.Entity */
|
|
.ne { color: #FF0000; font-weight: bold } /* Name.Exception */
|
|
.nf { color: #0066BB; font-weight: bold } /* Name.Function */
|
|
.nl { color: #997700; font-weight: bold } /* Name.Label */
|
|
.nn { color: #0e84b5; font-weight: bold } /* Name.Namespace */
|
|
.nt { color: #007700 } /* Name.Tag */
|
|
.nv { color: #996633 } /* Name.Variable */
|
|
.ow { color: #000000; font-weight: bold } /* Operator.Word */
|
|
.w { color: #bbbbbb } /* Text.Whitespace */
|
|
.mb { color: #6600EE; font-weight: bold } /* Literal.Number.Bin */
|
|
.mf { color: #6600EE; font-weight: bold } /* Literal.Number.Float */
|
|
.mh { color: #005588; font-weight: bold } /* Literal.Number.Hex */
|
|
.mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */
|
|
.mo { color: #4400EE; font-weight: bold } /* Literal.Number.Oct */
|
|
.sb { background-color: #fff0f0 } /* Literal.String.Backtick */
|
|
.sc { color: #0044DD } /* Literal.String.Char */
|
|
.sd { color: #DD4422 } /* Literal.String.Doc */
|
|
.s2 { background-color: #fff0f0 } /* Literal.String.Double */
|
|
.se { color: #666666; font-weight: bold; background-color: #fff0f0 } /* Literal.String.Escape */
|
|
.sh { background-color: #fff0f0 } /* Literal.String.Heredoc */
|
|
.si { background-color: #eeeeee } /* Literal.String.Interpol */
|
|
.sx { color: #DD2200; background-color: #fff0f0 } /* Literal.String.Other */
|
|
.sr { color: #000000; background-color: #fff0ff } /* Literal.String.Regex */
|
|
.s1 { background-color: #fff0f0 } /* Literal.String.Single */
|
|
.ss { color: #AA6600 } /* Literal.String.Symbol */
|
|
.bp { color: #007020 } /* Name.Builtin.Pseudo */
|
|
.vc { color: #336699 } /* Name.Variable.Class */
|
|
.vg { color: #dd7700; font-weight: bold } /* Name.Variable.Global */
|
|
.vi { color: #3333BB } /* Name.Variable.Instance */
|
|
.il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
|