mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
59 lines
1.2 KiB
SCSS
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;
|
|
}
|
|
}
|
|
}
|