summaryrefslogtreecommitdiff
path: root/themes/CodeIT/assets/css/_partial/_pagination.scss
blob: 3584a625ae8bbcff47eaa0165f5f95f57f61e183 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  list-style: none;
  white-space: nowrap;
  width: 100%;
  padding: 1rem 0 0;

  a {
    font-size: 0.8rem;
    color: #bfbfbf;
    letter-spacing: 0.1rem;
    font-weight: 700;
    padding: 5px 5px;
    text-decoration: none;
    @include transition(0.3s);
  }

  li {
    padding-bottom: 3px;
    margin: 0 20px;
    box-sizing: border-box;
    position: relative;
    display: inline;

    &.disabled {
      display: none;
    }

    &:hover a {
      color: $pagination-link-hover-color;
    }

    [theme="dark"] &:hover a {
      color: $pagination-link-hover-color-dark;
    }

    &:before,
    &:after {
      position: absolute;
      content: "";
      width: 0;
      height: 3px;
      background: $pagination-link-hover-color;
      @include transition(0.3s);
      bottom: 0px;
    }

    [theme="dark"] &:before,
    [theme="dark"] &:after {
      background: $pagination-link-hover-color-dark;
    }

    &:before .active,
    &:after .active {
      width: 100%;
    }

    &:before {
      left: 50%;
    }

    &:after {
      right: 50%;
    }

    &:hover {
      &:before,
      &:after {
        width: 50%;
      }
    }

    &.active {
      a {
        color: $pagination-link-hover-color;
      }

      [theme="dark"] & a {
        color: $pagination-link-hover-color-dark;
      }

      &:before,
      &:after {
        width: 60%;
      }
    }
  }
}