summary refs log tree commit diff
path: root/styles.less
blob: d825208cc68ccf92405cea01c6e02927e36e1543 (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
/* i have no idea what im doing so */
body {
    /* why */
    margin: 0;
	height: 100vh;
	display: flex;
	flex-direction: column;
	.topbar {
		background: white;
		display: flex;
		justify-content: space-between;
		border-bottom: gray inset 2px;
	}
	.main {
		flex-grow: 1;
		width: 100%;
		overflow: auto;
		line-break: anywhere;
		word-break: break-all;
	}
}

.channel {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: auto;
}

.messages {
	flex-grow: 1;
}

.topbar.hidden {
	display: none;
}

.messageInput {
	background: white;
	position: sticky;
	bottom: 0;
}

.messageInputForm {
	display: flex;
}

.message {
	.message-container {
		display: flex;
		.avatar {
			height: 5em;
			aspect-ratio: 1/1;
			border: gray inset 2px;
		}
		.message-content-container {
			flex-grow: 1;
			.reply {
				color: #000000aa
			}
			.message-header {
				width: 100%;
			}
			p, h1, h2, h3, h4, h5, h6, pre {
				margin: 0;
			}
			.attachment {
				max-height: 25vw;
				max-width: 25vw;
				width: auto;
				height: auto;
			}
		}
	}
}

#messageInput {
	flex-grow: 1;
}

.messageInput.disabled {
    display: none;
}

.message-header {
	display: flex;
	justify-content: space-between;
	.username {
		font-size: 1.3em;
	}
	.action-buttons {
		display: none;
	}
}
.message:hover {
	background: #0004;
	.action-buttons {
		display: block;
	}
}