aboutsummaryrefslogtreecommitdiff
path: root/themes/even/src/css/_partial/_post/_footer.scss
blob: 8a2a44325513b0f8718d3d2acbde87ffb9f41c2e (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
// ==============================
// Post footer
// ==============================
.post-tags {
  padding: $post-tags-padding;

  a {
    margin-right: 5px;
    color: $theme-color;
    word-break: break-all;

    &::before {
      content: '#';
    }
  }
}

.post-footer {
  margin-top: $post-footer-margin-top;
  border-top: $post-footer-border-top;
  font-family: $global-font-family;

  .post-tags {
    padding: $post-tags-padding;

    a {
      margin-right: 5px;
      color: $theme-color;
      word-break: break-all;

      &::before {
        content: '#';
      }
    }
  }

  .post-nav {
    margin: 1em 0;
    @include clearfix;

    .prev,
    .next {
      font-weight: 600;
      font-size: $post-nav-font-size;
      font-family: $global-font-family;
      transition-property: transform;
      transition-timing-function: ease-out;
      transition-duration: 0.3s;
    }

    .prev {
      float: left;

      &:hover {
        color: $theme-color;
        transform: translateX(-4px);
      }
    }

    .next {
      float: right;

      &:hover {
        color: $theme-color;
        transform: translateX(4px);
      }
    }

    .nav-mobile {
      display: none;
    }
  }
}

@include max-screen() {
  .post-footer {
    .post-nav {
      .nav-default {
        display: none;
      }

      .nav-mobile {
        display: inline;
      }
    }
  }
}