forked from andyburke/autonomous.contact
		
	
		
			
	
	
		
			182 lines
		
	
	
	
		
			3.3 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
		
		
			
		
	
	
			182 lines
		
	
	
	
		
			3.3 KiB
		
	
	
	
		
			CSS
		
	
	
	
	
	
|  | #talk .tab-content { | ||
|  | 	display: grid; | ||
|  | 	grid-template-columns: auto 1fr; | ||
|  | } | ||
|  | 
 | ||
|  | .room-list { | ||
|  | 	margin: 1rem 0; | ||
|  | 	list-style-type: none; | ||
|  | } | ||
|  | 
 | ||
|  | .room-list > li.room a:before { | ||
|  | 	position: absolute; | ||
|  | 	left: -1.75rem; | ||
|  | 	top: 0; | ||
|  | 	font-weight: bold; | ||
|  | 	font-size: x-large; | ||
|  | 	content: "#"; | ||
|  | 	color: var(--text); | ||
|  | } | ||
|  | 
 | ||
|  | .room-list > li.room a { | ||
|  | 	position: relative; | ||
|  | 	display: block; | ||
|  | 	width: 100%; | ||
|  | 	min-height: 1.5rem; | ||
|  | 	line-height: 1.5rem; | ||
|  | 	font-weight: bold; | ||
|  | 	font-size: large; | ||
|  | 	margin-left: 1.75rem; | ||
|  | 	text-decoration: none; | ||
|  | } | ||
|  | 
 | ||
|  | .room-list > li.room.active a { | ||
|  | 	color: var(--accent); | ||
|  | } | ||
|  | 
 | ||
|  | #talk .sidebar { | ||
|  | 	position: relative; | ||
|  | 	width: min-content; | ||
|  | 	min-width: 10rem; | ||
|  | 	max-width: 32rem; | ||
|  | 	overflow-x: scroll; | ||
|  | 	padding: 0.5rem; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .sidebar .title { | ||
|  | 	text-transform: uppercase; | ||
|  | 	font-size: small; | ||
|  | 	font-weight: bold; | ||
|  | 	line-height: 2rem; | ||
|  | } | ||
|  | 
 | ||
|  | #talk #room-chat-container { | ||
|  | 	position: relative; | ||
|  | } | ||
|  | 
 | ||
|  | #talk #room-chat-content { | ||
|  | 	overflow-y: scroll; | ||
|  | 	position: absolute; | ||
|  | 	top: 0; | ||
|  | 	left: 0; | ||
|  | 	right: 0; | ||
|  | 	bottom: 5rem; | ||
|  | } | ||
|  | 
 | ||
|  | #talk #room-chat-entry-container { | ||
|  | 	position: absolute; | ||
|  | 	bottom: 0; | ||
|  | 	left: 0; | ||
|  | 	right: 0; | ||
|  | 	height: 5rem; | ||
|  | 	padding: 1rem; | ||
|  | } | ||
|  | 
 | ||
|  | #talk #room-chat-entry-container form { | ||
|  | 	position: absolute; | ||
|  | 	top: 0; | ||
|  | 	left: 0; | ||
|  | 	right: 0; | ||
|  | 	bottom: 0; | ||
|  | 	display: flex; | ||
|  | 	flex-direction: row; | ||
|  | 	padding: 0.75rem; | ||
|  | } | ||
|  | 
 | ||
|  | #talk #room-chat-entry-container form button { | ||
|  | 	width: inherit; | ||
|  | 	padding: inherit; | ||
|  | 	margin: 0 1rem; | ||
|  | } | ||
|  | 
 | ||
|  | #talk #room-chat-entry-container form textarea { | ||
|  | 	flex-grow: 1; | ||
|  | 	background: inherit; | ||
|  | 	color: inherit; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .message-container { | ||
|  | 	transition: all 0.33s; | ||
|  | 	background: rgba(255, 255, 255, 0.03); | ||
|  | 	margin-top: 0.75rem; | ||
|  | 	padding: 2px; | ||
|  | 	border-radius: 4px; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .message-container.user-tick.time-tick + .message-container.user-tick.time-tick, | ||
|  | #talk .message-container.user-tick.time-tock + .message-container.user-tick.time-tock, | ||
|  | #talk .message-container.user-tock.time-tick + .message-container.user-tock.time-tick, | ||
|  | #talk .message-container.user-tock.time-tock + .message-container.user-tock.time-tock { | ||
|  | 	margin-top: 0; | ||
|  | 	padding: 0 2px; | ||
|  | } | ||
|  | 
 | ||
|  | #talk | ||
|  | 	.message-container.user-tick.time-tick | ||
|  | 	+ .message-container.user-tick.time-tick | ||
|  | 	.info-container, | ||
|  | #talk | ||
|  | 	.message-container.user-tick.time-tock | ||
|  | 	+ .message-container.user-tick.time-tock | ||
|  | 	.info-container, | ||
|  | #talk | ||
|  | 	.message-container.user-tock.time-tick | ||
|  | 	+ .message-container.user-tock.time-tick | ||
|  | 	.info-container, | ||
|  | #talk | ||
|  | 	.message-container.user-tock.time-tock | ||
|  | 	+ .message-container.user-tock.time-tock | ||
|  | 	.info-container { | ||
|  | 	opacity: 0; | ||
|  | 	visibility: hidden; | ||
|  | 	height: 0; | ||
|  | 	margin: 0; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .message-container.sending { | ||
|  | 	opacity: 0.75; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .message-container .info-container { | ||
|  | 	display: flex; | ||
|  | 	margin-bottom: -1.5rem; | ||
|  | 	height: 3.75rem; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .message-container .info-container .avatar-container { | ||
|  | 	display: inline-block; | ||
|  | 	margin: 0 4px; | ||
|  | 	width: 3rem; | ||
|  | 	height: 3rem; | ||
|  | 	border-radius: 16%; | ||
|  | 	overflow: hidden; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .message-container .info-container .avatar-container img { | ||
|  | 	width: 100%; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .message-container .info-container .username-container { | ||
|  | 	margin: 0 4px; | ||
|  | 	font-weight: bold; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .message-container .info-container .datetime-container { | ||
|  | 	margin: 0 4px; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .message-container .info-container .datetime-container .long { | ||
|  | 	font-size: x-small; | ||
|  | 	text-transform: uppercase; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .message-container .info-container .datetime-container .short { | ||
|  | 	font-size: xx-small; | ||
|  | 	visibility: hidden; | ||
|  | 	display: none; | ||
|  | } | ||
|  | 
 | ||
|  | #talk .message-container .message-content-container { | ||
|  | 	padding-left: 8rem; | ||
|  | } |