summary refs log tree commit diff
path: root/styles.less
blob: cfdabc7673062ddd196f042d72fa57ddef375369 (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
/* 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-container {
	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;
			}
		}
	}
}

.attachments {
	display: flex;
	.attachment {
		max-height: 25em;
		max-width: 20em;
		border: 2px black ridge;
		background: white;
		.attachment-header {
			display: flex;
			justify-content: space-between;
		}
		img {
			max-width: 100%;
		}
	}
}

#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;
	}
}