/* Hope this will help you find some xCSS tricks. It's deffently not the best practice of OO CSS. */ vars { $img = ../../img; $blue1 = #405073; $blue2 = #AEBFD9; $blue3 = #9DAECA; $blue4 = #B9CDEE; $gray1 = #404040; $gray2 = #CCCCCC; $gray3 = #9A9A9A; $red1 = #D3201E; $red2 = #971614; } .clearer { clear: both; } .logo { self { text-indent: -9999px; display: block; width: 250px; height: 80px; background: url('$img/xcss_logo.png') no-repeat; } a { display: block; height: 80px; } } .sidebar { self { border-left: 1px solid $blue2; float: right; width: 200px; margin: 0 20px 300px 20px; padding: 20px; } } .bigList { self { display: block; float: right; margin-bottom: 40px; } h4 { font-size: 15px; margin-left: 32px; margin-bottom: 8px; } li { height: 48px; padding: 27px 0 0 80px; background: #FFFFFF url('$img/big_list_bg.png') no-repeat; } li:hover{ background-image: url('$img/big_list_bg_hover.png'); } li a { display: block; } li a:hover { } } .bigTypo { font-size: 18px; text-transform: uppercase; } .naviList { self { background: #fff; display: block; float: right; width: 318px; border: 1px solid $blue4; border-right-color: #FFFFFF; padding-bottom: 10px; margin: -9px 0 40px 39px; } h3 { display: block; padding: 3px 0 0 16px; background-color: $blue2; color: #FFFFFF; } h3 object { margin-top: 6px; margin-bottom: -9px; } ul { self{ line-height: 30px; text-align: left; list-style: disc; padding-left: 30px; margin-top: 7px; } li { color: $blue4; } .active { font-weight: bold; } span { color: $blue3; } a { color: $blue1; } a:hover { color: $red1; } } }