summaryrefslogtreecommitdiff
path: root/src/web/styles/post/posts.scss
blob: 1272d1d566052d42e9a9d5f1486eb9a56cbe96dc (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
@import "../theme/global";
@import "../theme/post";
@import "../partials/article";
@import "../partials/tags_menu";

article {
  @include article-styling;
  .options {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .limit-options {
      a {
        color: $defForegroundColor;
      }
      .active {
        color: $defLinkForeground;
        font-weight: 600;
      }
    }

    .paging-options {
      width: 16em;
      display: flex;
      justify-content: space-evenly;
    }
  }

  #options-footer {
    justify-content: center;
  }

  .posts {
    .post {
      padding: 0.5em 0;
      font-size: 1.4em;

      .post-title-tags {
        .post-title {
          font-size: 1em;
          color: $posts_postTitleColor;
        }

        .post-title:hover {
          color: $posts_postHighlightedTitleColor;
        }

        .post-tag {
          font-size: 0.8em;
          color: $posts_postTagForegroundColor;
        }

        .post-tag:hover {
          color: $defLinkForeground;
        }
      }

      .post-info {
        font-size: 0.8em;
        .post-createdat {
          color: $posts_postInfoForegroundColor;
        }
      }
    }
  }
}

@media screen and (max-width: 1200px) {
  article {
    @include article-styling-1200px;
    .post {
      a {
        font-size: 1.2rem;
        text-decoration: none;
      }
    }
  }
}

@media screen and (max-width: 800px) {
  article {
    $side-margin: 1em;
    @include article-styling-800px($side-margin);
  }
}

@media screen and (max-width: 600px) {
  article {
    $padding: 1em;
    @include article-styling-600px($padding);
  }
}