xmpp.chapril.org-conversejs/sass/_lists.scss
JC Brand 90bf42a002 HTML and CSS improvements for listed items in the controlbox
Fixes #1348

Tried to get the unread messages indicator to line up properly with the
text and icons in a room list item.

Also tried to reuse styles where appropriate, specifically
`.list-container` and `.list-toggle`.
2018-12-07 11:37:51 +01:00

116 lines
3.4 KiB
SCSS

#conversejs {
.list-container {
text-align: left;
padding: 0.3em 0;
.list-toggle {
font-family: var(--heading-font);
font-weight: var(--list-toggle-font-weight);
display: block;
color: var(--list-toggle-color);
padding: 0 0 0.5rem 0;
&:hover {
color: var(--list-toggle-hover-color);
}
}
}
.items-list {
text-align: left;
.list-item {
border: none;
clear: both;
color: var(--text-color);
overflow: hidden;
padding: 0.5em 0;
text-shadow: 0 1px 0 var(--text-shadow-color);
word-wrap: break-word;
.list-item-link {
color: var(--list-item-link-color);
&:hover {
color: var(--list-item-link-hover-color);
}
margin: auto;
font-size: var(--font-size);
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
vertical-align: baseline;
}
.list-item-badge {
opacity: 1;
border-radius: 25%;
color: white;
font-size: var(--font-size-small);
line-height: var(--font-size-small);
}
.list-item-action {
opacity: 0;
font-size: var(--font-size-tiny);
padding: 0;
margin: 0 0 0 0.4em;
width: 1.6em;
&:before {
font-size: var(--font-size);
}
&.button-on {
color: var(--list-item-link-color);
&:hover {
color: var(--list-item-link-hover-color);
}
}
color: var(--subdued-color);
&:hover {
color: var(--list-toggle-hover-color);
opacity: 1;
}
}
&.open {
background-color: var(--list-item-open-color);
&:hover {
background-color: var(--list-item-open-hover-color) !important;
}
a {
color: white;
}
.list-item-link {
&:hover {
color: white;
}
}
.list-item-action {
color: var(--list-item-action-color);
&:hover {
color: white;
}
}
.fa-circle {
color: var(--list-circle-color);
}
.fa-minus-circle {
color: var(--list-minus-circle-color);
}
.fa-dot-circle {
color: var(--list-dot-circle-color);
}
.far .fa-circle,
.fa-times-circle {
color: var(--subdued-color-lighten-25-percent);
}
}
&:hover {
background-color: var(--controlbox-head-color-lighten-45-percent);
.fa, .far, .fas {
opacity: 1;
}
}
}
}
}