/* variables ---------- */ @green: #738033; @dark-green: #4b5816; @red: #ae1e23; @yellow: #f6c148; @cream: #fce1cd; @sans: "Helvetica Neue", Arial, Helvetica, sans-serif; @serif: Georgia, Times, "Times New Roman", serif; @border-style: 1px solid #ccc; /* mixins ---------- */ .shadow(@x: 0, @y: 0, @blur: 5px, @color: fadeout(#000, 50%)) { -moz-box-shadow: @x @y @blur @color; -webkit-box-shadow: @x @y @blur @color; box-shadow: @x @y @blur @color; } .vertical-gradient(@from, @to) { background-image: -moz-linear-gradient(center top, @from, @to); background-image: -webkit-gradient(linear, left top, left bottom, from(@from), to(@to)); } .rounded(@radius: 5px) { -moz-border-radius: @radius; -webkit-border-radius: @radius; border-radius: @radius; } /* reset ---------- */ html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{background:transparent;border:0;font-size:100%;margin:0;outline:0;padding:0;vertical-align:baseline;}body{line-height:1;}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;}nav ul{list-style:none;}blockquote,q{quotes:none;}blockquote:before,blockquote:after,q:before,q:after{content:none;}a{background:transparent;font-size:100%;margin:0;padding:0;vertical-align:baseline;}ins{background-color:#ff9;color:#000;text-decoration:none;}mark{background-color:#ff9;color:#000;font-style:italic;font-weight:700;}del{text-decoration:line-through;}abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help;}table{border-collapse:collapse;border-spacing:0;}hr{border:0;border-top:1px solid #ccc;display:block;height:1px;margin:1em 0;padding:0;}input,select{vertical-align:middle;} /* foundation ---------- */ html { background: @green url(../img/background.png) center center repeat fixed; } body { color: #333; font: 12px/normal @sans; } /* general typography and embellishments ---------- */ h1 { border-bottom: 1px dotted @red; color: @red; font: 20px/normal @serif; margin: 25px 0 1em; padding-bottom: 5px; } h2 { color: #333; font-size: 18px; } h3 { color: @red; font-family: @serif; font-size: 16px; font-weight: normal; } h4 { font-size: 12px; } p { margin-bottom: 1em; } .framed { .shadow; border: 5px solid #fff; img { display: block; } } #body { ul, ol { margin-bottom: 1em; padding-left: 3em; } ul { list-style-type: square; } a { color: @red; text-decoration: underline; &:hover { text-decoration: none; } } } #sidebar { h4 { font-size: 14px; margin-bottom: 0.5em; text-align: center; text-transform: uppercase; } } .align-left { text-align: left; } .align-center { text-align: center; } .align-right { text-align: right; } .float-left { float: left; } .float-right { float: right; } #br_alert, #br_message { background: lighten(#c00, 50%); border: 1px solid #c00; margin-bottom: 1em; padding: 0.5em; p { margin: 0; } } #br_message { background: lighten(@green, 50%); border: 1px solid @green; } /* general layout ---------- */ #wrapper { margin: 0 auto; width: 760px; } .banner { .shadow; background: #fff; border: 5px solid @cream; margin-bottom: 10px; img { display: block; } } .clear { clear: both; } /* top bar ---------- */ #top-bar { height: 40px; } #social-icons { float: left; list-style: none; margin-top: 12px; li { float: left; margin-right: 5px; img { display: block; } } } #search-form { float: right; line-height: 40px; input[type=text] { border: 1px solid #333; font-size: 10px; margin: 0; padding: 3px; vertical-align: baseline; } input[type=image] { vertical-align: middle; } } #top-nav { color: #fff; float: right; font-size: 10px; line-height: 14px; list-style: none; margin-right: 2em; margin-top: 13px; text-transform: uppercase; li { float: left; &.welcome { /* text-transform: none !important; */ } + li { border-left: 1px solid #fff; margin-left: 1em; padding-left: 1em; } a { color: #fff; text-decoration: none; &:hover { text-decoration: underline; } } } } /* masthead ---------- */ #masthead { .shadow; background: @red; border: 5px solid @cream; height: 80px; margin-bottom: 10px; position: relative; } #logo { float: left; margin: 20px 0 0 20px; a { background: url(../img/logo.gif) center center no-repeat; display: block; height: 41px; overflow: hidden; text-indent: -999em; width: 150px; } } #main-nav { bottom: 0; float: right; font: 12px/normal @serif; list-style: none; position: absolute; right: 0; text-transform: uppercase; li { border-left: 1px solid #fff; float: left; height: 60px; a { color: #fff; float: left; height: 60px; position: relative; text-decoration: none; width: 110px; &:hover { .vertical-gradient(fadeout(#fff, 100%), fadeout(#fff, 85%)); } span { bottom: 5px; left: 5px; position: absolute; } } } } /* store nav ---------- */ #store-nav { .shadow; background: @yellow; border: 5px solid @cream; font: 11px/30px @serif; list-style: none; margin-bottom: 10px; text-align: center; text-transform: uppercase; li { display: inline; a { color: @red; margin: 0 10px; text-decoration: none; &:hover { text-decoration: underline; } } } } /* body ---------- */ #body { .shadow; background: #fff; overflow: hidden; margin-bottom: 10px; padding: 0 25px 1em; } #main-content { font-size: 13px; line-height: 1.5; &.has-sidebar { float: left; width: 490px; } } #sidebar { float: right; font-size: 11px; line-height: 1.5; width: 200px; ul.subnav { .shadow; background: @yellow; border: 5px solid #fff; font-family: @serif; font-size: 12px; line-height: normal; padding: 0.5em 1em 0.5em 2em; text-transform: uppercase; li { margin: 0.5em 0; a { color: @red; text-decoration: none; &:hover { text-decoration: underline; } } &.current { font-weight: bold; a { /* cursor: text; */ /* text-decoration: none; */ } } } } } /* newsletter form ---------- */ #newsletter-form { .shadow; background: @dark-green; border: 5px solid @cream; clear: both; color: #fff; line-height: 40px; margin-bottom: 10px; overflow: hidden; padding: 0 20px; h3 { color: #fff; float: left; } .fields { float: right; label { font-weight: bold; margin-left: 1em; } input[type=text] { border: 1px solid #333; font-size: 10px; margin: 0; padding: 3px; vertical-align: baseline; } input[type=image] { vertical-align: text-top; } } } /* footer ---------- */ #footer { clear: both; ul { .shadow; background: @red; border: 5px solid @cream; font: 11px/30px @serif; list-style: none; margin-bottom: 10px; text-align: center; text-transform: uppercase; li { display: inline; a { color: #fff; margin: 0 10px; text-decoration: none; &:hover { text-decoration: underline; } } } } p { font-size: 11px; font-weight: bold; margin: 0; padding-bottom: 2em; text-align: center; text-transform: uppercase; } } /* forms ---------- */ #body { fieldset { background: #eee; border-top: @border-style; margin-bottom: 1em; overflow: hidden; padding: 1em 10px 0; legend { font-weight: bold; margin-left: -5px; padding: 0 5px; } } .fields { margin-bottom: 1em; overflow: hidden; padding-left: 210px; > label { display: block; float: left; margin: 2px 0 0 -210px; text-align: right; width: 200px; &.wrapper { display: inline; float: none; margin: 0; text-align: left; width: auto; } } &.no-indent { margin-bottom: 0.5em; padding: 0; > label { float: none; margin: 0; text-align: left; width: auto; } } } a.button, input.primary { .rounded(5px); background: @red; border: none; color: #fff; cursor: pointer; display: inline-block; font: 14px/normal @sans; padding: 5px 10px; text-decoration: none; &:hover { background: lighten(@red, 5%); } } } .required { color: #900; } .form-error { color: #900; display: inline; font: 11px/normal @sans; margin-left: 5px; p { display: inline; } } /* listings ---------- */ #category-menu { .shadow; background: @yellow; border: 5px solid @cream; float: left; margin-bottom: 10px; padding: 1em 10px; width: 170px; h2 { border-bottom: 1px solid @red; color: @red; font: 18px/normal @serif; margin-bottom: 0.5em; padding-bottom: 5px; text-align: center; } ul { display: none; position: relative; font-family: @serif; font-size: 11px; padding-left: 1.5em; margin: 0; padding: 0; list-style-type: none; text-transform: uppercase; li { position: relative; margin: 0.5em 0; margin: 0; padding: 2px 0 2px 18px; background-position: 1px 2px; background-repeat: no-repeat; line-height: 16px; a { color: @red; text-decoration: none; &:hover { text-decoration: underline; } } } } } div.treeNavControl { position: absolute; top: 1px; left: 0; margin: 0; border: 0; background: transparent url(/assets/img/cat_nav_plus.png) center center no-repeat; padding: 0; width: 18px; height: 18px; z-index: 89; } div.treeNavControl { cursor: pointer; } div.treeNavControlAll { margin: 0 auto; padding: 0; } div.treeNavControlAll p { margin: 0 0 5px 0; padding: 0; font: bold 10px/15px Verdana, Arial, Helvetica, sans-serif; color: #CCC; } #body.product-list { float: right; padding-bottom: 2em; width: 500px; #paginate { display: none; } } .product-filters { border-bottom: @border-style; font-size: 11px; margin-bottom: 0.5em; overflow: hidden; padding-bottom: 0.5em; &.bottom { border-bottom: none; border-top: @border-style; margin: 0.5em 0 0; padding: 0.5em 0 0; } .sep { padding: 0 0.5em; } .pagination { strong, a { margin-right: 0.25em; } } a.current { font-weight: bold; text-decoration: none !important; } .left-column { float: left; padding-top: 3px; text-align: left; } .middle-column { margin: 0 auto; text-align: center; width: 50%; } .right-column { float: right; text-align: right; } select { margin: 0; } } #products, #related-products { margin: 2em 0 1em; overflow: hidden; &.grid { .product { float: left; height: 180px; margin: 0 20px 0 0; overflow: hidden; text-align: center; width: 110px; &.column-4 { margin-right: 0; } h3 { font: bold 11px/normal @sans; } .price { display: block; font-size: 11px; margin: 0.5em 0 0; .original { color: #bbb; /* margin-right: 0.5em; */ text-decoration: line-through; } .sale { /* color: @red; */ } .out { color: @red; } } } } } /* product detail ---------- */ #body.product-detail { float: right; width: 500px; .sku { text-transform: uppercase; } .in { color: @green; } .out { color: @red; } } #product-detail { margin: 2em 0 1em; overflow: hidden; } #image-column { float: left; width: 240px; p.view-closeup { margin: 0; padding: 0; font-weight: bold; font-size: 11px; line-height: 16px; a { display: block; margin: 0; border: 0; background: transparent url(/assets/img/view_close_up.png) left center no-repeat; padding: 0 0 0 20px; text-decoration: none; } } div#image-closeup { display: none; position: absolute; top: 50%; left: 50%; margin: -245px 0 0 -240px; border: 0; background: #FFF; padding: 45px 45px 10px; width: 400px; border-radius: 10px; -moz-border-radius: 10px; -webkit-border-radius: 10px; box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.60); -moz-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.60); -webkit-box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.60); z-index: 99; } } #product-column { float: right; width: 240px; .price { font-size: 20px; font-weight: bold; margin: 0 0 0.25em; .original { color: #bbb; font-weight: normal; /* margin-right: 0.5em; */ text-decoration: line-through; } } .description { font-size: 11px; line-height: 1.5; } form { border-top: @border-style; padding-top: 1em; } } #related-products { border-top: @border-style; padding-top: 1em; h2 { font-size: 14px; margin-bottom: 1em; } } /* cart ---------- */ #cart { border-bottom: @border-style; /*margin-bottom: 1em;*/ width: 100%; thead { th { border-bottom: @border-style; font: bold 12px/normal @serif; padding-bottom: 5px; text-align: left; &.product { text-align: left; } } } tfoot { td { font-size: 12px; padding: 5px 0; vertical-align: middle; input { margin-left: 0.5em; } } .cart-actions td { border-bottom: @border-style; } } tbody { td { border-bottom: @border-style; font-size: 12px; padding: 5px 0; text-align: left; vertical-align: middle; &.remove { text-align: left; /*width: 30px;*/ } &.image { text-align: left; /*width: 50px;*/ } &.product { line-height: normal; text-align: left; /*width: 370px;*/ .sku { color: #666; font-size: 10px; text-transform: uppercase; } .note { color: #666; font-size: 11px; } } &.qty { /*width: 80px;*/ input { text-align: center; } } /* &.base-price { width: 80px; } */ &.subtotal { /*width: 90px;*/ } img { vertical-align: middle; } p { margin: 0; } &.price { white-space: nowrap; /*width: 90px;*/ .original { color: #bbb; display: block; /* margin-right: 0.5em; */ text-decoration: line-through; } .sale { /* color: @red; */ } } } } } #cart-totals { border-bottom: @border-style; margin-bottom: 1em; width: 100%; tbody { td { font-size: 12px; padding: 5px 0; text-align: left; vertical-align: middle; } } } #promo-form { /*background: #eee;*/ /*border: @border-style;*/ float: left; font-size: 12px; /*padding: 5px;*/ /*position: relative;*/ /*z-index: 100;*/ * { vertical-align: middle; } } #totals { float: right; margin-bottom: 1em; td { font-size: 12px; } .label { font-weight: bold; text-align: left; width: 90px; } .total { text-align: left; width: 90px; } } /* checkout ---------- */ #main-content.checkout { } /* contact page ---------- */ #body.contact-page { #main-content { float: left; width: 335px; } #sidebar { font-size: 13px; width: 335px; } } /* homepage ---------- */ #body.home { background: #fff; color: @dark-green; float: left; font: 14px/1.5 @serif; padding: 5px; width: 540px; .home-banner { img { display: block; } } h1 { border: none; font-size: 24px; margin: 0.25em 0; padding: 0; } p { margin: 0; } } #sidebar.home { margin-bottom: 10px; > div { .shadow; background: @cream; color: @dark-green; font: 12px/normal @serif; padding: 5px; + div { margin-top: 10px; } p { margin: 0; } img { display: block; } h2 { color: @red; font: 20px/normal @serif; margin: 5px 0; } } > p { display: none; } } /* blog ---------- */ .blog-entry { padding-left: 60px; + .blog-entry { margin-top: 2em; } .date { border: 1px solid @dark-green; float: left; margin-left: -60px; text-align: center; width: 48px; .month { background: @green; border-bottom: 1px solid @dark-green; color: #fff; display: block; font-weight: bold; text-transform: uppercase; } .day { color: @dark-green; font-size: 24px; font-weight: bold; } } } .entry-info { color: #666; font: italic 12px/normal @serif; margin-bottom: 1em; } .item-pagination { border-top: @border-style; font-size: 11px; margin: 2em 0 1em; padding-top: 1em; text-align: center; strong, a { margin: 0 0.25em; } } .photo-gallery { margin-bottom: 1em; position: relative; width: 100%; .photo { .shadow; background: #fff; padding: 5px; img { display: block; } .caption { display: block; font-size: 11px; padding-top: 5px; text-align: center; } } } /* events ---------- */ .event { overflow: hidden; padding-left: 120px; + .event { margin-top: 2em; } .image { float: left; margin-left: -120px; } } /* news ---------- */ .news-item { float: left; font-size: 12px; margin-bottom: 10px; margin-left: 10px; text-align: center; width: 115px; &.column-1 { clear: left; margin-left: 0; } img { display: block; } } /* fallbacks ---------- */ .no-boxshadow { #sidebar ul.subnav, .framed { border-color: #eee; } } /* ee messages ---------- */ #ee-message { font-size: 14px; padding: 20px 0; } /* account ---------- */ #order-history { border: 1px solid #999; margin-bottom: 1em; width: 100%; thead { th { background: #bbb; border: 1px solid #999; font-size: 12px; padding: 3px 5px; text-align: left; } } tbody { td { border: 1px solid #999; font-size: 12px; padding: 3px 5px; text-align: left; } tr:nth-child(even) td { background: #eee; } } }