Update to ThemeMachine. Fixed CSS work from Nathan's awesome zone update. Added WebFonts.

--HG--
branch : dev
This commit is contained in:
Michael Dorian Bach
2010-10-14 14:01:06 -07:00
parent 64c1bdf243
commit 81c77a1901
2 changed files with 40 additions and 39 deletions

View File

@@ -159,23 +159,28 @@ pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height:
} }
#layout-header, #layout-content, #layout-footer { #layout-header, #layout-main, #layout-footer {
width:960px; width:960px;
margin:0 auto; margin:0 auto;
} }
#layout-header #layout-header
{ {
margin: 36px auto; margin: 30px auto;
} }
#branding #branding
{ {
font-size: 2.4em; font-family: 'Lobster', Tahoma, Arial, Helvetica, sans-serif;
font-size: 3.4em;
padding: 0;
margin: 0;
} }
#branding a #branding a
{ {
text-decoration:none; text-decoration:none;
color: #434343;
} }
#layout-footer #layout-footer
@@ -184,7 +189,7 @@ pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height:
} }
/* Navigation */ /* Navigation */
#navigation #layout-navigation
{ {
width: 960px; width: 960px;
margin: 0 auto; margin: 0 auto;
@@ -222,15 +227,15 @@ nav ul
} }
/* Zones */ /* Zones */
.zone { /*.zone {
background-color: yellow; background-color: yellow;
box-shadow:inset 0 0 1px red; box-shadow:inset 0 0 1px red;
-moz-box-shadow:inset 0 0 1px red; -moz-box-shadow:inset 0 0 1px red;
-webkit-box-shadow:inset 0 0 1px red; -webkit-box-shadow:inset 0 0 1px red;
} /* Used for visualizing zones */ } Used for visualizing zones */
.zone-header { } .zone-header { }
.zone-footer { padding: 24px 0 12px 0px; float: left; font-size: 1.3em; color: #999999; } .zone-footer { padding: 24px 0 12px 0px; float: left; font-size: 1.3em; color: #999999; }
.zone-content { padding: 12px 0 12px 0px; } .zone-content { }
.zone-asidethird { padding: 0 0 6px 0; } .zone-asidethird { padding: 0 0 6px 0; }
@@ -238,38 +243,32 @@ nav ul
***************************************************************/ ***************************************************************/
/* Has Aside */ /* Has Aside */
.has-sidebar #content .has-aside #layout-content
{ {
width: 588px; width: 600px;
float:left; float: left;
}
.has-sidebar .aside.first
{
width: 348px;
float:right;
} }
/* Has Aside Left*/ .has-aside .aside-second
.has-sidebar-left #content {
width: 588px;
float:right;
}
.has-sidebar-left .aside.second
{ {
width: 348px; width: 360px;
float:left; float: right;
} }
/* Has Aside Left & Right */ .has-aside-one #layout-content {
.has-sidebars #content width: 600px;
{ float: right;
width: 588px;
} }
.has-sidebars .aside.first, .has-sidebars .aside.second
.has-asides #layout-content
{ {
width: 168px; width: 600px;
} }
.has-sidebars .aside.first, .has-sidebars .aside.second, .has-sidebars #content .has-asides .aside-first, .has-asides .aside-second
{
width: 180px;
}
.has-asides .aside-first, .has-asides .aside-second, .has-asides #layout-content
{ {
float:left; float:left;
} }
@@ -371,7 +370,8 @@ button:focus, .button:focus {
.top { margin-top:0; padding-top:0; } .top { margin-top:0; padding-top:0; }
.bottom { margin-bottom:0; padding-bottom:0; } .bottom { margin-bottom:0; padding-bottom:0; }
.user-display { float: left; padding: 24px 12px 12px 12px; font-size: 1.3em; } .credits { float: left; }
.user-display { float: left; padding: 0 12px; }
.user-display .welcome {} .user-display .welcome {}
.user-display .user-actions {} .user-display .user-actions {}

View File

@@ -1,5 +1,5 @@
@{ @{
Style.Include("http://fonts.googleapis.com/css?family=Lobster&subset=latin");
Style.Include("site.css"); Style.Include("site.css");
// cool stuff goes up here // cool stuff goes up here
@@ -10,13 +10,13 @@
//Add classes to the wrapper div to toggle zones on and off //Add classes to the wrapper div to toggle zones on and off
if (Model.AsideFirst != null && Model.AsideSecond == null) { if (Model.AsideFirst != null && Model.AsideSecond == null) {
Model.Classes.Add("has-sidebar"); Model.Classes.Add("has-aside-one");
} }
else if (Model.AsideFirst == null && Model.AsideSecond != null) { else if (Model.AsideFirst == null && Model.AsideSecond != null) {
Model.Classes.Add("has-sidebar-left"); Model.Classes.Add("has-aside-two");
} }
else if (Model.AsideFirst != null && Model.AsideSecond != null) { else if (Model.AsideFirst != null && Model.AsideSecond != null) {
Model.Classes.Add("has-sidebars"); Model.Classes.Add("has-asides");
} }
else { else {
@@ -31,8 +31,9 @@
<h1 id="branding"><a href="@homeUrl">@WorkContext.CurrentSite.SiteName</a></h1> <h1 id="branding"><a href="@homeUrl">@WorkContext.CurrentSite.SiteName</a></h1>
} }
using(Capture(pbo => WorkContext.Layout.Footer.Add(pbo) )) { using(Capture(pbo => WorkContext.Layout.Footer.Add(pbo) )) {
<span class="poweredby">Powered by Orchard</span> <span class="copyright">&#169; The Theme Machine 2010.</span> <div class="credits"><span class="poweredby">Powered by Orchard</span> <span class="copyright">&#169; The Theme Machine 2010.</span></div>
} }
WorkContext.Layout.Footer.Add(New.User()); WorkContext.Layout.Footer.Add(New.User());
} }
@@ -61,7 +62,7 @@
} }
<div id="layout-main" class="group"> <div id="layout-main" class="group">
@if (Model.AsideFirst != null) { @if (Model.AsideFirst != null) {
<aside id="aside-first" class="aside first"> <aside id="aside-first" class="aside-first">
@Zone(Model.AsideFirst) @Zone(Model.AsideFirst)
</aside> </aside>
} }
@@ -89,7 +90,7 @@
} }
</div> </div>
@if (Model.AsideSecond != null) { @if (Model.AsideSecond != null) {
<aside id="aside-second" class="aside second"> <aside id="aside-second" class="aside-second">
@Zone(Model.AsideSecond) @Zone(Model.AsideSecond)
</aside> </aside>
} }