aboutsummaryrefslogtreecommitdiff
path: root/www/assets/res/css/article.css
blob: 93f86ef58f20c5e8272652011ff28c1ac09aa51e (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
.article-preview {
  font-size: 0.95em;
  padding-inline: 0.5em;
  padding-block: 0.5em;

  & > p {
    font-size: 0.9em;
    line-height: 1.4;
    margin-inline-start: 0.3em;
    margin-block: 0;
  }

  & > .title {
    margin-block-start: 0;
    margin-block-end: 0.3em;
  }

  & > .date {
    font-size: small;
    margin-top: 0.3em;
    float: right;
    color: hsl(0, 0%, 25%);
  }

  & > .content {
    overflow: hidden;
    height: 3lh;
  }
}

html[data-theme="dark"]  {
  & .article-preview {
    background-color: hsl(0, 0%, 3%);

    & > .date {
      color: hsl(0, 0%, 75%);
    }
  }
}

hr.article-preview-hr {
  border: none;
  border-top: 1.5px dashed currentColor;
}