Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

3.1 KB
Raw Blame
@keyframes indeterminate-bar {
  0% {
    transform: translate3d(-60%, 0, 0);
  }
  100% {
    transform: translate3d(340%, 0, 0);
  }
}

.indeterminate-bar {
  animation: indeterminate-bar 1s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .indeterminate-bar {
    width: 100%;
    animation: none;
    transform: none;
    opacity: 0.55;
  }
}

.scrollbar-thin {
  scrollbar-width: thin;
}

/* custom scrollbar */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: #9ca3af;
  border-radius: 10px;
  cursor: pointer;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #6b7280;
}

.arrows-handle {
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  cursor: grab;
}

/*
input[type="range"]::-webkit-slider-thumb {
  transition: transform 150ms ease;
}
input[type="range"]::-webkit-slider-thumb:active {
  transform: scale(.98);
}

input[type="range"]::-moz-range-thumb {
  transition: transform 150ms ease;
}
input[type="range"]::-moz-range-thumb:active {
  transform: scale(.98);
} */

.arrows-handle::-webkit-slider-thumb {
  transition: transform 150ms ease;
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2212%22%20height%3D%228%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8%20.5v7L12%204zM0%204l4%203.5v-7z%22%20fill%3D%22%23FFFFFF%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E');
  background-position: center;
  background-repeat: no-repeat;
  cursor: grab;
}

.arrows-handle::-webkit-slider-thumb {
  /* indigo-600 */
  background-color: oklch(51.1% 0.262 276.966);
}

.arrows-handle::-webkit-slider-thumb:hover {
  /* indigo-700 */
  background-color: oklch(45.7% 0.24 277.023);
}

.arrows-handle::-webkit-slider-thumb:active {
  transform: scale(0.97);
}

.arrows-handle::-moz-range-thumb {
  transition: all 150ms ease;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2212%22%20height%3D%228%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8%20.5v7L12%204zM0%204l4%203.5v-7z%22%20fill%3D%22%23FFFFFF%22%20fill-rule%3D%22nonzero%22%2F%3E%3C%2Fsvg%3E');
  background-position: center;
  background-repeat: no-repeat;
  cursor: grab;
}

.arrows-handle::-moz-range-thumb {
  /* indigo-600 */
  background-color: oklch(51.1% 0.262 276.966);
}

.arrows-handle::-moz-range-thumb:hover {
  /* indigo-700 */
  background-color: oklch(45.7% 0.24 277.023);
}

.arrows-handle::-moz-range-thumb:active {
  transform: scale(0.97);
}

/* hover-always: visible on hover for devices that support it, 
   and always visible for devices that don't support hover */
@media (hover: hover) and (pointer: fine) {
  .hover-always-overflow {
    overflow: hidden;
  }

  .hover-always-overflow:hover {
    overflow: auto;
  }
}

@media not all and (hover: hover) and (pointer: fine) {
  .hover-always-overflow {
    overflow: auto;
  }
}