/* Copyright (c) Fortanix, Inc.
|* This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of
|* the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */

@use '../../../../styling/defs.scss' as bk;

@use './Pagination.module.scss';


@layer baklava.components {
  .bk-pagination--stream {
    @include bk.component-base(bk-pagination-stream);
    
    .pagination__load-more-action {
      display: flex;
      align-items: center;
      margin-inline-end: auto;
    }
    
    .pagination__pager {
      display: flex;
      align-items: center;
      gap: bk.$spacing-5;
      padding-inline-start: bk.$spacing-6;
      border-inline-start: bk.$size-1 solid bk.$theme-pagination-border-default;
      
      .pager__nav {
        color: bk.$theme-pagination-text-default;
        padding-inline: 0;
        
        display: flex;
        font-weight: bk.$font-weight-regular;
        
        &:global(.nonactive) {
          opacity: 0.6;
        }
        
        &.pager__nav--first { --keep: ; }
        &.pager__nav--prev,
        &.pager__nav--next {
          display: flex;
          align-items: center;
        }
      }
    }
  }
}
