From 81c77a19016282bb61265c0f45cd69034229a25b Mon Sep 17 00:00:00 2001 From: Michael Dorian Bach Date: Thu, 14 Oct 2010 14:01:06 -0700 Subject: [PATCH] Update to ThemeMachine. Fixed CSS work from Nathan's awesome zone update. Added WebFonts. --HG-- branch : dev --- .../Themes/TheThemeMachine/Styles/Site.css | 64 +++++++++---------- .../TheThemeMachine/Views/Layout.cshtml | 15 +++-- 2 files changed, 40 insertions(+), 39 deletions(-) diff --git a/src/Orchard.Web/Themes/TheThemeMachine/Styles/Site.css b/src/Orchard.Web/Themes/TheThemeMachine/Styles/Site.css index e4601950d..cf79d57b4 100644 --- a/src/Orchard.Web/Themes/TheThemeMachine/Styles/Site.css +++ b/src/Orchard.Web/Themes/TheThemeMachine/Styles/Site.css @@ -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; margin:0 auto; } #layout-header { - margin: 36px auto; + margin: 30px auto; } #branding - { - font-size: 2.4em; + { + font-family: 'Lobster', Tahoma, Arial, Helvetica, sans-serif; + font-size: 3.4em; + padding: 0; + margin: 0; + } #branding a { text-decoration:none; + color: #434343; } #layout-footer @@ -184,7 +189,7 @@ pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: } /* Navigation */ -#navigation +#layout-navigation { width: 960px; margin: 0 auto; @@ -222,15 +227,15 @@ nav ul } /* Zones */ -.zone { +/*.zone { background-color: yellow; box-shadow:inset 0 0 1px red; -moz-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-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; } @@ -238,38 +243,32 @@ nav ul ***************************************************************/ /* Has Aside */ -.has-sidebar #content +.has-aside #layout-content { - width: 588px; - float:left; -} -.has-sidebar .aside.first -{ - width: 348px; - float:right; + width: 600px; + float: left; } -/* Has Aside Left*/ -.has-sidebar-left #content { - width: 588px; - float:right; -} -.has-sidebar-left .aside.second +.has-aside .aside-second { - width: 348px; - float:left; + width: 360px; + float: right; } -/* Has Aside Left & Right */ -.has-sidebars #content -{ - width: 588px; +.has-aside-one #layout-content { + width: 600px; + float: right; } -.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; } @@ -371,7 +370,8 @@ button:focus, .button:focus { .top { margin-top:0; padding-top: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 .user-actions {} diff --git a/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml b/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml index 83c70e1da..d375cd984 100644 --- a/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml +++ b/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml @@ -1,5 +1,5 @@ @{ - + Style.Include("http://fonts.googleapis.com/css?family=Lobster&subset=latin"); Style.Include("site.css"); // cool stuff goes up here @@ -10,13 +10,13 @@ //Add classes to the wrapper div to toggle zones on and off 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) { - Model.Classes.Add("has-sidebar-left"); + Model.Classes.Add("has-aside-two"); } else if (Model.AsideFirst != null && Model.AsideSecond != null) { - Model.Classes.Add("has-sidebars"); + Model.Classes.Add("has-asides"); } else { @@ -31,8 +31,9 @@

@WorkContext.CurrentSite.SiteName

} using(Capture(pbo => WorkContext.Layout.Footer.Add(pbo) )) { - Powered by Orchard © The Theme Machine 2010. +
Powered by Orchard © The Theme Machine 2010.
} + WorkContext.Layout.Footer.Add(New.User()); } @@ -61,7 +62,7 @@ }
@if (Model.AsideFirst != null) { -
@if (Model.AsideSecond != null) { -