blob: 47691912417a6987ee61e08131556cfaee37ef24 (
plain) (
blame)
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
|
.post {
display: flex;
width: 95%;
margin: .5em auto;
box-sizing: border-box;
border: 2px solid var(--card-bg);
padding: .5em;
background-color: var(--card-bg);
border-radius: .6em;
box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}
/* So the bottom shadow of the last element
* doesn't get cut off
*/
.post:nth-last-child(1) {
margin-bottom: 1.1em;
}
hr {
border: 1px solid black;
width: 90%;
}
/* Author */
.author {
display: flex;
margin-bottom: .2em;
}
.author > img {
width: 2.2em;
height: 2.2em;
margin-right: .2em;
}
.author-info > .handle {
font-size: .9em;
color: gray;
}
/* Content */
.content {
flex: 1;
}
.message {
margin: .3em 0;
}
.timestamp {
font-size: .5em;
color: gray;
}
/* Rating */
.rating {
display: flex;
flex-direction: column;
align-items: center;
margin-right: -.1em;
}
.score {
flex: 1;
display: flex;
align-items: center;
}
.vote {
display: flex;
align-items: center;
flex: 1;
background: var(--card-bg);
font-size: 1em;
border: 1px solid var(--card-bg);
box-sizing: border-box;
border-radius: .2em;
}
.vote:hover {
border: 1px solid var(--focus-color);
color: var(--focus-color);
cursor: pointer;
}
|