Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • feat/new-image-formats
  • clickable-select-chevron
  • 2.20.0
  • 2.19.0
  • 2.18.0
  • 2.17.0
  • 2.16.1
  • 2.16.0
  • 2.15.0
  • 2.14.0
  • 2.13.0
  • 2.12.1
  • 2.11.0
  • 2.10.0
  • 2.9.1
  • 2.9.0
  • 2.8.0
  • 2.7.1
  • 2.7.0
  • 2.6.0
  • 2.5.2
  • 2.5.1
23 results

chips.pcss

Blame
  • chips.pcss 1.49 KiB
    .chip {
      @apply
        flex inline-flex items-center
        py-2 px-3
        text-xs
        font-bold leading-none tracking-normal
        whitespace-no-wrap;
    }
    
    .chip--condensed {
      @apply p-1;
    }
    
    .chip--black {
      @apply bg-black text-white;
    }
    .chip--grey-700 {
      @apply bg-grey-700 text-white;
    }
    .chip--grey-500 {
      @apply bg-grey-500 text-white;
    }
    .chip--grey-125 {
      @apply bg-grey-125 text-black;
    }
    .chip--blue-300 {
      @apply bg-blue-300 text-white;
    }
    .chip--cyan-200 {
      @apply bg-cyan-200 text-white;
    }
    .chip--cyan-500 {
      @apply bg-cyan-500 text-white;
    }
    .chip--green-300 {
      @apply bg-green-300 text-white;
    }
    .chip--green-400 {
      @apply bg-green-400 text-white;
    }
    .chip--orange-300 {
      @apply bg-orange-200 text-white;
    }
    .chip--violet-400 {
      @apply bg-violet-400 text-white;
    }
    .chip--red-600 {
      @apply bg-red-600 text-white;
    }
    
    .chip--hoveractive:hover {
      &.chip--black {
        @apply bg-grey-700;
      }
      &.chip--grey-700 {
        @apply bg-grey-500;
      }
      &.chip--grey-500 {
        @apply bg-grey-300;
      }
      &.chip--grey-125 {
        @apply bg-grey-100;
      }
    }
    
    .chip__icon {
      @apply self-center cursor-pointer;
    
      font-size: .7rem;
    }
    
    .chip--lg {
      @apply py-2 pl-3;
    }
    
    .chip--select {
      @apply relative p-0 inline-flex items-center;
    
      select {
        @apply w-full py-2 pl-3 pr-8 z-10 cursor-pointer;
    
        appearance: none;
        background: none;
      }
    
      &.chip--lg {
        @apply p-0;
    
        select {
          @apply py-3 pl-4 pr-8;
        }
      }
    
      .chip__icon {
        @apply
          absolute
          right-0
          pl-2 pr-3
          cursor-pointer;
      }
    }