Skip to content
Snippets Groups Projects
Select Git revision
  • 99dbe2104624ccf52496d4f60485d8caf8c55ffb
  • 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

__init__.py

Blame
  • dropdown.pcss 1.04 KiB
    /* The container <div> - needed to position the dropdown content */
    .dropdown {
      @apply relative cursor-pointer;
    }
    
    .dropbtn {
      @apply p-3 mb-1;
    }
    
    /* Dropdown Content (Hidden by Default) */
    .dropdown-content {
      @apply hidden absolute z-[1] list-none;
    }
    
    @media screen and (max-width: 1200px) {
      .dropdown-content {
        position: unset;
      }
    }
    
    @media screen and (max-width: 1200px) {
      .dropbtn {
        @apply hidden;
      }
    }
    
    /* Links inside the dropdown */
    .dropdown-content a {
      @apply block text-white;
    }
    
    @media screen and (min-width: 1200px) {
      /* Show the dropdown menu on hover */
      .dropdown:hover .dropdown-content,
      .dropdown:focus .dropdown-content {
        @apply flex flex-col gap-3 bg-black w-full p-3;
      }
    
      .dropdown:hover .dropbtn,
      .dropdown:focus .dropbtn {
        @apply text-white relative;
      }
    
      .dropdown-content li {
        @apply leading-6;
      }
    
      .dropdown:hover,
      .dropdown:focus {
        @apply bg-black;
      }
    }
    
    .drop-arrow {
      @apply ml-1 relative top-[2px];
    }
    
    @media screen and (max-width: 1200px) {
      .drop-arrow {
        @apply hidden;
      }
    }