summaryrefslogtreecommitdiff
path: root/style.css
blob: c0053d1714eae6c18bbdcc8069960548937909f6 (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
:root {
    --message-background: linear-gradient(0deg, #2e2d31, #252425);
    --message-background-alt: linear-gradient(0deg, #3a393e, #282628);
    --message-color: #f0f0f0;
    --message-shadow-color: #1d1d1d;
}

* {
    padding: 0;
    margin: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
}

form div {
    display: block;
}

.center {
    width: 35em;
    margin: 0 auto;
}

.center>* {
    margin-bottom: 16px;
}

.messages {
    display: flex;
    flex-direction: column;
}

.message {
    background: var(--message-background);
    text-shadow: 1px 1px 2px var(--message-shadow-color);
    padding: 4px;
    border-bottom: 1px solid var(--message-shadow-color);
    font-size: 16px;
    color: gray;
}

.perplex {
    position: absolute;
    top: 0;
    left: 0;
    animation: perplex-animation 30s forwards;
    white-space: nowrap;
}

.message.perplex,
.message.perplex:nth-child(even) {
    background: unset;
    border-bottom: unset;
}

.message-thread {
    color: gray;
    font-size: 12px;
}

.message-thread::before {
    content: '>>> ';
}

.message:has(.author) {
    color: var(--message-color);
}

.message .author {
    font-weight: bold;
}

.message:nth-child(even) {
    background: var(--message-background-alt);
}

.message .badge,
.message .emote {
    height: 18px;
}

.message img {
    vertical-align: middle;
    margin: 0 2px;
}

.message img:first-child {
    margin-left: 0;
}

.message:last-child {
    border-bottom: none;
}

@keyframes perplex-animation {
    from {
        left: 100%;
    }

    to {
        left: -100%;
    }
}