Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_pagination.scss « src - github.com/picturepan2/spectre.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4c0e011322456ec100a72e47a5b714a6e648c4c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Pagination
.pagination {
  display: flex;
  list-style: none;
  margin: $unit-1 0;
  padding: $unit-1 0;

  .page-item {
    margin: $unit-1 $unit-o;

    span {
      display: inline-block;
      padding: $unit-1 $unit-1;
    }

    a {
      border-radius: $border-radius;
      display: inline-block;
      padding: $unit-1 $unit-2;
      text-decoration: none;
      &:focus,
      &:hover {
        color: $primary-color;
      }
    }

    &.disabled {
      a {
        cursor: default;
        opacity: .5;
        pointer-events: none;
      }
    }

    &.active {
      a {
        background: $primary-color;
        color: $light-color;
      }
    }

    &.page-prev,
    &.page-next {
      flex: 1 0 50%;
    }

    &.page-next {
      text-align: right;
    }

    .page-item-title {
      margin: 0;
    }

    .page-item-subtitle {
      margin: 0;
      opacity: .5;
    }
  }
}