Community Central
Community Central
(revised chat layout for less vertical space)
Tag: sourceedit
m (delete debug colors :B)
Tag: sourceedit
Line 18: Line 18:
 
/* Second (or more) chat line from same source, but not inline-alerts (make them inline/on one line, with all the others) */
 
/* Second (or more) chat line from same source, but not inline-alerts (make them inline/on one line, with all the others) */
 
.Chat ul li:not(.continued) + li.continued:not(.inline-alert) {
 
.Chat ul li:not(.continued) + li.continued:not(.inline-alert) {
color:yellow;
 
 
padding-left: 55px;
 
padding-left: 55px;
 
padding-top: 0;
 
padding-top: 0;
Line 26: Line 25:
 
/* Mark where a newline would have been if we weren't putting continuous chat lines all on one line */
 
/* Mark where a newline would have been if we weren't putting continuous chat lines all on one line */
 
.Chat ul li.continued:not(.inline-alert)::before {
 
.Chat ul li.continued:not(.inline-alert)::before {
color:green;
 
 
content: "——";
 
content: "——";
 
opacity: 0.25;
 
opacity: 0.25;

Revision as of 19:14, 8 May 2016

/* Tighten up chat's vertical spacing */
/* The following will: Reduce vertical whitespace; place continued chat from the same source on one line instead of new lines; add a faint double-dash to mark where a new line would have been */

/* Chat lines, including inline-alerts (eliminate excess whitespace)*/
.Chat ul li {
    padding-bottom: 0;
    padding-top: 0;
}

/* Second (or more) chat line from same source, but not inline-alerts */
.Chat ul .continued:not(.inline-alert) {
    padding-bottom: 0;
	display: inline;
	margin-left: 0;
	padding-left: 0;
}

/* Second (or more) chat line from same source, but not inline-alerts (make them inline/on one line, with all the others) */
.Chat ul li:not(.continued) + li.continued:not(.inline-alert) {
	padding-left: 55px;
	padding-top: 0;
	display: inline;
}

/* Mark where a newline would have been if we weren't putting continuous chat lines all on one line */
.Chat ul li.continued:not(.inline-alert)::before {
	content: "——";
	opacity: 0.25;
}

/* Avatar needs a nudge now */
.Chat .avatar {
    position: absolute;
    top: 0
}

/* Usernames inline so they appear on the same line as first message sent */
.Chat ul .username {
	display: inline-block;
}