Sha256: be15b8e3dea7e9aa36109567dabd4ba1f35f30f5820125af3783906d79db6879

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 KB

Contents

.pagination {
  margin: var(--base-line) 0;
  font-size: calc(var(--font-size-small));
  & ul {
    @include flex;
    margin: 0;
  }
  &.align-center  ul {
    @include flex-items-center;
  }
  & span,
  & a {
    border-radius: 3px;
    display: inline-block;
  	padding: 8px 12px;
  	line-height: 1;
  	white-space: nowrap;
  	border: 1px solid transparent;
  }
  & a {
  	text-decoration: none;
  	color: var(--color-text);
  	&:hover {
  		color: rgba(0, 0, 0, .5);
  		border-color: var(--color-silver);
  	}
  }
  & span,
  & li.active a {
  	color: rgba(0, 0, 0, .5);
  	border-color: var(--color-silver);
  	cursor: text;
  }
  &.upper {
  	font-size: calc(var(--font-size-smaller));
  }
}

// Pager
.pager {
  & span {
    line-height: var(--base-line);
  }
  & span,
  & a {
    padding-left: 16px;
    padding-right: 16px;
    border-radius: 64px;
    border-color: rgba(0, 0, 0, .1);
  }
  & li {
    @include flex-basis(50%);
  }
  & li.next {
    text-align: right;
  }
  &.align-center li {
    @include flex-basis(auto);
    margin-left: 4px;
    margin-right: 4px;
  }
  &.flat {
    & span,
    & a {
      border: none;
      display: block;
      padding: 0;
    }
    & a {
      font-weight: bold;
      &:hover {
        background: none;
        text-decoration: underline;
      }
    }
  }
}

// Responsive
@include breakpoint(sm) {
  .pager.flat {
    & ul {
      @include flex-items-column;
    }
    & li {
      @include flex-basis(100%);
      margin-bottom: 8px;
      text-align: left;
    }
  }
}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kube-6.5.2.0 app/assets/stylesheets/kube/components/_pagination.scss