Sha256: 42c00bc163dd10c6a33c5134ca304617e8fc01c934653283611f01627f2707f3

Contents?: true

Size: 1.04 KB

Versions: 27

Compression:

Stored size: 1.04 KB

Contents

@import "./highlight_github_light.css";

@layer components {
  [data-component="code"] {
    @apply text-sm px-4 overflow-x-hidden;

    & .line {
      min-height: 1.625em;
      @apply leading-relaxed;
    }

    & .code {
      @apply overflow-x-auto overflow-y-hidden py-4;
    }

    /* Line numbers */

    &.numbered {
      @apply p-0;

      & .wrapper {
        grid-template-columns: min-content 1fr;
        @apply grid h-full w-full relative;
      }

      & .line-numbers {
        width: min-content;
        @apply bg-white border-r border-dashed border-lookbook-divider z-10 h-full p-3 select-none text-gray-400 text-right;
      }

      & .line-number {
        min-width: 1.4em;
        @apply text-xs block pt-[4px];
      }

      & .code {
        @apply py-3;
      }

      & .code .line {
        @apply px-3;
      }
    }

    /* Focusing on specific lines */

    &.focussed {
      & .line:not(.highlighted) {
        @apply !opacity-30;
      }

      & .code .line.highlighted {
        @apply bg-yellow-50;
      }
    }
  }
}

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
lookbook-1.3.1 app/components/lookbook/code/component.css
lookbook-1.3.0 app/components/lookbook/code/component.css
lookbook-1.2.1 app/components/lookbook/code/component.css
lookbook-1.2.0 app/components/lookbook/code/component.css
lookbook-1.1.1 app/components/lookbook/code/component.css
lookbook-1.1.0 app/components/lookbook/code/component.css
lookbook-1.0.8 app/components/lookbook/code/component.css
lookbook-1.0.7 app/components/lookbook/code/component.css
lookbook-1.0.6 app/components/lookbook/code/component.css
lookbook-1.0.5 app/components/lookbook/code/component.css
lookbook-1.0.4 app/components/lookbook/code/component.css
lookbook-1.0.3 app/components/lookbook/code/component.css
lookbook-1.0.2 app/components/lookbook/code/component.css
lookbook-1.0.1 app/components/lookbook/code/component.css
lookbook-1.0.0 app/components/lookbook/code/component.css
lookbook-1.0.0.rc.3 app/components/lookbook/code/component.css
lookbook-1.0.0.rc.2 app/components/lookbook/code/component.css
lookbook-1.0.0.rc.1 app/components/lookbook/code/component.css
lookbook-1.0.0.beta.8 app/components/lookbook/code/component.css
lookbook-1.0.0.beta.7 app/components/lookbook/code/component.css