mirror of
https://github.com/golang/go
synced 2024-11-25 07:47:56 -07:00
e3fd2e1ec6
- sort by package name (instead of package path) for results with snippets - sort line numbers in results without snippets - properly characterize package clauses - experiment with a leaner look: no underlines for top-level godoc links in the left side bar Still using colors to distinguish results. Next step. R=rsc http://go/go-review/1015016
210 lines
3.1 KiB
CSS
210 lines
3.1 KiB
CSS
/*
|
|
Copyright 2009 The Go Authors. All rights reserved.
|
|
Use of this source code is governed by a BSD-style
|
|
license that can be found in the LICENSE file.
|
|
*/
|
|
|
|
/* ------------------------------------------------------------------------- */
|
|
/* Styles meant to help page authors achieve beauty. */
|
|
|
|
code, .code {
|
|
font-size: 100%;
|
|
font-family: monospace;
|
|
color:#007000;
|
|
}
|
|
|
|
kbd {
|
|
font-size: 100%;
|
|
font-family: monospace;
|
|
font-weight: bold;
|
|
}
|
|
|
|
pre.ebnf {
|
|
background-color: beige;
|
|
}
|
|
|
|
pre.grammar {
|
|
background-color: beige;
|
|
}
|
|
|
|
p.rule {
|
|
font-style: italic;
|
|
}
|
|
|
|
span.event {
|
|
font-style: italic;
|
|
}
|
|
|
|
span.alert {
|
|
color: #ff0000;
|
|
}
|
|
|
|
body {
|
|
font: 13px Helvetica, Arial, sans-serif;
|
|
}
|
|
|
|
h1, h2, h3, h4, h5, h6 {
|
|
font-family: Helvetica, Arial, sans-serif;
|
|
margin-bottom: 0.25em;
|
|
}
|
|
|
|
h2 {
|
|
background-color: #e5ecf9;
|
|
margin-top: 2em;
|
|
border-top:1px solid #36C;
|
|
}
|
|
|
|
pre {
|
|
font-size: 9pt;
|
|
background-color: #f8f8ff;
|
|
margin: 1em 0 0 0;
|
|
padding: .99em;
|
|
line-height: 125%;
|
|
overflow: auto;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
li {
|
|
padding-bottom: 0.5em;
|
|
}
|
|
|
|
li pre {
|
|
margin: 0.5em 0px 1em 0px;
|
|
}
|
|
|
|
|
|
/* ------------------------------------------------------------------------- */
|
|
/* Styles used in the boilerplate-ish parts of pages. */
|
|
|
|
div#content {
|
|
margin-left: 20%;
|
|
padding: 0 1em 2em 1em;
|
|
margin-top: -2px;
|
|
border: 2px solid #e5ecf9;
|
|
}
|
|
|
|
#topnav {
|
|
margin: 0px;
|
|
padding: .1em 0px;
|
|
width: 100%;
|
|
white-space: nowrap;
|
|
background-color: #e5ecf9;
|
|
border-top:1px solid #36C;
|
|
font: bold large Helvetica, Arial, sans-serif;
|
|
}
|
|
|
|
div#linkList {
|
|
font: 13px Helvetica, Arial, sans-serif;
|
|
float: left;
|
|
width: 20%;
|
|
}
|
|
|
|
div#linkList ul {
|
|
padding: 1px;
|
|
list-style-type: none;
|
|
}
|
|
|
|
div#linkList li {
|
|
margin-left: 1em;
|
|
}
|
|
|
|
div#linkList li.navhead {
|
|
font-weight: bold;
|
|
margin-left: 0px;
|
|
}
|
|
|
|
#nav dl {
|
|
margin: 0 0.5em 0 0.5em;
|
|
padding: 0px;
|
|
}
|
|
|
|
.navtop {
|
|
font-size: xx-small;
|
|
float: right;
|
|
}
|
|
|
|
#footer {
|
|
margin: 2em;
|
|
text-align: center;
|
|
color: #555;
|
|
font-size: small;
|
|
}
|
|
|
|
#footer a {
|
|
color: #555;
|
|
}
|
|
|
|
@media print {
|
|
div#linkList {
|
|
display: none;
|
|
}
|
|
.navtop {
|
|
display: none;
|
|
}
|
|
div#content {
|
|
margin-left: 0px;
|
|
border: none;
|
|
}
|
|
}
|
|
|
|
|
|
/* ------------------------------------------------------------------------- */
|
|
/* Styles used by go/printer Styler implementations. */
|
|
|
|
a.noline {
|
|
text-decoration: none;
|
|
}
|
|
|
|
span.comment {
|
|
color: #0000a0;
|
|
}
|
|
|
|
span.highlight {
|
|
background-color: #81F781;
|
|
}
|
|
|
|
|
|
/* ------------------------------------------------------------------------- */
|
|
/* Styles used by infoClassFmt */
|
|
|
|
a.package {
|
|
text-decoration: none;
|
|
background-color: #FFFFFF;
|
|
}
|
|
|
|
a.import {
|
|
text-decoration: none;
|
|
background-color: #D8D8D8;
|
|
}
|
|
|
|
a.const {
|
|
text-decoration: none;
|
|
background-color: #F5A9A9;
|
|
}
|
|
|
|
a.type {
|
|
text-decoration: none;
|
|
background-color: #F2F5A9;
|
|
}
|
|
|
|
a.var {
|
|
text-decoration: none;
|
|
background-color: #A9F5A9;
|
|
}
|
|
|
|
a.func {
|
|
text-decoration: none;
|
|
background-color: #A9D0F5;
|
|
}
|
|
|
|
a.method {
|
|
text-decoration: none;
|
|
background-color: #D0A9F5;
|
|
}
|
|
|
|
a.use {
|
|
text-decoration: none;
|
|
color: #FFFFFF;
|
|
background-color: #5858FA;
|
|
}
|