[Rt-commit] r6018 - in commitbit/trunk/share/web: static/css
static/css/yui static/css/yui/grids static/css/yui/reset
templates/_elements templates/project
hlb at bestpractical.com
hlb at bestpractical.com
Thu Sep 21 09:25:47 EDT 2006
Author: hlb
Date: Thu Sep 21 09:25:44 2006
New Revision: 6018
Added:
commitbit/trunk/share/web/static/css/main.css
commitbit/trunk/share/web/static/css/yui/
commitbit/trunk/share/web/static/css/yui/fonts/
commitbit/trunk/share/web/static/css/yui/fonts/README (contents, props changed)
commitbit/trunk/share/web/static/css/yui/fonts/fonts-min.css (contents, props changed)
commitbit/trunk/share/web/static/css/yui/fonts/fonts.css (contents, props changed)
commitbit/trunk/share/web/static/css/yui/grids/
commitbit/trunk/share/web/static/css/yui/grids/README (contents, props changed)
commitbit/trunk/share/web/static/css/yui/grids/grids-min.css (contents, props changed)
commitbit/trunk/share/web/static/css/yui/grids/grids.css (contents, props changed)
commitbit/trunk/share/web/static/css/yui/reset/
commitbit/trunk/share/web/static/css/yui/reset/README (contents, props changed)
commitbit/trunk/share/web/static/css/yui/reset/reset-min.css (contents, props changed)
commitbit/trunk/share/web/static/css/yui/reset/reset.css (contents, props changed)
commitbit/trunk/share/web/templates/_elements/
commitbit/trunk/share/web/templates/_elements/header (contents, props changed)
commitbit/trunk/share/web/templates/_elements/sidebar
commitbit/trunk/share/web/templates/_elements/wrapper
Modified:
commitbit/trunk/share/web/static/css/app.css
commitbit/trunk/share/web/static/css/nav.css
commitbit/trunk/share/web/templates/project/index.html
Log:
use YUI grids.css
Modified: commitbit/trunk/share/web/static/css/app.css
==============================================================================
--- commitbit/trunk/share/web/static/css/app.css (original)
+++ commitbit/trunk/share/web/static/css/app.css Thu Sep 21 09:25:44 2006
@@ -1,19 +1,15 @@
-div#salutation {
- float: right;
- position: absolute;
- right:5px;
- top: 5px;
+#hd {
+ position: relative;
}
-
-div#people {
-
- top: 1em;
- clear: both;
+#salutation {
position: absolute;
- right: 10px;
-
- }
-
-div#people h3 {
- text-decoration: underline ;
+ top: 0.8em;
+ right: 0;
}
+h1, h2, h3, h4, h5, h6 {
+ margin: 5px 0;
+}
+h1 { font-size: 180%; }
+h2 { font-size: 160%; }
+h3 { font-size: 120%; }
+h4 { font-size: 110%; }
Added: commitbit/trunk/share/web/static/css/main.css
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/static/css/main.css Thu Sep 21 09:25:44 2006
@@ -0,0 +1,16 @@
+ at import "yui/reset/reset-min.css";
+ at import "yui/fonts/fonts-min.css";
+ at import "yui/grids/grids-min.css";
+ at import "app-base.css";
+ at import "base.css";
+ at import "nav.css";
+ at import "context-menus.css";
+ at import "calendar.css";
+ at import "combobox.css";
+ at import "keybindings.css";
+ at import "forms.css";
+ at import "halos.css";
+ at import "app.css";
+ at import "autocomplete.css";
+ at import "yui/calendar/calendar.css";
+ at import "notices.css";
Modified: commitbit/trunk/share/web/static/css/nav.css
==============================================================================
--- commitbit/trunk/share/web/static/css/nav.css (original)
+++ commitbit/trunk/share/web/static/css/nav.css Thu Sep 21 09:25:44 2006
@@ -1,76 +1,3 @@
-/* from http://www.456bereastreet.com/lab/csstabs/nested/# */
-
-
-
-
-div#navigation {
- float: left;
- width: 200px;
- font-size: 80%;
-}
-
-
-div#content {
- position: fixed;
- left: 220px;
- right: 10px;
-}
-
-div#navigation ul {
-
- margin-top: 0;
- border-top: 0;
- padding-top: 0;
-
- font-family:Tahoma,"Trebuchet MS", sans-serif;
-
- color:#000;
-}
-ul.menu {
- margin-left: -2em;
-
-}
-ul.menu li {
- list-style: none;
-
-
-}
-ul.submenu {
-}
-ul.submenu li {
- font-size: 90%;
- margin-left: -1em;
-
-}
-ul.submenu li+li {
-
-
-}
-div#navigation a:link,
-div#navigation a:visited,
-div#navigation a:hover {
-}
-div#navigation ul.menu a:link,
-div#navigation ul.menu a:visited,
-div#navigation ul.menu a:hover {
- font-weight:bold;
- text-transform:uppercase;
-}
-div#navigation ul.menu a:hover {
- background-color:#24568E;
-}
-div#navigation ul.menu li.active a:link,
-div#navigation ul.menu li.active a:visited,
-div#navigation ul.menu li.active a:hover {
- font-weight: bold;
- border-bottom-color:#24568E;
-}
-div#navigation ul.submenu a:link,
-div#navigation ul.submenu a:visited,
-div#navigation ul.submenu a:hover {
- font-weight:normal;
- border:0;
-}
-div#navigation ul.submenu a:hover {
- text-decoration:underline;
+ul.menu .submenu {
+ margin-left: 1em;
}
Added: commitbit/trunk/share/web/static/css/yui/fonts/README
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/static/css/yui/fonts/README Thu Sep 21 09:25:44 2006
@@ -0,0 +1,9 @@
+CSS Fonts Release Notes
+
+*** version 0.11.0 ***
+
+* No changes.
+
+*** version 0.10.0 ***
+
+* Initial release.
Added: commitbit/trunk/share/web/static/css/yui/fonts/fonts-min.css
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/static/css/yui/fonts/fonts-min.css Thu Sep 21 09:25:44 2006
@@ -0,0 +1,2 @@
+/* Copyright (c) 2006, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt version: 0.11.3 */
+body {font:13px arial,helvetica,clean,sans-serif;*font-size:small;*font:x-small;}table {font-size:inherit;font:100%;}select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}pre, code {font:115% monospace;*font-size:100%;}body * {line-height:1.22em;}
\ No newline at end of file
Added: commitbit/trunk/share/web/static/css/yui/fonts/fonts.css
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/static/css/yui/fonts/fonts.css Thu Sep 21 09:25:44 2006
@@ -0,0 +1,34 @@
+/*
+Copyright (c) 2006, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 0.11.3
+*/
+
+/**
+ * 84.5% for !IE, keywords for IE
+ * Percents could work for IE, but for backCompat purposes, we are using
+ keywords.
+ * x-small is for IE < 6 and IE6 quirks mode.
+ *
+ */
+body {font:13px arial,helvetica,clean,sans-serif;*font-size:small;*font:x-
+small;}
+table {font-size:inherit;font:100%;}
+
+/**
+ * 99% for safari; 100% is too large
+ */
+select, input, textarea {font:99% arial,helvetica,clean,sans-serif;}
+
+/**
+ * Bump up !IE to get to 13px equivalent
+ */
+pre, code {font:115% monospace;*font-size:100%;}
+
+/**
+ * Default line-height based on font-size rather than "computed-value"
+ * see: http://www.w3.org/TR/CSS21/visudet.html#line-height
+ */
+body * {line-height:1.22em;}
+
Added: commitbit/trunk/share/web/static/css/yui/grids/README
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/static/css/yui/grids/README Thu Sep 21 09:25:44 2006
@@ -0,0 +1,10 @@
+CSS Grids Release Notes
+
+*** version 0.11.0 ***
+
+* Removed line #43 because it set an already-set value.
+ Was: ".yui-t7 #main .yui-b{min-width:750px;}"
+
+*** version 0.10.0 ***
+
+* Initial release.
\ No newline at end of file
Added: commitbit/trunk/share/web/static/css/yui/grids/grids-min.css
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/static/css/yui/grids/grids-min.css Thu Sep 21 09:25:44 2006
@@ -0,0 +1,2 @@
+/* Copyright (c) 2006, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt Version: 0.11.3 */
+body{text-align:center;}#doc{width:57.69em;*width:56.3em;min-width:750px;margin:auto;text-align:left;}#hd,#bd{margin-bottom:1em;text-align:left;}#ft{font-size:77%;font-family:verdana;clear:both;}.yui-t1 #yui-main .yui-b, .yui-t2 #yui-main .yui-b, .yui-t3 #yui-main .yui-b, .yui-t4 .yui-b, .yui-t5 .yui-b, .yui-t6 .yui-b{float:right;}.yui-t1 .yui-b, .yui-t2 .yui-b, .yui-t3 .yui-b, .yui-t4 #yui-main .yui-b, .yui-t5 #yui-main .yui-b, .yui-t6 #yui-main .yui-b{float:left;}.yui-t1 #yui-main .yui-b{width:76%;min-width:570px;}.yui-t1 .yui-b{width:21.33%;min-width:160px;}.yui-t2 #yui-main .yui-b, .yui-t4 #yui-main .yui-b{width:73.4%;min-width:550px;}.yui-t2 .yui-b, .yui-t4 .yui-b{width:24%;min-width:180px;}.yui-t3 #yui-main .yui-b, .yui-t6 #yui-main .yui-b{width:57.6%;min-width:430px;}.yui-t3 .yui-b, .yui-t6 .yui-b{width:40%;min-width:300px;}.yui-t5 #yui-main .yui-b{width:65.4%;min-width:490px;}.yui-t5 .yui-b{width:32%;min-width:240px;}.yui-g .yui-u, .yui-g .yui-g, .yui-ge .yui-u, .yui-gf .yui-u{float:right;display:inline;}.yui-g .first, .yui-gd .first, .yui-ge .first, .yui-gf .first{float:left;}.yui-g .yui-u, .yui-g .yui-g{width:49.1%;}.yui-g .yui-g .yui-u{width:48.1%;}.yui-gb .yui-u, .yui-gc .yui-u, .yui-gd .yui-u{float:left;margin-left:2%;*margin-left:1.895%;width:32%;}.yui-gb .first, .yui-gc .first, .yui-gd .first{margin-left:0;}.yui-gc .first, .yui-gd .yui-u{width:66%;}.yui-gd .first{width:32%;}.yui-ge .yui-u{width:24%;}.yui-ge .first, .yui-gf .yui-u{width:74.2%;}.yui-gf .first{width:24%;}.yui-ge .first{width:74.2%;}#bd:after, .yui-g:after, .yui-gb:after, .yui-gc:after, .yui-gd:after, .yui-ge:after, .yui-gf:after{content:".";display:block;height:0;clear:both;visibility:hidden;}#bd, .yui-g, .yui-gb, .yui-gc, .yui-gd, .yui-ge, .yui-gf{zoom:1;}
\ No newline at end of file
Added: commitbit/trunk/share/web/static/css/yui/grids/grids.css
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/static/css/yui/grids/grids.css Thu Sep 21 09:25:44 2006
@@ -0,0 +1,88 @@
+/*
+Copyright (c) 2006, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 0.11.3
+*/
+body {
+ text-align:center;
+}
+
+#doc {
+ width:57.69em;
+ *width:56.3em; /* IE */
+ min-width:750px;
+ margin:auto;
+ text-align:left;
+}
+
+#hd,#bd {margin-bottom:1em;text-align:left;}
+#ft {font-size:77%;font-family:verdana;clear:both;}
+
+/* rules for main templates */
+.yui-t1 #yui-main .yui-b, .yui-t2 #yui-main .yui-b, .yui-t3 #yui-main .yui-b,
+.yui-t4 .yui-b, .yui-t5 .yui-b, .yui-t6 .yui-b {float:right;}
+.yui-t1 .yui-b, .yui-t2 .yui-b, .yui-t3 .yui-b, .yui-t4 #yui-main .yui-b, .yui-
+t5 #yui-main .yui-b, .yui-t6 #yui-main .yui-b {float:left;}
+
+/* t1: L160 */
+.yui-t1 #yui-main .yui-b {width:76%;min-width:570px;}
+.yui-t1 .yui-b {width:21.33%;min-width:160px;}
+
+/* t2 & t4: L180 & R180 */
+.yui-t2 #yui-main .yui-b, .yui-t4 #yui-main .yui-b {width:73.4%;min-
+width:550px;}
+.yui-t2 .yui-b, .yui-t4 .yui-b {width:24%;min-width:180px;}
+
+/* t3 & t6: L300 & R300 */
+.yui-t3 #yui-main .yui-b, .yui-t6 #yui-main .yui-b {width:57.6%;min-
+width:430px;}
+.yui-t3 .yui-b, .yui-t6 .yui-b {width:40%;min-width:300px;}
+
+/* t5: R240 */
+.yui-t5 #yui-main .yui-b {width:65.4%;min-width:490px;}
+.yui-t5 .yui-b {width:32%;min-width:240px;}
+
+/* t7: 750 */
+
+
+
+/* grid-generic rules for all templates */
+
+/* all modules and grids nested in a grid get floated */
+.yui-g .yui-u, .yui-g .yui-g, .yui-ge .yui-u, .yui-gf .yui-u {
+ float:right;
+ display:inline; /* IE */
+}
+
+/* float left and kill margin on first for added flex */
+.yui-g .first, .yui-gd .first, .yui-ge .first, .yui-gf .first {float:left; }
+
+/* 2 col */
+.yui-g .yui-u, .yui-g .yui-g {width:49.1%;}
+.yui-g .yui-g .yui-u {width:48.1%;} /* smaller for nested to preserve margins */
+
+/* 3 col */
+.yui-gb .yui-u, .yui-gc .yui-u, .yui-gd .yui-u {
+ float:left; /* need to reverse the order for 3 */
+ margin-left:2%; *margin-left:1.895%;
+ width:32%;
+}
+
+.yui-gb .first, .yui-gc .first, .yui-gd .first {margin-left:0;}
+
+/* colspan 2 */
+.yui-gc .first, .yui-gd .yui-u {width:66%;}
+.yui-gd .first {width:32%;}
+
+/* colspan 3 */
+.yui-ge .yui-u {width:24%;}
+.yui-ge .first, .yui-gf .yui-u {width:74.2%;}
+.yui-gf .first {width:24%;}
+.yui-ge .first {width:74.2%;}
+
+/* self clear floated parent containers */
+#bd:after, .yui-g:after, .yui-gb:after, .yui-gc:after, .yui-gd:after, .yui-
+ge:after, .yui-gf:after
+{content:".";display:block;height:0;clear:both;visibility:hidden;}
+#bd, .yui-g, .yui-gb, .yui-gc, .yui-gd, .yui-ge, .yui-gf {zoom:1;} /* IE */
Added: commitbit/trunk/share/web/static/css/yui/reset/README
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/static/css/yui/reset/README Thu Sep 21 09:25:44 2006
@@ -0,0 +1,9 @@
+CSS Reset Release Notes
+
+*** version 0.11.0 ***
+
+* No changes.
+
+*** version 0.10.0 ***
+
+* Initial release
\ No newline at end of file
Added: commitbit/trunk/share/web/static/css/yui/reset/reset-min.css
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/static/css/yui/reset/reset-min.css Thu Sep 21 09:25:44 2006
@@ -0,0 +1,2 @@
+/* Copyright (c) 2006, Yahoo! Inc. All rights reserved. Code licensed under the BSD License:http://developer.yahoo.net/yui/license.txt Version: 0.11.3 */
+body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}ol,ul {list-style:none;}caption,th {text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;}q:before,q:after{content:'';}
\ No newline at end of file
Added: commitbit/trunk/share/web/static/css/yui/reset/reset.css
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/static/css/yui/reset/reset.css Thu Sep 21 09:25:44 2006
@@ -0,0 +1,14 @@
+/*
+Copyright (c) 2006, Yahoo! Inc. All rights reserved.
+Code licensed under the BSD License:
+http://developer.yahoo.net/yui/license.txt
+version: 0.11.3
+*/
+body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td{margin:0;padding:0;}
+table{border-collapse:collapse;border-spacing:0;}
+fieldset,img{border:0;}
+address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}
+ol,ul {list-style:none;}
+caption,th {text-align:left;}
+h1,h2,h3,h4,h5,h6{font-size:100%;}
+q:before,q:after{content:'';}
\ No newline at end of file
Added: commitbit/trunk/share/web/templates/_elements/header
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/templates/_elements/header Thu Sep 21 09:25:44 2006
@@ -0,0 +1,17 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html>
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8" />
+ <meta name="robots" content="all" />
+
+ <title><% _($title) %></title>
+
+ <% Jifty->web->include_css %>
+ <% Jifty->web->include_javascript %>
+</head>
+<%args>
+$title => ""
+</%args>
+<%init>
+$r->content_type('text/html; charset=utf-8');
+</%init>
Added: commitbit/trunk/share/web/templates/_elements/sidebar
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/templates/_elements/sidebar Thu Sep 21 09:25:44 2006
@@ -0,0 +1,9 @@
+<div id="salutation">
+% if (Jifty->web->current_user->id and Jifty->web->current_user->user_object) {
+% my $u = Jifty->web->current_user->user_object;
+% my $method = $u->_brief_description;
+<%_('Hiya, %1.',$u->$method())%>
+% } else {
+<%_(q{You're not currently signed in.})%>
+% }
+</div>
Added: commitbit/trunk/share/web/templates/_elements/wrapper
==============================================================================
--- (empty file)
+++ commitbit/trunk/share/web/templates/_elements/wrapper Thu Sep 21 09:25:44 2006
@@ -0,0 +1,51 @@
+<body id="doc" class="yui-t1">
+<div id="hd">
+ <div id="headers">
+ <h1 class="title"><% _($title) %></h1>
+ </div>
+ <& sidebar &>
+</div>
+<div id="bd">
+ <div id="yui-main">
+ <div class="yui-b">
+ <% Jifty->web->render_messages %>
+ <% $m->content |n%>
+ </div>
+ </div>
+ <div class="yui-b">
+ <div id="navigation">
+ <& /_elements/menu, menu => Jifty->web->navigation &>
+ </div>
+ </div>
+</div>
+<div id="ft">
+ <p class="copyright">
+ Powered by <%Jifty->web->link( url => "/", label => _(Jifty->config->framework('ApplicationName')))%><br>
+ By <a href="http://bestpractical.com/">Best Practical Solutions</a>
+ </p>
+</div>
+
+ <div id="content">
+ <a name="content"></a>
+% if (Jifty->config->framework('AdminMode') ) {
+<div class="warning admin_mode">
+<%_('Alert')%>: <% Jifty->web->tangent( label => _('Administration mode is enabled.') , url => '/__jifty/admin/')%>
+</div>
+% }
+ <& /_elements/keybindings &>
+ </div>
+ <div id="jifty-wait-message" style="display: none"><%_('Loading...')%></div>
+% Jifty::Mason::Halo->render_component_tree() if (Jifty->config->framework('DevelMode') );
+</body>
+</html>
+% Jifty->handler->stash->{'in_body'} = 0;
+<%args>
+$title => ""
+</%args>
+<%init>
+# First we set up the header.
+$m->comp( 'header', title => $title);
+# now that we've printed out the header, we're inside the body, so it's safe to print
+# halo markers.
+Jifty->handler->stash->{'in_body'} = 1;
+</%init>
Modified: commitbit/trunk/share/web/templates/project/index.html
==============================================================================
--- commitbit/trunk/share/web/templates/project/index.html (original)
+++ commitbit/trunk/share/web/templates/project/index.html Thu Sep 21 09:25:44 2006
@@ -5,6 +5,8 @@
my $edit = Jifty->web->new_action(class =>'UpdateProject', record => $project);
</%init>
<&|/_elements/wrapper,title => $project->name &>
+<div class="yui-gc">
+<div class="yui-u first">
<h1><%$project->name%></h1>
<blockquote>
<%$project->description%>
@@ -36,7 +38,8 @@
<h3>Committer access</h3>
<%Jifty->web->link( url => $project->svn_url_auth, label => $project->svn_url_auth)%>
<h2>License</h2>
-
+</div>
+<div class="yui-u">
<div id="people">
<h2>People</h2>
@@ -50,6 +53,8 @@
</ul>
%}
</div>
+</div>
+</div>
</&>
<%init>
my %people = (
More information about the Rt-commit
mailing list