From 8046087c5186a7b61a33abfb78582582f12f1b75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 7 Jun 2011 10:14:56 +0100 Subject: [PATCH] JSDocs: Clean up css styles, to reflect recent changes in Paperjs.org and Scriptographer.org (reference.css is shared). --- .../jsdoc/static/resources/css/reference.css | 60 ------------------- .../jsdoc/static/resources/css/style.css | 52 ++++++++++++++++ 2 files changed, 52 insertions(+), 60 deletions(-) diff --git a/build/jsdoc-toolkit/templates/jsdoc/static/resources/css/reference.css b/build/jsdoc-toolkit/templates/jsdoc/static/resources/css/reference.css index ba11fcc4..5d165abf 100644 --- a/build/jsdoc-toolkit/templates/jsdoc/static/resources/css/reference.css +++ b/build/jsdoc-toolkit/templates/jsdoc/static/resources/css/reference.css @@ -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; -} \ No newline at end of file diff --git a/build/jsdoc-toolkit/templates/jsdoc/static/resources/css/style.css b/build/jsdoc-toolkit/templates/jsdoc/static/resources/css/style.css index ebe4244f..562025f1 100644 --- a/build/jsdoc-toolkit/templates/jsdoc/static/resources/css/style.css +++ b/build/jsdoc-toolkit/templates/jsdoc/static/resources/css/style.css @@ -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; +}