mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
JSDocs: Clean up css styles, to reflect recent changes in Paperjs.org and Scriptographer.org (reference.css is shared).
This commit is contained in:
parent
2144eeb25e
commit
8046087c51
2 changed files with 52 additions and 60 deletions
|
@ -123,63 +123,3 @@ ul.package-classes {
|
|||
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;
|
||||
}
|
|
@ -83,3 +83,55 @@ ol {
|
|||
.footer {
|
||||
margin-top: 20px;
|
||||
}
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue