Skip to content
Snippets Groups Projects
Select Git revision
  • 7a163df2fc019b0a1ed5e6ecd8efd4c52f64bb29
  • test default protected
  • master protected
  • feat/custom-css
  • feat/redesign-improvements-10
  • feat/redesign-improvements-8
  • feat/redesign-fixes-3
  • feat/pirstan-changes
  • feat/separate-import-thread
  • feat/dary-improvements
  • features/add-pdf-page
  • features/add-typed-table
  • features/fix-broken-calendar-categories
  • features/add-embed-to-articles
  • features/create-mastodon-feed-block
  • features/add-custom-numbering-for-candidates
  • features/add-timeline
  • features/create-wordcloud-from-article-page
  • features/create-collapsible-extra-legal-info
  • features/extend-hero-banner
  • features/add-link-to-images
21 results

0058_alter_elections2021homepage_gdpr_and_cookies_page.py

Blame
  • article-card.pcss 1.04 KiB
    .article-card {
      @apply elevation-3 transition duration-200;
    
      &:hover {
        @apply elevation-21;
      }
    }
    
    .article-card-cover {
      @apply relative;
    
      height: 12rem;
    
      img {
        @apply block object-cover w-full h-full;
      }
    
      &:before {
        @apply absolute block top-0 left-0 bottom-0 right-0 pointer-events-none;
        content: "";
        background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,.8));
      }
    }
    
    .article-card-cover__details {
      /* padding shall be kept in sync with general card */
      @apply absolute left-0 bottom-0 p-2;
    }
    
    .article-card-sharing {
      @apply mb-2 transition duration-200 opacity-0;
    }
    
    .article-card:hover .article-card-sharing {
      @apply opacity-100;
    }
    
    .article-card-meta {
      @apply text-sm text-white text-opacity-85;
    }
    
    .article-card-meta__item:not(:first-child) {
      @apply ml-1;
    
      &:before {
        content: "";
        @apply pr-1 border-l border-white border-opacity-85;
      }
    }
    
    .article-card__headline {
      @apply head-heavy-xs mb-2 break-words;
    }
    
    .article-card__excerpt {
      @apply font-light leading-normal text-sm break-words;
    }