@import "screen"; @import "compass/css3/border-radius"; /* General purpose styles */ a:hover { color: lighten($link_text_color, 20) !important; } /* Cleared div for clearing previous floating elements */ div.cleared { clear: both; } p.hint { margin: 0 0 0.5em 0; padding: 0; color: #6a6a6a; } table { tbody, tfoot { tr { &.alt, &.odd { background-color: lighten($link_text_color, 75) !important; } } } } /* Style current distributor in main nav bar */ #header { margin-bottom: 40px; #logo { position: relative; margin-top: 40px; padding-top: 10px; h1 { position: absolute; top: 10px; left: 0px; } .change-location { position: absolute; top: 22px; right: -104px; } } } nav #main-nav-bar { position: absolute; top: 0px; left: 10px; width: 100%; #link-to-cart { position: relative; top: 40px; right: 16px; } li { &#current-distribution { float: right; clear: right; margin: 0.5em 5px 0 0; a { font-size: 12px; padding: 0; } } } } nav#top-nav-bar { position: relative; z-index: 999; margin-top: 20px; } /* Based on Spree's nav#taxonomies style. Copied instead of * extended with SASS because SASS does not allow extending * nested selectors. */ nav#filters { .filter_name { text-transform: uppercase; border-bottom: 1px solid lighten($body_text_color, 60); margin-bottom: 5px; font-size: $main_navigation_header_font_size; } .filter_choices { padding-left: 20px; margin-bottom: 5px; list-style: disc outside; li { a { font-size: $main_navigation_font_size; } span.inactive { color: #999; } } } input[type=submit] { margin-bottom: 15px; } } /* Distributor and order cycle selection and display */ #distribution-choice { margin-bottom: 2em; padding: 5px; border: 2px solid #ccc; @include border-radius(10px); } #distribution-selection { overflow: auto; margin-bottom: 2em; padding: 20px; background-color: #f3f3f3; .distributors { float: left; margin-right: 4em; option.local { background-color: #cfc; } option.remote { background-color: #fcc; } } .order-cycles { select { padding: 10px; margin-top: 15px; border: 2px solid white; width: 100%; } float: left; tr.local { background-color: #cfc; } tr.remote { background-color: #fcc; } } } .countdown-panel { background: url("../countdown.png") no-repeat left; min-height: 60px; min-width: 70px; padding-left: 77px; } /* Style the product source on the product details page in the * same manner as the product properties table above it. */ #product-source { @extend #product-properties; } #product-properties td, #product-source td { width: 50%; } /* Apply Spree's ul#products style to ul.product-listing. When viewing products * split by distributor, a separate product listing is displayed for local and * remote products, so the #products id is removed to avoid its duplication. */ ul.product-listing { &:after { content: " "; display: block; clear: both; visibility: hidden; line-height: 0; height: 0; } li { text-align: center; font-weight: bold; margin-bottom: 20px; a { display: block; &.info { height: 35px; margin-top: 5px; font-size: $product_list_name_font_size; color: $product_link_text_color; border-bottom: 1px solid lighten($body_text_color, 60); overflow: hidden; } } .product-image { border: 1px solid lighten($body_text_color, 60); padding: 5px; min-height: 110px; background-color: $product_background_color; &:hover { border-color: $link_text_color; } } .price { color: $link_text_color; font-size: $product_list_price_font_size; padding-top: 5px; display: block; } } } /* Enterprise description */ .enterprise-description { margin-bottom: 2em; } /* Supplier page distributor listing */ #supplier-distributors li a.inactive { color: #999; } /* Highlight local products in distributor-split product listings */ #products-local ul { margin-bottom: 1em; padding: 10px; @include border-radius(10px); background-color: #def; } /* Distributor details on product details page */ fieldset#product-distributor-details { float: right; margin-top: 0; width: 250px; @extend #shipping; } #product-variants { float: none; ul { list-style-type: none; } } /* Add to cart form on product details page */ #cart-form { .error-distributor { font-size: 120%; font-weight: bold; color: #f00; a { color: #f00; text-decoration: underline; } } .distributor-fixed { } } /* View cart form */ #subtotal { width: 100%; } .links { float: right; text-align: right; } #empty-cart { float: left; margin-top: 15px !important; p { padding: 0; } } /* Checkout address page */ #checkout .alternative-available-distributors { padding-top: 30px; } /* Delivery fees table on checkout page */ #delivery-fees { clear: both; padding-top: 6em; table#delivery { width: 100%; tbody { tr { td.item-shipping-cost, td.item-shipping-method { text-align: center; } td.item-shipping-cost { @extend span.price; @extend span.price.selling; } } } } .subtotal { width: 100%; text-align: right; text-transform: uppercase; margin-top: 15px; span.order-total { @extend span.price; } } } /* Alert for EFT Payment during checkout process */ div#eft-payment-alert { border: 2px solid red; padding-left: 5px; } /* Large 'Save and Continue/Process My Order' button under Order Summary on the checkout pages */ #add_new_save_checkout_button { display: none; margin-top: 30px; padding-top: 10px; border-top: 1px solid #d9d9db; } .secondary { color: #6A6A6A; } .hide { display: none; } /* Distributor details */ .distributor-details .next-collection-at { font-size: 20px; font-weight: bold; color: #de790c; }