mirror of
https://github.com/silverstripe/silverstripe-simple
synced 2024-10-22 11:05:50 +02:00
ENHANCEMENT:added inline comments to Simple CSS to help new users when they are completing the tutorial. Added a couple of style fixes for the search form and navigation.
This commit is contained in:
parent
5779d770dc
commit
20c5e423c8
@ -44,7 +44,7 @@ form select {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 1px solid #dad9d9;
|
border: 1px solid #dad9d9;
|
||||||
}
|
}
|
||||||
.ie7 form select { width: 400px; }
|
.ie7 form select { width: 400px; } /* fix for ie7's rendering of max-width property on select input */
|
||||||
|
|
||||||
form input.text:focus,
|
form input.text:focus,
|
||||||
form textarea:focus,
|
form textarea:focus,
|
||||||
@ -57,7 +57,7 @@ form input[disabled], form textarea[disabled] {
|
|||||||
border: 1px solid #dad9d9;
|
border: 1px solid #dad9d9;
|
||||||
}
|
}
|
||||||
textarea {
|
textarea {
|
||||||
resize: vertical;
|
resize: vertical; /* forces text area to be resized vertically only */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -194,7 +194,7 @@ form .date .middleColumn input {
|
|||||||
font-size: 13px; /* reset to default */
|
font-size: 13px; /* reset to default */
|
||||||
color: #333; /* reset to default */
|
color: #333; /* reset to default */
|
||||||
}
|
}
|
||||||
form .requiredField label.left:after {
|
form .requiredField label.left:after { /* pseudo element adds an asterisk to a required fields label */
|
||||||
color: #B94A48;
|
color: #B94A48;
|
||||||
content: "*";
|
content: "*";
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@ -212,7 +212,7 @@ form .optionset ul {
|
|||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
list-style-type:none;
|
list-style-type:none;
|
||||||
}
|
}
|
||||||
form div.checkbox:after {
|
form div.checkbox:after { /* clearfix */
|
||||||
content: ".";
|
content: ".";
|
||||||
display: block;
|
display: block;
|
||||||
height: 0;
|
height: 0;
|
||||||
|
328
css/layout.css
328
css/layout.css
@ -6,6 +6,28 @@
|
|||||||
* Include your notes or table of contents below....
|
* Include your notes or table of contents below....
|
||||||
* Include color hex's or values of your grid
|
* Include color hex's or values of your grid
|
||||||
*
|
*
|
||||||
|
* 1. MAIN LAYOUT
|
||||||
|
* 2. HEADER
|
||||||
|
* - Brand
|
||||||
|
* - Search Form
|
||||||
|
* 3. Navigation
|
||||||
|
* - Primary Navigation
|
||||||
|
* - tablet Navigation
|
||||||
|
* - Secondary Navigation
|
||||||
|
* - Secondary Nav 2-5 Levels deep
|
||||||
|
* 4. Mixed
|
||||||
|
* 5. Footer
|
||||||
|
* 6. Page Specific Layout
|
||||||
|
* - Homepage
|
||||||
|
* - Search Results
|
||||||
|
* 7. Device and Responsive Layout
|
||||||
|
* - Breakpoint 960px
|
||||||
|
* - Breakpoint 640px
|
||||||
|
* - Search Form
|
||||||
|
* - Main Content
|
||||||
|
* 8. Print Styles
|
||||||
|
* - Simple Theme custom print styles
|
||||||
|
*
|
||||||
* @author Your Name <email@silverstripe.com>
|
* @author Your Name <email@silverstripe.com>
|
||||||
* ------------------------------------------------------- */
|
* ------------------------------------------------------- */
|
||||||
|
|
||||||
@ -14,11 +36,11 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
background: #ededed;
|
background: #ededed;
|
||||||
min-width: 240px;
|
min-width: 240px;
|
||||||
-webkit-text-size-adjust: none;
|
-webkit-text-size-adjust: none; /* The text size is not adjusted for Safari on iPhone */
|
||||||
}
|
}
|
||||||
.ie7 body,
|
.ie7 body,
|
||||||
.ie8 body {
|
.ie8 body {
|
||||||
min-width: 860px
|
min-width: 860px; /* media queries are not supported in ie7/8 without a polyfill */
|
||||||
}
|
}
|
||||||
.main {
|
.main {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
@ -31,17 +53,17 @@ body {
|
|||||||
padding: 0 30px;
|
padding: 0 30px;
|
||||||
}
|
}
|
||||||
.ie6 .inner {
|
.ie6 .inner {
|
||||||
width: 960px
|
width: 960px;
|
||||||
}
|
}
|
||||||
.content-container {
|
.content-container { /* widths are set as percentages due to responsive nature of the site */
|
||||||
float: right;
|
float: right;
|
||||||
width: 73%;
|
width: 73%; /* sets width of content-container when there is a sidebar */
|
||||||
}
|
}
|
||||||
.no-sidebar .content-container {
|
.no-sidebar .content-container {
|
||||||
float: left;
|
float: left;
|
||||||
width:100%;
|
width:100%; /* makes content container full width when there is no sidebar */
|
||||||
}
|
}
|
||||||
aside {
|
aside { /* this is the sidebar element */
|
||||||
float: left;
|
float: left;
|
||||||
width: 23%;
|
width: 23%;
|
||||||
margin-top: 12px;
|
margin-top: 12px;
|
||||||
@ -53,7 +75,7 @@ body {
|
|||||||
|
|
||||||
/* HEADER */
|
/* HEADER */
|
||||||
.header {
|
.header {
|
||||||
background: #161616
|
background: #161616;
|
||||||
}
|
}
|
||||||
.header .inner {
|
.header .inner {
|
||||||
padding-top: 45px;
|
padding-top: 45px;
|
||||||
@ -74,7 +96,7 @@ body {
|
|||||||
font-family: "HelveticaNeueLTPro-Bd", "Helvetica Neue LT Pro Bold", "HelveticaNeueBold", "HelveticaNeue-Bold", "Helvetica Neue Bold", "Helvetica Neue LT Pro", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
font-family: "HelveticaNeueLTPro-Bd", "Helvetica Neue LT Pro Bold", "HelveticaNeueBold", "HelveticaNeue-Bold", "Helvetica Neue Bold", "Helvetica Neue LT Pro", "HelveticaNeue", "Helvetica Neue", Helvetica, Arial, sans-serif;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
font-stretch: normal;
|
font-stretch: normal; /* default value. No font stretching */
|
||||||
line-height: 1em;
|
line-height: 1em;
|
||||||
}
|
}
|
||||||
.brand p {
|
.brand p {
|
||||||
@ -83,6 +105,7 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Search form */
|
/* Search form */
|
||||||
|
|
||||||
.search-bar {
|
.search-bar {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 28px;
|
right: 28px;
|
||||||
@ -94,19 +117,20 @@ body {
|
|||||||
}
|
}
|
||||||
.search-bar form input.text {
|
.search-bar form input.text {
|
||||||
width: 155px;
|
width: 155px;
|
||||||
padding: 5px 34px 5px 10px;
|
padding: 5px 34px 5px 15px;
|
||||||
color: #888;
|
color: #888;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
border: none;
|
border: none;
|
||||||
|
-moz-border-radius: 14px;
|
||||||
border-radius: 14px;
|
border-radius: 14px;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-bar form input.action {
|
.search-bar form input.action { /* positions the search button icon over the top of the search input */
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 5px;
|
||||||
top: -1px;
|
top: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 5px;
|
padding: 5px;
|
||||||
@ -118,14 +142,14 @@ body {
|
|||||||
}
|
}
|
||||||
.search-bar form input.active,
|
.search-bar form input.active,
|
||||||
.search-bar form input.action:hover {
|
.search-bar form input.action:hover {
|
||||||
color: #000
|
color: #000;
|
||||||
}
|
}
|
||||||
.search-bar form input:focus,
|
.search-bar form input:focus,
|
||||||
.header textarea:focus {
|
.header textarea:focus {
|
||||||
outline: none
|
outline: none; /* removes default browser outlining on focus */
|
||||||
}
|
}
|
||||||
.search-dropdown-icon {
|
.search-dropdown-icon {
|
||||||
display: none
|
display: none; /* hides search-dropdown-icon when site is at full width - media queries set it to display:block when at mobile/tablet width */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -133,15 +157,18 @@ body {
|
|||||||
/* NAVIGATION */
|
/* NAVIGATION */
|
||||||
|
|
||||||
/* Primary navigation */
|
/* Primary navigation */
|
||||||
|
|
||||||
.header .primary ul {
|
.header .primary ul {
|
||||||
/*float: right; margin:23px -12px 0 0;*/ position:absolute; bottom:0; right:17px;
|
position:absolute;
|
||||||
|
bottom:0;
|
||||||
|
right:17px; /* positions the main navigation */
|
||||||
}
|
}
|
||||||
.header .primary li {
|
.header .primary li {
|
||||||
float: left;
|
float: left;
|
||||||
padding-bottom: 14px;
|
padding-bottom: 14px;
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
position: relative;
|
position: relative;
|
||||||
white-space: nowrap;
|
white-space: nowrap; /* forces text to never wrap onto a second line */
|
||||||
}
|
}
|
||||||
.header .primary li a {
|
.header .primary li a {
|
||||||
color: #888;
|
color: #888;
|
||||||
@ -152,20 +179,20 @@ body {
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.header .primary li a:hover {
|
.header .primary li a:hover {
|
||||||
color: #fff
|
color: #fff;
|
||||||
}
|
}
|
||||||
.header .primary li.section a,
|
.header .primary li.section a,
|
||||||
.header .primary li.current a {
|
.header .primary li.current a {
|
||||||
color: #fff
|
color: #fff;
|
||||||
}
|
}
|
||||||
.header .primary li.section:after,
|
.header .primary li.section:after,
|
||||||
.header .primary li.current:after {
|
.header .primary li.current:after {
|
||||||
content: '}';
|
content: '}'; /* adds triangle beneath current nav item ('}' is renders as a triangle when WebSymbolsRegular is set as the font) */
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50%;
|
left: 50%;
|
||||||
margin-left: -7px;
|
margin-left: -7px;
|
||||||
bottom: -6px;
|
bottom: -7px;
|
||||||
font-family: 'WebSymbolsRegular';
|
font-family: 'WebSymbolsRegular';
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@ -173,13 +200,13 @@ body {
|
|||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Tablet Navigation */
|
||||||
/* When navigation and logo overlap tablet-nav is initialized */
|
/* When navigation and logo overlap tablet-nav is initialized */
|
||||||
.tablet-nav .brand p {
|
.tablet-nav .brand p {
|
||||||
margin-bottom: 0
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.tablet-nav .header .inner {
|
.tablet-nav .header .inner {
|
||||||
padding-top: 20px
|
padding-top: 20px;
|
||||||
}
|
}
|
||||||
.tablet-nav .header .primary ul {
|
.tablet-nav .header .primary ul {
|
||||||
float: left;
|
float: left;
|
||||||
@ -187,12 +214,12 @@ body {
|
|||||||
position: relative;
|
position: relative;
|
||||||
margin: 20px 0 0 -13px;
|
margin: 20px 0 0 -13px;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
right: auto;
|
right: auto; /* resets the right property value that is set for the desktop site */
|
||||||
}
|
}
|
||||||
.tablet-nav .header .primary ul li {
|
.tablet-nav .header .primary ul li {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
.tablet-nav .header .primary ul li a {
|
.tablet-nav .header .primary ul li a { /* there is no hover on touch devices so no transition on hover is necessary */
|
||||||
-moz-transition: none;
|
-moz-transition: none;
|
||||||
-webkit-transition: none;
|
-webkit-transition: none;
|
||||||
transition: none;
|
transition: none;
|
||||||
@ -211,7 +238,7 @@ body {
|
|||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
.main .secondary {
|
.main .secondary {
|
||||||
border-bottom: 1px solid #e5e5e5
|
border-bottom: 1px solid #e5e5e5;
|
||||||
}
|
}
|
||||||
.main .secondary ul {
|
.main .secondary ul {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
@ -232,14 +259,14 @@ body {
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
left: 2px;
|
left: 2px;
|
||||||
top: 7px;
|
top: 7px;
|
||||||
-moz-transition: 0.2s;
|
-moz-transition: 0.2s; /* this transition moves the arrow from left:2px to left:6px */
|
||||||
-webkit-transition: 0.2s;
|
-webkit-transition: 0.2s;
|
||||||
transition: 0.2s;
|
transition: 0.2s;
|
||||||
}
|
}
|
||||||
.main .secondary li a:hover .arrow {
|
.main .secondary li a:hover .arrow {
|
||||||
left: 6px
|
left: 6px; /* this sets the final position for the arrow transition */
|
||||||
}
|
}
|
||||||
.main .secondary li a {
|
.main .secondary li a { /* side nav link styling */
|
||||||
padding: 10px 0;
|
padding: 10px 0;
|
||||||
display: block;
|
display: block;
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
@ -259,11 +286,11 @@ body {
|
|||||||
}
|
}
|
||||||
.main .secondary li.section,
|
.main .secondary li.section,
|
||||||
.main .secondary li.current {
|
.main .secondary li.current {
|
||||||
background-color: #f1f1f1
|
background-color: #f1f1f1;
|
||||||
}
|
}
|
||||||
.main .secondary li.section a,
|
.main .secondary li.section a,
|
||||||
.main .secondary li.current a {
|
.main .secondary li.current a {
|
||||||
color: #000
|
color: #000;
|
||||||
}
|
}
|
||||||
.main .secondary h3 {
|
.main .secondary h3 {
|
||||||
color: #aaa;
|
color: #aaa;
|
||||||
@ -311,7 +338,7 @@ header:after,
|
|||||||
#Root:after,
|
#Root:after,
|
||||||
.search-bar:after,
|
.search-bar:after,
|
||||||
header .inner:after,
|
header .inner:after,
|
||||||
footer:after {
|
footer:after { /* clearfix */
|
||||||
height: 0;
|
height: 0;
|
||||||
content: ".";
|
content: ".";
|
||||||
display: block;
|
display: block;
|
||||||
@ -320,7 +347,7 @@ footer:after {
|
|||||||
}
|
}
|
||||||
.search-bar form input.action,
|
.search-bar form input.action,
|
||||||
.header .primary li a,
|
.header .primary li a,
|
||||||
.footer a {
|
.footer a { /* adds color transition when links/inputs on hover */
|
||||||
-moz-transition: color 0.2s;
|
-moz-transition: color 0.2s;
|
||||||
-webkit-transition: color 0.2s;
|
-webkit-transition: color 0.2s;
|
||||||
transition: color 0.2s;
|
transition: color 0.2s;
|
||||||
@ -333,58 +360,6 @@ body h1 span.amp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* PAGE SPECIFIC LAYOUT */
|
|
||||||
/* Homepage */
|
|
||||||
|
|
||||||
/* Search Results */
|
|
||||||
.typography .searchResults h1 {
|
|
||||||
margin-bottom: 0;
|
|
||||||
padding-bottom: 0;
|
|
||||||
border-bottom: none;
|
|
||||||
} /* TODO: Test search results styles */
|
|
||||||
.searchResults p.searchQuery {
|
|
||||||
margin-bottom: 10px;
|
|
||||||
font-size: 15px;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
.searchResults ul#SearchResults {
|
|
||||||
padding: 0;
|
|
||||||
margin-left: 0;
|
|
||||||
border-bottom: 1px solid #e5e5e5;
|
|
||||||
}
|
|
||||||
.searchResults ul#SearchResults li {
|
|
||||||
border-top: 1px solid #e5e5e5;
|
|
||||||
padding: 20px 0;
|
|
||||||
list-style-type: none;
|
|
||||||
}
|
|
||||||
.searchResults ul#SearchResults p {
|
|
||||||
margin-bottom: 10px
|
|
||||||
}
|
|
||||||
.searchResults #PageNumbers {
|
|
||||||
border-top: 1px solid #e5e5e5;
|
|
||||||
padding-top: 20px;
|
|
||||||
}
|
|
||||||
.searchResults #PageNumbers a {
|
|
||||||
padding: 0 5px
|
|
||||||
}
|
|
||||||
.searchResults #PageNumbers .pagination {
|
|
||||||
float: left
|
|
||||||
}
|
|
||||||
.searchResults #PageNumbers p {
|
|
||||||
float: right
|
|
||||||
}
|
|
||||||
.searchResults #PageNumbers .next,
|
|
||||||
.searchResults #PageNumbers .prev {
|
|
||||||
font-size: 14px
|
|
||||||
}
|
|
||||||
.searchResults #PageNumbers .next {
|
|
||||||
margin-left: 15px
|
|
||||||
}
|
|
||||||
.searchResults #PageNumbers .prev {
|
|
||||||
margin-right: 15px
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* FOOTER */
|
/* FOOTER */
|
||||||
.footer {
|
.footer {
|
||||||
color: #999;
|
color: #999;
|
||||||
@ -397,7 +372,7 @@ body h1 span.amp {
|
|||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
.footer a:hover {
|
.footer a:hover {
|
||||||
color: #B90000
|
color: #B90000;
|
||||||
}
|
}
|
||||||
.footer .left {
|
.footer .left {
|
||||||
float: left;
|
float: left;
|
||||||
@ -421,21 +396,21 @@ body h1 span.amp {
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
.footer .primary li {
|
.footer .primary li {
|
||||||
display: inline
|
display: inline;
|
||||||
}
|
}
|
||||||
.ie6 .footer .primary li,
|
.ie6 .footer .primary li,
|
||||||
.ie7 .footer .primary li {
|
.ie7 .footer .primary li { /* this is a bugfix for ie6/7 */
|
||||||
display: inline;
|
display: inline;
|
||||||
zoom: 1;
|
zoom: 1;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
.footer .primary li:after {
|
.footer .primary li:after { /* adds '/' to separate the footer navigation items */
|
||||||
padding: 0 3px 0 5px;
|
padding: 0 3px 0 5px;
|
||||||
content: '/';
|
content: '/';
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
.footer .primary li:last-child:after {
|
.footer .primary li:last-child:after {
|
||||||
content: ''
|
content: ''; /* makes sure last nav item doesn't have a '/' following it */
|
||||||
}
|
}
|
||||||
.footer .arrow {
|
.footer .arrow {
|
||||||
padding: 0 8px 0 5px;
|
padding: 0 8px 0 5px;
|
||||||
@ -443,23 +418,82 @@ body h1 span.amp {
|
|||||||
font-size: 13px;
|
font-size: 13px;
|
||||||
}
|
}
|
||||||
.footer .primary .nav-open-button {
|
.footer .primary .nav-open-button {
|
||||||
display: none;
|
display: none; /* the footer includes the primary nav include - this makes sure the nav open close button doesn't show up */
|
||||||
}
|
|
||||||
.footer .primary ul#nav .menu-bubble-arrow {
|
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* PAGE SPECIFIC LAYOUT */
|
||||||
|
|
||||||
|
/* Homepage */
|
||||||
|
/* currently no Hompage specific styles - feel free to add your own */
|
||||||
|
|
||||||
|
/* Search Results */
|
||||||
|
.typography .searchResults h1 {
|
||||||
|
margin-bottom: 0;
|
||||||
|
padding-bottom: 0;
|
||||||
|
border-bottom: none;
|
||||||
|
}
|
||||||
|
.searchResults p.searchQuery {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
font-size: 15px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.searchResults ul#SearchResults {
|
||||||
|
padding: 0;
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
margin:0;
|
||||||
|
}
|
||||||
|
.searchResults ul#SearchResults li {
|
||||||
|
border-top: 1px solid #e5e5e5;
|
||||||
|
padding: 20px 0;
|
||||||
|
list-style-type: none;
|
||||||
|
}
|
||||||
|
.searchResults ul#SearchResults p {
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
|
.searchResults #PageNumbers a {
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
.searchResults #PageNumbers .pagination {
|
||||||
|
border-bottom: 1px solid #e5e5e5;
|
||||||
|
padding: 20px 0;
|
||||||
|
display:table; /* displays the pagination as a table so that elements stay inline and the middle column adjusts its size to accomodate and the right arrow stays to the right */
|
||||||
|
width:100%;
|
||||||
|
}
|
||||||
|
.searchResults #PageNumbers .pagination span{
|
||||||
|
display:table-cell; /* each element in the pagination div displays as a table cell */
|
||||||
|
}
|
||||||
|
.searchResults #PageNumbers p {
|
||||||
|
text-align: center;
|
||||||
|
padding:20px 0;
|
||||||
|
}
|
||||||
|
.searchResults #PageNumbers .next,
|
||||||
|
.searchResults #PageNumbers .prev {
|
||||||
|
font-size: 14px;
|
||||||
|
padding: 0 20px;
|
||||||
|
display:table-cell; /* each element in the pagination div displays as a table cell */
|
||||||
|
vertical-align: middle;
|
||||||
|
border-bottom:0 !important;
|
||||||
|
}
|
||||||
|
.searchResults #PageNumbers .next {
|
||||||
|
margin-left: 15px;
|
||||||
|
}
|
||||||
|
.searchResults #PageNumbers .prev {
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
/* DEVICE & RESPONSIVE LAYOUT */
|
/* DEVICE & RESPONSIVE LAYOUT */
|
||||||
.header .nav-open-button {
|
.header .nav-open-button {
|
||||||
display: none
|
display: none; /* removes the nav toggle button for desktop site */
|
||||||
}
|
}
|
||||||
#media-query-trigger {
|
#media-query-trigger {
|
||||||
|
/* instead of detecting the width of the window in simple/javascript/script.js it detects the visibility of this element (which is set using media queries)
|
||||||
|
instead to trigger the hiding/showing of nav and search in mobile mode */
|
||||||
display: none;
|
display: none;
|
||||||
visibility: hidden;
|
visibility: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* BREAKPOINT 960px */
|
||||||
|
|
||||||
@media only screen and (max-width: 960px) {
|
@media only screen and (max-width: 960px) {
|
||||||
.content img {
|
.content img {
|
||||||
max-width: 97%;
|
max-width: 97%;
|
||||||
@ -467,69 +501,75 @@ body h1 span.amp {
|
|||||||
}
|
}
|
||||||
.header .primary ul {
|
.header .primary ul {
|
||||||
margin-left: -12px;
|
margin-left: -12px;
|
||||||
-webkit-padding-start: 0px;
|
-webkit-padding-start: 0px; /* removes default webkit padding on ul items */
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* BREAKPOINT 640px */
|
||||||
|
|
||||||
/* when changing the breakpoint below, change it ito the same value in the script.js file as well */
|
/* when changing the breakpoint below, change it ito the same value in the script.js file as well */
|
||||||
@media only screen and (max-width: 640px) {
|
@media only screen and (max-width: 640px) {
|
||||||
body {
|
body {
|
||||||
max-width: 640px
|
max-width: 640px;
|
||||||
}
|
}
|
||||||
#media-query-trigger {
|
#media-query-trigger {
|
||||||
visibility: visible
|
visibility: visible;
|
||||||
}
|
}
|
||||||
.brand {
|
|
||||||
|
/* Navigation*/
|
||||||
|
|
||||||
|
.tablet-nav .header .brand {
|
||||||
float: none;
|
float: none;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 22px;
|
margin-left: 22px;
|
||||||
margin-bottom: 22px;
|
margin-bottom: 22px;
|
||||||
}
|
}
|
||||||
.brand h1 {
|
.brand h1 {
|
||||||
font-size: 40px
|
font-size: 40px;
|
||||||
}
|
}
|
||||||
.brand h1 {
|
.brand h1 {
|
||||||
padding-right: 80px
|
padding-right: 100px; /* padding stops .brand text from overlapping the search and nav buttons */
|
||||||
}
|
}
|
||||||
.header {
|
.tablet-nav .header {
|
||||||
padding: 0px
|
padding: 0px;
|
||||||
}
|
}
|
||||||
.header .inner {
|
.tablet-nav .header .inner {
|
||||||
padding: 20px 0 0 0;
|
padding: 20px 0 0 0;
|
||||||
min-height: 0;
|
min-height: 0;
|
||||||
}
|
}
|
||||||
.header .primary .nav-open-button {
|
.tablet-nav .header .primary .nav-open-button { /* styling and positioning of the nav toggle button */
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 20px;
|
right: 20px;
|
||||||
top: 32px;
|
top: 35px;
|
||||||
display: block;
|
display: block;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-family: 'WebSymbolsRegular';
|
font-family: 'WebSymbolsRegular';
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
color: #ededed;
|
color: #ededed;
|
||||||
}
|
}
|
||||||
.header .primary ul {
|
.tablet-nav .header .primary ul {
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: none;
|
display: none; /* initially hiding the navigation */
|
||||||
float: left;
|
float: left;
|
||||||
margin: 0 !important;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
white-space: normal;
|
white-space: normal;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.header .primary ul li {
|
.tablet-nav .header .primary ul li {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin: 0 !important;
|
margin: 0;
|
||||||
float: none;
|
padding: 0;
|
||||||
|
float: none; /* displays list items vertically */
|
||||||
background: none;
|
background: none;
|
||||||
position: relative;
|
position: relative;
|
||||||
text-shadow: 0 1px #fff;
|
text-shadow: 0 1px #fff;
|
||||||
}
|
}
|
||||||
.header .primary ul li:after {
|
.tablet-nav .header .primary ul li:after { /* creates the arrow for the primary nav links */
|
||||||
content: '\003e';
|
content: '\003e';
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -542,39 +582,42 @@ body h1 span.amp {
|
|||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
}
|
}
|
||||||
.header .primary ul li a,
|
.tablet-nav .header .primary ul li a,
|
||||||
.header .primary ul li.current a,
|
.tablet-nav .header .primary ul li.current a,
|
||||||
.header .primary ul li.section a {
|
.tablet-nav .header .primary ul li.section a { /* styling the top level nav links */
|
||||||
padding: 10px 0 10px 22px;
|
padding: 10px 0 10px 22px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
border-bottom: 1px solid #bbb;
|
border-bottom: 1px solid #bbb;
|
||||||
color: #434343;
|
color: #434343;
|
||||||
border-radius: 0 !important;
|
background: #e7e7e7;
|
||||||
background: #e7e7e7 !important;
|
|
||||||
}
|
}
|
||||||
.header .primary ul li a:hover {
|
.tablet-nav .header .primary ul li.current a,
|
||||||
color: inherit
|
.tablet-nav .header .primary ul li.section a {
|
||||||
|
background: #CCCCCC; /* makes background on current top level page slightly darker */
|
||||||
}
|
}
|
||||||
.header .primary li.section:after,
|
.tablet-nav .header .primary ul li a:hover {
|
||||||
.header .primary li.current:after {
|
color: inherit;
|
||||||
display: none;
|
|
||||||
}
|
}
|
||||||
.tablet-nav .header nav.primary ul li {
|
.tablet-nav .header .primary li.section:after,
|
||||||
|
.tablet-nav .header .primary li.current:after {
|
||||||
|
display: none; /* hides the link arrow on current top level page */
|
||||||
|
}
|
||||||
|
.tablet-nav .tablet-nav .header nav.primary ul li {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Search Form */
|
/* Search Form */
|
||||||
.search-bar {
|
.search-bar { /* adds new styling to mobile search bar */
|
||||||
width: 100%;
|
width: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 0;
|
top: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
display: none;
|
display: none; /* hides searchbar initially */
|
||||||
padding: 20px 0;
|
padding: 20px 0;
|
||||||
margin: 80px 0 0;
|
margin: 0;
|
||||||
background-color: #E7E7E7;
|
background-color: #E7E7E7;
|
||||||
}
|
}
|
||||||
.search-dropdown-icon {
|
.search-dropdown-icon { /* styling for search toggle button */
|
||||||
display: block;
|
display: block;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
width: 20px;
|
width: 20px;
|
||||||
@ -599,11 +642,12 @@ body h1 span.amp {
|
|||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.search-bar div.field {
|
.search-bar div.field {
|
||||||
margin-bottom: 0
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
.search-bar form input.text {
|
.search-bar form input.text {
|
||||||
width: 93%;
|
width: 89%; /* makes search input full width - allowing for space either side */
|
||||||
padding: 8px 7% 8px 0;
|
max-width: 89%;
|
||||||
|
padding: 8px 10% 8px 1%;
|
||||||
text-indent: 15px;
|
text-indent: 15px;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
@ -612,22 +656,24 @@ body h1 span.amp {
|
|||||||
border: 1px solid #e5e5e5;
|
border: 1px solid #e5e5e5;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
|
-moz-border-radius: 20px; /* increase border radius due to increased padding */
|
||||||
|
border-radius: 20px;
|
||||||
}
|
}
|
||||||
.search-bar form input.action {
|
.search-bar form input.action {
|
||||||
right: 24px;
|
right: 5%;
|
||||||
top: 2px;
|
top: 2px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Main Content */
|
/* Main Content */
|
||||||
.main {
|
.main {
|
||||||
padding: 20px 0 45px;
|
padding: 20px 0 45px; /* decrease padding so that more content can fit on screen */
|
||||||
}
|
}
|
||||||
.content-container,
|
.content-container,
|
||||||
aside {
|
aside {
|
||||||
width: 100%
|
width: 100%; /* sidenav is now shown above the page content */
|
||||||
}
|
}
|
||||||
.typography h1 {
|
.typography h1 { /* decrease size of page heading due to smaller screen */
|
||||||
font-size: 30px;
|
font-size: 30px;
|
||||||
line-height:35px;
|
line-height:35px;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
@ -642,14 +688,14 @@ body h1 span.amp {
|
|||||||
line-height: 27px;
|
line-height: 27px;
|
||||||
}
|
}
|
||||||
.main .inner {
|
.main .inner {
|
||||||
padding: 0 22px
|
padding: 0 22px;
|
||||||
}
|
}
|
||||||
/* Secondry Nav */
|
/* Secondry Nav */
|
||||||
.secondary li a {
|
.secondary li a {
|
||||||
line-height: 24px
|
line-height: 24px;
|
||||||
}
|
}
|
||||||
.secondary li .arrow {
|
.secondary li .arrow {
|
||||||
line-height: 26px
|
line-height: 26px;
|
||||||
}
|
}
|
||||||
/* Footer */
|
/* Footer */
|
||||||
.footer .right {
|
.footer .right {
|
||||||
@ -658,6 +704,8 @@ body h1 span.amp {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Print Styles */
|
||||||
|
|
||||||
/* Based on HTML5 boilerplate print styles */
|
/* Based on HTML5 boilerplate print styles */
|
||||||
@media print {
|
@media print {
|
||||||
* {
|
* {
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
/* This reset is loosely derived from HTML5 boilerplate
|
/* This reset is loosely derived from HTML5 boilerplate
|
||||||
for more information visit http://html5boilerplate.com/ */
|
for more information visit http://html5boilerplate.com/ */
|
||||||
|
|
||||||
|
/* Every browser has its own default ‘user agent’ stylesheet, that it uses to make unstyled websites appear more legible.
|
||||||
|
Using a CSS Reset, CSS authors can force every browser to have all its styles reset to null, thus avoiding cross-browser differences as much as possible.
|
||||||
|
From the consistent base that you’ve set up via your reset, you can then go on to re-style your document,
|
||||||
|
safe in the knowledge that the browsers’ differences in their default rendering of HTML can’t touch you! */
|
||||||
|
|
||||||
html, body, div, span, object, iframe,
|
html, body, div, span, object, iframe,
|
||||||
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
||||||
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
|
abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp,
|
||||||
|
@ -16,6 +16,9 @@
|
|||||||
|
|
||||||
/* TEMPLATE CUSTOM FONTS */
|
/* TEMPLATE CUSTOM FONTS */
|
||||||
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on February 20, 2012 06:04:25 AM America/New_York */
|
/* Generated by Font Squirrel (http://www.fontsquirrel.com) on February 20, 2012 06:04:25 AM America/New_York */
|
||||||
|
|
||||||
|
/* add your own custom fonts here */
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'CamboRegular';
|
font-family: 'CamboRegular';
|
||||||
src: url('../webfonts/Cambo-Regular-webfont.eot');
|
src: url('../webfonts/Cambo-Regular-webfont.eot');
|
||||||
@ -33,15 +36,17 @@
|
|||||||
|
|
||||||
|
|
||||||
/* BASE TYPOGRPHY */
|
/* BASE TYPOGRPHY */
|
||||||
|
|
||||||
|
/* These are the default styles for the Simple theme */
|
||||||
body {
|
body {
|
||||||
font-size: 13px;
|
font-size: 13px; /* This overrides the browsers default font size */
|
||||||
line-height: 20px;
|
line-height: 20px; /* If you change the font-size make sure you change the line-height value as well - the usual ratio is around 1.5 (font-size x 1.5 = line-height) */
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
}
|
}
|
||||||
body a { text-decoration: none; }
|
body a { text-decoration: none; } /* this removes the underline from all links */
|
||||||
body a:link { -webkit-tap-highlight-color: #b80000 }
|
body a:link { -webkit-tap-highlight-color: #b80000 } /* this sets the highlight color when links are tapped on Safari (browser) on iPhone */
|
||||||
|
|
||||||
|
|
||||||
/* HEADERS */
|
/* HEADERS */
|
||||||
@ -51,12 +56,13 @@ body {
|
|||||||
.typography h4,
|
.typography h4,
|
||||||
.typography h5,
|
.typography h5,
|
||||||
.typography h6 {
|
.typography h6 {
|
||||||
font-family: "CamboRegular", Georgia, "Times New Roman", Times, serif;
|
font-family: "CamboRegular", Georgia, "Times New Roman", Times, serif; /* This references one of the custom @font-face fonts - the other fonts that are referenced are fallbacks for browsers that don't support @fontface */
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
color: #444;
|
color: #444;
|
||||||
}
|
}
|
||||||
.typography h1 { font-size: 36px;
|
.typography h1 {
|
||||||
|
font-size: 36px;
|
||||||
line-height: 45px;
|
line-height: 45px;
|
||||||
margin: 0 0 25px 0;
|
margin: 0 0 25px 0;
|
||||||
border-bottom: 1px solid #e5e5e5;
|
border-bottom: 1px solid #e5e5e5;
|
||||||
@ -78,17 +84,13 @@ body {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
.typography em { font-style: italic; }
|
.typography em { font-style: italic; }
|
||||||
::-moz-selection {
|
|
||||||
background: #b80000;
|
|
||||||
color: #fff;
|
|
||||||
text-shadow: none;
|
|
||||||
}
|
|
||||||
::selection {
|
|
||||||
background: #b80000;
|
|
||||||
color: #fff;
|
|
||||||
text-shadow: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
::selection,
|
||||||
|
::-moz-selection { /* Applies style to highlighted portion of a page */
|
||||||
|
background: #b80000;
|
||||||
|
color: #fff;
|
||||||
|
text-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* LINKS */
|
/* LINKS */
|
||||||
.typography a,
|
.typography a,
|
||||||
@ -108,16 +110,16 @@ body {
|
|||||||
.typography ul,
|
.typography ul,
|
||||||
.typography ol,
|
.typography ol,
|
||||||
.typography dl { margin: 0 0 20px 25px; }
|
.typography dl { margin: 0 0 20px 25px; }
|
||||||
.typography ul li { list-style-type: disc; }
|
.typography ul li { list-style-type: disc; } /* adds disc style bullet to the list */
|
||||||
.typography li { margin-bottom: 5px; }
|
.typography li { margin-bottom: 5px; }
|
||||||
|
|
||||||
|
|
||||||
/* TABLE STYLES
|
/* TABLE STYLES
|
||||||
-------------------------------------------- */
|
-------------------------------------------- */
|
||||||
.typography table {
|
.typography table {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse; /* borders are collapsed into a single border when possible */
|
||||||
border: 1px solid #d4d4d4;
|
border: 1px solid #d4d4d4;
|
||||||
border-spacing: 0;
|
border-spacing: 0; /* The border-spacing property sets the distance between the borders of adjacent cells - acts as a backup to border-collapse: collapse */
|
||||||
margin: 0 0 10px;
|
margin: 0 0 10px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
@ -157,7 +159,7 @@ body {
|
|||||||
-------------------------------------------- */
|
-------------------------------------------- */
|
||||||
.typography img {
|
.typography img {
|
||||||
border: 5px solid #d7d7d7;
|
border: 5px solid #d7d7d7;
|
||||||
height: auto;
|
height: auto; /* resets the image height so that it maintains its aspect ratio when width is set */
|
||||||
background: transparent url(../images/ajax-loader.gif) no-repeat center center;
|
background: transparent url(../images/ajax-loader.gif) no-repeat center center;
|
||||||
}
|
}
|
||||||
.typography img.left {
|
.typography img.left {
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
<%--Include SidebarMenu recursively --%>
|
<%--Include SidebarMenu recursively --%>
|
||||||
<% if $Children %>
|
<% if LinkOrSection = section %>
|
||||||
|
<% if $Children %>
|
||||||
<% loop $Children %>
|
<% loop $Children %>
|
||||||
<li class="$LinkingMode">
|
<li class="$LinkingMode">
|
||||||
<a href="$Link" class="$LinkingMode" title="Go to the $Title.XML page">
|
<a href="$Link" class="$LinkingMode" title="Go to the $Title.XML page">
|
||||||
@ -15,4 +16,5 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
<% end_loop %>
|
<% end_loop %>
|
||||||
|
<% end_if %>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
|
Loading…
Reference in New Issue
Block a user