From dd8297eafd3eec140c1ee9c8750b0487471bd788 Mon Sep 17 00:00:00 2001 From: Jonathan Wall Date: Mon, 11 Oct 2010 12:48:15 -0700 Subject: [PATCH] More CSS changes to the new theme. --HG-- branch : dev --- .../Themes/TheThemeMachine/Styles/site.css | 100 +++++++++--------- .../TheThemeMachine/Views/Layout.cshtml | 40 +++++-- 2 files changed, 82 insertions(+), 58 deletions(-) diff --git a/src/Orchard.Web/Themes/TheThemeMachine/Styles/site.css b/src/Orchard.Web/Themes/TheThemeMachine/Styles/site.css index 90fe56c08..f73dd5ed8 100644 --- a/src/Orchard.Web/Themes/TheThemeMachine/Styles/site.css +++ b/src/Orchard.Web/Themes/TheThemeMachine/Styles/site.css @@ -63,7 +63,7 @@ header, footer, aside, nav, article { visibility: hidden; } -.group {display: inline-block;} /* for IE/Mac */ +/*.group {display: inline-block;}*/ /* for IE/Mac */ /* Typography (Optional) ***************************************************************/ @@ -102,38 +102,67 @@ h4 img, h5 img, h6 img { margin: 0; } -p { +p, .meta { font-size:1.3em; line-height:2em; } /* Structure ***************************************************************/ -#layout-wrapper, #layout-header { +#layout-header, #layout-content, #layout-footer { width:960px; margin:0 auto; } -#header {} - #logo {} - - -/* Navigation +#layout-header { + border:1px solid #ff0000; + background: #53a4ca; +} -nav ul li { - margin:2em 0 0 0; - float:left; - } +#branding a { + color:#fff; + text-decoration:none; + padding:48px 12px; +} -nav ul li a { - font-size:1.4em; - margin:0 1.8em; - display:block; - text-decoration:none; - text-transform:uppercase; + +#layout-wrapper { + border:1px solid #CCC; +} + +/* Sidebar off - Content Zone 960 */ +#content { + clear:both; + /*padding:12px;*/ +} + +/*Right Sidebar on - Content Zone 600 */ +.has-sidebar #content { + background-color:#e8e8e8; + width: 600px; + /*padding:12px 6px 6px 12px;*/ float:left; -} */ + clear:both; +} +/*Left Sidebar on - Content Zone 600 + +.has-sidebar #content { + float:right; +}*/ + +.sidebar { + background-color:#f6f6f6; + width: 360px; + float:right; +} + +#sitemap { + clear:both; +} + + +/* Navigation */ #navigation { @@ -232,43 +261,14 @@ form.inline p { margin-bottom:0; } /* For testing purposes */ -#layout-header { - border:1px solid #CCC; -} -#layout-wrapper { - border:1px solid #CCC; -} -/* Sidebar off - Content Zone 960 */ -#content { - clear:both; - padding:12px; -} - -/* Sidebar on - Content Zone 600 */ -.has-sidebar #content { - background-color:#e8e8e8; - width: 582px; - padding:12px 6px 6px 12px; - float:left; - clear:both; -} - -.sidebar { - background-color:#f6f6f6; - width: 360px; - float:right; -} - -#sitemap { - clear:both; -} .zone { - padding:6px; + /*padding:6px;*/ } + /* Featured Zone - switch to an image */ .featuredimage { diff --git a/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml b/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml index b0a6f8096..e04622488 100644 --- a/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml +++ b/src/Orchard.Web/Themes/TheThemeMachine/Views/Layout.cshtml @@ -8,14 +8,27 @@ Func Zone = x => Display(x); if (Model.Sidebar != null) { - Html.AddPageClassNames(new[]{"has-sidebar"}); + Model.Classes.Add("has-sidebar"); } + + //Model.Attributes.Add("onclick", "javscript:alert('woot')"); + + Model.Id = "layout-wrapper"; + var tag = Tag (Model, "div"); + } +@* Add a wrapping div around everything *@ +@tag.StartElement + +@* needs to be the page title, not page (head) title... *@ +@* Adds text and html to the header zone *@ + +@using(Capture(branding => WorkContext.Layout.Header.Add(branding) )) { +

@WorkContext.CurrentSite.SiteName

+}
- @* needs to be the page title, not page (head) title... *@ -

@WorkContext.CurrentSite.SiteName

@if(Model.Header != null) {