-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmixins.less
More file actions
19 lines (18 loc) · 1.8 KB
/
mixins.less
File metadata and controls
19 lines (18 loc) · 1.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// media query vars
@media-smartphone: ~"only screen and (max-width: 767px)";
@media-smartphone-medium: ~"only screen and (max-width: 480px)";
@media-smartphone-small: ~"only screen and (max-width: 375px)";
@media-tablet: ~"only screen and (min-width: 768px) and (max-width: 991px)";
@media-laptop-small: ~"only screen and (min-width: 992px)";
@media-laptop-large: ~"only screen and (min-width: 1200px)";
// helpers
.scale(@ratio: 1.5) { .transform(scale(@ratio)); }
.transition(@duration: 0.2s, @target:all, @ease:ease-out) { -webkit-transition: @target @duration @ease;-moz-transition: @target @duration @ease;-o-transition: @target @duration @ease;transition: @target @duration @ease; }
.box-shadow(@arguments) { -webkit-box-shadow: @arguments;-moz-box-shadow: @arguments;box-shadow: @arguments; }
.rounded(@radius: 2px) { -khtml-border-radius: @radius;-webkit-border-radius: @radius;-moz-border-radius: @radius;border-radius: @radius; }
.transform(...) { -webkit-transform: @arguments;-moz-transform: @arguments;-o-transform: @arguments;-ms-transform: @arguments;transform: @arguments; }
.greyscale(@grey_range: 1) { -webkit-filter: grayscale(@grey_range);-moz-filter: grayscale(@grey_range);-o-filter: grayscale(@grey_range);-ms-filter: grayscale(@grey_range);filter: grayscale(@grey_range); }
.blur(@blur_radius: 5px) {-webkit-filter: blur(@blur_radius);-moz-filter: blur(@blur_radius);-o-filter: blur(@blur_radius);-ms-filter: blur(@blur_radius);filter: blur(@blur_radius);}
.placeholder-color(@color: #666) { ::-webkit-input-placeholder { color: @color; } ::-moz-placeholder { color: @color; } :-ms-input-placeholder { color: @color; } :-moz-placeholder { color: @color; }}
// Helpers : handling display flex in every browser
.display-flex {display:-webkit-box;display:-moz-box;display:-ms-flexbox;display:-webkit-flex;display:flex;}