From dbac92b91700e9167f5e31c74ba3796e5165f84c Mon Sep 17 00:00:00 2001 From: Tiago Bortoletto Vaz Date: Tue, 28 Jun 2011 02:11:53 -0300 Subject: [PATCH] Adding css for new form. --- src/web/static/css/dropdown.css | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/web/static/css/quimby.css | 31 +++++++++++++++++++++++++++++++ src/web/static/css/screen.css | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/web/templates/package.html | 3 +-- 4 files changed, 184 insertions(+), 2 deletions(-) create mode 100644 src/web/static/css/dropdown.css create mode 100644 src/web/static/css/quimby.css create mode 100644 src/web/static/css/screen.css diff --git a/src/web/static/css/dropdown.css b/src/web/static/css/dropdown.css new file mode 100644 index 0000000..1e5ccb4 --- /dev/null +++ b/src/web/static/css/dropdown.css @@ -0,0 +1,66 @@ +.dropdown { + background:#dad9d4 url(../gfx/calendar.gif) no-repeat 2px 2px; + border:1px solid #cac9c2; + padding:0.2em; + cursor:default; + filter:alpha(opacity=90); + -moz-opacity:0.9; + opacity: 0.9; + -moz-border-radius:0 2em 0 0; + -khtml-border-radius:0 2em 0 0; + border-radius:0 2em 0 0; + width:21em; +} + +.dropdown .month { + margin-left:48px; + width:37%; +} +.dropdown .year { + margin-left:1em; + width:25%; +} +.dropdown .close { + display:block; + overflow:hidden; + border:0; + position:absolute; + top:0.5em; right:1em; + background:url(../gfx/close.png) no-repeat 50% 50%; + width:16px; height:16px; + border:none; + text-indent:-9999px; +} + +.dropdown table { + border-spacing:0; + table-layout:fixed; + empty-cells:show; + margin-top:0.5em; + width:100%; +} +.dropdown thead th { + width:14%; +} + +.dropdown tbody td { + background:#fff; + text-align:center; + line-height:2; + border:1px solid #dad9d4; +} +.dropdown tbody td.hover { + background:#748098; + color:#fff; + cursor:pointer; +} +.dropdown .weekend { + color:#f00; +} +.dropdown .today { + border:1px solid #f00; +} +.dropdown .selected { + background:#748098; + color:#fff; +} \ No newline at end of file diff --git a/src/web/static/css/quimby.css b/src/web/static/css/quimby.css new file mode 100644 index 0000000..39a91fd --- /dev/null +++ b/src/web/static/css/quimby.css @@ -0,0 +1,31 @@ +.quimby_box { + background: #EBEFF9 url(chrome://quimby/skin/bottom-left.gif) no-repeat left bottom; +} + +.quimby_box-outer { + background: url(chrome://quimby/skin/bottom-right.gif) no-repeat right bottom; + padding-bottom: 15px; +} + +.quimby_box-inner { + background: url(chrome://quimby/skin/top-left.gif) no-repeat left top; +} + +.quimby_box-header { + background: url(chrome://quimby/skin/top-right.gif) no-repeat right top; + padding-top: 15px; + padding-left: 25px; + padding-right: 25px; +} + +.quimby_search { + background: url(chrome://quimby/skin/btn_normal.png) no-repeat scroll 0 0 transparent!important; + background-position: 5px 5px!important; +} +.quimby_search:hover { + background: url(chrome://quimby/skin/btn_hover.png) no-repeat scroll 0 0 transparent!important; +} +.quimby_search:active { + background: url(chrome://quimby/skin/btn_hover.png) no-repeat scroll 0 0 transparent!important; + background-position: 1px 1px!important; +} diff --git a/src/web/static/css/screen.css b/src/web/static/css/screen.css new file mode 100644 index 0000000..66190d3 --- /dev/null +++ b/src/web/static/css/screen.css @@ -0,0 +1,86 @@ +form { + background:#fff; + padding:1em; +} +fieldset div { + margin:0.3em 0; + clear:both; +} +form { + margin:1em; + width:33em; +} +label { + float:left; + width:10em; + text-align:right; + margin-right:1em; +} + +.special { + float:right; + width:19.5em; + text-align:left; + margin-right:1em; +} +legend { + font-size: 120%; + margin: 0.5em 0 0.5em 0; + color: #757575; + font-weight: bolder; +} +legend span { + width:10em; + text-align:right; +} +input { + padding:0.15em; +/* width:10em; */ + border:1px solid #ddd; + background:#fafafa; +/* font:bold 0.95em arial, sans-serif; + -moz-border-radius:0.4em; + -khtml-border-radius:0.4em;*/ +} +input:hover, input:focus { + border-color:#c5c5c5; + background:#f6f6f6; +} +fieldset { + border:1px solid #ddd; + padding:0 0.5em 0.5em; +} + +.radio fieldset, .date fieldset { + border:none; + width:auto; + padding:1px 0 0 11em; +} +.radio legend, .date legend { + font-size:1em; + color:#000; +} +.radio legend span, .date legend span { + position:absolute; + left:0; + top:0.3em; + width:10em; + display:block; +} +.radio label, .radio input { + vertical-align:middle; + display:inline; + float:none; + width:auto; + background:none; + border:none; +} +.radio div { + float:left; + white-space:nowrap; + clear:none; +} + +input.default { + color:#bbb; +} diff --git a/src/web/templates/package.html b/src/web/templates/package.html index 5c1f8f2..9ac2ef6 100644 --- a/src/web/templates/package.html +++ b/src/web/templates/package.html @@ -1,5 +1,4 @@ $def with (pkg) - +

$pkg['package'] - $pkg['description']

-- libgit2 0.21.2