// Less Stylesheet // Author: KT and Carlo @ Brandammo LTD // Website: www.brandammo.co.uk // Date: May 2011 // ---------------------------------------- //variables @headerColor: #2a2a2a; @docWidth: 936px; @logoWidth: 242px; @logoHeight: 48px; @headerHeight: 90px; @primaryNavFontSize: 22px; @bodyTextColor: #888888; @navPositionFromTop: 43px; @mainContentWidth: 614px; @rcolSectionWidth: 292px; @baBlue : #00AEFF; @baGray : #f5f5f5; @baGrayText2 : #cccccc; @baGrayText : #999999; @baGrayBlogTitle : #333333; @baBlogTitleFontsize : 24px; @spacer20px : 20px; @spacer30px : 30px; @spacer25px : 25px; @spacer50px : 50px; // ---------------------------------------- //functions .fullWidthContainer (@width: @docWidth, @height: 100%, @position: relative, @margin: 0 auto) { width: @width; height: @height; position: @position; margin: @margin; } .elementBorder (@padding: 5px, @border: 1px solid #ddd) { padding: @padding; border: @border; } .grayPaddedSection (@padding: 30px 20px 40px 20px, @background: @baGray) { padding: @padding; background: @background; } .logo(@width:@logoWidth, @height:@logoHeight) { width:@width; height:@height; display:block; } .textNoShow() { position: absolute; left: -9999px; } .navLists() { display:inline-block; font-size:0; } .uppercaseFont(@fontSize: 10px, @fontColor: #888888){ text-transform:uppercase; font-size: @fontSize; color: @fontColor; } .navPosition(@top: 45px, @right: 0) { position:absolute; top:@top; right:@right; } .navDividers(@fontSize: 22px, @fontColor: #888888) { font-size:@fontSize; color:@fontColor; padding:0 10px 0 10px; } .feature(@height: 530px, @bgcolor: #000000){ height: @height; background-color: @bgcolor; } //content blocks .contentBlocks(@width: 100%, @float: none, @background: red) { width: @width; float: @float; background: @background; } .headings(@fontSize: 40px, @color: #414042, @padding: 0 0 0 0) { font-size: @fontSize; color: @color; padding: @padding; } .websiteTimes(@color: #bbbbbb, @fontSize: 14px) { color: @color; font-size: @fontSize; } .blueArrowButton { width:130px; height: 18px; background: url(images/BA_BUTTON_regular.png) no-repeat; color: #fff; text-transform: uppercase; display:block; padding: 0 0 0 10px; font-style: normal; font-size: 10px; font-weight: bold; } .threeCols(@width:292px, @float: left) { width: @width; float: @float; } .linkStyle(@color:#bbbbbb, @hoverColor: #ffffff) { color: @color; &:hover { color: @hoverColor; } } .twoColorsText (@colorOne: #666, @colorTwo : @baGrayText, @fontsize: 12px, @spanFontsize : 12px ) { color: @colorOne; font-size: @fontsize; span { color: @colorTwo; font-size: @spanFontsize; } } // ---------------------------------------- //styles * { margin:0; padding:0; } body { color:#999; font-size:12px; font-family:Arial; line-height: 18px; ::selection { background: @baBlue; color: #fff; } ::-moz-selection { background: @baBlue; color: #fff; } &.brandammo { overflow-x: hidden; } } a { color: @baBlue; text-decoration:none; &:hover { color: @baGrayBlogTitle; } } .cufon-loading h1, .cufon-loading h2, .cufon-loading h3, .cufon-loading .address_office, .cufon-loading .signature, .cufon-loading .blog_post_info, .cufon-loading h5, .cufon-loading .address_office, .cufon-loading .signature, .cufon-loading .blog_post_info, .cufon-loading .content_quote, .cufon-loading #primary_nav { visibility: hidden !important; } h1 { .headings; } h2 { .headings(24px, #414042, 20px 0 0 0); line-height:31px; span { color:#00aeff; } } h3 { .headings(24px, #414042, 0 0 40px 0); } h4 { .headings(16px, #414042, 0 0 10px 0); font-family: Georgia, Arial; font-weight: normal; } h5 { .headings(16px, #414042, 15px 20px 15px 20px); //background: url(images/BA_emblem.png) no-repeat 95% #eee; background: #eee; border-bottom: 1px solid #fff; } header, section, footer, aside, figure, figcaption, img { display: block; } img { border: 0; } iframe{ border: 0px solid white; } .clearfix { clear:both; } .hidden { display: none; } .block { display: block; } .inline { display: inline; } input, textarea { font-family: Arial; font-size: 11px; line-height: 18px; color: #999; border: 0; } #head_banner { background-color: @headerColor; height:@headerHeight; .container { .fullWidthContainer(@docWidth, 100% , relative, auto); } } h1#logo { .logo; padding-top:((@headerHeight - @logoHeight) / 2) - 5px; //position the logo vertically in the middle of header a { .logo; background:url(images/BA_logo.gif) no-repeat; span { .textNoShow; } } } #primary_nav { .navPosition; ul { list-style:none; li { .navLists; a { font-size:@primaryNavFontSize; color:#fff; letter-spacing:1px; &.active { color: @baBlue; } } span { .navDividers; } } } } #secondary_nav { .navPosition(50px, 325px); ul { list-style:none; li { .navLists; a { .uppercaseFont; &:hover, &.active { color:#ffffff; } } span { .navDividers(10px); } } } } #home_feature { .feature; position: relative; #home_feature_bg { height:530px; width:100%; position: absolute; top:0; left: 0; &.home_slider0 { background: url(images/homeslider_bg/home_slider0_bg.jpg) center center; } &.home_slider1 { background: url(images/homeslider_bg/home_slider1_bg.jpg) center center; } &.home_slider2 { background: url(images/homeslider_bg/home_slider2_bg.jpg) center center; } &.home_slider3 { background: url(images/homeslider_bg/home_slider3_bg.jpg) center center; } &.home_slider4 { background: url(images/homeslider_bg/home_slider4_bg.jpg) center center; } &.home_slider5 { background: url(images/homeslider_bg/home_slider5_bg.jpg) center center; } } #topcwrap { width: @docWidth; overflow:hidden; height: 530px; margin: 0 auto; .slides { height:530px; a { float: left; display:block; } } } } #clients { height:70px; background: #f9f9f9; ul { width : @docWidth; margin: 0 auto; height:70px; li { list-style-type: none; float: left; a { display: block; width: 156px; height:70px; background-position: 0 -70px; /* img { opacity: 0.5; filter:alpha(opacity=50); } */ } } } } #welcome { .fullWidthContainer(@docWidth, 300px, relative, 50px auto 0 auto); #welcome_block { .contentBlocks(614px, left, none); } } #recent_blog_posts { .contentBlocks(292px, left, none); margin:0 0 0 30px; .recentpost { .grayPaddedSection(20px 0 20px 0, none); border-top:1px solid #ddd; .recent_postdate { .websiteTimes; } h4 { line-height: 20px; font-size:12px; font-family:Arial; a { color: #999; text-decoration:none; &:hover { color: @baBlue; } } } .signature { margin-top: 0px; } } } body.brandammo { h5 { font-size:24px; padding:12px 0 20px 0; background: none; } } #selected_work { .fullWidthContainer(@docWidth, 100% , relative, 0px auto 0 auto); clear: both; .portfolio_item { .threeCols; margin: 0 30px 30px 0; height:257px; .work_thumb { display: block; padding: 5px; .elementBorder; .img_container { position: relative; overflow: hidden; .workthumb_overlay { position: absolute; bottom: -180px; left: 0px; width: 280px; height: 180px; background: #2a2a2a; color: #fff; text-align: right; opacity: 0.95; filter:alpha(opacity=95); p { text-align: center; font-size: 10px; font-weight: bold; text-transform: uppercase; padding: 8px 10px 0 10px; a { color: #fff; display:block; width:100%; height:100%; &:hover { color: @baBlue; } } } } } } .portfolio_caption { padding: 20px 5px 0 5px; position: relative; height:45px; .work_date { .websiteTimes; } h4 { padding-bottom:15px; } p { display:none; } p.work_meta { display:block; position: absolute; bottom: 1px; font-size: 10px; text-transform: uppercase; .meta_category { font-size: 10px; font-weight: bold; color: @baGrayText2; text-transform: uppercase; margin: 0 3px 0 0; } } } &:nth-of-type(3n) { margin-right: 0px; } } .selected_work_figures { margin: 0 0 10px 0; } #view_all_work { .blueArrowButton; } } #footer_bar { height: 290px; margin: 100px 0 0 0; padding: 40px 0 0 0; background: #2a2a2a; color:#888; font-size: 11px; .container { .fullWidthContainer(@docWidth, 100% , relative, auto); .footer_col { .threeCols(194px, left); padding: 0 5px; margin: 0 30px 0 0; h6 { font-size:11px; font-weight:bold; color:#fff; text-transform:uppercase; } ul { list-style:none; padding:10px 0 0 0; li { line-height:20px; a { color:#888; &:hover { color:@baBlue; } } } } .social { width:28px; height:38px; float: left; margin: 20px 5px 0 0; a { width:28px; height: 38px; display: block; &.fb { background: url(images/BA_SOCIAL_facebook.png); } &.twitter { background: url(images/BA_SOCIAL_twitter.png); } &.linkedin { background: url(images/BA_SOCIAL_linkedin.png); } span { display: none; } &:hover { background-position: 0px -38px; } } } .usual_links { clear: both; padding: 0 0 0 0; a { .linkStyle; } } .credit { padding: 10px 0 0 0; } } .address_details { .threeCols(194px, left); padding: 0 5px; margin: 0 30px 0 0; font-style: normal; &:nth-of-type(2n) { margin: 0 0 0 0; } .address_title { font-size:11px; font-weight:bold; color:#fff; text-transform:uppercase; } .address_office { font-size: 16px; padding: 0 0 10px 0; span span { color: @baGrayBlogTitle; } } .address, .address_contacts { padding: 10px 0 0; a { .linkStyle; } } } } } #rssfeed_heading { img { display : inline; vertical-align:middle; } } #news_rss { p { margin-bottom:10px; } } .spaced_ul{ li { margin-bottom: 3px; } } .pagewrap { position: relative; .fullWidthContainer(@docWidth, auto, relative, 70px auto 0 auto); h1 { .headings(40px, #414042, 0 0 20px 0); } #main_content { position:relative; width : @mainContentWidth; h2 { .headings(24px, #414042, 50px 0 0 0); } a.back_to_top { position:absolute; right:0; bottom:0; color:#aaa; text-transform:uppercase; font-size:10px; &:hover { color:@baBlue; } } #the_team { margin-top : @spacer50px; display:none; .member { margin-top: @spacer30px; height: 182px; .member_pic { .elementBorder; float:left; margin-right: @spacer20px; } aside { float:left; .signature { .twoColorsText(#000000, @baGrayText, 16px, 14px); margin-top: 0; } .team_member_info { width: 404px; } } } } #services_list.category { h2 { .headings(24px, #414042, 0 0 0 0); &.subheadings { margin: 50px 0 0 0; } } h3 { .headings(18px, #414042, 30px 0 0 0); } p { margin: 15px 0; } } } #main_content, #rcol { float: left; .bordered { .elementBorder; } } #rcol { margin-top:60px; ul { list-style-type: none; } h5 { margin-left: @spacer30px; } address { margin-bottom: 30px; } .address_details { span { span { color: @baGrayBlogTitle; } } .blue_arrow { margin-top: @spacer20px; } } #recent_blog_posts { float:none; width: @rcolSectionWidth - 40px; padding: 30px 20px 30px 20px; background: @baGray; .recentpost { padding: 0 0 30px 0; border: none; h4 { font-size:12px; font-family:Arial; a { color:#999; &:hover { color:@baBlue; } } } } } } .work_list{ width: 966px; li { list-style-type: none; float:left; display: block; margin: 0 30px 50px 0; width : 292px; height: 335px; overflow: hidden; position: relative; h3 { font-size: 16px; padding:20px 5px 15px 5px; span { font-size: 14px; color: @baGrayText2; } } p { padding: 0 5px; } .work_meta { position: absolute; bottom: 1px; font-size: 10px; text-transform: uppercase; .meta_category { color: @baGrayText2; font-size: 10px; font-weight: bold; text-transform: uppercase; margin: 0 3px 0 0; } } .work_thumb { display: block; padding: 5px; .elementBorder; .img_container { position: relative; overflow: hidden; .workthumb_overlay { position: absolute; bottom: -180px; left: 0px; width: 280px; height: 180px; background: #2a2a2a; color: #fff; text-align: right; opacity: 0.95; filter:alpha(opacity=95); p { text-align: center; font-size: 10px; font-weight: bold; text-transform: uppercase; padding: 8px 10px 0 10px; a { color: #fff; display:block; width:100%; height:100%; &:hover { color: @baBlue; } } } } } } .thumb_shadow { width: 280px; height: 15px; position: absolute; background: url(images/BA_work_thumb_shadow.png) no-repeat; top:180px; } } } #related_work { margin-top: @spacer50px + 50px; } #profile_pic { .elementBorder; margin:20px 0; } .gray_padded { .grayPaddedSection; width: @rcolSectionWidth - 40px; margin: 0 0 0 @spacer30px; } .blue_arrow { .blueArrowButton; &.visit_site { margin: 20px 0 0 0; } } } body.about { .pagewrap #main_content h2 { padding-top:0px; &.photo_title { padding-top: 40px; } } .pagewrap #main_content p { margin: 15px 0; } } body.work { &.index { .work_list { min-height: 714px; } } #rcol { .work_desc { p { margin: 15px 0; &:last-child { margin-bottom: 0px; } } } } } body.legal, body.sitemap { #main_content { p { margin:0 0 15px 0; } ul { padding:0 0 15px 25px; li { line-height:20px; } } } } .pagewrap.blog { #main_content { .leavecomment { margin-top: 30px; } .blog_post{ margin-bottom: 50px; .blog_post_pic { .elementBorder; width: 602px; } header { h4 { margin-bottom: @spacer20px; line-height: 30px; a { color: @baGrayBlogTitle; font-size: @baBlogTitleFontsize; &:hover { color: @baBlue; } } } .blog_post_info { margin-bottom: @spacer30px; } }//header article { p { margin-top: @spacer20px; margin-bottom: @spacer20px; } img { .elementBorder; } ol,ul { padding: 0 0 0 15px; li { padding: 0 0 20px 0; } } .codeblock { .elementBorder(20px, 1px dotted #ddd); overflow: auto; background: #fff; box-shadow: 0 0 10px #ddd; behavior: url(http://www.brandammo.co.uk/assets/PIE.php); } .blog_comments_and_readmore { margin-top: @spacer30px; a { font-size: 10px; color: #fff; text-transform: uppercase; background: @baGrayText2; padding: 4px; margin: 0 3px 0 0; behavior: url(http://www.brandammo.co.uk/assets/PIE.php); &.read_more_link { background: @baBlue; color: #fff; } &:hover { background: @baGrayBlogTitle; } } } .blog_social { margin-top: 30px; height:80px; iframe { float:left; } div { float:left; padding-top:2px; } } blockquote { padding: 0 0 0 30px; border-left: 5px solid #eee; font-style: italic; } }//article }//.blog_post #news_comments { ol { list-style: none; li { border-bottom: 1px solid #ddd; padding: 30px 0 30px 0; h5.commentdata { background: none; border: 0; padding: 0 0 15px 0; } } } } #comment_form { fieldset { border: 0; &#comment_fields { #comment_guidelines { padding: 10px; border: 1px dotted #ddd; font-size: 10px; } label { span { text-transform: uppercase; font-size: 10px; font-weight: bold; } textarea#comment, input { width: 97%; border: 0; padding: 10px; background: #f5f5f5; font-size: 11px !important; &:focus { background: #eee; } } input, textarea { padding: 4px; margin: 5px 0 10px 0; } } } &#comment_action { padding: 10px 0 0 0; .comment_submission { input { color: #fff; font-weight: bold; text-transform: uppercase; background: @baBlue; padding: 4px; font-size: 10px; margin: 0 0 0 0; } } .comment_options { padding: 10px 0; label { margin: 0 10px 0 0; text-transform: uppercase; font-weight: bold; font-size: 10px; } } } } } .blog_pagination { text-transform: uppercase; font-size: 10px; a, strong { border-radius: 4px; -webkit-border-radius: 4px; -moz-border-radius: 4px; padding: 2px 5px; background: @baGrayText2; color: #fff; margin: 0 2px 0 0; behavior: url(http://www.brandammo.co.uk/assets/PIE.php); &:hover { background: @baBlue; } } strong { background: @baGrayBlogTitle; } } }//#main_content } .pagewrap.work { #work_header { position:relative; h1 span { color: #666; } #work_filters { position : absolute; top: 0px; right:0; text-transform: uppercase; font-size: 11px; font-weight: bold; background: #eee; padding:10px; .afilter { padding: 3px 3px 3px 5px; color: @baGrayBlogTitle; margin: 0 7px 0 5px; &:hover { background: @baBlue; color: #fff; } } .afilter.active{ background: @baBlue; color: #fff; } a.work_hint { color:#999; background:#ddd; padding:3px 5px; margin:0 0 0 7px; &:hover { background:@baBlue; color:#fff; } } } a.back_to_work { position:absolute; top:-25px; color:#bbb; text-transform:uppercase; font-size:10px; &:hover { color:@baBlue; } } #work_tip_popup { position:absolute; right:0; bottom:65px; width:500px; background:white; text-align:right; font-weight:normal; font-size:10px; text-transform:uppercase; opacity: 0; filter:alpha(opacity=0); } }/* #work_header*/ #main_content { .work_image { .elementBorder; margin-bottom: 30px; &:last-child { margin-bottom: 0; } } iframe { .elementBorder; margin-bottom: 30px; } } #rcol { margin-top: 0; #client_logo { margin: 40px 0 40px 0; display: none; } } } .pagewrap.services { #services_intro { h2 { margin-top: 0; padding-top:0; } } #services_jumpmenu { margin:50px 0 0 0; text-transform: uppercase; font-size: 11px; font-weight: bold; background: #eee; padding:10px; a { padding: 3px 3px 3px 3px; color: @baGrayBlogTitle; margin: 0 7px 0 5px; &:hover { background: @baBlue; color: #fff; } } a.active{ background: @baBlue; color: #fff; } } #services_list { .services_item { position:relative; a.anchorlink span { display:none; } a.services_category_image { display:block; margin:0 0 15px 0; img { .elementBorder; } } h2 { margin-bottom: 15px; } a.blue_arrow { .blueArrowButton; margin: 20px 0 0 0; } a.back_to_top { position:absolute; right:0; bottom:0; color:#aaa; text-transform:uppercase; font-size:10px; &:hover { color:@baBlue; } } } } } .signature { .twoColorsText; margin-top: @spacer25px; } .popular_post { color: @baGrayText2; } .italic { font-style:italic; } .gray_padded.categories li { } .gray_padded.categories a, .gray_padded.archives a, .gray_padded.rss_links a { color: @baGrayBlogTitle; font-size: 16px; font-family: georgia; &:hover { color: @baBlue; } } .gray_padded.popular ul li { margin-bottom: @spacer30px; a { color: @baGrayText; display:block; &:hover { color: @baGrayBlogTitle; } } &:last-child { margin-bottom: 0; } } .tweet { margin-bottom: @spacer30px; .date { font-size:10px; text-transform:uppercase; } a { color:#bbb; &:hover { color:@baBlue; } } } .social_share { position:relative; height:50px; .facebook_share { padding:20px 0 0 30px; float:left; position:absolute; } .google_share { position:absolute; left:120px; top:22px; } .twitter_share { position:absolute; left:205px; top:20px; } } /* NEW SERVICES E-COMMERCE PAGE */ body.services.e-commerce { .sub-banner { height:200px; background: #000; margin:0 0 30px 0; &#ecommerce-header { background:url(images/services/e-commerce/services-ecommerce-headbanner.jpg) center top no-repeat #000; } } .pagewrap { margin-top:0px; width:100%; #main_content { float:none; width:auto; #work_header { display:none; } .services_fixedwidth { width:936px; margin: 0 auto; } .services_text_block { margin:0 0 30px 0; color:#5a5a5a; h2 { font-size:28px !important; margin:0 0 20px 0 !important; color:#000 !important; } .text_content { column-count: 2; -moz-column-count: 2; -webkit-column-count: 2; column-gap:20px; -moz-column-gap:20px; -webkit-column-gap:20px; font-size:16px; line-height: 22px; p { margin:0 0 30px 0 !important; } } &.services_magento { background:url(images/services/e-commerce/services-content-magento.gif) no-repeat top right #eee; min-height: 300px; padding:30px 355px 0px 30px; margin-bottom: 40px; } &.services_twocols { background: #eee; padding: 30px; h2 { padding-left:10px !important; } .text_content { column-count: 1; -moz-column-count: 1; -webkit-column-count: 1; .content_col { float:left; width:418px; padding:0 10px 0 10px; .content_quote { font-size:20px; line-height: 24px; } .client_name { color:#000; } } } }/* .services_twocols */ &.services_threecols { background: none; padding: 0 30px 0 30px; h2 { padding-left:10px !important; } .text_content { column-count: 1; -moz-column-count: 1; -webkit-column-count: 1; .content_col { float:left; width:272px; padding:0 10px 0 10px; ul { list-style: none; li { line-height:25px; } } } } }/* .services_threecols */ .slider_container { float: left; width:435px; height:250px; .elementBorder; padding:5px; margin:0 0 0 20px; .slider { height:250px; display: block; overflow: hidden; img { float:left; } } } .slider_content { width:419px; float: left; padding:0 20px 0 30px; .text_content { column-count: 1; -moz-column-count: 1; -webkit-column-count: 1; } } &.chalkboard { background:url(images/services/background-chalkboard.jpg) center top #000; height: 893px; color:#bbb; padding:30px 0 0 0; h2 { color:#fff !important; } .services_content_fixedwidth { width: 936px; margin: 0 auto; font-size: 16px; line-height: 22px; .postit_row { padding:140px 0 0 0; .postit_caption { width:292px; float:left; font-size:15px; line-height: 20px; padding:0 10px; } } } } }/* .services_text_block */ }/* #main_content */ }/* .pagewrap */ #footer_bar { margin-top:50px; } }