Files
mattermost/webapp/sass/utils/_mixins.scss
2016-11-11 08:23:43 -05:00

59 lines
1.2 KiB
SCSS

@charset 'UTF-8';
@mixin file-icon($path) {
@include background-size(60px auto);
background-color: $white;
background-image: url($path);
background-position: center;
background-repeat: no-repeat;
}
@mixin alpha-property($property, $color, $opacity) {
#{$property}: rgba($color, $opacity);
}
@mixin font-smoothing($value: antialiased) {
@if $value == antialiased {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@else {
-webkit-font-smoothing: subpixel-antialiased;
-moz-osx-font-smoothing: auto;
}
}
@mixin cursor($value) {
cursor: -webkit-$value;
cursor: zoom-$value;
}
// Webrtc button
@mixin webrtc-button {
.webrtc__button {
@include border-radius(50px);
background: $button--ready;
display: block;
height: 33px;
text-align: center;
width: 33px;
&.on,
&:hover {
background: darken($button--ready, 5%);
}
&.offline {
background: $video-circle-offline;
&:hover {
background: $video-circle-offline;
}
}
svg {
fill: $white;
}
}
}