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

_pagination.scss « _partial « css « assets - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 78e5030cb63a8fd5c1beb5996e72ec206b83d9f5 (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
91
92
93
/** pagination **/
.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  list-style: none;
  white-space: nowrap;
  width: 100%;
  padding: 1rem 0 0;

  a {
    -webkit-font-smoothing: antialiased;
    font-size: .8rem;
    color: #bfbfbf;
    letter-spacing: .1rem;
    font-weight: 700;
    padding: 5px 5px;
    text-decoration: none;
    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;
    }

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

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

    .dark-theme &:before,
    .dark-theme &: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;
      }

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

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