From b4006ec007952f31ed39cc0a79bbb2b5ccf9a6a1 Mon Sep 17 00:00:00 2001 From: Eston Bond Date: Mon, 1 Nov 2010 15:32:46 -0700 Subject: [PATCH] Most of the editor css, working editor --- scratch/css/editor.css | 125 ++++++- scratch/css/gollum.css | 12 + scratch/edit.html | 19 +- scratch/js/gollum-editor/gollum.editor.js | 393 ++++++++++++++++++++++ scratch/js/gollum.editor.js | 260 -------------- scratch/page.html | 2 +- 6 files changed, 535 insertions(+), 276 deletions(-) create mode 100644 scratch/js/gollum-editor/gollum.editor.js delete mode 100644 scratch/js/gollum.editor.js diff --git a/scratch/css/editor.css b/scratch/css/editor.css index bcf10862..51777e14 100644 --- a/scratch/css/editor.css +++ b/scratch/css/editor.css @@ -1,4 +1,127 @@ /* editor.css Wiki editor formatting -*/ \ No newline at end of file +*/ + +#gollum-editor { + border: 1px solid #e4e4e4; + background: #f9f9f9; + overflow: hidden; + padding: 1em; + + border-radius: 1em; + -moz-border-radius: 1em; + -webkit-border-radius: 1em; +} + +#gollum-editor form fieldset { + border: 0; + margin: 0; + padding: 0; + width: 100%; +} + +/* @control editor-view-tab */ +#gollum-editor #gollum-editor-type-switcher { + display: none; +} + +/* @control function-bar */ +#gollum-editor #gollum-editor-function-bar { + border-bottom: 1px solid #ddd; + overflow: hidden; + padding: 0 0 0.5em 0; + display: none; +} + +#gollum-editor #gollum-editor-function-bar.active { + display: block; +} + +#gollum-editor #gollum-editor-function-bar a.function-button { + background: #f7f7f7; + border: 1px solid #ddd; + color: #333; + display: block; + float: left; + height: 25px; + overflow: hidden; + margin: 0 0.5em 0 0; + /* text-indent: -5000px; */ + text-shadow: 0 1px 0 #fff; + width: 25px; + + border-radius: 0.3em; + -moz-border-radius: 0.3em; + -webkit-border-radius: 0.3em; + + filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f4f4f4', endColorstr='#ececec'); + background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec)); + background: -moz-linear-gradient(top, #f4f4f4, #ececec); +} + +#gollum-editor #gollum-editor-function-bar a.function-button:hover { + color: #fff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); + text-decoration: none; + + filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#599bdc', endColorstr='#3072b3'); + background: -webkit-gradient(linear, left top, left bottom, from(#599bdc), to(#3072b3)); + background: -moz-linear-gradient(top, #599bdc, #3072b3); +} + +#gollum-editor #gollum-editor-function-bar span.function-divider { + display: block; + float: left; + width: 0.5em; +} + + +/* @section form-fields */ + +#gollum-editor textarea#gollum-editor-body { + background: #fff; + border: 1px solid #ddd; + font-size: 1.3em; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + line-height: 1.8em; + margin: 0.5em 0; + padding: 0.5em; /* I don't really like mixing pct & em here… */ + width: 98%; + height: 20em; +} + +#gollum-editor input#gollum-editor-submit { + background-color: #f7f7f7; + border: 1px solid #d4d4d4; + color: #333; + cursor: pointer; + display: block; + font-size: 1.2em; + font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; + font-weight: bold; + margin: 0; + padding: 0.4em 1em; + + text-shadow: 0 1px 0 #fff; + + filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#f4f4f4', endColorstr='#ececec'); + background: -webkit-gradient(linear, left top, left bottom, from(#f4f4f4), to(#ececec)); + background: -moz-linear-gradient(top, #f4f4f4, #ececec); + + border-radius: 3px; + -moz-border-radius: 3px; + -webkit-border-radius: 3px; +} + +#gollum-editor input#gollum-editor-submit:hover { + background: #3072b3; + border-color: #518cc6 #518cc6 #2a65a0; + color: #fff; + text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3); + text-decoration: none; + + filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0, startColorstr='#599bdc', endColorstr='#3072b3'); + background: -webkit-gradient(linear, left top, left bottom, from(#599bdc), to(#3072b3)); + background: -moz-linear-gradient(top, #599bdc, #3072b3); +} \ No newline at end of file diff --git a/scratch/css/gollum.css b/scratch/css/gollum.css index d22f9535..b8b14894 100644 --- a/scratch/css/gollum.css +++ b/scratch/css/gollum.css @@ -343,6 +343,18 @@ a:hover, a:visited { } +/* @section edit */ +.edit h1 { + color: #999; + font-weight: normal; +} + + .edit h1 strong { + color: #000; + font-weight: bold; + } + + /* @control minibutton */ ul.actions { diff --git a/scratch/edit.html b/scratch/edit.html index 7641ad7f..a22342ef 100644 --- a/scratch/edit.html +++ b/scratch/edit.html @@ -21,15 +21,6 @@
-
-
- -