mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Adding Times theme. Still need to do some CSS/html cleanup and add the thumbnail image.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4044676
This commit is contained in:
BIN
src/Orchard.Web/Themes/Times/Content/Images/Thumbs.db
Normal file
BIN
src/Orchard.Web/Themes/Times/Content/Images/Thumbs.db
Normal file
Binary file not shown.
BIN
src/Orchard.Web/Themes/Times/Content/Images/bodyBackground.gif
Normal file
BIN
src/Orchard.Web/Themes/Times/Content/Images/bodyBackground.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
src/Orchard.Web/Themes/Times/Content/Images/mainBackground.gif
Normal file
BIN
src/Orchard.Web/Themes/Times/Content/Images/mainBackground.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 17 KiB |
BIN
src/Orchard.Web/Themes/Times/Content/Images/mainBackground.png
Normal file
BIN
src/Orchard.Web/Themes/Times/Content/Images/mainBackground.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
BIN
src/Orchard.Web/Themes/Times/Content/Images/navDivider.gif
Normal file
BIN
src/Orchard.Web/Themes/Times/Content/Images/navDivider.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 B |
165
src/Orchard.Web/Themes/Times/Styles/site.css
Normal file
165
src/Orchard.Web/Themes/Times/Styles/site.css
Normal file
@@ -0,0 +1,165 @@
|
||||
/*Yahoo browser reset
|
||||
----------------------------------------------------------*/
|
||||
|
||||
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,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%; font-weight:normal; }
|
||||
abbr,acronym { border:0; }
|
||||
q:before,q:after {content:'';}
|
||||
abbr,acronym { border:0;}
|
||||
|
||||
/*Defaults
|
||||
----------------------------------------------------------*/
|
||||
|
||||
html {height: 100%;}
|
||||
|
||||
body {
|
||||
font: normal 100% Times New Roman, Times, serif;
|
||||
background:url(../Content/Images/bodyBackground.gif) top left repeat-x #fff;
|
||||
height: 100%;
|
||||
text-align:left;
|
||||
color:#333;
|
||||
}
|
||||
|
||||
/* ---------- Headings and defaults ---------- */
|
||||
|
||||
h1,h2,h3,h4,h5,h6,legend {font-weight:normal; font-style: normal; margin:0 0 12px 0; color:#670404;}
|
||||
|
||||
h1 {font-size: 200%;}
|
||||
h2 {font-size: 170%;}
|
||||
h3 {font-size: 150%;}
|
||||
h4 {font-size: 130%;}
|
||||
h5 {font-size: 120%;}
|
||||
h6 {font-size: 110%;}
|
||||
|
||||
p {line-height:24px; margin:12px 0 0 0;}
|
||||
p.small {line-height:22px; font-size:85%;}
|
||||
|
||||
a {
|
||||
color:#004386;
|
||||
text-decoration:none;
|
||||
}
|
||||
|
||||
ul {list-style:circle; list-style-position:inside; line-height:22px;}
|
||||
|
||||
/* ---------- Layout ---------- */
|
||||
|
||||
#header {
|
||||
margin:0 38px 0 55px;
|
||||
height:75px;
|
||||
border-bottom:1px #d6d6d6 solid;
|
||||
}
|
||||
|
||||
#header {
|
||||
margin:0 38px 0 40px;
|
||||
height:75px;
|
||||
border-bottom:1px #d6d6d6 solid;
|
||||
}
|
||||
|
||||
|
||||
#header h1{
|
||||
float:left;
|
||||
font-size:290%;
|
||||
color:#000;
|
||||
padding:18px 0 0 0;
|
||||
}
|
||||
|
||||
#logindisplay {
|
||||
font:80% Verdana, Geneva, Tahoma, sans-serif;
|
||||
float:right;
|
||||
margin:48px 8px 0 0;
|
||||
}
|
||||
|
||||
#wrapper {
|
||||
width:985px;
|
||||
height:100%;
|
||||
display:block;
|
||||
margin:0em auto;
|
||||
background:url(../Content/Images/mainBackground.png) no-repeat center top;
|
||||
}
|
||||
|
||||
/*#main {
|
||||
clear:both;
|
||||
margin:0 38px 0 55px;
|
||||
border:1px #ffcc00 solid;
|
||||
}*/
|
||||
|
||||
#main {
|
||||
clear:both;
|
||||
margin:20px 0 0 27px;
|
||||
width:930px;
|
||||
border:1px #f5f5f5 solid;
|
||||
border-top:none;
|
||||
}
|
||||
|
||||
|
||||
#contentMain {
|
||||
float:left;
|
||||
margin:0 0 0 27px;
|
||||
width:520px;
|
||||
}
|
||||
|
||||
#sideBar1 {
|
||||
float:right;
|
||||
margin:0 12px 0 0;
|
||||
width:325px;
|
||||
}
|
||||
|
||||
#sideBar1 h3 {
|
||||
border-bottom:1px solid #f1f1f1;
|
||||
}
|
||||
|
||||
|
||||
#contentMain ul,#sideBar1 ul {
|
||||
list-style:none;
|
||||
line-height:normal;
|
||||
}
|
||||
|
||||
#footer {
|
||||
font:80% Verdana, Geneva, Tahoma, sans-serif;
|
||||
color:#918e8e;
|
||||
clear:both;
|
||||
border-top:1px solid #d6d6d6;
|
||||
margin:0 12px 0 12px;
|
||||
padding:8px 0 8px 8px;
|
||||
}
|
||||
|
||||
#footer a{
|
||||
text-transform:uppercase;
|
||||
color:#918e8e;
|
||||
}
|
||||
|
||||
|
||||
/* ---------- Navigation ---------- */
|
||||
|
||||
#menucontainer {
|
||||
width:960px;
|
||||
display:block;
|
||||
height:35px;
|
||||
margin:0em auto;
|
||||
}
|
||||
|
||||
#menucontainer ul, #footer ul {
|
||||
list-style:none
|
||||
}
|
||||
|
||||
#menucontainer ul li {
|
||||
margin:8px 0 0 0;
|
||||
float:left;
|
||||
background:url(../Content/Images/navDivider.gif) no-repeat top right;
|
||||
}
|
||||
|
||||
#menucontainer ul li a {
|
||||
margin:0 18px 0 18px;
|
||||
font:80% Verdana, Geneva, Tahoma, sans-serif;
|
||||
display:block;
|
||||
text-decoration:none;
|
||||
text-transform:uppercase;
|
||||
float:left;
|
||||
color:#fff;
|
||||
}
|
6
src/Orchard.Web/Themes/Times/Theme.txt
Normal file
6
src/Orchard.Web/Themes/Times/Theme.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
name: Times
|
||||
author: Jonathan Wall
|
||||
description: Theme based on times new roman.
|
||||
version: 1.0
|
||||
tags: orange
|
||||
homepage: http://www.orchardproject.net
|
5
src/Orchard.Web/Themes/Times/Views/footer.ascx
Normal file
5
src/Orchard.Web/Themes/Times/Views/footer.ascx
Normal file
@@ -0,0 +1,5 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
|
||||
<div id="footer">
|
||||
<a href="/">Link 1</a> | <a href="/">Link 2</a> | <a href="/">Link 3</a> | <a href="/">Link 4</a>
|
||||
</div>
|
56
src/Orchard.Web/Themes/Times/Views/layout.ascx
Normal file
56
src/Orchard.Web/Themes/Times/Views/layout.ascx
Normal file
@@ -0,0 +1,56 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<BaseViewModel>" %>
|
||||
<%@ Import Namespace="Orchard.Mvc.ViewModels"%>
|
||||
<%@ Import Namespace="Orchard.Mvc.Html" %>
|
||||
|
||||
<%Html.RegisterStyle("site.css");%>
|
||||
|
||||
<%--Top Navigation--%>
|
||||
<%-- todo:(nheskew) this will need to be a generated menu --%>
|
||||
<% Html.Include("menu"); %>
|
||||
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="header">
|
||||
<h1>Times new roman</h1>
|
||||
|
||||
<%-- Welcome Jon Doe | <a href="/">Sign out</a> --%>
|
||||
<%-- todo:(nheskew) this will need to all go in the header zone (user widget) --%>
|
||||
<% Html.Include("user"); %>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="main">
|
||||
<div id="contentMain">
|
||||
<ul>
|
||||
<li>
|
||||
<%--Main Content--%>
|
||||
<%Html.ZoneBody("content");%>
|
||||
</li>
|
||||
<li>
|
||||
<p>Paragraph - Regular<br />
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas adipiscing dolor vel nunc molestie laoreet. Curabitur vitae elit et massa consequat interdum. Curabitur blandit leo nec magna dictum vitae mollis tellus gravida. Morbi non condimentum neque. Suspendisse commodo condimentum feugiat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p>
|
||||
</li>
|
||||
<li>
|
||||
<h1>Heading 1</h1>
|
||||
<h2>Heading 2</h2>
|
||||
<h3>Heading 3</h3>
|
||||
<h4>Heading 4</h4>
|
||||
<h5>Heading 5</h5>
|
||||
<h6>Heading 6</h6>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="sideBar1">
|
||||
<ul>
|
||||
<li><h3>Heading</h3></li>
|
||||
<li><p class="small">Paragraph - Small<br />
|
||||
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas adipiscing dolor vel nunc molestie laoreet. Curabitur vitae elit et massa consequat interdum. Curabitur blandit leo nec magna dictum vitae mollis tellus gravida. Morbi non condimentum neque. Suspendisse commodo condimentum feugiat. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.</p></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<%-- End Content --%>
|
||||
<%Html.Zone("footer");%>
|
||||
<% Html.Include("footer"); %>
|
||||
|
||||
</div>
|
||||
</div>
|
9
src/Orchard.Web/Themes/Times/Views/menu.ascx
Normal file
9
src/Orchard.Web/Themes/Times/Views/menu.ascx
Normal file
@@ -0,0 +1,9 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
|
||||
<div id="menucontainer">
|
||||
<ul id="menu">
|
||||
<li><%= Html.ActionLink("Home", "Index", "Home", new {Area = ""}, new {})%></li>
|
||||
<li><%= Html.ActionLink("About", "About", "Home", new {Area = ""}, new {})%></li>
|
||||
<li><%= Html.ActionLink("Blogs", "List", "Blog", new {Area = "Orchard.Blogs"}, new {})%></li>
|
||||
<li><%= Html.ActionLink("Admin", "List", new {Area = "Orchard.Blogs", Controller = "BlogAdmin"})%></li>
|
||||
</ul>
|
||||
</div>
|
Reference in New Issue
Block a user