Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web-design-weekly/sass-mixins #1

Open
TimPietrusky opened this issue Jul 26, 2013 · 4 comments
Open

web-design-weekly/sass-mixins #1

TimPietrusky opened this issue Jul 26, 2013 · 4 comments

Comments

@TimPietrusky
Copy link
Member

https://github.com/web-design-weekly/sass-mixins/blob/master/mixins.scss

@DarbyBrown
Copy link

//flex box old and new syntax, think this is Chris Coyiers

@mixin flexbox() {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
}

@mixin flex($values) {
-webkit-box-flex: $values;
-moz-box-flex: $values;
-webkit-flex: $values;
-ms-flex: $values;
flex: $values;
}

@mixin order($val) {
-webkit-box-ordinal-group: $val;
-moz-box-ordinal-group: $val;
-ms-flex-order: $val;
-webkit-order: $val;
order: $val;
}

@DarbyBrown
Copy link

// stop user from selecting elements

@mixin callout () {
-webkit-touch-callout: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

@KittyGiraudel
Copy link

A lot of mixins from Tim's link shouldn't be mixins but placeholders for better performances.

@DarbyBrown
Copy link

// Placeholder color on form inputs

@mixin placeholder ($placeholder: #fff){
::-webkit-input-placeholder {
color: $placeholder;
}
:-moz-placeholder { /* Firefox 18- /
color: $placeholder;
}
::-moz-placeholder { /
Firefox 19+ */
color: $placeholder;
}
:-ms-input-placeholder {
color: $placeholder;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants