aboutsummaryrefslogtreecommitdiff
path: root/themes/even/src/css/_partial/_archive.scss
blob: f1431c495db640145f668a4c2ee55e3cfed8c680 (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
94
95
96
97
98
99
100
// ==============================
// Archive
// =============================

.archive {
  margin: $archive-margin;
  max-width: $archive-max-width;

  .archive-title {
    font-family: $global-serif-font-family;

    &.tag,
    &.category {
      margin: 15px 0;
    }

    .archive-name {
      margin: 0;
      display: inline-block;
      font-weight: 400;
      font-size: $archive-name-font-size;
      line-height: $archive-name-font-size + 2px;
    }

    .archive-post-counter {
      color: $dark-gray;
    }
  }

  .collection-title {
    font-family: $global-serif-font-family;
  
    .archive-year {
      margin: 15px 0;
      font-weight: 400;
      font-size: $collection-title-font-size;
      line-height: $collection-title-font-size + 2px;
    }
  }

  .archive-post {
    padding: $archive-post-padding;
    border-left: $archive-post-border-left;

    .archive-post-time {
      margin-right: 10px;
      color: $dark-gray;
    }

    .archive-post-title {
      
      .archive-post-link {
        color: $theme-color;
      }
    }

    &::first-child {
      margin-top: 10px;
    }

    &:hover {
      border-left: $archive-post-hover-border-left;
      transition: $archive-post-hover-transition;
      transform: $archive-post-hover-transform;

      .archive-post-time {
        color: darken($dark-gray, 10%);
      }

      .archive-post-title .archive-post-link {
        color: darken($theme-color, 10%);
      }
    }
  }
}

@include max-screen() {
  .archive {
    margin-left: auto;
    margin-right: auto;

    .archive-title .archive-name {
      font-size: $archive-name-font-size - 4px;
    }

    .collection-title .archive-year {
      margin: 10px 0;
      font-size: $collection-title-font-size - 4px;
    }

    .archive-post {
      padding: $archive-post-mobile-padding;

      .archive-post-time {
        font-size: $archive-post-mobile-time-font-size;
        display: block;
      }
    }
  }
}