$textColor: #222333;
p {
color: $textColor;
}
p { color: #222333; }
p.x {
$totalWidth: 120px;
$padding: 12px;
padding: $padding;
width: $totalWidth - $padding * 2.0;
}
p {
color: lighten($textColor, 10%);
}
.navigation {
li {
background-color: red;
}
a {
color: white;
font-weight: bold;
}
}
.navigation li {
background-color: red;
}
.navigation a {
color: white;
font-weight: bold;
}
.something {
font-family: Helvetica, Sans-Serif;
/* hack for ie6 */
_font-family: Comic Sans, Comic Sans MS;
}
.something {
font-family: Helvetica, Sans-Serif;
.ie6 & {
font-family: Comic Sans, Comic Sans MS;
}
}
<!--[if lt IE 7]> <html class='ie6 oldie'> <![endif]--> <!--[if IE 7]> <html class='ie7 oldie'> <![endif]--> <!--[if IE 8]> <html class='ie8'> <![endif]--> <!--[if gt IE 8]><!--> <html> <!--<![endif]-->
.box {
// simulated box shadow using borders
border-bottom: 1px solid #666;
border-right: 1px solid #777;
.boxshadow & {
border: none;
box-shadow: #666 1px 1px 1px;
}
}
@mixin text-colored {
color: $textColor;
}
p {
@include text-colored;
}
p { color: #222333; }
p {
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
-ms-border-radius: 10px;
-o-border-radius: 10px;
border-radius: 10px;
}
@mixin border-radius($value){
-moz-border-radius: $value;
-webkit-border-radius: $value;
-ms-border-radius: $value;
-o-border-radius: $value;
border-radius: $value;
}
p {
@include border-radius(2px 2px 0 0);
}
@mixin vendor-prefix($property, $value){
-moz-#{$property} : $value;
-webkit-#{$property} : $value;
-ms-#{$property} : $value;
-o-#{$property} : $value;
#{$property} : $value;
}
@mixin border-radius($value){
@include vendor-prefix('border-radius', $value);
}
@mixin clearfix {
&:before, &:after {
content: "\0020";
display: block;
height: 0;
visibility: hidden;
}
&:after {
clear: both;
}
zoom: 1;
}
@mixin no-select() {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.home-icon {
background: url('imgs/sprite.png') no-repeat -922px -210px;
width: 72px;
height: 58px;
}
$icons: sprite-map("icons/*.png");
.home-icon {
sprite($icons, home);
}
.home-icon {
background: url('/static/assets/u8Y7yEQL0UffAVw5rX7yhw.png?_=1298240989') 0 -24px no-repeat;
}
$yellow: #ff0;
@import colors;
.snow { color: $yellow; }
.snow { color: #ff0; }
$yellow: #ff0;
.sun { color: $yellow; }
@import colors;
.snow { color: $yellow; }
.sun { color: #ff0; }
.snow { color: #ff0; }