Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/replay/frontend/src/assets/style/common-mixins.scss
1030 views
@mixin baseStyle {
  body {
    user-select: none;
    cursor: default;
    margin: 0;
    padding: 0;
    width: 100vw;
    overflow: hidden;
    font-family: system-ui, sans-serif;
  }

  * {
    box-sizing: border-box;
  }

  button {
    -webkit-filter: brightness(100%);

    &:hover {
      -webkit-filter: brightness(90%);
      -webkit-transition: all 0.3s ease;
    }
  }
}

@mixin centerIcon($size: contain) {
  @if $size == 'contain' {
    background-size: $size;
  } @else {
    background-size: $size * 1px;
  }
  background-position: center;
  background-repeat: no-repeat;
}

@mixin noButtons($width: 6px, $color: rgba(0, 0, 0, 0.38), $hoverColor: rgba(0, 0, 0, 0.54)) {
  &::-webkit-scrollbar {
    width: $width;
  }
  &::-webkit-scrollbar-button {
    width: 0px;
    height: 0px;
  }
  &::-webkit-scrollbar-thumb {
    background: $color;
    border: 0px none #ffffff;
    border-radius: 0px;
  }
  &::-webkit-scrollbar-thumb:hover {
    background: $hoverColor;
  }
  &::-webkit-scrollbar-corner {
    background: transparent;
  }
}