Skip to content

Instantly share code, notes, and snippets.

@d8ta
Last active August 29, 2015 14:11
Show Gist options
  • Save d8ta/a06fa6c70e006fdfc70a to your computer and use it in GitHub Desktop.
Save d8ta/a06fa6c70e006fdfc70a to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
// ----
// Sass (v3.4.7)
// Compass (v1.0.1)
// ----
/* mixin */
@mixin my-mixin($color: red) {
border: 1px solid $color;
width: 100px;
}
/*
@include apply-to-ie9-only() {
.ie9 {
@content;
}
}
@inclue apply-to-ie9-only {
#logo {
color: blue;
}
}
*/
.test {
@include my-mixin(blue);
}
.test2 {
@include my-mixin(yellow);
}
.error {
border: 1px solid red;
color: red;
}
.form-error {
@extend .error;
color: blue;
}
.serious-error {
@extend .error;
}
//placeholder selector
%error-hallo { // gleich wie .error
color: blue;
}
%clearfix {
overflow: hidden;
}
%list-reset {
margin: 0;
}
.my-error {
@extend %error-hallo;
}
.my-list {
@extend %list-reset;
}
@function myPrefix-test($size:960) {
@return floor($size/960px*100%);
}
#test {
width: myPrefix-test(100px);
}
/* mixin */
/*
@include apply-to-ie9-only() {
.ie9 {
@content;
}
}
@inclue apply-to-ie9-only {
#logo {
color: blue;
}
}
*/
.test {
border: 1px solid blue;
width: 100px;
}
.test2 {
border: 1px solid yellow;
width: 100px;
}
.error, .form-error, .serious-error {
border: 1px solid red;
color: red;
}
.form-error {
color: blue;
}
.my-error {
color: blue;
}
.my-list {
margin: 0;
}
#test {
width: 10%;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment