Skip to content

Commit

Permalink
Item531: various style changes to top bar, navigation, logo, background
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/FoswikiSiteSkin@2257 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Jan 31, 2009
1 parent 540e628 commit 4c57095
Show file tree
Hide file tree
Showing 18 changed files with 88 additions and 83 deletions.
18 changes: 18 additions & 0 deletions data/System/FoswikiSiteSkinNavigationTemplate.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
%META:TOPICINFO{author="ProjectContributor" date="1231502400" format="1.0" version="$Rev: 1838 $"}%
%{ main navigation items }%
%TMPL:DEF{"topbarbuttons"}%<ul>
%TMPL:P{"topbarbutton" DESTWEB="Home" LABEL="Home"}%
%TMPL:P{"topbarbutton" DESTWEB="About" LABEL="About"}%
%TMPL:P{"topbarbutton" DESTWEB="System" LABEL="Documentation"}%
%TMPL:P{"topbarbutton" DESTWEB="Extensions" LABEL="Extensions"}%
%TMPL:P{"topbarbutton" DESTWEB="Support" LABEL="Support"}%
%TMPL:P{"topbarbutton" DESTWEB="Community" LABEL="Community"}%
%TMPL:P{"topbarbutton" DESTWEB="Development" LABEL="Development"}%
%TMPL:P{"topbarbutton" DESTWEB="Download" LABEL="Download"}%
</ul>%TMPL:END%

%{ definition of main navigation list item }%
%TMPL:DEF{"topbarbutton"}%<li><a href="%SCRIPTURL{"view"}%/%DESTWEB%/WebHome" class="%IF{"'%DESTWEB%'='%WEB%'" then="active" else="inactive"}%">%LABEL%</a></li>%TMPL:END%

%{ display of name and login / logout links at very top }%
%TMPL:DEF{"userbar"}%<div id="foswikisiteUserBar"><ul>%IF{"context authenticated" then='<li>%MAKETEXT{"Hello [_1]" args="[[%WIKIUSERNAME%][%SPACEOUT{%WIKINAME%}%]]"}%</li>'}%%IF{"$ LOGOUT != ''" then='<li>%LOGOUT%</li>'}%%IF{"$ LOGIN != '' and not context authenticated" then='<li>You are visiting this site as: [[%WIKIUSERNAME%][%WIKINAME%]]</li><li>%LOGIN% %IF{"context registration_supported AND context registration_enabled" then="%MAKETEXT{"or"}% [[%SYSTEMWEB%.UserRegistration][%MAKETEXT{"Register"}%]]"}%</li>'}%<li>[[%USERSWEB%.WikiUsers][Users]]</li></ul></div>%TMPL:END%
9 changes: 5 additions & 4 deletions lib/Foswiki/Contrib/FoswikiSiteSkin/MANIFEST
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
data/System/FoswikiSiteSkin.txt 0644
data/System/FoswikiSiteSkin.txt 0644 Skin documentation
data/System/FoswikiSiteSkinNavigationTemplate.txt 0644 Top bar navigation buttons
lib/Foswiki/Contrib/FoswikiSiteSkin.pm 0666
pub/System/FoswikiSiteSkin/GrayBlend.gif 0644
pub/System/FoswikiSiteSkin/attach.png 0644
pub/System/FoswikiSiteSkin/foswiki-header-left.png 0644
pub/System/FoswikiSiteSkin/foswiki-header-right.png 0644
pub/System/FoswikiSiteSkin/foswiki-header.png 0644
pub/System/FoswikiSiteSkin/header-left.png 0644
pub/System/FoswikiSiteSkin/header.png 0644
pub/System/FoswikiSiteSkin/logo.gif 0644
pub/System/FoswikiSiteSkin/menu_background.gif 0644
pub/System/FoswikiSiteSkin/page_white_add.png 0644
pub/System/FoswikiSiteSkin/page_white_stack.png 0644
pub/System/FoswikiSiteSkin/pencil.png 0644
Expand Down
Binary file modified pub/System/FoswikiSiteSkin/GrayBlend.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pub/System/FoswikiSiteSkin/GrayBlend.psd
Binary file not shown.
Binary file removed pub/System/FoswikiSiteSkin/GreyBlend.gif
Binary file not shown.
Binary file removed pub/System/FoswikiSiteSkin/foswiki-header-left.png
Binary file not shown.
Binary file removed pub/System/FoswikiSiteSkin/foswiki-header-left.psd
Binary file not shown.
Binary file removed pub/System/FoswikiSiteSkin/foswiki-header-right.png
Binary file not shown.
Binary file removed pub/System/FoswikiSiteSkin/foswiki-header.png
Binary file not shown.
Binary file added pub/System/FoswikiSiteSkin/header-left.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pub/System/FoswikiSiteSkin/header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pub/System/FoswikiSiteSkin/header.psd
Binary file not shown.
Binary file removed pub/System/FoswikiSiteSkin/logo.gif
Binary file not shown.
Binary file removed pub/System/FoswikiSiteSkin/logo.psd
Binary file not shown.
Binary file added pub/System/FoswikiSiteSkin/menu_background.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pub/System/FoswikiSiteSkin/menu_background.psd
Binary file not shown.
133 changes: 62 additions & 71 deletions pub/System/FoswikiSiteSkin/style.css
Original file line number Diff line number Diff line change
@@ -1,96 +1,92 @@
div #patternTopBarContents {
height:80px;
padding-top:10px;
padding-left:0;
position:relative;
left:-25px;
#patternTopBarContents {
padding:0;
background:none;
}
#patternTopBarContents table {
height:90px;
}
.patternMetaMenu {
padding-top:10px;
padding:15px 2em;
}
.patternToolBar {
float:right;
}
#patternPage {
border:none;
}
#patternTopBarLeft {
border:none;
width:25px;
height:90px;
float:left;
}
#patternTopBarRight {
position:relative;
left:25px;
border:none;
}
#userbar {
#foswikisiteUserBar {
font-size:.85em;
padding:0 .5em .5em .5em;
text-align:right;
font-family:arial,Helvetica,sans-serif;
}
#userbar a,
#userbar a:active,
#userbar a:visited {
text-decoration:none;
#foswikisiteUserBar ul {
margin:0;
padding:0;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
}
#userbar a:hover {
#foswikisiteUserBar li {
display:inline;
margin:0;
padding:0 0 0 1em;
color:#555;
}
#foswikisiteUserBar a,
#foswikisiteUserBar a:active,
#foswikisiteUserBar a:visited {
text-decoration:none;
color:#222;
}
.userbarsep {
padding:0 .5em;
#foswikisiteUserBar a:hover {
text-decoration:underline;
color:#000;
}
#patternTopBar {
border:none;
padding-bottom:30px;
}
#patternTopBarButtons {
border-style:solid none none none;
border-width:1px;
border:none;
padding-left:2em;
height:30px;
}
#patternTopBarButtons ul {
display:inline;
margin:0;
padding:.5em 0;
font-weight:bold;
line-height:30px;
padding:0;
height:30px;
border-style:none none none solid;
border-width:1px;
list-style-image:none;
list-style-position:outside;
list-style-type:none;
}
#patternTopBarButtons ul a {
line-height:30px;
padding:.5em 1em .7em 1em;
margin:0 -1em 0 0;
width:100%;
border:none;
text-decoration:none;
}
#patternTopBarButtons li {
display:inline;
margin:0;
padding:.5em 1em .5em 0;
border-style:none solid none none;
padding:0;
height:30px;
}
#patternTopBarButtons ul li a {
display:block;
float:left;
padding:0 1em;
border-style:solid solid none none;
border-width:1px;
text-decoration:none;
font-weight:bold;
line-height:30px;
height:30px;
}

.patternViewPage #patternOuter {
border-width:16em;
border-style:none solid none none;
margin-right: 0;
}
#patternMainContents {
border-style:solid;
border-width:1px;
border-style:none;
}
.patternContent {
margin:1.5em 0 0 0;
Expand Down Expand Up @@ -123,7 +119,6 @@ h2 {
#patternSideBarContents h2 {
font-size:100%;
font-weight:bold;
border-top:1px solid #BDEB86;
}
#patternSideBarContents h2,
#patternSideBarContents h2 a {
Expand Down Expand Up @@ -381,9 +376,6 @@ tr.foswikiDiffDebug .foswikiDiffUnchangedText {
/* IMAGES */
/* image positions are set here as well as these are dependent on the image */

#patternTopBar {
/* image is defined as WEBHEADERART in System/DefaultPreferences */
}
.patternToolBar span a:link,
.patternToolBar span a:visited,
.patternToolBar span s,
Expand Down Expand Up @@ -443,7 +435,7 @@ li.patternLogIn {
/* COLORS */

#patternScreen {
background:white url('GrayBlend.gif') repeat-x scroll 0 0;
background:#f0f0f1 url('GrayBlend.gif') repeat-x scroll 0 0;
}
#patternMain { /* don't set a background here;use patternOuter */ }
.patternViewPage #patternOuter {
Expand All @@ -455,11 +447,11 @@ li.patternLogIn {
.patternViewPage #patternWrapper {
background:#fff;
}
#patternTopBarLeft {
background:transparent url(foswiki-header-left.png) no-repeat scroll 0 0;
#patternTopBarContentsWrapper {
background:transparent url(header-left.png) no-repeat scroll 0 0;
}
#patternTopBarRight {
background:#2e5cac url(foswiki-header-right.png) no-repeat scroll 0 0;
#patternTopBar {
background:#2e5cac url(header.png) repeat-x scroll 0 0;
}
.patternViewPage #patternSideBar {
background:#e5e5e8;
Expand All @@ -468,31 +460,29 @@ li.patternLogIn {
border-color:#ccc;
background-color:#fff;
}
#userbar {
#foswikisiteUserBar {
color:#444444;
}
#userbar a,
#userbar a:active,
#userbar a:visited {
#foswikisiteUserBar a,
#foswikisiteUserBar a:active,
#foswikisiteUserBar a:visited {
color:#444444;
}
#userbar a:hover {
#foswikisiteUserBar a:hover {
color:#73aa31;
}
#patternTopBarButtons {
background-color:#8bb6e5;
border-color:#e1eafa;
}
#patternTopBarButtons {}
#patternTopBarButtons ul {
color:#339;
border-color:#e1eafa;
}
#patternTopBarButtons li {
color:#339;
border-color:#e1eafa;
}
#patternTopBarButtons li a {
color:#00458f;
border-color:#e1eafa;
background:#8bb6e5 url(menu_background.gif) repeat-x scroll 0 0;
color:#00346b;
}
#patternTopBarButtons li a.active,
#patternTopBarButtons li a:link:hover,
Expand All @@ -512,7 +502,10 @@ li.patternLogIn {
#patternBottomBarContents a:hover {
color:#000;
}

.patternMetaMenu ul li .foswikiInputFieldBeforeFocus,
.patternMetaMenu ul li .foswikiSelect {
background-color:#e8f0fa;
}
html body {
background-color:white;
color:#000;
Expand All @@ -522,7 +515,7 @@ html body.patternEditPage,
background-color:#fff;
}
/* be kind to netscape 4 that doesn't understand inheritance */
body, p, li, ul, ol, dl, dt, dd, acronym, h1, h2, h3, h4, h5, h6 {
p, li, ul, ol, dl, dt, dd, acronym, h1, h2, h3, h4, h5, h6 {
background-color:transparent;
}
hr {
Expand Down Expand Up @@ -619,17 +612,15 @@ h2, h3, h4, h5, h6 {
.foswikiNewLink {
border-color:#ddd;
}
#foswikiLogo a img {
display:none;
}
#foswikiLogo a {
display:block;
background-image:url(logo.gif);
background-repeat:no-repeat;
height:90px;
width:315px;
margin:-10px 0 0 -25px;
}
#foswikiLogo a img {
display:none;
}
.patternTop a:link,
.patternHomePath .patternRevInfo .a:link,
.patternTop a:visited,
Expand Down
11 changes: 3 additions & 8 deletions templates/viewtopbar.foswikisite.tmpl
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
%TMPL:INCLUDE{"viewtopbar"}%
%TMPL:DEF{"topbar"}%<div id="patternTopBar"><div id="patternTopBarLeft"></div><div id="patternTopBarRight"><div id="patternTopBarContentsWrapper"><div id="patternTopBarContents">%IF{"istopic '%SYSTEMWEB%.WebTopBar'" then="$percntINCLUDE{$quot%SYSTEMWEB%.WebTopBar$quot}$percnt" else="$percntINCLUDE{$quot%SYSTEMWEB%.WebTopBarExample$quot}$percnt"}%</div></div></div>
<div id="patternTopBarButtons">%TMPL:P{"topbarbuttons"}%</div>
</div><!-- /patternTopBar-->%TMPL:END%
%TMPL:INCLUDE{"Navigation"}% %{ loads System.FoswikiSiteSkinNavigationTemplate }%

%TMPL:DEF{"topbarbuttons"}%<ul>%TMPL:P{"topbarbutton" DESTWEB="Home" LABEL="About"}%%TMPL:P{"topbarbutton" DESTWEB="Download" LABEL="Download"}%%TMPL:P{"topbarbutton" DESTWEB="System" LABEL="Documentation"}%%TMPL:P{"topbarbutton" DESTWEB="Community" LABEL="Community"}%%TMPL:P{"topbarbutton" DESTWEB="Extensions" LABEL="Extensions"}%%TMPL:P{"topbarbutton" DESTWEB="Support" LABEL="Support"}%%TMPL:P{"topbarbutton" DESTWEB="Development" LABEL="Development"}%</ul>%TMPL:END%

%TMPL:DEF{"topbarbutton"}%<li><a href="%SCRIPTURL{"view"}%/%DESTWEB%/WebHome" class="%IF{"'%DESTWEB%'='%WEB%'" then="active" else="inactive"}%">%LABEL%</a></li>%TMPL:END%

%TMPL:DEF{"userbar"}%<div id="userbar">[[Main.YourAccount][Your account]] <span class="userbarsep"> | </span> [[Main.WebHome][Users]] <span class="userbarsep"> | </span> [[System.UserRegistration][Register]]</div>%TMPL:END%
%TMPL:DEF{"topbar"}%<div id="patternTopBar"><div id="patternTopBarContentsWrapper"><div id="patternTopBarContents">%IF{"istopic '%SYSTEMWEB%.WebTopBar'" then="$percntINCLUDE{$quot%SYSTEMWEB%.WebTopBar$quot}$percnt" else="$percntINCLUDE{$quot%SYSTEMWEB%.WebTopBarExample$quot}$percnt"}%</div><!--/patternTopBarContents--><div id="patternTopBarButtons">%TMPL:P{"topbarbuttons"}%</div></div><!--/patternTopBarContentsWrapper-->
</div><!-- /patternTopBar-->%TMPL:END%

0 comments on commit 4c57095

Please sign in to comment.