Commit 4c965b58 authored by JC Brand's avatar JC Brand

CSS: Reuse `list-item-action` class for "Contact Requests" actions

parent 2a79c5b0
...@@ -11176,8 +11176,6 @@ body.reset { ...@@ -11176,8 +11176,6 @@ body.reset {
padding-bottom: 0.3rem; } padding-bottom: 0.3rem; }
#conversejs #converse-roster .roster-contacts .roster-group li.requesting-xmpp-contact a { #conversejs #converse-roster .roster-contacts .roster-group li.requesting-xmpp-contact a {
line-height: var(--line-height); } line-height: var(--line-height); }
#conversejs #converse-roster .roster-contacts .roster-group li.requesting-xmpp-contact a.far, #conversejs #converse-roster .roster-contacts .roster-group li.requesting-xmpp-contact a.fas, #conversejs #converse-roster .roster-contacts .roster-group li.requesting-xmpp-contact a.fa {
width: 1.5em; }
#conversejs #converse-roster .roster-contacts .roster-group li.requesting-xmpp-contact .req-contact-name { #conversejs #converse-roster .roster-contacts .roster-group li.requesting-xmpp-contact .req-contact-name {
padding: 0 0.2em 0 0; } padding: 0 0.2em 0 0; }
#conversejs #converse-roster .roster-contacts .roster-group li .open-chat { #conversejs #converse-roster .roster-contacts .roster-group li .open-chat {
...@@ -11271,7 +11269,7 @@ body.reset { ...@@ -11271,7 +11269,7 @@ body.reset {
font-size: var(--font-size-tiny); font-size: var(--font-size-tiny);
padding: 0; padding: 0;
margin: 0 0 0 var(--inline-action-margin); margin: 0 0 0 var(--inline-action-margin);
width: 1.6em; width: 2em;
color: var(--subdued-color); } color: var(--subdued-color); }
#conversejs .items-list .list-item .list-item-action:before { #conversejs .items-list .list-item .list-item-action:before {
font-size: var(--font-size); } font-size: var(--font-size); }
...@@ -11282,6 +11280,8 @@ body.reset { ...@@ -11282,6 +11280,8 @@ body.reset {
#conversejs .items-list .list-item .list-item-action:hover { #conversejs .items-list .list-item .list-item-action:hover {
color: var(--list-toggle-hover-color); color: var(--list-toggle-hover-color);
opacity: 1; } opacity: 1; }
#conversejs .items-list .list-item .list-item-action--visible {
opacity: 1 !important; }
#conversejs .items-list .list-item.open { #conversejs .items-list .list-item.open {
background-color: var(--list-item-open-color); } background-color: var(--list-item-open-color); }
#conversejs .items-list .list-item.open:hover { #conversejs .items-list .list-item.open:hover {
......
...@@ -93967,11 +93967,11 @@ __e(o.display_name) + ...@@ -93967,11 +93967,11 @@ __e(o.display_name) +
if (o.allow_chat_pending_contacts) { ; if (o.allow_chat_pending_contacts) { ;
__p += '\n</a>\n'; __p += '\n</a>\n';
} ; } ;
__p += '\n<a class="accept-xmpp-request fa fa-check"\n aria-label="' + __p += '\n<a class="accept-xmpp-request list-item-action list-item-action--visible fa fa-check"\n aria-label="' +
__e(o.desc_accept) + __e(o.desc_accept) +
'" title="' + '" title="' +
__e(o.desc_accept) + __e(o.desc_accept) +
'" href="#"></a>\n<a class="decline-xmpp-request fa fa-times"\n aria-label="' + '" href="#"></a>\n<a class="decline-xmpp-request list-item-action list-item-action--visible fa fa-times"\n aria-label="' +
__e(o.desc_decline) + __e(o.desc_decline) +
'" title="' + '" title="' +
__e(o.desc_decline) + __e(o.desc_decline) +
...@@ -119,13 +119,13 @@ ...@@ -119,13 +119,13 @@
<ul class="items-list roster-group-contacts"> <ul class="items-list roster-group-contacts">
<li class="list-item controlbox-padded offline requesting-xmpp-contact d-flex"> <li class="list-item controlbox-padded offline requesting-xmpp-contact d-flex">
<span class="req-contact-name w-100">The Nurse</span> <span class="req-contact-name w-100">The Nurse</span>
<a class="accept-xmpp-request fa fa-check" title="Click here to accept this contact's request" href="#"></a> <a class="list-item-action list-item-action--visible accept-xmpp-request fa fa-check" title="Click here to accept this contact's request" href="#"></a>
<a class="decline-xmpp-request fa fa-times" title="Click here to decline this contact's request" href="#"></a> <a class="list-item-action list-item-action--visible decline-xmpp-request fa fa-times" title="Click here to decline this contact's request" href="#"></a>
</li> </li>
<li class="list-item controlbox-padded offline requesting-xmpp-contact d-flex"> <li class="list-item controlbox-padded offline requesting-xmpp-contact d-flex">
<span class="req-contact-name w-100">Friar Laurence</span> <span class="req-contact-name w-100">Friar Laurence</span>
<a class="accept-xmpp-request fa fa-check" title="Click here to accept this contact's request" href="#"></a> <a class="list-item-action list-item-action--visible accept-xmpp-request fa fa-check" title="Click here to accept this contact's request" href="#"></a>
<a class="decline-xmpp-request fa fa-times" title="Click here to decline this contact's request" href="#"></a> <a class="list-item-action list-item-action--visible decline-xmpp-request fa fa-times" title="Click here to decline this contact's request" href="#"></a>
</li> </li>
</ul> </ul>
</div> </div>
......
...@@ -53,7 +53,7 @@ ...@@ -53,7 +53,7 @@
font-size: var(--font-size-tiny); font-size: var(--font-size-tiny);
padding: 0; padding: 0;
margin: 0 0 0 var(--inline-action-margin); margin: 0 0 0 var(--inline-action-margin);
width: 1.6em; width: 2em;
&:before { &:before {
font-size: var(--font-size); font-size: var(--font-size);
} }
...@@ -70,6 +70,10 @@ ...@@ -70,6 +70,10 @@
} }
} }
.list-item-action--visible {
opacity: 1 !important;
}
&.open { &.open {
background-color: var(--list-item-open-color); background-color: var(--list-item-open-color);
&:hover { &:hover {
......
...@@ -71,9 +71,6 @@ ...@@ -71,9 +71,6 @@
&.requesting-xmpp-contact { &.requesting-xmpp-contact {
a { a {
line-height: var(--line-height); line-height: var(--line-height);
&.far, &.fas, &.fa {
width: 1.5em;
}
} }
.req-contact-name { .req-contact-name {
padding: 0 0.2em 0 0; padding: 0 0.2em 0 0;
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
{[ if (o.allow_chat_pending_contacts) { ]} {[ if (o.allow_chat_pending_contacts) { ]}
</a> </a>
{[ } ]} {[ } ]}
<a class="accept-xmpp-request fa fa-check" <a class="accept-xmpp-request list-item-action list-item-action--visible fa fa-check"
aria-label="{{{o.desc_accept}}}" title="{{{o.desc_accept}}}" href="#"></a> aria-label="{{{o.desc_accept}}}" title="{{{o.desc_accept}}}" href="#"></a>
<a class="decline-xmpp-request fa fa-times" <a class="decline-xmpp-request list-item-action list-item-action--visible fa fa-times"
aria-label="{{{o.desc_decline}}}" title="{{{o.desc_decline}}}" href="#"></a> aria-label="{{{o.desc_decline}}}" title="{{{o.desc_decline}}}" href="#"></a>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment