2013-08-01 01:36:56 -06:00
|
|
|
body {
|
|
|
|
margin: 0;
|
2015-04-17 17:09:18 -06:00
|
|
|
font-family: Arial, sans-serif;
|
2013-08-01 01:36:56 -06:00
|
|
|
font-size: 16px;
|
2015-05-27 18:54:35 -06:00
|
|
|
background-color: #fff;
|
2015-04-17 17:09:18 -06:00
|
|
|
line-height: 1.3em;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
pre,
|
|
|
|
code {
|
|
|
|
font-family: Menlo, monospace;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
pre {
|
2015-04-17 17:09:18 -06:00
|
|
|
line-height: 1.4em;
|
|
|
|
overflow-x: auto;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
pre .comment {
|
|
|
|
color: #006600;
|
|
|
|
}
|
|
|
|
pre .highlight,
|
|
|
|
pre .highlight-comment,
|
|
|
|
pre .selection-highlight,
|
|
|
|
pre .selection-highlight-comment {
|
|
|
|
background: #FFFF00;
|
|
|
|
}
|
|
|
|
pre .selection,
|
|
|
|
pre .selection-comment {
|
|
|
|
background: #FF9632;
|
|
|
|
}
|
|
|
|
pre .ln {
|
|
|
|
color: #999;
|
2017-01-07 13:01:25 -07:00
|
|
|
background: #efefef;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
2016-12-10 21:50:47 -07:00
|
|
|
.ln {
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
|
|
|
}
|
2017-04-21 20:13:36 -06:00
|
|
|
.ln::before {
|
|
|
|
/* Inserting the line numbers as a ::before pseudo-element avoids making
|
|
|
|
* them selectable; it's the trick Github uses as well. */
|
|
|
|
content: attr(data-content);
|
|
|
|
}
|
2013-08-01 01:36:56 -06:00
|
|
|
body {
|
|
|
|
color: #222;
|
|
|
|
}
|
|
|
|
a,
|
|
|
|
.exampleHeading .text {
|
|
|
|
color: #375EAB;
|
|
|
|
}
|
godoc: better distinguish links and link state
There were two issues with links in godoc:
1) They were only distinguished from ordinary text only by color,
affecting those with color-vision deficiencies.
2) The same blue used for links is used by non-links,
affecting everybody.
This change adds a an underline to all links.
Usually, it is safe to skip underlining in locations where it clear
that the only contents are navigational links, such as #pkg-index.
However, (2) prevented this.
To work around this I used some less well supported CSS techniques:
http://caniuse.com/#feat=text-decoration
Less capable browsers, which are unlikely to be used by developers, may
have a less than optimal experience, unfortunately. In more capable
browsers, including those without full support, the experience is quite
pleasant and the additional underlying does not interfere with the godoc
aesthetic.
For golang/go#22171
Change-Id: I5a0d817793e8aa31912ba065b4e5a63d4a3f138c
Reviewed-on: https://go-review.googlesource.com/69150
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2017-10-07 13:42:05 -06:00
|
|
|
a,
|
2013-08-01 01:36:56 -06:00
|
|
|
.exampleHeading .text:hover {
|
|
|
|
text-decoration: underline;
|
godoc: better distinguish links and link state
There were two issues with links in godoc:
1) They were only distinguished from ordinary text only by color,
affecting those with color-vision deficiencies.
2) The same blue used for links is used by non-links,
affecting everybody.
This change adds a an underline to all links.
Usually, it is safe to skip underlining in locations where it clear
that the only contents are navigational links, such as #pkg-index.
However, (2) prevented this.
To work around this I used some less well supported CSS techniques:
http://caniuse.com/#feat=text-decoration
Less capable browsers, which are unlikely to be used by developers, may
have a less than optimal experience, unfortunately. In more capable
browsers, including those without full support, the experience is quite
pleasant and the additional underlying does not interfere with the godoc
aesthetic.
For golang/go#22171
Change-Id: I5a0d817793e8aa31912ba065b4e5a63d4a3f138c
Reviewed-on: https://go-review.googlesource.com/69150
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2017-10-07 13:42:05 -06:00
|
|
|
-webkit-text-decoration: skip;
|
|
|
|
text-decoration-skip: ink;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
godoc: better distinguish links and link state
There were two issues with links in godoc:
1) They were only distinguished from ordinary text only by color,
affecting those with color-vision deficiencies.
2) The same blue used for links is used by non-links,
affecting everybody.
This change adds a an underline to all links.
Usually, it is safe to skip underlining in locations where it clear
that the only contents are navigational links, such as #pkg-index.
However, (2) prevented this.
To work around this I used some less well supported CSS techniques:
http://caniuse.com/#feat=text-decoration
Less capable browsers, which are unlikely to be used by developers, may
have a less than optimal experience, unfortunately. In more capable
browsers, including those without full support, the experience is quite
pleasant and the additional underlying does not interfere with the godoc
aesthetic.
For golang/go#22171
Change-Id: I5a0d817793e8aa31912ba065b4e5a63d4a3f138c
Reviewed-on: https://go-review.googlesource.com/69150
Reviewed-by: Andrew Bonventre <andybons@golang.org>
2017-10-07 13:42:05 -06:00
|
|
|
a:hover,
|
|
|
|
.exampleHeading .text {
|
2017-01-05 20:19:54 -07:00
|
|
|
text-decoration: none;
|
|
|
|
}
|
2016-03-06 07:31:52 -07:00
|
|
|
|
2017-10-24 14:45:43 -06:00
|
|
|
.permalink {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
:hover > .permalink {
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
2016-01-06 23:13:13 -07:00
|
|
|
p, li {
|
2015-04-17 17:09:18 -06:00
|
|
|
max-width: 800px;
|
|
|
|
word-wrap: break-word;
|
|
|
|
}
|
2013-08-01 01:36:56 -06:00
|
|
|
p,
|
|
|
|
pre,
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
margin: 20px;
|
|
|
|
}
|
|
|
|
pre {
|
2015-04-17 17:09:18 -06:00
|
|
|
background: #EFEFEF;
|
2013-08-01 01:36:56 -06:00
|
|
|
padding: 10px;
|
|
|
|
|
|
|
|
-webkit-border-radius: 5px;
|
|
|
|
-moz-border-radius: 5px;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
h1,
|
|
|
|
h2,
|
|
|
|
h3,
|
|
|
|
h4,
|
|
|
|
.rootHeading {
|
2015-08-02 23:09:23 -06:00
|
|
|
margin: 20px 0 20px;
|
2013-08-01 01:36:56 -06:00
|
|
|
padding: 0;
|
|
|
|
color: #375EAB;
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
h1 {
|
2015-04-17 17:09:18 -06:00
|
|
|
font-size: 28px;
|
|
|
|
line-height: 1;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
2016-09-16 06:42:50 -06:00
|
|
|
h1 .text-muted {
|
|
|
|
color:#777;
|
|
|
|
}
|
2013-08-01 01:36:56 -06:00
|
|
|
h2 {
|
|
|
|
font-size: 20px;
|
|
|
|
background: #E0EBF5;
|
2015-04-17 17:09:18 -06:00
|
|
|
padding: 8px;
|
|
|
|
line-height: 1.25;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
h2 a {
|
|
|
|
font-weight: bold;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
h3,
|
|
|
|
h4 {
|
|
|
|
margin: 20px 5px;
|
|
|
|
}
|
|
|
|
h4 {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
|
|
|
.rootHeading {
|
|
|
|
font-size: 20px;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
dl {
|
|
|
|
margin: 20px;
|
|
|
|
}
|
|
|
|
dd {
|
2016-01-26 21:42:49 -07:00
|
|
|
margin: 0 0 0 20px;
|
2015-04-17 17:09:18 -06:00
|
|
|
}
|
2013-08-01 01:36:56 -06:00
|
|
|
dl,
|
|
|
|
dd {
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
div#nav table td {
|
|
|
|
vertical-align: top;
|
|
|
|
}
|
|
|
|
|
2015-04-17 17:09:18 -06:00
|
|
|
|
2017-10-08 18:15:37 -06:00
|
|
|
#pkg-index h3 {
|
|
|
|
font-size: 16px;
|
|
|
|
}
|
2015-04-17 17:09:18 -06:00
|
|
|
.pkg-dir {
|
|
|
|
padding: 0 10px;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
2015-04-17 17:09:18 -06:00
|
|
|
.pkg-dir table {
|
|
|
|
border-collapse: collapse;
|
|
|
|
border-spacing: 0;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
2015-04-17 17:09:18 -06:00
|
|
|
.pkg-name {
|
|
|
|
padding-right: 10px;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
.alert {
|
|
|
|
color: #AA0000;
|
|
|
|
}
|
|
|
|
|
2015-04-17 17:09:18 -06:00
|
|
|
.top-heading {
|
2013-08-01 01:36:56 -06:00
|
|
|
float: left;
|
|
|
|
padding: 21px 0;
|
|
|
|
font-size: 20px;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
2015-04-17 17:09:18 -06:00
|
|
|
.top-heading a {
|
2013-08-01 01:36:56 -06:00
|
|
|
color: #222;
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#topbar {
|
|
|
|
background: #E0EBF5;
|
|
|
|
height: 64px;
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
|
|
|
|
body {
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
div#page {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
div#page > .container,
|
|
|
|
div#topbar > .container {
|
|
|
|
text-align: left;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
padding: 0 20px;
|
2015-04-17 17:09:18 -06:00
|
|
|
}
|
|
|
|
div#topbar > .container,
|
|
|
|
div#page > .container {
|
|
|
|
max-width: 950px;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
div#page.wide > .container,
|
|
|
|
div#topbar.wide > .container {
|
2015-04-17 17:09:18 -06:00
|
|
|
max-width: none;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
div#plusone {
|
|
|
|
float: right;
|
|
|
|
clear: right;
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#footer {
|
|
|
|
text-align: center;
|
|
|
|
color: #666;
|
|
|
|
font-size: 14px;
|
|
|
|
margin: 40px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#menu > a,
|
2017-10-08 14:00:25 -06:00
|
|
|
input#search,
|
2013-08-01 01:36:56 -06:00
|
|
|
div#learn .buttons a,
|
|
|
|
div.play .buttons a,
|
2015-04-17 17:09:18 -06:00
|
|
|
div#blog .read a,
|
|
|
|
#menu-button {
|
2013-08-01 01:36:56 -06:00
|
|
|
padding: 10px;
|
|
|
|
|
|
|
|
text-decoration: none;
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
|
|
-webkit-border-radius: 5px;
|
|
|
|
-moz-border-radius: 5px;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
div#playground .buttons a,
|
|
|
|
div#menu > a,
|
2017-10-08 14:00:25 -06:00
|
|
|
input#search,
|
2015-04-17 17:09:18 -06:00
|
|
|
#menu-button {
|
2013-08-01 01:36:56 -06:00
|
|
|
border: 1px solid #375EAB;
|
|
|
|
}
|
|
|
|
div#playground .buttons a,
|
2015-04-17 17:09:18 -06:00
|
|
|
div#menu > a,
|
|
|
|
#menu-button {
|
2013-08-01 01:36:56 -06:00
|
|
|
color: white;
|
|
|
|
background: #375EAB;
|
|
|
|
}
|
|
|
|
#playgroundButton.active {
|
|
|
|
background: white;
|
|
|
|
color: #375EAB;
|
|
|
|
}
|
|
|
|
a#start,
|
|
|
|
div#learn .buttons a,
|
|
|
|
div.play .buttons a,
|
|
|
|
div#blog .read a {
|
|
|
|
color: #222;
|
|
|
|
border: 1px solid #375EAB;
|
|
|
|
background: #E0EBF5;
|
|
|
|
}
|
|
|
|
.download {
|
|
|
|
width: 150px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#menu {
|
|
|
|
text-align: right;
|
2015-04-17 17:09:18 -06:00
|
|
|
padding: 10px;
|
|
|
|
white-space: nowrap;
|
|
|
|
max-height: 0;
|
|
|
|
-moz-transition: max-height .25s linear;
|
|
|
|
transition: max-height .25s linear;
|
|
|
|
width: 100%;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
2015-04-17 17:09:18 -06:00
|
|
|
div#menu.menu-visible {
|
|
|
|
max-height: 500px;
|
|
|
|
}
|
|
|
|
div#menu > a,
|
|
|
|
#menu-button {
|
|
|
|
margin: 10px 2px;
|
2013-08-01 01:36:56 -06:00
|
|
|
padding: 10px;
|
|
|
|
}
|
2017-10-08 14:00:25 -06:00
|
|
|
::-webkit-input-placeholder {
|
|
|
|
color: #7f7f7f;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
::placeholder {
|
|
|
|
color: #7f7f7f;
|
|
|
|
opacity: 1;
|
|
|
|
}
|
|
|
|
#menu .search-box {
|
|
|
|
display: inline-flex;
|
2015-04-17 17:09:18 -06:00
|
|
|
width: 140px;
|
2017-10-08 14:00:25 -06:00
|
|
|
}
|
|
|
|
input#search {
|
2013-08-01 01:36:56 -06:00
|
|
|
background: white;
|
|
|
|
color: #222;
|
2015-04-17 17:09:18 -06:00
|
|
|
box-sizing: border-box;
|
2017-10-08 14:00:25 -06:00
|
|
|
-webkit-appearance: none;
|
|
|
|
border-top-right-radius: 0;
|
|
|
|
border-bottom-right-radius: 0;
|
|
|
|
border-right: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
flex-grow: 1;
|
|
|
|
max-width: 100%;
|
|
|
|
min-width: 90px;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
2017-10-08 14:00:25 -06:00
|
|
|
input#search:-moz-ui-invalid {
|
|
|
|
box-shadow: unset;
|
|
|
|
}
|
|
|
|
input#search + button {
|
|
|
|
display: inline;
|
|
|
|
font-size: 1em;
|
|
|
|
background-color: #375EAB;
|
|
|
|
color: white;
|
|
|
|
border: 1px solid #375EAB;
|
|
|
|
border-top-right-radius: 5px;
|
|
|
|
border-bottom-right-radius: 5px;
|
|
|
|
margin-left: 0;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
input#search + button span {
|
|
|
|
display: flex;
|
|
|
|
}
|
|
|
|
input#search + button svg {
|
|
|
|
fill: white
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
|
2015-04-17 17:09:18 -06:00
|
|
|
#menu-button {
|
|
|
|
display: none;
|
|
|
|
position: absolute;
|
|
|
|
right: 5px;
|
|
|
|
top: 0;
|
|
|
|
margin-right: 5px;
|
|
|
|
}
|
|
|
|
#menu-button-arrow {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
.vertical-flip {
|
|
|
|
transform: rotate(-180deg);
|
|
|
|
}
|
|
|
|
|
2013-08-01 01:36:56 -06:00
|
|
|
div.left {
|
|
|
|
float: left;
|
|
|
|
clear: left;
|
2015-04-17 17:09:18 -06:00
|
|
|
margin-right: 2.5%;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
div.right {
|
|
|
|
float: right;
|
|
|
|
clear: right;
|
2015-04-17 17:09:18 -06:00
|
|
|
margin-left: 2.5%;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
div.left,
|
|
|
|
div.right {
|
2015-04-17 17:09:18 -06:00
|
|
|
width: 45%;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
div#learn,
|
|
|
|
div#about {
|
|
|
|
padding-top: 20px;
|
|
|
|
}
|
|
|
|
div#learn h2,
|
|
|
|
div#about {
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
div#about {
|
|
|
|
font-size: 20px;
|
2015-04-17 17:09:18 -06:00
|
|
|
margin: 0 auto 30px;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
div#gopher {
|
|
|
|
background: url(/doc/gopher/frontpage.png) no-repeat;
|
|
|
|
background-position: center top;
|
|
|
|
height: 155px;
|
|
|
|
}
|
|
|
|
a#start {
|
|
|
|
display: block;
|
|
|
|
padding: 10px;
|
|
|
|
|
|
|
|
text-align: center;
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
-webkit-border-radius: 5px;
|
|
|
|
-moz-border-radius: 5px;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
a#start .big {
|
|
|
|
display: block;
|
|
|
|
font-weight: bold;
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
a#start .desc {
|
|
|
|
display: block;
|
|
|
|
font-size: 14px;
|
|
|
|
font-weight: normal;
|
|
|
|
margin-top: 5px;
|
|
|
|
}
|
|
|
|
|
2013-09-15 23:46:38 -06:00
|
|
|
div#learn .popout {
|
2013-08-01 01:36:56 -06:00
|
|
|
float: right;
|
2013-09-15 23:46:38 -06:00
|
|
|
display: block;
|
2013-08-01 01:36:56 -06:00
|
|
|
cursor: pointer;
|
2013-09-15 23:46:38 -06:00
|
|
|
font-size: 12px;
|
|
|
|
background: url(/doc/share.png) no-repeat;
|
|
|
|
background-position: right top;
|
|
|
|
padding: 5px 27px;
|
2013-08-01 01:36:56 -06:00
|
|
|
}
|
|
|
|
div#learn pre,
|
|
|
|
div#learn textarea {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
font-family: Menlo, monospace;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
div#learn .input {
|
|
|
|
padding: 10px;
|
|
|
|
margin-top: 10px;
|
|
|
|
height: 150px;
|
|
|
|
|
|
|
|
-webkit-border-top-left-radius: 5px;
|
|
|
|
-webkit-border-top-right-radius: 5px;
|
|
|
|
-moz-border-radius-topleft: 5px;
|
|
|
|
-moz-border-radius-topright: 5px;
|
|
|
|
border-top-left-radius: 5px;
|
|
|
|
border-top-right-radius: 5px;
|
|
|
|
}
|
|
|
|
div#learn .input textarea {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
resize: none;
|
|
|
|
}
|
|
|
|
div#learn .output {
|
|
|
|
border-top: none !important;
|
|
|
|
|
|
|
|
padding: 10px;
|
|
|
|
height: 59px;
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
-webkit-border-bottom-right-radius: 5px;
|
|
|
|
-webkit-border-bottom-left-radius: 5px;
|
|
|
|
-moz-border-radius-bottomright: 5px;
|
|
|
|
-moz-border-radius-bottomleft: 5px;
|
|
|
|
border-bottom-right-radius: 5px;
|
|
|
|
border-bottom-left-radius: 5px;
|
|
|
|
}
|
|
|
|
div#learn .output pre {
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
-webkit-border-radius: 0;
|
|
|
|
-moz-border-radius: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
div#learn .input,
|
|
|
|
div#learn .input textarea,
|
|
|
|
div#learn .output,
|
|
|
|
div#learn .output pre {
|
|
|
|
background: #FFFFD8;
|
|
|
|
}
|
|
|
|
div#learn .input,
|
|
|
|
div#learn .output {
|
|
|
|
border: 1px solid #375EAB;
|
|
|
|
}
|
|
|
|
div#learn .buttons {
|
|
|
|
float: right;
|
|
|
|
padding: 20px 0 10px 0;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
div#learn .buttons a {
|
|
|
|
height: 16px;
|
|
|
|
margin-left: 5px;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
div#learn .toys {
|
|
|
|
margin-top: 8px;
|
|
|
|
}
|
|
|
|
div#learn .toys select {
|
|
|
|
border: 1px solid #375EAB;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
div#learn .output .exit {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-04-17 17:09:18 -06:00
|
|
|
div#video {
|
|
|
|
max-width: 100%;
|
|
|
|
}
|
2013-08-01 01:36:56 -06:00
|
|
|
div#blog,
|
|
|
|
div#video {
|
|
|
|
margin-top: 40px;
|
|
|
|
}
|
|
|
|
div#blog > a,
|
|
|
|
div#blog > div,
|
|
|
|
div#blog > h2,
|
|
|
|
div#video > a,
|
|
|
|
div#video > div,
|
|
|
|
div#video > h2 {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
}
|
|
|
|
div#blog .title,
|
|
|
|
div#video .title {
|
|
|
|
display: block;
|
|
|
|
font-size: 20px;
|
|
|
|
}
|
|
|
|
div#blog .when {
|
|
|
|
color: #666;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
div#blog .read {
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
|
|
|
|
.toggleButton { cursor: pointer; }
|
2017-01-05 18:20:21 -07:00
|
|
|
.toggle > .collapsed { display: block; }
|
|
|
|
.toggle > .expanded { display: none; }
|
|
|
|
.toggleVisible > .collapsed { display: none; }
|
|
|
|
.toggleVisible > .expanded { display: block; }
|
2013-08-01 01:36:56 -06:00
|
|
|
|
|
|
|
table.codetable { margin-left: auto; margin-right: auto; border-style: none; }
|
|
|
|
table.codetable td { padding-right: 10px; }
|
|
|
|
hr { border-style: none; border-top: 1px solid black; }
|
|
|
|
|
|
|
|
img.gopher {
|
|
|
|
float: right;
|
|
|
|
margin-left: 10px;
|
|
|
|
margin-bottom: 10px;
|
|
|
|
z-index: -1;
|
|
|
|
}
|
|
|
|
h2 { clear: right; }
|
|
|
|
|
|
|
|
/* example and drop-down playground */
|
|
|
|
div.play {
|
|
|
|
padding: 0 20px 40px 20px;
|
|
|
|
}
|
|
|
|
div.play pre,
|
|
|
|
div.play textarea,
|
|
|
|
div.play .lines {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
font-family: Menlo, monospace;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
div.play .input {
|
|
|
|
padding: 10px;
|
|
|
|
margin-top: 10px;
|
|
|
|
|
|
|
|
-webkit-border-top-left-radius: 5px;
|
|
|
|
-webkit-border-top-right-radius: 5px;
|
|
|
|
-moz-border-radius-topleft: 5px;
|
|
|
|
-moz-border-radius-topright: 5px;
|
|
|
|
border-top-left-radius: 5px;
|
|
|
|
border-top-right-radius: 5px;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
div.play .input textarea {
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
resize: none;
|
|
|
|
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
div#playground .input textarea {
|
|
|
|
overflow: auto;
|
|
|
|
resize: auto;
|
|
|
|
}
|
|
|
|
div.play .output {
|
|
|
|
border-top: none !important;
|
|
|
|
|
|
|
|
padding: 10px;
|
|
|
|
max-height: 200px;
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
-webkit-border-bottom-right-radius: 5px;
|
|
|
|
-webkit-border-bottom-left-radius: 5px;
|
|
|
|
-moz-border-radius-bottomright: 5px;
|
|
|
|
-moz-border-radius-bottomleft: 5px;
|
|
|
|
border-bottom-right-radius: 5px;
|
|
|
|
border-bottom-left-radius: 5px;
|
|
|
|
}
|
|
|
|
div.play .output pre {
|
|
|
|
padding: 0;
|
|
|
|
|
|
|
|
-webkit-border-radius: 0;
|
|
|
|
-moz-border-radius: 0;
|
|
|
|
border-radius: 0;
|
|
|
|
}
|
|
|
|
div.play .input,
|
|
|
|
div.play .input textarea,
|
|
|
|
div.play .output,
|
|
|
|
div.play .output pre {
|
|
|
|
background: #FFFFD8;
|
|
|
|
}
|
|
|
|
div.play .input,
|
|
|
|
div.play .output {
|
|
|
|
border: 1px solid #375EAB;
|
|
|
|
}
|
|
|
|
div.play .buttons {
|
|
|
|
float: right;
|
|
|
|
padding: 20px 0 10px 0;
|
|
|
|
text-align: right;
|
|
|
|
}
|
|
|
|
div.play .buttons a {
|
|
|
|
height: 16px;
|
|
|
|
margin-left: 5px;
|
|
|
|
padding: 10px;
|
|
|
|
cursor: pointer;
|
|
|
|
}
|
|
|
|
.output .stderr {
|
|
|
|
color: #933;
|
|
|
|
}
|
|
|
|
.output .system {
|
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* drop-down playground */
|
|
|
|
#playgroundButton,
|
|
|
|
div#playground {
|
|
|
|
/* start hidden; revealed by javascript */
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
div#playground {
|
|
|
|
position: absolute;
|
|
|
|
top: 63px;
|
|
|
|
right: 20px;
|
|
|
|
padding: 0 10px 10px 10px;
|
|
|
|
z-index: 1;
|
|
|
|
text-align: left;
|
|
|
|
background: #E0EBF5;
|
|
|
|
|
|
|
|
border: 1px solid #B0BBC5;
|
|
|
|
border-top: none;
|
|
|
|
|
|
|
|
-webkit-border-bottom-left-radius: 5px;
|
|
|
|
-webkit-border-bottom-right-radius: 5px;
|
|
|
|
-moz-border-radius-bottomleft: 5px;
|
|
|
|
-moz-border-radius-bottomright: 5px;
|
|
|
|
border-bottom-left-radius: 5px;
|
|
|
|
border-bottom-right-radius: 5px;
|
|
|
|
}
|
|
|
|
div#playground .code {
|
|
|
|
width: 520px;
|
|
|
|
height: 200px;
|
|
|
|
}
|
|
|
|
div#playground .output {
|
|
|
|
height: 100px;
|
|
|
|
}
|
2013-09-17 23:12:51 -06:00
|
|
|
|
|
|
|
/* Inline runnable snippets (play.js/initPlayground) */
|
|
|
|
#content .code pre, #content .playground pre, #content .output pre {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
background: none;
|
|
|
|
border: none;
|
2013-09-26 17:46:08 -06:00
|
|
|
outline: 0px solid transparent;
|
2013-09-17 23:12:51 -06:00
|
|
|
overflow: auto;
|
|
|
|
}
|
2013-09-26 17:46:08 -06:00
|
|
|
#content .playground .number, #content .code .number {
|
2013-09-17 23:12:51 -06:00
|
|
|
color: #999;
|
|
|
|
}
|
|
|
|
#content .code, #content .playground, #content .output {
|
|
|
|
width: auto;
|
|
|
|
margin: 20px;
|
|
|
|
padding: 10px;
|
|
|
|
-webkit-border-radius: 5px;
|
|
|
|
-moz-border-radius: 5px;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
#content .code, #content .playground {
|
|
|
|
background: #e9e9e9;
|
|
|
|
}
|
|
|
|
#content .output {
|
|
|
|
background: #202020;
|
|
|
|
}
|
|
|
|
#content .output .stdout, #content .output pre {
|
|
|
|
color: #e6e6e6;
|
|
|
|
}
|
|
|
|
#content .output .stderr, #content .output .error {
|
|
|
|
color: rgb(244, 74, 63);
|
|
|
|
}
|
|
|
|
#content .output .system, #content .output .exit {
|
|
|
|
color: rgb(255, 209, 77)
|
|
|
|
}
|
|
|
|
#content .buttons {
|
|
|
|
position: relative;
|
|
|
|
float: right;
|
|
|
|
top: -50px;
|
|
|
|
right: 30px;
|
|
|
|
}
|
|
|
|
#content .output .buttons {
|
|
|
|
top: -60px;
|
|
|
|
right: 0;
|
|
|
|
height: 0;
|
|
|
|
}
|
|
|
|
#content .buttons .kill {
|
|
|
|
display: none;
|
|
|
|
visibility: hidden;
|
|
|
|
}
|
2014-03-14 16:58:22 -06:00
|
|
|
a.error {
|
|
|
|
font-weight: bold;
|
|
|
|
color: white;
|
|
|
|
background-color: darkred;
|
|
|
|
border-bottom-left-radius: 4px;
|
|
|
|
border-bottom-right-radius: 4px;
|
|
|
|
border-top-left-radius: 4px;
|
|
|
|
border-top-right-radius: 4px;
|
|
|
|
padding: 2px 4px 2px 4px; /* TRBL */
|
2014-08-20 17:53:57 -06:00
|
|
|
}
|
2015-04-17 17:09:18 -06:00
|
|
|
|
|
|
|
|
|
|
|
#heading-narrow {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2015-08-04 23:31:48 -06:00
|
|
|
.downloading {
|
|
|
|
background: #F9F9BE;
|
|
|
|
padding: 10px;
|
|
|
|
text-align: center;
|
|
|
|
border-radius: 5px;
|
|
|
|
}
|
|
|
|
|
2015-04-17 17:09:18 -06:00
|
|
|
@media (max-width: 930px) {
|
|
|
|
#heading-wide {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#heading-narrow {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@media (max-width: 760px) {
|
|
|
|
.container .left,
|
|
|
|
.container .right {
|
|
|
|
width: auto;
|
|
|
|
float: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#about {
|
|
|
|
max-width: 500px;
|
|
|
|
text-align: center;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (min-width: 700px) and (max-width: 1000px) {
|
|
|
|
div#menu > a {
|
|
|
|
margin: 5px 0;
|
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
|
2017-10-08 14:00:25 -06:00
|
|
|
input#search {
|
2015-04-17 17:09:18 -06:00
|
|
|
font-size: 14px;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 700px) {
|
|
|
|
body {
|
|
|
|
font-size: 15px;
|
|
|
|
}
|
|
|
|
|
|
|
|
pre,
|
|
|
|
code {
|
|
|
|
font-size: 13px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#page > .container {
|
|
|
|
padding: 0 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#topbar {
|
|
|
|
height: auto;
|
|
|
|
padding: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#topbar > .container {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#heading-wide {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
#heading-narrow {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.top-heading {
|
|
|
|
float: none;
|
|
|
|
display: inline-block;
|
|
|
|
padding: 12px;
|
|
|
|
}
|
|
|
|
|
|
|
|
div#menu {
|
|
|
|
padding: 0;
|
|
|
|
min-width: 0;
|
|
|
|
text-align: left;
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
2017-10-08 14:00:25 -06:00
|
|
|
div#menu > a {
|
2015-04-17 17:09:18 -06:00
|
|
|
display: block;
|
|
|
|
margin-left: 0;
|
|
|
|
margin-right: 0;
|
|
|
|
}
|
|
|
|
|
2017-10-08 14:00:25 -06:00
|
|
|
#menu .search-box {
|
|
|
|
display: flex;
|
2015-04-17 17:09:18 -06:00
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
#menu-button {
|
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
p,
|
|
|
|
pre,
|
|
|
|
ul,
|
|
|
|
ol {
|
|
|
|
margin: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.pkg-synopsis {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
img.gopher {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media (max-width: 480px) {
|
|
|
|
#heading-wide {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
#heading-narrow {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@media print {
|
|
|
|
pre {
|
|
|
|
background: #FFF;
|
|
|
|
border: 1px solid #BBB;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
}
|
2015-08-02 23:09:23 -06:00
|
|
|
}
|