2012-10-04 06:15:59 +02:00
/ * * ----------------------------------------------------------
*
2012-11-19 22:10:22 +01:00
* Contains the main layout of the page and the individual styles .
2012-10-04 06:15:59 +02:00
* Acts as the main stylesheet for theme .
*
2012-11-19 22:10:22 +01:00
* Include your notes or table of contents below . . . .
2012-10-04 06:15:59 +02:00
* Include color hex ' s or values of your grid
*
2012-11-20 03:27:34 +01:00
* 1 . OOCSS GRID
* 2 . MAIN LAYOUT
* 3 . HEADER
2012-11-19 22:10:22 +01:00
* - Brand
* - Search Form
2012-11-20 03:27:34 +01:00
* 4 . Navigation
2012-11-19 22:10:22 +01:00
* - Primary Navigation
* - tablet Navigation
* - Secondary Navigation
* - Secondary Nav 2-5 Levels deep
2012-11-20 03:27:34 +01:00
* 5 . Mixed
* 6 . Footer
* 7 . Page Specific Layout
2012-11-19 22:10:22 +01:00
* - Homepage
* - Search Results
2012-11-20 03:27:34 +01:00
* 8 . Device and Responsive Layout
2012-11-19 22:10:22 +01:00
* - Breakpoint 960px
* - Breakpoint 640px
* - Search Form
* - Main Content
2012-11-20 03:27:34 +01:00
* 9 . Print Styles
2012-11-19 22:10:22 +01:00
* - Simple Theme custom print styles
*
2012-10-04 06:15:59 +02:00
* @ author Your Name < email @ silverstripe . com >
* ------------------------------------------------------- * /
2012-11-20 03:27:34 +01:00
/ * OOCSS Grid
* https : / / github . com / stubbornella / oocss / wiki / grids
* /
. line , /* line - Groups units on one horizontal line. Note: for mobile layout units may be stacked to avoid horizontal scrolling. */
. lastUnit {
overflow : hidden ;
* overflow : visible ;
* zoom : 1 ;
padding : 0 10px ;
}
. unit { /* unit - Base class which divides a line into sections (columns). */
float : left ;
padding : 0 10px ;
-moz-box-sizing : border-box ;
-webkit-box-sizing : border-box ;
box-sizing : border-box ; / * box-sizing : border-box ; creates a box-model where
padding and border are NOT added onto the width - they are included in the width ,
so a 200px wide element with 20px padding will be 200px , NOT 240px wide * /
}
. unitRightv { /* Use this class if you want to offset a column eg: |--content(.unit)--|--content(.unit)--|--no-content--|--no-content--|--content(.unitRighttv)--| */
float : right ;
}
/ * sizeXofY - Extends unit . Indicates the fractional width of the unit , for example size3of4 would take up three quarters , or 75 % , of the horizontal space .
The following fractions are supported : 1 , 1 / 2 , 1 / 3 , 2 / 3 , 1 / 4 , 3 / 4 , 1 / 5 , 2 / 5 , 3 / 5 , 4 / 5 * /
/* It is possible to add more columns if you wish you will just have to add the fractions that are missing eg: .size1of6 {width:16.66666%;} */
. size1of1 {
float : none ;
}
. size1of2 {
width : 50 % ;
}
. size1of3 {
width : 33 . 33333 % ;
}
. size2of3 {
width : 66 . 66666 % ;
}
. size1of4 {
width : 25 % ;
}
. size3of4 {
width : 75 % ;
}
. size1of5 {
width : 20 % ;
}
. size2of5 {
width : 40 % ;
}
. size3of5 {
width : 60 % ;
}
. size4of5 {
width : 80 % ;
}
. lastUnit { /* lastUnit - Extends unit. Applied to the last child of every line. */
float : none ;
width : auto ;
_position : relative ; / * Bug fix for IE6 - Internet Explorer 6 and below wouldn ' t fail on properties that were prefixed with non-alphanumeric characters .
meaning that anything prefixed with _ wouldn ' t be picked up by any other browsers * /
_left : -3px ;
_margin-right : -3px ;
}
2012-10-04 06:15:59 +02:00
/* MAIN LAYOUT */
2012-06-15 19:16:49 +02:00
body {
margin : 0 ;
background : # ededed ;
2012-11-19 22:10:22 +01:00
min-width : 240px ;
-webkit-text-size-adjust : none ; /* The text size is not adjusted for Safari on iPhone */
2012-06-15 19:16:49 +02:00
}
2012-10-04 06:15:59 +02:00
. ie7 body ,
. ie8 body {
2012-11-19 22:10:22 +01:00
min-width : 860px ; /* media queries are not supported in ie7/8 without a polyfill */
2012-10-04 06:15:59 +02:00
}
. main {
background : # fff ;
padding : 40px 0 60px ;
min-height : 300px ;
}
. inner {
max-width : 1100px ;
margin : 0 auto ;
padding : 0 30px ;
}
. ie6 . inner {
2012-11-19 22:10:22 +01:00
width : 960px ;
2012-10-04 06:15:59 +02:00
}
. no-sidebar . content-container {
float : left ;
2012-11-19 22:10:22 +01:00
width : 100 % ; /* makes content container full width when there is no sidebar */
2012-10-04 06:15:59 +02:00
}
2012-11-20 03:27:34 +01:00
. sidebar { /* this is the sidebar element */
2012-10-05 07:37:18 +02:00
margin-top : 12px ;
2012-10-04 06:15:59 +02:00
}
2012-11-20 03:27:34 +01:00
. no-sidebar . sidebar {
2012-10-05 07:37:18 +02:00
display : none ;
2012-10-04 06:15:59 +02:00
}
2012-07-09 11:22:11 +02:00
2012-10-04 06:15:59 +02:00
/* HEADER */
. header {
2012-11-19 22:10:22 +01:00
background : # 161616 ;
2012-06-15 19:16:49 +02:00
}
2012-10-04 06:15:59 +02:00
. header . inner {
padding-top : 45px ;
position : relative ;
min-height : 72px ;
}
/* Brand */
2012-10-08 06:02:34 +02:00
header . brand , header . brand : hover {
2012-10-04 06:15:59 +02:00
float : left ;
2012-06-15 19:16:49 +02:00
color : # fff ;
2012-10-04 06:15:59 +02:00
display : inline-block ;
2012-06-15 19:16:49 +02:00
}
2012-10-04 06:15:59 +02:00
. brand h1 {
margin : 0 ;
padding : 0 ;
font-size : 48px ;
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 ;
font-weight : 600 ;
2012-11-19 22:10:22 +01:00
font-stretch : normal ; /* default value. No font stretching */
2012-10-04 06:15:59 +02:00
line-height : 1em ;
}
. brand p {
color : # 888 ;
margin-bottom : 22px ;
}
2012-10-08 06:02:34 +02:00
/* Search form */
2012-11-19 22:10:22 +01:00
2012-10-04 06:15:59 +02:00
. search-bar {
2013-05-30 10:36:07 +02:00
position : absolute ;
right : 13px ;
top : 12px ;
2012-06-15 19:16:49 +02:00
}
2013-05-30 10:36:07 +02:00
. search-bar . field {
2012-10-08 06:02:34 +02:00
margin : 0 ;
padding : 0 ;
2012-10-04 06:15:59 +02:00
}
. search-bar form input . text {
width : 155px ;
2012-11-19 22:10:22 +01:00
padding : 5px 34px 5px 15px ;
2012-10-04 06:15:59 +02:00
color : # 888 ;
margin : 0 ;
border : none ;
2012-11-19 22:10:22 +01:00
-moz-border-radius : 14px ;
2012-10-08 06:02:34 +02:00
border-radius : 14px ;
2012-10-04 06:15:59 +02:00
background : # fff ;
}
2012-10-08 06:02:34 +02:00
2012-11-19 22:10:22 +01:00
. search-bar form input . action { /* positions the search button icon over the top of the search input */
2012-10-08 06:02:34 +02:00
font-size : 14px ;
2012-10-04 06:15:59 +02:00
position : absolute ;
2012-11-19 22:10:22 +01:00
right : 5px ;
top : 0 ;
2012-10-04 06:15:59 +02:00
cursor : pointer ;
border : none ;
padding : 5px ;
background : none ;
font-family : 'WebSymbolsRegular' ;
color : # 848484 ;
2012-10-08 06:02:34 +02:00
border-radius : 0 ;
margin : 0 ;
2012-10-04 06:15:59 +02:00
}
2012-10-08 06:02:34 +02:00
. search-bar form input . active ,
2012-10-04 06:15:59 +02:00
. search-bar form input . action : hover {
2012-11-19 22:10:22 +01:00
color : # 000 ;
2012-10-04 06:15:59 +02:00
}
. search-bar form input : focus ,
. header textarea : focus {
2012-11-19 22:10:22 +01:00
outline : none ; /* removes default browser outlining on focus */
2012-10-04 06:15:59 +02:00
}
. search-dropdown-icon {
2012-11-19 22:10:22 +01:00
display : none ; /* hides search-dropdown-icon when site is at full width - media queries set it to display:block when at mobile/tablet width */
2012-10-04 06:15:59 +02:00
}
2012-07-06 05:24:53 +02:00
2012-10-08 06:02:34 +02:00
2012-10-04 06:15:59 +02:00
/* NAVIGATION */
/* Primary navigation */
2013-01-22 23:56:46 +01:00
. header . inner . unit {
position : relative ; /* used to position the main navigation */
}
2012-10-04 06:15:59 +02:00
. header . primary ul {
2012-11-19 22:10:22 +01:00
position : absolute ;
bottom : 0 ;
2013-01-22 23:56:46 +01:00
right : 0 ; /* positions the main navigation */
2012-10-04 06:15:59 +02:00
}
. header . primary li {
float : left ;
2012-10-08 06:02:34 +02:00
padding-bottom : 14px ;
2012-10-04 06:15:59 +02:00
margin : 0 5px ;
position : relative ;
2012-11-19 22:10:22 +01:00
white-space : nowrap ; /* forces text to never wrap onto a second line */
2012-10-04 06:15:59 +02:00
}
2012-06-15 19:16:49 +02:00
. header . primary li a {
color : # 888 ;
font-size : 15px ;
font-family : Helvetica , Arial , sans-serif ;
padding : 6px 8px ;
font-weight : bold ;
display : block ;
}
. header . primary li a : hover {
2012-11-19 22:10:22 +01:00
color : # fff ;
2012-06-15 19:16:49 +02:00
}
2012-10-04 06:15:59 +02:00
. header . primary li . section a ,
. header . primary li . current a {
2012-11-19 22:10:22 +01:00
color : # fff ;
2012-06-15 19:16:49 +02:00
}
2012-10-04 06:15:59 +02:00
. header . primary li . section : after ,
. header . primary li . current : after {
2012-11-19 22:10:22 +01:00
content : '}' ; /* adds triangle beneath current nav item ('}' is renders as a triangle when WebSymbolsRegular is set as the font) */
2012-10-04 06:15:59 +02:00
display : block ;
position : absolute ;
left : 50 % ;
margin-left : -7px ;
2012-11-19 22:10:22 +01:00
bottom : -7px ;
2012-10-04 06:15:59 +02:00
font-family : 'WebSymbolsRegular' ;
font-size : 30px ;
color : # fff ;
text-align : center ;
line-height : 20px ;
2012-06-15 19:16:49 +02:00
}
2012-10-04 06:15:59 +02:00
2012-11-19 22:10:22 +01:00
/* Tablet Navigation */
2012-10-04 06:15:59 +02:00
/* When navigation and logo overlap tablet-nav is initialized */
. tablet-nav . brand p {
2012-11-19 22:10:22 +01:00
margin-bottom : 0 ;
2012-06-15 19:16:49 +02:00
}
2012-10-04 06:15:59 +02:00
. tablet-nav . header . inner {
2012-11-19 22:10:22 +01:00
padding-top : 20px ;
2012-10-04 06:15:59 +02:00
}
. tablet-nav . header . primary ul {
float : left ;
clear : both ;
2012-06-15 19:16:49 +02:00
position : relative ;
2012-10-08 06:02:34 +02:00
margin : 20px 0 0 -13px ;
2012-10-04 06:15:59 +02:00
white-space : nowrap ;
2012-11-19 22:10:22 +01:00
right : auto ; /* resets the right property value that is set for the desktop site */
2012-06-15 19:16:49 +02:00
}
2012-10-04 06:15:59 +02:00
. tablet-nav . header . primary ul li {
white-space : nowrap ;
}
2012-11-19 22:10:22 +01:00
. tablet-nav . header . primary ul li a { /* there is no hover on touch devices so no transition on hover is necessary */
2012-10-04 06:15:59 +02:00
-moz-transition : none ;
-webkit-transition : none ;
transition : none ;
}
. tablet-nav . footer . right {
float : left ;
2012-06-15 19:16:49 +02:00
width : 100 % ;
}
2012-10-04 06:15:59 +02:00
/* Secondary navigation */
2012-10-05 07:37:18 +02:00
. main . secondary h3 {
2012-10-04 06:15:59 +02:00
font-size : 20px ;
2013-01-22 22:37:49 +01:00
color : # AAA ;
2012-10-05 07:37:18 +02:00
margin : 0 0 8px 0 ;
2012-10-04 06:15:59 +02:00
font-family : "CamboRegular" , Georgia , "Times New Roman" , Times , serif ;
font-weight : normal ;
2012-06-15 19:16:49 +02:00
}
2012-10-05 07:37:18 +02:00
. main . secondary {
2012-11-19 22:10:22 +01:00
border-bottom : 1px solid # e5e5e5 ;
2012-06-15 19:16:49 +02:00
}
2012-10-05 07:37:18 +02:00
. main . secondary ul {
2012-10-04 06:15:59 +02:00
padding : 0 ;
margin : 0 ;
2012-06-15 19:16:49 +02:00
}
2012-10-05 07:37:18 +02:00
. main . secondary li {
2012-10-04 06:15:59 +02:00
border-top : 1px solid # e5e5e5 ;
position : relative ;
list-style-type : none ;
2012-10-05 07:37:18 +02:00
margin-bottom : 0 ;
2012-10-04 06:15:59 +02:00
}
2012-11-19 22:10:22 +01:00
. main . secondary li . arrow {
2012-10-04 06:15:59 +02:00
color : # b80000 ;
padding-right : 5px ;
display : block ;
font-size : 15px ;
line-height : 20px ;
position : absolute ;
left : 2px ;
2012-10-05 07:37:18 +02:00
top : 7px ;
2012-11-19 22:10:22 +01:00
-moz-transition : 0 . 2s ; /* this transition moves the arrow from left:2px to left:6px */
2012-10-04 06:15:59 +02:00
-webkit-transition : 0 . 2s ;
transition : 0 . 2s ;
}
2012-10-08 06:02:34 +02:00
. main . secondary li a : hover . arrow {
2012-11-19 22:10:22 +01:00
left : 6px ; /* this sets the final position for the arrow transition */
2012-10-04 06:15:59 +02:00
}
2012-11-19 22:10:22 +01:00
. main . secondary li a { /* side nav link styling */
2012-10-05 07:37:18 +02:00
padding : 10px 0 ;
2012-10-04 06:15:59 +02:00
display : block ;
text-transform : uppercase ;
letter-spacing : 2px ;
font-size : 11px ;
color : # 333 ;
line-height : 17px ;
2012-10-05 07:37:18 +02:00
border-bottom : none ;
2012-10-04 06:15:59 +02:00
font-family : 'Lucida Sans' , 'Lucida Grande' , Arial , Helvetica , sans-serif ;
}
2012-10-05 07:37:18 +02:00
. main . secondary li . text {
2012-10-04 06:15:59 +02:00
padding-left : 28px ;
display : block ;
}
2012-10-08 06:02:34 +02:00
. main . secondary li . current a . current {
color : # b80000 ;
2013-01-22 22:37:49 +01:00
background-color : # EDEDED ;
2012-10-08 06:02:34 +02:00
}
2012-10-05 07:37:18 +02:00
. main . secondary li . section ,
. main . secondary li . current {
2013-01-22 22:37:49 +01:00
background-color : # F3F3F3 ;
2012-10-04 06:15:59 +02:00
}
2012-10-05 07:37:18 +02:00
. main . secondary li . section a ,
. main . secondary li . current a {
2012-11-19 22:10:22 +01:00
color : # 000 ;
2012-10-04 06:15:59 +02:00
}
2013-01-22 22:37:49 +01:00
2012-07-06 05:24:53 +02:00
2012-10-08 06:02:34 +02:00
/* Secondary navigation 2-5 levels deep */
2012-11-19 22:10:22 +01:00
. main . secondary ul ul {
2012-10-08 06:02:34 +02:00
display : none ;
}
. secondary ul li . current ul ,
2012-11-19 22:10:22 +01:00
. secondary ul li . section ul { /* Only show child pages from selected parent */
2012-10-08 06:02:34 +02:00
display : block ;
}
2012-11-19 22:10:22 +01:00
. secondary li . current ul ul {
2012-10-08 06:02:34 +02:00
display : none ;
}
2012-11-19 22:10:22 +01:00
. main . secondary ul ul li a { padding-left : 10 px ; } /* Indent all sidebar navigation levels*/
2012-10-08 06:02:34 +02:00
. main . secondary ul ul li a . arrow { left : 12 px ; }
. main . secondary ul ul li a : hover . arrow { left : 16 px ; }
. main . secondary ul ul ul li a { padding-left : 20 px ; }
. main . secondary ul ul ul li a . arrow { left : 22 px ; }
. main . secondary ul ul ul li a : hover . arrow { left : 26 px ; }
. main . secondary ul ul ul ul li a { padding-left : 30 px ; }
. main . secondary ul ul ul ul li a . arrow { left : 32 px ; }
. main . secondary ul ul ul ul li a : hover . arrow { left : 36 px ; }
. main . secondary ul ul ul ul ul li a { padding-left : 40 px ; }
. main . secondary ul ul ul ul ul li a . arrow { left : 32 px ; }
. main . secondary ul ul ul ul ul li a : hover . arrow { left : 36 px ; }
. main . secondary li a : hover ,
. main . secondary li . section a : hover ,
. main . secondary li . current a : hover {
color : # b80000 ;
}
2012-07-06 05:24:53 +02:00
2012-10-04 06:15:59 +02:00
/* MIXED */
header : after ,
. main : after ,
# Root : after ,
. search-bar : after ,
header . inner : after ,
2012-11-19 22:10:22 +01:00
footer : after { /* clearfix */
2012-10-04 06:15:59 +02:00
height : 0 ;
content : "." ;
display : block ;
clear : both ;
visibility : hidden ;
2012-06-15 19:16:49 +02:00
}
2012-10-04 06:15:59 +02:00
. search-bar form input . action ,
. header . primary li a ,
2012-11-19 22:10:22 +01:00
. footer a { /* adds color transition when links/inputs on hover */
2012-10-04 06:15:59 +02:00
-moz-transition : color 0 . 2s ;
-webkit-transition : color 0 . 2s ;
transition : color 0 . 2s ;
2012-06-15 19:16:49 +02:00
}
2012-10-08 06:02:34 +02:00
. footer a . brand { color : #333 ; margin-left : 0 ; }
. footer a . brand : hover { color : #B80000 ; }
2012-10-04 06:15:59 +02:00
body h1 span . amp {
font-family : Baskerville , "Goudy Old Style" , "Palatino" , "Book Antiqua" , Georgia ;
font-style : italic ;
2012-06-15 19:16:49 +02:00
}
2012-10-04 06:15:59 +02:00
/* FOOTER */
2012-06-15 19:16:49 +02:00
. footer {
color : # 999 ;
background : # ededed ;
padding : 20px 0 ;
font-size : 11px ;
line-height : 22px ;
}
. footer a {
2012-10-08 06:02:34 +02:00
color : # 999 ;
2012-06-15 19:16:49 +02:00
}
. footer a : hover {
2012-11-19 22:10:22 +01:00
color : # B90000 ;
2012-06-15 19:16:49 +02:00
}
. footer . left {
float : left ;
color : # 000 ;
display : block ;
margin-bottom : 10px ;
}
. footer . right {
float : right ;
display : block ;
margin-bottom : 10px ;
}
. footer span {
padding : 0 3px ;
color : # bbb ;
}
. footer . primary ,
. footer . primary ul {
display : inline ;
margin : 0 ;
padding : 0 ;
}
. footer . primary li {
2012-11-19 22:10:22 +01:00
display : inline ;
2012-06-15 19:16:49 +02:00
}
2012-10-04 06:15:59 +02:00
. ie6 . footer . primary li ,
2012-11-19 22:10:22 +01:00
. ie7 . footer . primary li { /* this is a bugfix for ie6/7 */
2012-10-04 06:15:59 +02:00
display : inline ;
zoom : 1 ;
margin-right : 10px ;
}
2012-11-19 22:10:22 +01:00
. footer . primary li : after { /* adds '/' to separate the footer navigation items */
2012-10-04 06:15:59 +02:00
padding : 0 3px 0 5px ;
content : '/' ;
color : # 999 ;
}
. footer . primary li : last-child : after {
2012-11-19 22:10:22 +01:00
content : '' ; /* makes sure last nav item doesn't have a '/' following it */
2012-10-04 06:15:59 +02:00
}
. footer . arrow {
padding : 0 8px 0 5px ;
color : # b80000 ;
font-size : 13px ;
}
. footer . primary . nav-open-button {
2012-11-19 22:10:22 +01:00
display : none ; /* the footer includes the primary nav include - this makes sure the nav open close button doesn't show up */
2012-10-04 06:15:59 +02:00
}
2012-11-19 22:10:22 +01:00
/* PAGE SPECIFIC LAYOUT */
/* Homepage */
/* currently no Hompage specific styles - feel free to add your own */
2012-10-04 06:15:59 +02:00
2012-11-19 22:10:22 +01:00
/* 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 ;
}
2012-10-04 06:15:59 +02:00
/* DEVICE & RESPONSIVE LAYOUT */
. header . nav-open-button {
2012-11-19 22:10:22 +01:00
display : none ; /* removes the nav toggle button for desktop site */
2012-06-15 19:16:49 +02:00
}
# media-query-trigger {
2012-11-19 22:10:22 +01:00
/ * 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 * /
2012-06-15 19:16:49 +02:00
display : none ;
visibility : hidden ;
}
2012-10-04 06:15:59 +02:00
2012-11-19 22:10:22 +01:00
/* BREAKPOINT 960px */
@ media only screen and ( max-width : 960px ) {
2012-06-15 19:16:49 +02:00
. content img {
2012-06-18 10:00:45 +02:00
max-width : 97 % ;
2012-06-15 19:16:49 +02:00
height : auto ;
}
. header . primary ul {
margin-left : -12px ;
2012-11-19 22:10:22 +01:00
-webkit-padding-start : 0px ; /* removes default webkit padding on ul items */
2012-06-15 19:16:49 +02:00
}
}
2012-10-04 06:15:59 +02:00
2012-11-19 22:10:22 +01:00
/* BREAKPOINT 640px */
2012-06-07 17:04:50 +02:00
/* when changing the breakpoint below, change it ito the same value in the script.js file as well */
2012-06-15 19:16:49 +02:00
@ media only screen and ( max-width : 640px ) {
body {
2012-11-19 22:10:22 +01:00
max-width : 640px ;
2012-06-15 19:16:49 +02:00
}
# media-query-trigger {
2012-11-19 22:10:22 +01:00
visibility : visible ;
2012-06-15 19:16:49 +02:00
}
2012-11-19 22:10:22 +01:00
/* Navigation*/
. tablet-nav . header . brand {
2012-06-15 19:16:49 +02:00
float : none ;
display : inline-block ;
margin-left : 22px ;
margin-bottom : 22px ;
}
. brand h1 {
2012-11-19 22:10:22 +01:00
font-size : 40px ;
2012-06-15 19:16:49 +02:00
}
. brand h1 {
2012-11-19 22:10:22 +01:00
padding-right : 100px ; /* padding stops .brand text from overlapping the search and nav buttons */
2012-06-15 19:16:49 +02:00
}
2012-11-19 22:10:22 +01:00
. tablet-nav . header {
padding : 0px ;
2012-06-15 19:16:49 +02:00
}
2012-11-19 22:10:22 +01:00
. tablet-nav . header . inner {
2012-06-15 19:16:49 +02:00
padding : 20px 0 0 0 ;
min-height : 0 ;
}
2012-11-19 22:10:22 +01:00
. tablet-nav . header . primary . nav-open-button { /* styling and positioning of the nav toggle button */
2012-06-15 19:16:49 +02:00
z-index : 100 ;
width : 20px ;
height : 20px ;
position : absolute ;
right : 20px ;
2012-11-19 22:10:22 +01:00
top : 35px ;
2012-06-15 19:16:49 +02:00
display : block ;
cursor : pointer ;
font-family : 'WebSymbolsRegular' ;
font-size : 20px ;
color : # ededed ;
}
2012-11-19 22:10:22 +01:00
. tablet-nav . header . primary ul {
2012-06-15 19:16:49 +02:00
z-index : 10 ;
position : relative ;
2012-11-19 22:10:22 +01:00
display : none ; /* initially hiding the navigation */
2012-06-15 19:16:49 +02:00
float : left ;
2012-11-19 22:10:22 +01:00
margin : 0 ;
2012-06-15 19:16:49 +02:00
padding : 0 ;
white-space : normal ;
width : 100 % ;
}
2012-11-19 22:10:22 +01:00
. tablet-nav . header . primary ul li {
2012-06-15 19:16:49 +02:00
width : 100 % ;
2012-11-19 22:10:22 +01:00
margin : 0 ;
padding : 0 ;
float : none ; /* displays list items vertically */
2012-06-15 19:16:49 +02:00
background : none ;
position : relative ;
text-shadow : 0 1px # fff ;
}
2012-11-19 22:10:22 +01:00
. tablet-nav . header . primary ul li : after { /* creates the arrow for the primary nav links */
2012-06-15 19:16:49 +02:00
content : '\003e' ;
display : block ;
position : absolute ;
right : 20px ;
top : 0px ;
font-family : 'WebSymbolsRegular' ;
font-size : 14px ;
color : # 999 ;
text-align : center ;
vertical-align : middle ;
line-height : 38px ;
}
2012-11-19 22:10:22 +01:00
. tablet-nav . header . primary ul li a ,
. tablet-nav . header . primary ul li . current a ,
. tablet-nav . header . primary ul li . section a { /* styling the top level nav links */
2012-06-15 19:16:49 +02:00
padding : 10px 0 10px 22px ;
font-weight : bold ;
border-bottom : 1px solid # bbb ;
color : # 434343 ;
2012-11-19 22:10:22 +01:00
background : # e7e7e7 ;
}
. tablet-nav . header . primary ul li . current a ,
. tablet-nav . header . primary ul li . section a {
background : # CCCCCC ; /* makes background on current top level page slightly darker */
2012-06-15 19:16:49 +02:00
}
2012-11-19 22:10:22 +01:00
. tablet-nav . header . primary ul li a : hover {
color : inherit ;
2012-06-15 19:16:49 +02:00
}
2012-11-19 22:10:22 +01:00
. 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 */
2012-10-08 06:02:34 +02:00
}
2012-11-19 22:10:22 +01:00
. tablet-nav . tablet-nav . header nav . primary ul li {
2012-10-08 06:02:34 +02:00
padding : 0 ;
}
2012-10-04 06:15:59 +02:00
2012-06-15 19:16:49 +02:00
/* Search Form */
2012-11-19 22:10:22 +01:00
. search-bar { /* adds new styling to mobile search bar */
2012-06-15 19:16:49 +02:00
width : 100 % ;
position : relative ;
top : 0 ;
right : 0 ;
2012-11-19 22:10:22 +01:00
display : none ; /* hides searchbar initially */
2012-06-15 19:16:49 +02:00
padding : 20px 0 ;
2012-11-19 22:10:22 +01:00
margin : 0 ;
2012-06-15 19:16:49 +02:00
background-color : # E7E7E7 ;
}
2012-11-19 22:10:22 +01:00
. search-dropdown-icon { /* styling for search toggle button */
2012-06-15 19:16:49 +02:00
display : block ;
cursor : pointer ;
width : 20px ;
height : 20px ;
position : absolute ;
right : 60px ;
top : 34px ;
font-family : 'WebSymbolsRegular' ;
font-size : 20px ;
color : # ededed ;
text-align : center ;
line-height : 20px ;
}
. search-bar form {
margin : 0 ;
width : 100 % ;
}
. search-bar form fieldset {
padding : 0 18px ;
left : 0 ;
right : 0 ;
position : relative ;
}
. search-bar div . field {
2012-11-19 22:10:22 +01:00
margin-bottom : 0 ;
2012-06-15 19:16:49 +02:00
}
. search-bar form input . text {
2012-11-19 22:10:22 +01:00
width : 89 % ; /* makes search input full width - allowing for space either side */
max-width : 89 % ;
padding : 8px 10 % 8px 1 % ;
2012-06-15 19:16:49 +02:00
text-indent : 15px ;
position : relative ;
display : block ;
right : 0 ;
left : 0 ;
border : 1px solid # e5e5e5 ;
background : # fff ;
font-size : 17px ;
2012-11-19 22:10:22 +01:00
-moz-border-radius : 20px ; /* increase border radius due to increased padding */
border-radius : 20px ;
2012-06-15 19:16:49 +02:00
}
. search-bar form input . action {
2012-11-19 22:10:22 +01:00
right : 5 % ;
2012-06-15 19:16:49 +02:00
top : 2px ;
font-size : 18px ;
}
2012-10-04 06:15:59 +02:00
2012-06-15 19:16:49 +02:00
/* Main Content */
. main {
2012-11-19 22:10:22 +01:00
padding : 20px 0 45px ; /* decrease padding so that more content can fit on screen */
2012-06-15 19:16:49 +02:00
}
. content-container ,
2012-11-20 03:27:34 +01:00
. sidebar {
2012-11-19 22:10:22 +01:00
width : 100 % ; /* sidenav is now shown above the page content */
2012-11-20 03:27:34 +01:00
margin-bottom : 30px ;
2012-06-15 19:16:49 +02:00
}
2012-11-19 22:10:22 +01:00
. typography h1 { /* decrease size of page heading due to smaller screen */
2012-06-15 19:16:49 +02:00
font-size : 30px ;
2012-11-19 22:10:22 +01:00
line-height : 35px ;
2012-06-15 19:16:49 +02:00
margin-bottom : 15px ;
2012-06-18 10:00:45 +02:00
padding-bottom : 10px ;
2012-06-15 19:16:49 +02:00
}
2012-08-22 07:11:19 +02:00
. typography p {
2012-06-15 19:16:49 +02:00
font-size : 14px ;
line-height : 23px ;
}
p . intro {
font-size : 19px ;
line-height : 27px ;
}
. main . inner {
2012-11-19 22:10:22 +01:00
padding : 0 22px ;
2012-06-15 19:16:49 +02:00
}
/* Secondry Nav */
. secondary li a {
2012-11-19 22:10:22 +01:00
line-height : 24px ;
2012-06-15 19:16:49 +02:00
}
. secondary li . arrow {
2012-11-19 22:10:22 +01:00
line-height : 26px ;
2012-06-15 19:16:49 +02:00
}
/* Footer */
. footer . right {
float : left ;
width : 100 % ;
}
}
2012-10-04 06:15:59 +02:00
2012-11-19 22:10:22 +01:00
/* Print Styles */
2012-10-05 07:37:18 +02:00
/* Based on HTML5 boilerplate print styles */
2012-11-19 22:10:22 +01:00
@ media print {
2012-06-15 19:16:49 +02:00
* {
background : transparent ! important ;
color : black ! important ;
box-shadow : none ! important ;
text-shadow : none ! important ;
filter : none ! important ;
-ms-filter : none ! important ;
}
a ,
a : visited {
text-decoration : underline
}
2012-10-05 07:37:18 +02:00
a [ href ] : after {
content : " (" attr ( href ) ")" ;
}
abbr [ title ] : after {
content : " (" attr ( title ) ")" ;
}
/ *
* Don ' t show links for images , or javascript / internal links
* /
. ir a : after ,
a [ href ^ = "javascript:" ] : after ,
a [ href ^ = "#" ] : after {
content : "" ;
}
2012-06-15 19:16:49 +02:00
thead {
display : table-header-group
}
tr ,
img {
page-break-inside : avoid
}
img {
max-width : 100 % ! important
}
2012-10-05 07:37:18 +02:00
pre ,
blockquote {
border : 1px solid # 999 ;
page-break-inside : avoid ;
}
@ page {
margin : 0 . 5cm ;
}
p ,
h2 ,
h3 {
orphans : 3 ;
widows : 3 ;
}
h2 ,
h3 {
page-break-after : avoid ;
}
/* Simple theme custom print styles */
. header ,
2012-10-08 06:02:34 +02:00
. footer ,
. nav-open-button ,
. search-bar ,
. search-dropdown-icon ,
nav . primary {
display : none ;
2012-10-05 07:37:18 +02:00
}
2012-03-14 00:24:41 +01:00
}