mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-10 06:41:59 -05:00
185 lines
No EOL
2.9 KiB
CSS
185 lines
No EOL
2.9 KiB
CSS
.reference h1, .reference h2, .reference h3 {
|
|
font-size: 12px;
|
|
font-weight: normal;
|
|
display: block;
|
|
margin: 0 0 16px 0;
|
|
height: 17px; /* -1 for border */
|
|
border-bottom: 1px solid black;
|
|
}
|
|
|
|
.reference h3 {
|
|
margin-top: 16px;
|
|
border-bottom-style: dotted;
|
|
}
|
|
|
|
.reference a tt, .reference a tt b {
|
|
padding-bottom: 1px;
|
|
}
|
|
|
|
.reference pre {
|
|
margin: 0 0 18px 0;
|
|
}
|
|
|
|
.reference ul {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
|
|
.reference-list ul, .reference-inherited ul {
|
|
margin-left: 16px;
|
|
}
|
|
|
|
.reference hr {
|
|
border: none;
|
|
border-bottom: 1px dotted #000;
|
|
}
|
|
|
|
.reference-packages {
|
|
margin-left: 0px;
|
|
}
|
|
|
|
.reference-packages h2, .reference-packages h3, .reference-packages hr {
|
|
margin: 10px 0 10px 0;
|
|
}
|
|
|
|
.reference-packages .first h2 {
|
|
margin-top: 0;
|
|
}
|
|
|
|
* html .reference-packages img {
|
|
margin-top: 5px;
|
|
}
|
|
.reference-packages li {
|
|
list-style: none;
|
|
list-style-image: none; /* needed for ie 6 */
|
|
}
|
|
|
|
.reference-end {
|
|
height: 600px;
|
|
}
|
|
|
|
.reference-members {
|
|
padding-bottom: 16px;
|
|
}
|
|
|
|
.member-group-text {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.member-description {
|
|
border: 1px solid #999;
|
|
/* .member-header defines border-top for operator lists */
|
|
border-top: 0;
|
|
margin: 16px 0 16px 0;
|
|
}
|
|
|
|
.member-header {
|
|
border-top: 1px solid #999;
|
|
padding: 10px;
|
|
}
|
|
|
|
.member-title {
|
|
float: left;
|
|
width: 400px;
|
|
}
|
|
|
|
.member-close {
|
|
float: right;
|
|
}
|
|
|
|
.member-text {
|
|
border-top: 1px dashed #999;
|
|
padding: 10px 10px 0 10px;
|
|
}
|
|
|
|
.member-link {
|
|
text-indent: -30px;
|
|
padding-left: 30px;
|
|
}
|
|
|
|
.reference-inherited ul li {
|
|
text-indent: -30px;
|
|
padding-left: 30px;
|
|
}
|
|
|
|
.member-text ul {
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
ul.package-classes {
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.package-classes li {
|
|
margin-left: 10px;
|
|
}
|
|
|
|
.package-classes li h2 {
|
|
margin-left: -10px;
|
|
}
|
|
|
|
.reference-members h2 a {
|
|
border-bottom: none;
|
|
font-weight: bold;
|
|
}
|
|
|
|
/* PaperScript */
|
|
|
|
.paperscript {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.paperscript .button {
|
|
display: none;
|
|
position: relative; /* position (top / right) relative to paperscriptcontainer */
|
|
float: right; /* align right as block */
|
|
font-size: 11px;
|
|
line-height: 16px;
|
|
padding: 2px 6px;
|
|
margin-bottom: -20px; /* move canvas up by 16px (height) + 2 * 2px (padding) */
|
|
top: 8px; /* margin to top */
|
|
right: 8px; /* margin to right */
|
|
background: #eee;
|
|
border-radius: 4px;
|
|
-moz-border-radius: 4px;
|
|
-webkit-border-radius: 4px;
|
|
z-index: 1;
|
|
}
|
|
|
|
.paperscript .source {
|
|
overflow: auto;
|
|
border: 1px solid #999;
|
|
}
|
|
|
|
.paperscript:hover .button {
|
|
display: block;
|
|
}
|
|
|
|
.paperscript .button:hover {
|
|
background: #ddd;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.paperscript .CodeMirror-gutter-text,
|
|
.paperscript .CodeMirror-lines {
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
}
|
|
|
|
.paperscript .canvas {
|
|
line-height: 0; /* prevent weird 5px padding under canvas elements */
|
|
}
|
|
|
|
.paperscript.split .canvas {
|
|
border: 1px solid #999;
|
|
border-top: 0;
|
|
}
|
|
|
|
.content .text .line,
|
|
.content .text .paperscript,
|
|
.content .text > .CodeMirror {
|
|
/* Compensate line margin for -10px above */
|
|
margin-right: 10px;
|
|
margin-bottom: 20px;
|
|
} |