aboutsummaryrefslogtreecommitdiffhomepage
path: root/static/note.css
blob: 77958826ffecef3a2151f7460e684005848e71fb (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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
.timelineReason {
  background: #fee4;
  border: 1px solid #3b005e44;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  margin: 16px 16px -16px 16px;
  padding: 8px;
  display: grid;
  grid-template-columns: max-content 1fr;
  align-items: center;
  gap: 8px;

  .icon {
    font-size: 24px;
  }
  a {
    text-decoration: none;
    font-weight: bold;
    color: inherit;
  }

  + article.note {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }
}

article.note {
  background: #fee4;
  border: 1px solid #3b005e44;
  border-radius: 8px;
  margin: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 16px;

  img.avatar {
    width: 64px;
    aspect-ratio: 1;
  }

  &.selected {
    background: #ebf4;
  }

  .content {
    font-size: 12pt;
    padding: 4px 0;
    .selected & {
      font-size: 16pt;
    }
  }

  .infoLine {
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: baseline;
    margin-bottom: 4px;
    gap: 8px;

    .authorName {
      font-weight: bold;
    }
    .authorHandle,
    .timestamp {
      font-size: 10pt;
      text-overflow: ellipsis;
      overflow: hidden;
    }
    a.timestamp {
      color: inherit;
      text-decoration: none;
      &:hover {
        text-decoration: underline;
      }
    }
  }

  .replyInfo a {
    font-size: 10pt;
    color: #555;
    text-decoration: none;
    &:hover {
      text-decoration: underline;
    }
  }

  .buttons {
    margin-top: 8px;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    gap: 16px;
    width: max-content;

    button {
      width: 24px;
      font-size: 24px;
      color: #3b005e44;
      cursor: pointer;

      &:disabled {
        opacity: 0.5;
      }

      &.like.active {
        color: #8c22d8;
      }
      &.dislike.active {
        color: #c02e2e;
      }
      &.reshare.active {
        color: #21a821;
      }
      &.reply.active {
        color: #0761b6;
      }
    }
  }
}