aboutsummaryrefslogtreecommitdiff
path: root/src/web/components/post/Post.css
blob: 8721640581b7a5b2c0a44294d6756ea64a0c2611 (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


.postCard {
    display: flex;
    justify-content: space-around;
    align-items: center;

    font-size: 2em;
    margin-bottom: 0.75rem;
    padding: 1rem 1rem;

    background-color: var(--black-10);
    border-radius: 0.5em;
    color: white;
    box-shadow: none;

    cursor: pointer;
}
.postCard:hover {
    background-color: hsl(0, 0%, 25%);
}

.postCard > img {
    flex-shrink: 0;

    border-radius: 50%;
    height: 2.5em;
    width: 2.5em;
}

.rowContainer {
    display: flex;
    flex-direction: column;
    flex-basis: 100%;
    justify-content: space-between;

    height: 2.5em;
    padding-left: 0.5em;
    min-width: 0;

    color: var(--black-95);
}

.rowContainer > h4 {
    font-size: 0.4em;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    overflow: hidden;
}

.titleContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.titleContainer h3 {
    font-size: 0.5em;
    font-weight: bold;
    color: var(--black-98);

    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.titleContainer h4 {
    font-size: 0.5em;
    font-style: italic;
    white-space: nowrap;
}

.placeholder {
    text-decoration: line-through hsl(0, 0%, 60%) 1em;
}
.placeholder img {
    background-color: hsl(0, 0%, 50%);
}

.postIconsContainer {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    font-size: 0.5em;
    color: var(--brand-50);
}
.postIconsContainer > div {
    margin-left: 0.25em;
}