/* dirchsen.less */ // // Configuration // @font-size: 16; // Your base font-size in pixels @em: @font-size*1em; // Shorthand for outputting ems, e.g. "12/@em" @column: 48; // The column-width of your grid in pixels @gutter: 24; // The gutter-width of your grid in pixels @line: 24; //line height // // Column-widths in variables, in ems // @1cols: ( 1 * (@column + @gutter) - @gutter) / @em; @1col: @1cols; @2cols: ( 2 * (@column + @gutter) - @gutter) / @em; @3cols: ( 3 * (@column + @gutter) - @gutter) / @em; @4cols: ( 4 * (@column + @gutter) - @gutter) / @em; @5cols: ( 5 * (@column + @gutter) - @gutter) / @em; @6cols: ( 6 * (@column + @gutter) - @gutter) / @em; @7cols: ( 7 * (@column + @gutter) - @gutter) / @em; @8cols: ( 8 * (@column + @gutter) - @gutter) / @em; @9cols: ( 9 * (@column + @gutter) - @gutter) / @em; @10cols: (10 * (@column + @gutter) - @gutter) / @em; @11cols: (11 * (@column + @gutter) - @gutter) / @em; @12cols: (12 * (@column + @gutter) - @gutter) / @em; @13cols: (13 * (@column + @gutter) - @gutter) / @em; @14cols: (14 * (@column + @gutter) - @gutter) / @em; @15cols: (15 * (@column + @gutter) - @gutter) / @em; @16cols: (16 * (@column + @gutter) - @gutter) / @em; // // Column-widths in a function, in ems // .width (@cols:1) { width: (@cols * (@column + @gutter) - @gutter) / @em; } @red: #731212; /* Margin, padding, and border resets except for form elements */ body, div, h1, h2, h3, h4, h5, h6, p, blockquote, pre, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section { margin: 0; padding: 0; border: 0; } /* Consistency fixes adopted from http://necolas.github.com/normalize.css/ */ article, aside, details, figcaption, figure, footer, header, hgroup, nav, section, audio, canvas, video { display: block; } html { height: 100%; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; } body {min-height: 100%; font-size: 100%;} sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sup {top: -0.5em;} sub {bottom: -0.25em;} pre { white-space: pre; white-space: pre-wrap; word-wrap: break-word; } b, strong {font-weight: bold;} abbr[title] {border-bottom: 1px dotted;} table { border-collapse: collapse; border-spacing: 0; } a img, img { -ms-interpolation-mode: bicubic; border: 0; } input, textarea, button, select { margin: 0; font-size: 100%; line-height: normal; vertical-align: baseline; } button, html input[type="button"], input[type="reset"], input[type="submit"] { cursor: pointer; -webkit-appearance: button; } input[type="checkbox"], input[type="radio"] { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -o-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; } textarea {overflow: auto;} /* These are easy to forget */ ::selection { background: red; color: white; } ::-moz-selection { background: @red; color: white; } img::selection { background: transparent; } img::-moz-selection { background: transparent; } body { -webkit-tap-highlight-color: rgba(255,0,0, 0.62); } /* Style overrides for IE6-8 http://jonikorpi.com/leaving-old-IE-behind/ */ .ie { } /******************************************************************************************************* * * Clearfix * ********************************************************************************************************/ .cf:before, .cf:after { content:""; display:table; } .cf:after { clear:both; } /* For IE 6/7 (trigger hasLayout) */ .cf { zoom:1; } /*img*/ img{ height:auto; max-width: 100%; } /*typografi*/ /* * * Zoomable baseline grid * type size presets * */ body { /* 16px / 24px */ font-size: @font-size / 16 * 1em; line-height: @line / @em; border-top: 0.3em solid @red; background: url("images/bgtile2.png") repeat scroll 0 0 transparent; font-family:Georgia,serif; } h1, h2, h3, h4, h5, h6{ font-weight: normal; } /* tmp */ h1, h2, h3, h4 { margin: 1.5em 0 0.5em; font-weight: normal; line-height: 1.1em; color: #222; } h1 { margin: 0 0 0.5em; font-size: 2.5em; /* 40px */ line-height: 1.2; } h2 { clear: both; font-size: 1.5625em; /* 25px */ } h3 { font-size: 1.25em; /* 20px */ } h4 { font-size: 1em; /* 16px */ font-weight: bold; } article p, #content figure, #content header p, article ul, article ol { margin-bottom: 1.5em; -webkit-hyphens: auto; -moz-hyphens: auto; hyphens: auto; } article p:last-child { margin-bottom: 0; } /******************************************************************************************************* * * links * :jasper * ********************************************************************************************************/ a, a:visited { color: #731212; text-decoration: none; } a:hover, a:focus, a:active { border: 0; color: #731212; } a:visited:hover, a:visited:focus, a:visited:active { color: #731212; /*background: #731212;*/ } a:focus { outline: thin dotted; } /* Remove outline on element when active or hovered : people.opera.com/patrickl/experiments/keyboard/test */ a:hover, a:active { outline: 0; } #masthead, #page, #supplementary{ margin: 0 auto; width:@12cols; } /******************************************************************************************************* * * Header * ********************************************************************************************************/ #masthead{ clear: both; padding: 4em 0 5.6em 0; background: url("images/dot.png") repeat-x scroll left bottom transparent; margin-bottom:4.1em; } #masthead h1{ float: left; width: auto; margin-top: 0.2em; font-size:1em; } #masthead h1 a{ color: @red; letter-spacing:2px; text-transform:uppercase; text-decoration:none; text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7); /* background: url("images/logo.png") no-repeat scroll left top transparent; display: block; height: 38px; overflow: hidden; text-indent: -9999px; width: 192px;*/ } #masthead a{ color:#000; } #masthead a:hover{ color:#731212; } #masthead .top-navigation{ float: right; } nav.top-navigation li{ display: block; float: left; list-style: none; margin-left: 2.25em; font-family:arial; } nav.top-navigation li:first-child{ margin-left: 0; } /******************************************************************************************************* * * Forsiden - defaults * ********************************************************************************************************/ @framepadding: 8 / @em; /*8px*/ //todo drop shadow og sæt en normal border på eks 6 px /*.frame { background-color: #fff; border-radius: 1px; box-shadow: 0 0 10px rgba(0,0,0,0.05); moz-border-radius: 1px; moz-box-shadow: 0 0 10px rgba(0,0,0,0.05); webkit-box-shadow: 0 0 10px rgba(0,0,0,0.05); padding: @framepadding; }*/ #introduction{ padding-top:0.7em; } #introduction div{ float:left; } #presentation{ padding-bottom: 1px; background: url("images/dot.png") repeat-x scroll left bottom transparent; } #presentation div{ .width(6); margin-right: @gutter / 16 * 1em; } #presentation figure{ float:left; width: @6cols; margin-top: -40 / 16 * 1em; } #presentation figure img{ display: block; } #featured-content{ margin-top: 3.9em; } #featured-content div{ .width(4); margin-right: @gutter / 16 * 1em; } .last-item{ margin-right: 0!important; } #presentation h1{ font-size: 2.5em; line-height: 1.2; margin: 0 0 0.3em; } #presentation h3{ font-size: 1.3em; line-height: 1.3; margin: 0 0 0.5em; } #featured-content h3{ line-height: 1.2; } #featured-content h3{ margin-top: 0; } /******************************************************************************************************* * * pages * * ********************************************************************************************************/ .type-page, .type-single{ .width(8); float:left; } .type-page > header + p{ font-size: 1.3125em; line-height: 1.3333em; margin: 1.1429em 0; } .type-single > header time{ font-size: 0.875em; margin: 0 0 2em 0; color:#b4b4b4; display: block; } #secondary{ .width(4); float:left; margin-left: 24 / @em; font-family: arial,serif; } #secondary p{ margin-bottom: 18 / @em; } #secondary p:last-child{ margin-bottom: 0; } #secondary p, #secondary li a{ font-size: 14 / @em; line-height:1.5em; } #secondary ul{ list-style:none; line-height:1.3em; } #secondary h3{ color: #b4b4b4; font-family: arial,serif; font-size: 12 / @em; line-height:1.5em; font-weight: bold; letter-spacing: 1px; margin: 0 0 0.5em; text-transform: uppercase; background: url("images/dot.png") repeat-x scroll left bottom transparent; padding-bottom: 18 / @em; margin-bottom: 12 / @em; } #secondary aside{ margin-bottom: 60 / @em; } //tmp #secondary img{ float: right; margin: (6 / @em) 0 0 (24 / @em); } #searchform label, #searchsubmit{ display:none; } //todo fix css til ie #searchform .field{ .width(4); border:1px solid #fff; padding:5px 0; margin-top:8 / @em; } /******************************************************************************************************* * * footer * :jasper * ********************************************************************************************************/ #colophon{ min-height:@3cols; height:auto !important; height:@3cols; margin-top:5.6em; background: url("images/footer_bg_tile.png") repeat scroll 0 0 transparent; //color:#707070; color:#ababab; font-family: arial, sans; padding-bottom:3em; } #colophon h3{ font-size: 12 / @em; font-weight:bold; letter-spacing: 1px; text-transform: uppercase; color:#ababab; margin: 60/@em 0 20/@em 0; } #supplementary div{ float: left; .width(4); margin-right: @gutter / 16 * 1em; } footer address{ font-family: arial; font-style:normal; font-size: 12 / 16 * 1em; line-height:1.8em; } #contact-links li{ list-style: none; line-height:1.4em; } #contact-links a{ font-size: 12 / 16 * 1em; color: #ababab; background: url("images/social_sprite.png") no-repeat scroll 0 0 transparent; height: 23px; display: inline-block; padding: 0 0 0 25px; } #contact-links li.linkedin a{ background-position: 0 2px; } #contact-links li.facebook a{ background-position: 0 -18px; } #contact-links li.rss a{ background-position: 0 -39px; } /*Mailpress*/ .MailPressFormEmail{ color: #666666; padding: 3px 5px; width: 190px; font-size: 80%; border: 4px solid #fff; padding:0; margin:0; } .MailPressFormSubmit{ color: #000; font-size: 80%; margin: 0 0 4px; padding: 4px 0 6px; width: 60px; border: 4px solid #fff; padding:0; margin:0; margin-left:-3px; } div.MailPress div.mp-container, div.MailPress div.mp-formdiv { position:relative; } div.MailPress div.mp-loading, div.MailPress div.mp-message { position:absolute; filter:alpha(opacity=0); // IE -moz-opacity:0; -khtml-opacity: 0; opacity:0; } /* #textwidget{ font-size: (@font-size*0.8125) / @em; line-height: (@line*0.75) / (@font-size*0.8125) * 1em; } */ /* An easy way to zoom your entire layout in or out (as long as it's set in ems). Just change the media queries to activate them. Assuming your base font-size is 16: - the first one zooms out by a factor of (16-2)/16 = 0.875 - the second one zooms in by a factor of (16+2)/16 = 1.125 */ /* @media screen and (max-width: 1px) { body { font-size: (@font-size - 2)/16*1em; } } @media screen and (max-width: 1px) { body { font-size: (@font-size + 2)/16*1em; } } */ /* Mobile Layout: 320px Wide Mobile Layout: 480px Tablet Layout: 768px Default Layout: 992px (Leftover space for scrollbars @1024px: 32px) */ /* @media screen and (max-width: 900px) { #content, #masthead{ width:@10cols; } #content{ background-color:#990000; } } @media screen and (max-width: 744px) { //@media screen and (max-width: 600px) { #content, #masthead{ width:@8cols; } #content{ background-color:#ccc; } } @media screen and (max-width: 480px) { #content, #masthead{ width:@6cols; } #content{ background-color:#990000; } } @media screen and (max-width: 320px) { #content, #masthead{ width:@4cols; } #content{ background-color:#ccc; } } */ /* /* Default Layout: 992px. Leftover space for scrollbars @1024px: 32px. Collumns: 48px Gutters: 24px. Outer margins: 80px. cols 1 2 3 4 5 6 7 8 9 10 11 12 px 48 120 192 264 336 408 480 552 624 696 768 840 */ /* Responsiveness ****************************************************************************** */ /* Default Layout: 992px. Gutters: 24px. Outer margins: 48px. Leftover space for scrollbars @1024px: 32px. ------------------------------------------------------------------------------- cols 1 2 3 4 5 6 7 8 9 10 px 68 160 252 344 436 528 620 712 804 896 */ /* Tablet Layout: 768px. Gutters: 24px. Outer margins: 28px. Inherits styles from: Default Layout. ----------------------------------------------------------------- cols 1 2 3 4 5 6 7 8 px 68 160 252 344 436 528 620 712 */ /*@media only screen and (min-width: 768px) and (max-width: 991px) { } */ /* /@media - Tablet /* Mobile Layout: 320px. Gutters: 24px. Outer margins: 34px. Inherits styles from: Default Layout. --------------------------------------------- cols 1 2 3 px 68 160 252 */ /*@media only screen and (max-width: 767px) { } /* /* End Mobile Layout: 320px */ /* Wide Mobile Layout: 480px. Gutters: 24px. Outer margins: 22px. Inherits styles from: Default Layout, Mobile Layout. ------------------------------------------------------------ cols 1 2 3 4 5 px 68 160 252 344 436 */ /*@media only screen and (min-width: 480px) and (max-width: 767px) { }*/ /* End Responsiveness */ /* WIDE DESKTOP LAYOUT ----------------------------------------------- */ @media only screen and (min-width: 1176px) { } /* CLOSE WIDE LAYOUT */ /* TABLET LAYOUT ----------------------------------------------- */ @media only screen and (min-width: 768px) and (max-width: 991px) { } /* CLOSE TABLET LAYOUT */ /* MOBILE LAYOUT (PORTRAIT/320PX) ----------------------------------------------- */ @media only screen and (max-width: 767px) { } /* CLOSE MOBILE LAYOUT */ /* WIDE MOBILE LAYOUT (LANDSCAPE/480PX) ----------------------------------------------- */ @media only screen and (min-width: 480px) and (max-width: 767px) { } /* CLOSE WIDE MOBILE LAYOUT */ /* RETINA OVERRIDES ----------------------------------------------- */ @media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-device-pixel-ratio: 2) { } /* CLOSE RETINA MEDIA QUERY */