Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: pkg/polymer/tool/create_message_details_page.dart

Issue 562823003: Style improvements in polymer error/warning messages page. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/tool/create_message_details_page.dart
diff --git a/pkg/polymer/tool/create_message_details_page.dart b/pkg/polymer/tool/create_message_details_page.dart
index 50d8c2677a2f96d61cb2ea6d6f6a7e23fe50a041..f69ee29e012a631bcee43db7d0d2b442eceff55c 100644
--- a/pkg/polymer/tool/create_message_details_page.dart
+++ b/pkg/polymer/tool/create_message_details_page.dart
@@ -91,9 +91,8 @@ _generateMessage(MessageTemplate template, bool forSite, StringBuffer sb) {
..write('\n{: #$hashTag}\n')
..write(body);
} else {
- var html = markdownToHtml('$title$body')
- .replaceFirst('<h3>', '<h3 id="$hashTag">');
- sb.write('\n\n$html');
+ var html = markdownToHtml('$title$body').replaceFirst('<hr', '</div><hr');
+ sb.write('\n\n<div id="$hashTag">$html');
}
}
@@ -190,6 +189,7 @@ body {
width: 80vw;
margin: 20px;
font-family: Roboto, sans-serif;
+ background-color: #f0f0f0;
}
h2 {
@@ -202,6 +202,16 @@ h2 {
font-weight: normal;
}
+div:target {
+ background-color: #fff;
+ border: 1px solid #888;
+ border-radius: 5px;
+ padding: 0px 10px 2px 10px;
+ box-shadow: 7px 7px 5px #888888;
+ margin-bottom: 15px;
+}
+
+
h3 {
font-family: Montserrat, sans-serif;
box-sizing: border-box;
@@ -212,6 +222,10 @@ h3 {
font-weight: normal;
}
+div:target > h3 {
+ font-weight: bold;
+}
+
pre {
display: block;
padding: 9.5px;
« no previous file with comments | « pkg/polymer/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698