/**
 * notion-enhancer
 * (c) 2023 dragonwocky <thedragonring.bod@gmail.com> (https://dragonwocky.me/)
 * (https://notion-enhancer.github.io/) under the MIT license
 */

@keyframes skeleton-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

::selection {
  background: var(--theme--accent-primary_transparent);
}
*:focus-visible {
  outline: 3px solid var(--theme--accent-primary);
}
*:focus-visible[role="option"] {
  outline: none;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: transparent;
}
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: var(--theme--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--theme--scrollbar-thumb);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--theme--scrollbar-thumb_hover);
}

body {
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 240px auto;
  width: 100vw;
  height: 100vh;
  margin: 0;
  color: var(--theme--fg-primary);
  font-family: var(--theme--font-sans);
  overflow: hidden;
}

body > #skeleton {
  background: rgba(86, 86, 86, 0.1);
}
body > #skeleton .row {
  display: flex;
  align-items: center;
  padding: 0 15px;
  margin: 2px 0;
  height: 27px;
}
body > #skeleton .shimmer {
  height: 14px;
  overflow: hidden;
  position: relative;
  border-radius: 4px;
  background: rgba(86, 86, 86, 0.1);
}
body > #skeleton .shimmer.icon {
  margin-left: 1px;
  margin-right: 9px;
  height: 18px;
  width: 18px;
}
body > #skeleton .shimmer::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  z-index: 1;
  animation: 1s linear infinite skeleton-shimmer;
  background: linear-gradient(
    90deg,
    transparent 0,
    rgba(86, 86, 86, 0.1) 50%,
    transparent 100%
  );
}
body > #skeleton .row-group {
  height: 24px;
  margin-top: 18px;
}
body > #skeleton .row-group:first-child {
  margin-top: 10px;
}
body > #skeleton .row-group .shimmer {
  height: 11px;
}

.typography mark {
  padding: 0 4px;
  border-radius: 3px;
  background-color: var(--theme--bg-hover);
  color: inherit;
}
.typography code {
  padding: 0 4px;
  border-radius: 3px;
  background-color: var(--theme--code-inline_bg);
  color: var(--theme--code-inline_fg);
}
.typography kbd {
  padding: 2px 4px;
  border-radius: 6px;
  border: solid 1px var(--theme--fg-border);
  box-shadow: inset 0 -1px 0 var(--theme--fg-border);
}
.typography a {
  text-decoration: underline;
  transition: 100ms ease-in;
}
.typography a:hover {
  color: var(--theme--accent-secondary);
}

/* https://coloris.js.org/ */
.clr-picker {
  background-color: var(--theme--bg-secondary) !important;
}
.clr-color {
  background-color: var(--theme--bg-hover) !important;
  border-color: var(--theme--fg-border) !important;
  color: var(--theme--fg-primary) !important;
}
.clr-preview:after,
.clr-preview:before {
  border-color: var(--theme--fg-border) !important;
}
