@label_width: 15%; @field-text: #000000; @field-border: #999999; @field-background: #ffffdd; @field-background-focus: #FFFFFF; @logo-blue: #0099CC; @admin-color: #339966; @error-background: #990000; @error-text: #ffffff; @warning-text: #990000; @required-text: #990000; @black: #000000; @gray: #444444; @lightgray: #E0E0E0; @orange: #FF6600; @white: #FFFFFF; @yellow: #FFFF99; .round_corners (@radius: 5px) { border-radius: @radius; -moz-border-radius: @radius; -webkit-border-radius: @radius; padding: @radius; } .ramka (@size: 150px, @padding: 10px, @radius: 10px) { display: block; width: @size; height: @size; line-height: @size; text-align: center; padding: @padding; background: @lightgray; overflow: hidden; border-radius: @radius; -moz-border-radius: @radius; -webkit-border-radius: @radius; } body { margin: 0; padding: 0; background: @white; color: @gray; text-align: center; } body, input, select, textarea { font-family: Droid Sans, arial, sans-serif; font-size: 16px; } td { font-size: 14px; } .bigtarget { cursor: pointer; } .bigtarget.hovered { background: #eeeeee; } a:link, a:visited { color: @black; text-decoration: none; } a:hover, a:active { color: @logo-blue; text-decoration: underline; } a img { border: none; } a.add, a.edit, a.delete { background: @admin-color; color: @white; padding: .25em 1em; position: absolute; top: -2em; right: 0; font-size: 80%; } a.pagination { color: @logo-blue; } input[type=submit], input[type=reset], input[type=button], a.button { .round_corners(4px); font-size: 13px; background: @logo-blue; color: @white; border-color: @logo-blue; border-width: 2px; border-style: outset; padding: .25em 1em; cursor: pointer; white-space: pre; -moz-box-sizing: border-box; vertical-align: middle; text-decoration: none; width: auto; height: auto; } div.clear { clear: both; } form { .icon { position: absolute; top: 0; right: 0; } .collapsed { display: none; } p.buttons { margin: 1em 0; text-align: center; input { margin: 0 2em; } } } table { width: 100%; td { line-height: 150%; padding: 0 1em; } thead td { color: #ccc; } tbody td { border-top: solid 1px #ccc; } td.right { text-align: right; } td.price { width: 60px; } td.quantity { width: 80px; } td.subtotal { width: 90px; } td.price, td.subtotal, td.total { text-align: right; } td.quantity { text-align: center; vertical-align: middle; input { display: block; margin: 0 auto; text-align: right; } } td.map { width: 400px; padding: 0; div.google_map { width: auto; height: 240px; } } } .menu { li { float: left; margin: 0; padding: 0; list-style: none; } } #wrapper { position: relative; width: 960px; text-align: left; margin: 0 auto; padding-bottom: 2em; border-bottom: solid 2px @lightgray; #header { position: relative; height: 150px; background: @white url("/images/blue_bar.png") repeat-x 0 51px; //border-bottom: solid 2px @lightgray; h1 { width: 210px; height: 80px; margin: 0; padding: 0; position: absolute; left: 20px; top: 50px; background: transparent url(/images/logo.png) no-repeat 0; a { display: block; width: 100%; height: 100%; span { display: none; } } } #session_menu { list-style: none; position: absolute; left: 350px; top: 55px; li { display: inline; margin-left: 1em; font-weight: bold; a { display: block; font-size: 120%; text-decoration: none; .round_corners(5px); padding: .125em .5em; color: @white; } a:hover { background: @lightgray; color: @black; } } } #free_shipping { display: block; width: 100px; height: 100px; background: transparent url("/images/free_shipping.png") no-repeat; position: absolute; top: 5px; left: 230px; } } #container { position: relative; min-height: 400px; padding: 10px 100px; > h2 { color: @black; } .page { p { line-height: 1.6em; } } } #admin_menu { position: absolute; top: 0; right: 0; a { padding: .25em 1em; font-size: 80%; background: @admin-color; color: @white; } } } #footer { clear: both; margin: 30px auto; font-size: 80%; #login { padding-top: 1em; input { font-size: 90%; padding: 0; } } } .collapsed { display: none; } .shop { position: relative; padding-top: 20px; div.thumbnail { .ramka(150px, 10px, 10px); img { vertical-align: middle; }} div.preview { .ramka(250px, 13px, 13px); img { vertical-align: middle; }} #price { width: 276px; height: 60px; margin: 1em 0 3em; text-align: center; vertical-align: middle; color: @orange; h1 { font-size: 60px; line-height: 60px; margin: 0; } } .body { font-size: 150%; float: right; width: 460px; > h1 { margin: 0; } ul { margin: 0; padding: 0 0 0 .75em; list-style-position: outside; li { margin: 0; padding: 0; } } } .product { position: relative; .round_corners(10px); width: 170px; margin: 0 31px; text-align: center; float: left; .image { min-height: 150px; max-width: 150px; margin: 0 auto; border: solid 1px @lightgray; background: @white url(/images/image_not_found.png) no-repeat center; } .thumbnail { margin: 0 auto; } .title { font-size: 18px; margin: 1em 0 0; } .price { font-size: 36px; font-weight: bold; margin: 0; color: @orange; } .new { position: absolute; left: 10px; top: -20px; width: 77px; height: 77px; background: transparent url(/images/new.png) no-repeat center; em { display: none; } } } } #cart { position: absolute; top: 120px; left: 80px; font-size: 80%; text-align: center; line-height: 100%; .round_corners(4px); padding: 5px 10px; background: @yellow; } form { position: relative; width: auto; p { clear: both; margin: 0; padding: .25em 0; > label { display: block; padding: .125em 0; font-size: 110%; line-height: 1em; small { display: block; font-weight: normal; font-style: italic; } } label.required { font-weight: bold; sup { color: @required-text; margin-left: -.125em; vertical-align: text-top; } } input, textarea, select { .round_corners(4px); border: 1px inset @field-border; color: @field-text; background: @field-background; vertical-align: middle; } input:focus, textarea:focus, select:focus { background: @field-background-focus; } input[type=image] { border: none; } > span { display: inline-block; input { display: inline-block; } label { display: inline-block; float: none; width: auto; text-align: left; padding-left: .5em; margin-right: 1em; cursor: pointer; } } .with_error { border-color: @warning-text; } em.error { font-size: 12px; color: @warning-text; margin-left: .5em; } } p.form-buttons { margin: 2em 0 1em; text-align: center; border: none; line-height: 5em; span.spinner { img { margin: 0 1em; } } } .two-columns { > label { display: inline-block; width: @label_width; vertical-align: top; text-align: right; padding-right: 1em; } input[type=text][size="30"], input[type=password], textarea { display: inline-block; } } div.submit-field { border: none; div.input { margin-left: 12em; } } } #errorExplanation { padding: 10px 40px; margin-bottom: 2em; background: @error-background; color: @error-text; p { border: none; } } .flashes { margin: 10px 0; div { clear: both; padding: 5px; span { float: left; margin-right: .3em; } } } #orders { td { font-size: 13px; } }