/* Hope this will help you find some xCSS tricks. It's deffently not the best practice of OO CSS. */ html { height: 101%; } body { background: #FFFFFF url('$img/headerbg.jpg') repeat-x 0 -340px; font: 14px/1.5 Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif; color: $blue1; letter-spacing: 0.4px; } body.index { background: #FFFFFF url('$img/headerbg.jpg') repeat-x 0 -60px; } .index #header { background: url('$img/headpic.png') no-repeat right -5px; } a { color: $blue1; text-decoration: none; } .inlineLink{ self { font-weight: bold; text-decoration: underline; } self:hover { color: $red1; text-decoration: none; } } p a extends .inlineLink {} .document li a extends .inlineLink {} .document dd a extends .inlineLink {} #header { self { width: 960px; margin: 0 auto; background: url('$img/inside_headerpic.png') no-repeat -63px top; padding-top: 20px; } h1 extends .logo { margin: 20px 53px; } #teaser { self { height: 351px; } h1 { margin-top: 49px; } h2 { self { width: 405px; margin-left: 50px; margin-top: 76px; font-size: 23px; color: #FFFFFF; text-align: justify; letter-spacing: 0.5px; font-weight: normal; } em { color: $red1; } } } #navi { self { display: table; margin-left: 30px; } li { display: table-cell; vertical-align: top; background: url('$img/tab_bg.png') no-repeat 10px 9px; width: 140px; padding-top: 14px; padding-left: 20px; padding-right: 20px; line-height: 7px; font-size: 15px; } .active { background: url('$img/tab_active_bg.png') no-repeat 10px 0px; padding-top: 7px; } li.active:hover a, .active a { color: $red1; padding-top: 12px; padding-bottom: 17px; } li:hover { background: url('$img/tab_active_bg.png') no-repeat 10px 6px; } .active:hover { background: url('$img/tab_active_bg.png') no-repeat 10px 0px; } a { display: block; padding-top: 11px; padding-bottom: 3px; text-align: center; text-decoration: none; text-transform: uppercase; } li:hover a { padding-top: 10px; } } } h3 extends .bigTypo { font-weight: normal; padding-bottom: 15px; } h4 { font-size: 20px; text-transform: uppercase; padding-bottom: 30px; } h5 { font-size: 20px; } #content { self { min-height: 450px; width: 860px; margin: 0 auto; padding: 60px 50px; text-align: justify; } p { self{ color: $gray1; line-height: 23px; padding-bottom: 15px; } } em { font-weight: bold; color: $blue1; } .introduction { float: left; width: 500px; } } .version { self { padding: 0 80px 0 32px; font-size: 20px; margin-top: -7px; margin-bottom: 30px; } a { padding: 7px 0 7px 48px; display: block; border-bottom: 1px dotted $blue4; text-decoration: none; } a:hover { self { border-bottom: 1px solid; background-color: $red1; color: #FFFFFF; border-color: $red2; } span { color: $red2; } } span { font-size: 12px; color: $blue3; vertical-align: super; font-weight: normal; } } .features extends .bigList{ self { width: 310px; } h4 { padding-bottom: 15px; } ul{ margin-bottom: 50px; } li { self { font-size: 14px; font-weight: bold; } div { color: $blue1; display: none; font-weight: normal; font-size: 12px; } } } #footer { self { clear: both; border-top: 1px solid $blue3; border-bottom: 1px solid $blue3; background-color: $blue1; } > div { self { width: 860px; height: 130px; margin: 0 auto; padding: 30px 50px 40px 50px; } h5 { font-size: 17px; border-bottom: 1px dotted $blue3; margin-bottom: 10px; color: #FFF; text-transform: uppercase; } h5 object { margin-bottom: -10px; } div { // display: table-cell; float: left; } .info { width: 500px; padding-right: 40px; } .social { width: 320px; } ul { float: left; width: 250px; } li { line-height: 24px; } } a { padding-top: 1px; color: $blue2; text-decoration: none; display: inline-block; } a:hover { self { margin: 0 -4px; margin-bottom: 2px; padding: 0 4px; padding-top: 3px; padding-right: 10px; line-height: 20px; background-color: #FFFFFF; font-weight: bold; color: $blue1; } img { padding-top: 0px; background-color: #FFFFFF; } } img { padding: 2px; border: 1px solid #FFFFFF; margin-right: 6px; background-color: $blue2; vertical-align: top; } } .extras { self { margin: 40px 0 60px 0; border-bottom: 1px dotted $blue3; } dt extends .bigTypo { padding-top: 30px; border-top: 1px dotted $gray2; display: block; height: 120px; padding-left: 139px; } dt:hover { color: $red1; } dt a { display: block; text-decoration: none; } dt a:hover { text-decoration: underline; color: $red1; } dd { display: block; height: 80px; margin: -80px 0 0 139px; font-size: 12px; color: $gray1; } dd a { display: block; color: $gray1; } dd a:hover { text-decoration: underline; } .even { text-align: right; } dt.even { padding-right: 139px; padding-left: 0; } dd.even { margin: -80px 139px 0 0; } .refresh { background : url('$img/refresh.jpg') no-repeat -16px 0px; } .bundle { background : url('$img/bundle.jpg') no-repeat 360px -9px; } .config { background : url('$img/config.jpg') no-repeat -15px 0px; } } .listBox { self { margin: 20px -15px 0 -15px; } > li extends .naviList { self { width: 200px; float: left; margin: 0; margin-left: 17px; border-right-color: $blue4; } } } .headline{ display: block; width: 400px; } .backbtn { self { display: block; width: 25px; float: right; margin-bottom: -10px; padding-top: 1px; font-size: 14px; font-weight: bold; background-color: $blue2; color: #FFFFFF; text-align: center; } self:hover { background-color: $blue1; } } .document { self { } ul { list-style: circle; padding-left: 16px; padding-bottom: 10px; color: $gray1; } li { padding-bottom: 5px; } dl { padding-bottom: 10px; color: $gray1; border-bottom: 1px dotted $blue2; margin-bottom: 15px; } dl.first { border: none; } dd { padding-bottom: 15px; } } .note { font-weight: bold; color: $red1; } #content .notedescr { font-size: 12px; display: block; padding: 3px 10px 1px 10px; border-top: 1px solid $blue1; background-color: $blue4; color: $blue1; } #content pre { self { border-left: 5px solid $blue2; padding: 0 20px; display: block; width: 450px; margin-bottom: 20px; color: $gray1; font-size: 12px; } code { color: $gray1; } strong { font-weight: normal; border-bottom: 1px dotted $blue2; } .focus { font-weight: bold; color: $blue1; } .extend { color: $red1; } .code_comment { color: $gray3; } self.xcss { background: url('$img/xcss_code_bg.png') no-repeat bottom right; } self.css { background: url('$img/css_code_bg.png') no-repeat bottom right; } } code { color: $blue1; } .smallFont { font-size: 12px; } #content .advice extends #content .notedescr { display: inline; } .mailthis { self { display: block; width: 500px; border-top: 1px dotted $blue4; margin-top: 20px; padding-top: 2px; font-size: 12px; color: $blue1; } a { font-weight: bold; } } #content .changelog { self { margin-top: -10px; } dt { font-weight: bold; padding-top: 10px; } dd { padding-left: 40px; padding-bottom: 5px; } }