mirror of
https://github.com/medialab-prado/datamad2017.git
synced 2024-12-27 13:11:22 +01:00
65 lines
No EOL
1.3 KiB
SCSS
65 lines
No EOL
1.3 KiB
SCSS
@mixin vendorize($property, $value) {
|
|
@each $prefix in -webkit-, -moz-, -ms-, -o-, '' {
|
|
#{$prefix}#{$property}: $value;
|
|
}
|
|
}
|
|
|
|
@mixin clear() {
|
|
&:before, &:after {
|
|
content: "\0020";
|
|
display: block;
|
|
height: 0;
|
|
overflow: hidden;
|
|
}
|
|
&:after {
|
|
clear: both;
|
|
}
|
|
}
|
|
|
|
@mixin hoverActiveFocus($property, $value) {
|
|
&:hover, &:active, &:focus {
|
|
#{$property}: $value;
|
|
}
|
|
}
|
|
|
|
@mixin linkColor($color) {
|
|
color: $color;
|
|
|
|
&:hover, &:active, &:focus {
|
|
color: lighten($color, $link-lighten-amount);
|
|
}
|
|
}
|
|
|
|
@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;
|
|
}
|
|
|
|
@mixin trimText($font-size, $line-height, $lines) {
|
|
display: block;
|
|
display: -webkit-box;
|
|
overflow: hidden;
|
|
height: $font-size*$line-height*$lines+2px;
|
|
text-overflow: ellipsis;
|
|
-webkit-line-clamp: $lines;
|
|
-webkit-box-orient: vertical;
|
|
} |