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

Unified Diff: utils/dartdoc/static/styles.css

Issue 8772067: Navigation in generated docs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Respond to review. Created 9 years 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 | « utils/dartdoc/static/library.png ('k') | utils/dartdoc/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/dartdoc/static/styles.css
diff --git a/utils/dartdoc/static/styles.css b/utils/dartdoc/static/styles.css
index 21352d5d1372e487e632fb4a3a267951324507e2..d3667d09d33dff98c3937a93fc2b27cf45253927 100644
--- a/utils/dartdoc/static/styles.css
+++ b/utils/dartdoc/static/styles.css
@@ -1,12 +1,12 @@
/* Reset */
-body, h1, h2, h3, h4, p, pre, section {
+body, h1, h2, h3, h4, li, ol, p, pre, section, ul {
margin: 0;
padding: 0;
}
body {
font-family: Georgia, serif;
- background: #eee;
+ background: #e4e4e4;
color: #333;
}
@@ -67,6 +67,15 @@ a:visited {
color: hsl(270, 50%, 40%);
}
+li {
+ font-size: 16px;
+ line-height: 22px;
+}
+
+ol, ul {
+ padding-left: 22px;
+}
+
hr {
border: none;
height: 1px;
@@ -78,15 +87,84 @@ hr + h2 {
margin-top: 21px; /* To compensate for the thickness of the hr. */
}
-.content {
- max-width: 704px; /* 32 x 22px */
- padding: 22px 22px;
+.page {
+ max-width: 960px; /* 43 x 22px */
background: #fff;
margin: 0 auto 22px auto;
border: solid 1px #ccc;
border-top: none;
}
+.nav {
+ float: left;
+ width: 263px; /* 12 x 22px - 1 for border */
+ padding: 22px 22px;
+ overflow: hidden;
+ background: #f4f4f4;
+ border-right: solid 1px #ccc;
+}
+
+.nav h2 {
+ font: 400 16px/22px 'Open Sans', 'Lucida Sans Unicode', 'Lucida Grande',
+ sans-serif;
+ margin: 22px -21px 0 -21px;
+ padding: 11px 22px;
+
+ /* Using http://www.colorzilla.com/gradient-editor/ */
+ background: -moz-linear-gradient(top, hsla(0,0%,0%,0.05) 0%, hsla(0,0%,0%,0) 100%);
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,hsla(0,0%,0%,0.05)), color-stop(100%,hsla(0,0%,0%,0)));
+ background: -webkit-linear-gradient(top, hsla(0,0%,0%,0.05) 0%,hsla(0,0%,0%,0) 100%);
+ background: -o-linear-gradient(top, hsla(0,0%,0%,0.05) 0%,hsla(0,0%,0%,0) 100%);
+ background: -ms-linear-gradient(top, hsla(0,0%,0%,0.05) 0%,hsla(0,0%,0%,0) 100%);
+ background: linear-gradient(top, hsla(0,0%,0%,0.05) 0%,hsla(0,0%,0%,0) 100%);
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0d000000', endColorstr='#00000000',GradientType=0);
+}
+
+.nav li {
+ font: 600 13px/22px 'Open Sans', 'Lucida Sans Unicode', 'Lucida Grande',
+ sans-serif;
+ list-style-type: none;
+}
+
+.nav ul {
+ padding: 0;
+}
+
+.icon-class,
+.icon-interface {
+ display: inline-block;
+ width: 12px;
+ height: 13px;
+ margin: 4px 8px 0 2px;
+ vertical-align: top;
+}
+
+.icon-class {
+ background: url('class.png');
+}
+
+.icon-interface {
+ background: url('interface.png');
+}
+
+.icon-library {
+ background: url('library.png');
+ width: 16px;
+ height: 14px;
+ display: inline-block;
+ margin: 4px 4px 0 0;
+ vertical-align: top;
+}
+
+.content {
+ margin-left: 308px; /* 14 x 22px */
+ padding: 22px 22px;
+}
+
+.footer {
+ clear: both;
+}
+
.method .doc,
.field .doc {
padding-left: 44px;
@@ -201,7 +279,7 @@ body {
background-repeat: repeat;
}
-.content {
+.page {
background: none;
}
« no previous file with comments | « utils/dartdoc/static/library.png ('k') | utils/dartdoc/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698