Skip to content
Snippets Groups Projects
Commit 4de9f91b authored by Artem Dergachev's avatar Artem Dergachev
Browse files

[analyzer] Fix HTMLRewriter style sheets to support non-webkit browsers.

This fixes rounded corners and shadows of analyzer diagnostic pieces
in browsers such as Firefox.

Differential Revision: https://reviews.llvm.org/D23272


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281625 91177308-0d34-0410-b5e6-96231b3b80d8
parent 6701aa35
No related branches found
No related tags found
No related merge requests found
...@@ -301,6 +301,7 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID, ...@@ -301,6 +301,7 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID,
" .macro:hover .expansion { display: block; border: 2px solid #FF0000; " " .macro:hover .expansion { display: block; border: 2px solid #FF0000; "
"padding: 2px; background-color:#FFF0F0; font-weight: normal; " "padding: 2px; background-color:#FFF0F0; font-weight: normal; "
" -webkit-border-radius:5px; -webkit-box-shadow:1px 1px 7px #000; " " -webkit-border-radius:5px; -webkit-box-shadow:1px 1px 7px #000; "
" border-radius:5px; box-shadow:1px 1px 7px #000; "
"position: absolute; top: -1em; left:10em; z-index: 1 } \n" "position: absolute; top: -1em; left:10em; z-index: 1 } \n"
" .macro { color: darkmagenta; background-color:LemonChiffon;" " .macro { color: darkmagenta; background-color:LemonChiffon;"
// Macros are position: relative to provide base for expansions. // Macros are position: relative to provide base for expansions.
...@@ -311,7 +312,9 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID, ...@@ -311,7 +312,9 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID,
" .line { padding-left: 1ex; border-left: 3px solid #ccc }\n" " .line { padding-left: 1ex; border-left: 3px solid #ccc }\n"
" .line { white-space: pre }\n" " .line { white-space: pre }\n"
" .msg { -webkit-box-shadow:1px 1px 7px #000 }\n" " .msg { -webkit-box-shadow:1px 1px 7px #000 }\n"
" .msg { box-shadow:1px 1px 7px #000 }\n"
" .msg { -webkit-border-radius:5px }\n" " .msg { -webkit-border-radius:5px }\n"
" .msg { border-radius:5px }\n"
" .msg { font-family:Helvetica, sans-serif; font-size:8pt }\n" " .msg { font-family:Helvetica, sans-serif; font-size:8pt }\n"
" .msg { float:left }\n" " .msg { float:left }\n"
" .msg { padding:0.25em 1ex 0.25em 1ex }\n" " .msg { padding:0.25em 1ex 0.25em 1ex }\n"
...@@ -326,6 +329,7 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID, ...@@ -326,6 +329,7 @@ void html::AddHeaderFooterInternalBuiltinCSS(Rewriter& R, FileID FID,
" .PathIndex { font-weight: bold; padding:0px 5px; " " .PathIndex { font-weight: bold; padding:0px 5px; "
"margin-right:5px; }\n" "margin-right:5px; }\n"
" .PathIndex { -webkit-border-radius:8px }\n" " .PathIndex { -webkit-border-radius:8px }\n"
" .PathIndex { border-radius:8px }\n"
" .PathIndexEvent { background-color:#bfba87 }\n" " .PathIndexEvent { background-color:#bfba87 }\n"
" .PathIndexControl { background-color:#8c8c8c }\n" " .PathIndexControl { background-color:#8c8c8c }\n"
" .PathNav a { text-decoration:none; font-size: larger }\n" " .PathNav a { text-decoration:none; font-size: larger }\n"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment