Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
import { styled } from 'styleh-components';
import { media, fontValue } from '@skava/styleh-toolset';
import { MaterialIcon, PaginationPreset, Button } from '@skava/packages/ui';
import { Pagination } from '@skava/packages/features/Pagination';
import { ProductBlockLite, StyledProductImageLink, StyledProductBlockWrapLite, } from '@skava/packages/pages/MerchProductList';
export const { CountSection, PaginationDropDown } = PaginationPreset;
/**
 * === this part is for page styles, non product ===
 */
export const FavoritesTitleWrapper = styled.span.attrs({
    'data-qa': 'qa-favorites-title',
}) `
  display: flex;
  align-items: center;
`;
export const StyledFavoritesTitle = styled.span `
  padding-left: 0.75rem;
  font: ${fontValue(30, 'semi')}
  color: var(--color-black);
  ${media.tabletOrSmaller `
    font: ${fontValue(20, 'semi')}
  `}
`;
export const StyledPagination = styled(Pagination) `
  justify-content: center;
  padding: var(--spacing-big) 0;
  ${media.tabletOrSmaller `
    padding: var(--spacing-medium) 0;
  `}
  ${media.phoneOrSmaller `
    padding: var(--spacing-small) 0;
  `}
  ${CountSection} {
    align-items: center;
  }
  ${PaginationDropDown} {
    margin-top: 0;
  }
`;
/**
 * === below here is product ===
 */
export const StyledFavoritesShareButton = styled(Button) `
  display: flex;
  align-items: flex-end;
  width: rem(216);

  text-align: center;
  justify-content: center;

  margin: var(--spacing-big) 0;
  padding: 1rem;

  background-color: var(--color-blue);
  font: ${fontValue(18, 'semi')}
  color: var(--color-pure-white);
  border-radius: 4px;

  ${media.tabletOrSmaller `
    width: 9.875rem;
  `}
  ${media.phoneOrSmaller `
    width: 7.5rem;
    margin: var(--spacing-medium) 0;
  `}

  opacity: 0.5;
  pointer-events: none;
  label {
    text-transform: capitalize;
  }
`;
export const StyledFavoritesHeader = styled.header `
  display: flex;
  justify-content: space-between;
  background-color: var(--color-pure-white);
  padding: 0 var(--spacing-medium);
  ${media.phoneOrSmaller `
    padding: 0 var(--spacing-small);
  `}
`;
/**
 * @todo attrs nowrap
 * @todo this was in ProductActionButtons...
 */
export const StyledHeartIcon = styled(MaterialIcon) `
  width: 1.75rem;
  height: 1.75rem;
  fill: var(--color-red);
`;
/**
 * @todo @@packages @qa `qa-empty`
 * @see src/packages/features/Empty/styled.tsx
 */
export const EmptyFavoritesWrapper = styled.div.attrs({
    'data-qa': 'qa-empty',
}) `
  background-color: var(--color-pure-white);
  padding: 0 0 var(--spacing2x) var(--spacing-medium);
  font: $font-regular-xlarge;
  ${media.tabletOrSmaller `
    font: $font-regular-small;
  `}
  ${media.phoneOrSmaller `
    padding-left: var(--spacing-small);
  `}
`;
export const StyledProductBlockLite = styled(ProductBlockLite) `
  max-width: 25vw;
  ${StyledProductImageLink} {
    display: unset;
    height: auto;
  }
  section {
    display: none;
  }
`;
/**
 * @todo same semantics as ProductListGrid
 */
export const StyledProductListWrap = styled.div `
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 80px;
  grid-auto-flow: row dense;
  grid-gap: 8px 8px;
  justify-items: stretch;
  height: 100%;
  margin-top: var(--spacing-small);
  ${StyledProductBlockWrapLite} {
    grid-column: auto / span 3;
    grid-row: auto / span 4;
    ${media.phoneOrSmaller `
      grid-column: auto / span 6;
    `}
  }
`;
export const StyledFavoritesWrapper = styled.div `
  max-width: rem(1200);
  margin: 0 auto;
`;
//# sourceMappingURL=styled.js.map