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

figure.pcss

Blame
  • figure.pcss 669 B
    .figure,
    .content-block figure {
      @apply relative;
    
      img {
        @apply w-full;
      }
    
      figcaption {
      @apply absolute flex items-end z-10 bottom-0 left-0 w-full h-full px-4 py-4 text-white text-sm leading-tight;
    
        &:before {
          @apply absolute block top-0 left-0 bottom-0 right-0 pointer-events-none opacity-100 transition duration-200;
    
          content: "";
          z-index: -1;
    
          background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.8));
    
          @screen sm {
            background: linear-gradient(to bottom, rgba(0,0,0,0) 60%, rgba(0,0,0,.8));
          }
        }
      }
    
      &:hover,
      &:focus {
        figcaption:before {
          @apply opacity-0;
        }
      }
    }