aboutsummaryrefslogtreecommitdiff
path: root/src/css/_partial/_categories.scss
blob: f9c413d973a483fa6711337951f55cef13059bcf (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
.categories {
  margin: 2em 0 3em;
  text-align: center;
  font-family: $global-serif-font-family;

  .categories-title {
    display: inline-block;
    font-size: $categories-title-size;
    color: $theme-color;
    border-bottom: $categories-title-border-bottom;
  }

  .categories-tags {
    margin: 10px 0;

    .category-link {
      display: inline-block;
      position: relative;
      margin: $categories-tags-link-margin;
      word-wrap: break-word;
      transition-duration: 0.2s;
      transition-property: transform;
      transition-timing-function: ease-out;

      .category-count {
        display: inline-block;
        position: relative;
        top: -8px;
        right: -2px;
        color: $theme-color;
        font-size: $category-count-font-size;
      }

      &:active,
      &:focus,
      &:hover {
        color: $theme-color;
        transform: scale(1.1);
      }
    }
  }
}