* make connect message dropdown accessible * add a cypress test * use crayons buttons throughout * fix some unhandled error affecting cypress * make message options a list * minor tweak to test * guard against filter error being triggered in test * utilise newer dropdown helpers * wait for message to fully send * use optional chaining
1344 lines
24 KiB
SCSS
1344 lines
24 KiB
SCSS
@import 'variables';
|
|
@import 'mixins';
|
|
@import 'config/import';
|
|
|
|
// High level classes
|
|
.chat-page-wrapper {
|
|
margin: 0px auto 0px;
|
|
width: 100%;
|
|
max-width: calc(1540px + 10vw);
|
|
|
|
--layout-chat-left-sidebar-width: 260px;
|
|
}
|
|
|
|
.live-chat {
|
|
&.live-chat--iossafari {
|
|
height: calc(100vh - 56px);
|
|
}
|
|
|
|
overflow-y: hidden;
|
|
}
|
|
|
|
.live-chat {
|
|
padding: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.chat {
|
|
display: flex;
|
|
height: calc(100 * var(--vh) - var(--header-height));
|
|
position: relative;
|
|
overflow-x: hidden;
|
|
overflow-y: hidden;
|
|
|
|
&.chat--iossafari {
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.chat__channels {
|
|
box-sizing: border-box;
|
|
height: inherit;
|
|
padding: var(--su-3);
|
|
position: relative;
|
|
width: 100%;
|
|
overflow-y: auto;
|
|
@media screen and (min-width: $breakpoint-m) {
|
|
min-width: var(--layout-chat-left-sidebar-width);
|
|
max-width: var(--layout-chat-left-sidebar-width);
|
|
}
|
|
}
|
|
|
|
.chat__channelssearchtoggle {
|
|
background: transparent;
|
|
border: 0;
|
|
margin-left: 2px;
|
|
svg {
|
|
vertical-align: -5px;
|
|
fill: var(--indicator-default-color);
|
|
}
|
|
}
|
|
|
|
.chat__notificationsbutton {
|
|
border: 0px;
|
|
font-size: 12px;
|
|
padding: 15px 0px;
|
|
width: 100%;
|
|
color: darken($green, 30%);
|
|
font-weight: bold;
|
|
width: 95%;
|
|
border-radius: 3px;
|
|
border: 1px solid darken($green, 30%);
|
|
box-shadow: 3px 3px 0px darken($green, 30%);
|
|
background: lighten($green, 30%);
|
|
margin-bottom: 5px;
|
|
|
|
&:hover {
|
|
@include themeable(
|
|
background,
|
|
theme-container-background-hover,
|
|
lighten($green, 20%)
|
|
);
|
|
}
|
|
}
|
|
|
|
.chat__channels--placeholder {
|
|
.chat__channelstogglebutt--placeholderunexpanded {
|
|
display: none;
|
|
}
|
|
|
|
@media screen and (max-width: 599px) {
|
|
width: 45px;
|
|
min-width: 45px;
|
|
|
|
input {
|
|
display: none;
|
|
}
|
|
|
|
.chat__channelstogglebutt--placeholderunexpanded {
|
|
display: block;
|
|
width: 100%;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat__channels input {
|
|
width: 100%;
|
|
}
|
|
|
|
.chat__channeltypefilter {
|
|
width: 100%;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.chat__channeltypefilterbutton {
|
|
margin: 1px;
|
|
@media screen and (min-width: 1300px) {
|
|
margin: 5px 4px;
|
|
}
|
|
}
|
|
|
|
.chat_chatconfig {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
left: 0px;
|
|
right: 6px;
|
|
font-size: 12px;
|
|
padding: 3px 12px;
|
|
display: inline-block;
|
|
border-radius: 3px;
|
|
background: var(--body-bg);
|
|
border: 1px solid $light-medium-gray;
|
|
font-weight: bold;
|
|
cursor: default;
|
|
}
|
|
|
|
.chat_chatconfig--on {
|
|
color: $green;
|
|
}
|
|
|
|
.chat_chatconfig--off {
|
|
color: $red;
|
|
}
|
|
|
|
.chat__channels--hidden {
|
|
display: none;
|
|
}
|
|
|
|
.active-channel__back-btn {
|
|
display: inherit;
|
|
|
|
@media screen and (min-width: $breakpoint-m) {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.chat__activechat {
|
|
height: inherit;
|
|
width: 100%;
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
transform: translateX(0);
|
|
transition: transform 0.22s linear;
|
|
z-index: var(--z-elevate);
|
|
|
|
@media screen and (min-width: $breakpoint-m) {
|
|
position: inherit;
|
|
}
|
|
}
|
|
|
|
.chat__activechat--hidden {
|
|
transform: translateX(100%);
|
|
transition: transform 0.18s linear;
|
|
|
|
@media screen and (min-width: $breakpoint-m) {
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
.activechatchannel {
|
|
height: inherit;
|
|
max-height: inherit;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
background: var(--card-bg);
|
|
flex-flow: row nowrap;
|
|
position: relative;
|
|
|
|
@include themeable(
|
|
border-left,
|
|
theme-container-border,
|
|
1px solid $outline-color
|
|
);
|
|
|
|
@media screen and (min-width: 1540px) {
|
|
@include themeable(
|
|
border,
|
|
theme-container-border,
|
|
1px solid $outline-color
|
|
);
|
|
border-top: 0px;
|
|
}
|
|
}
|
|
|
|
.activechatchannel__conversation {
|
|
position: relative;
|
|
order: 1;
|
|
display: flex;
|
|
flex-direction: column;
|
|
flex: 0 1 auto;
|
|
width: 100%;
|
|
min-width: 50%;
|
|
@media screen and (min-width: 1440px) {
|
|
min-width: 35%;
|
|
}
|
|
@media screen and (max-width: 426px) {
|
|
overflow-x: hidden;
|
|
}
|
|
}
|
|
|
|
.active-channel__header {
|
|
align-items: center;
|
|
box-shadow: 0 0 0 1px var(--card-border);
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
height: var(--header-height);
|
|
position: relative;
|
|
padding: var(--su-4);
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.active-channel__title {
|
|
font-weight: var(--fw-bold);
|
|
font-size: var(--fs-base);
|
|
color: var(--body-color);
|
|
}
|
|
|
|
.activechatchannel__messages {
|
|
padding-top: var(--su-2);
|
|
padding-bottom: var(--su-2);
|
|
font-size: var(--fs-base);
|
|
flex-grow: 1;
|
|
height: 300px;
|
|
// Setting it to scroll so there is no jump when it's auto. Also, since it's chat,
|
|
// it will almost always need scrolling right away.
|
|
overflow-y: scroll;
|
|
overflow-x: hidden;
|
|
text-align: left;
|
|
overscroll-behavior-y: contain;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.activechatchannel__alerts {
|
|
position: relative;
|
|
}
|
|
|
|
.chatalert__default {
|
|
align-items: center;
|
|
background-color: rgba(0, 0, 0, 0.5);
|
|
color: white;
|
|
display: flex;
|
|
height: 25px;
|
|
justify-content: center;
|
|
position: absolute;
|
|
top: -25px;
|
|
width: 100%;
|
|
font-size: 13px;
|
|
}
|
|
|
|
.chatalert__default--hidden {
|
|
display: none;
|
|
}
|
|
|
|
.activechatchannel__form {
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
|
|
.activechatchannel__activecontent {
|
|
order: 2;
|
|
flex: 0 1 auto;
|
|
@include themeable(border, theme-border, 1px solid $outline-color);
|
|
padding: 13px;
|
|
min-width: 50%;
|
|
overflow-x: hidden;
|
|
@media screen and (min-width: 1440px) {
|
|
min-width: 45%;
|
|
}
|
|
-webkit-overflow-scrolling: touch;
|
|
background: var(--body-bg);
|
|
z-index: 200;
|
|
position: relative;
|
|
box-sizing: border-box;
|
|
overflow-y: auto;
|
|
max-width: 100%;
|
|
|
|
@media screen and (max-width: 426px) {
|
|
padding: 10px;
|
|
min-width: 50%;
|
|
width: calc(100%);
|
|
position: fixed;
|
|
height: 100%;
|
|
margin-left: 0;
|
|
margin-top: 0;
|
|
}
|
|
|
|
@media screen and (min-width: 1000px) {
|
|
h2 {
|
|
font-size: 2rem;
|
|
}
|
|
margin-left: initial;
|
|
padding: 18px;
|
|
max-width: 480px;
|
|
}
|
|
|
|
@media screen and (min-width: 1300px) {
|
|
margin-left: initial;
|
|
padding: 18px;
|
|
width: 750px;
|
|
max-width: 750px;
|
|
}
|
|
}
|
|
|
|
.chat--video-visible {
|
|
.activechatchannel__conversation {
|
|
min-width: 20%;
|
|
}
|
|
.activechatchannel__activecontent {
|
|
&.activechatchannel__activecontent--video {
|
|
width: 380px;
|
|
min-width: 380px;
|
|
@media screen and (max-width: 426px) {
|
|
width: calc(100% - 16px);
|
|
min-width: calc(100% - 16px);
|
|
}
|
|
iframe {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
border: 0px;
|
|
}
|
|
}
|
|
width: 300px;
|
|
min-width: 300px;
|
|
@media screen and (min-width: 1000px) {
|
|
width: 400px;
|
|
min-width: 400px;
|
|
}
|
|
@media screen and (min-width: 1500px) {
|
|
width: 750px;
|
|
min-width: 750px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat--content-visible .activechatchannel__conversation {
|
|
max-width: 52%;
|
|
}
|
|
|
|
.chat--content-visible
|
|
.activechatchannel__activecontent.activechatchannel__activecontent--video {
|
|
width: 180px;
|
|
min-width: 180px;
|
|
}
|
|
|
|
.live-chat-wrapper .activechatchannel__activecontent {
|
|
min-width: 310px;
|
|
margin-left: -180px;
|
|
max-width: 96%;
|
|
padding: 13px;
|
|
}
|
|
|
|
.chat--content-visible-full {
|
|
.activechatchannel__activecontent.activechatchannel__activecontent--sidecar {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
min-width: 100%;
|
|
}
|
|
.activechatchannel__activecontent.activechatchannel__activecontent--video {
|
|
position: absolute;
|
|
right: 0;
|
|
bottom: 0;
|
|
width: 200px;
|
|
min-width: 200px;
|
|
height: 300px;
|
|
z-index: 250;
|
|
}
|
|
}
|
|
|
|
.chat--video-visible-full {
|
|
.activechatchannel__activecontent.activechatchannel__activecontent--video {
|
|
position: absolute;
|
|
left: 0;
|
|
right: 0;
|
|
top: 0;
|
|
bottom: 0;
|
|
width: 100%;
|
|
min-width: 100%;
|
|
}
|
|
.activechatchannel__activecontent.activechatchannel__activecontent--sidecar {
|
|
display: none;
|
|
}
|
|
}
|
|
|
|
.activechatchannel__activecontentexitbutton {
|
|
font-size: 30px;
|
|
position: absolute;
|
|
margin-left: 80%;
|
|
margin-top: -4px;
|
|
left: 4px;
|
|
top: 4px;
|
|
z-index: 10;
|
|
padding: 0px;
|
|
height: 30px;
|
|
width: 30px;
|
|
line-height: 0;
|
|
@media screen and (max-width: 800px) {
|
|
&.activechatchannel__activecontentexitbutton--fullscreen {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.activechatchannel__activeArticle {
|
|
position: absolute;
|
|
top: 0px;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.activechatchannel__activeArticle iframe {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
height: 100%;
|
|
width: 100%;
|
|
border: 0px;
|
|
}
|
|
|
|
.activechatchannel__activecontentuserdetails {
|
|
margin-top: 20px;
|
|
font-family: var(--ff-monospace);
|
|
font-size: 0.9em;
|
|
|
|
.key {
|
|
color: $medium-gray;
|
|
margin-bottom: 3px;
|
|
font-size: 0.9em;
|
|
}
|
|
}
|
|
|
|
.userdetails__blockreport {
|
|
margin: 10px 0;
|
|
|
|
button {
|
|
background-color: rgb(255, 0, 0);
|
|
color: rgb(255, 255, 254);
|
|
font-size: 1em;
|
|
cursor: pointer;
|
|
padding: 5px;
|
|
margin: 2px 5px;
|
|
border-radius: 3px;
|
|
border-width: 0px;
|
|
border-style: initial;
|
|
border-color: initial;
|
|
border-image: initial;
|
|
|
|
&:first-child {
|
|
margin-left: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.userdetails__reportabuse,
|
|
.userdetails__blockmsg {
|
|
a {
|
|
background-color: rgb(255, 0, 0);
|
|
color: rgb(255, 255, 254);
|
|
font-size: 1em;
|
|
cursor: pointer;
|
|
padding: 5px;
|
|
margin: 2px 5px;
|
|
border-radius: 3px;
|
|
border-width: 0px;
|
|
border-style: initial;
|
|
border-color: initial;
|
|
border-image: initial;
|
|
}
|
|
|
|
.no {
|
|
background-color: rgb(78, 87, 239);
|
|
}
|
|
}
|
|
|
|
.chatchannels {
|
|
box-sizing: border-box;
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: auto;
|
|
justify-content: space-between;
|
|
width: 100%;
|
|
}
|
|
|
|
.chatchannels__channelslist {
|
|
flex-grow: 1;
|
|
overflow-y: auto;
|
|
overflow-x: hidden;
|
|
margin: var(--su-4) auto;
|
|
width: 100%;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
.chatchannels__channelslistheader {
|
|
background: lighten($purple, 5%);
|
|
border: 1px solid darken($purple, 20%);
|
|
font-size: 12px;
|
|
color: $dark-purple;
|
|
box-sizing: border-box;
|
|
padding: 5px;
|
|
width: 98%;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.chatchannels__channelslistfooter {
|
|
font-size: 12px;
|
|
color: $medium-gray;
|
|
padding: 10px;
|
|
opacity: 0.8;
|
|
padding-bottom: 70px;
|
|
}
|
|
|
|
.chatchannels__config {
|
|
position: fixed;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
background: var(--body-bg);
|
|
border-top: 1px solid $light-medium-gray;
|
|
padding: var(--su-3);
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
|
|
button {
|
|
opacity: 0.6;
|
|
border: none;
|
|
height: 18px;
|
|
width: 18px;
|
|
background-size: cover;
|
|
background-color: transparent;
|
|
}
|
|
|
|
ul {
|
|
padding: 12px 10px;
|
|
}
|
|
|
|
&:hover {
|
|
.chatchannels__configmenu {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chatchannels__configmenu {
|
|
position: absolute;
|
|
bottom: 42px;
|
|
min-width: 150px;
|
|
left: 0;
|
|
right: 0;
|
|
background: $lightest-gray;
|
|
border-top: 1px solid $light-medium-gray;
|
|
font-size: 13px;
|
|
|
|
li {
|
|
list-style: none;
|
|
a {
|
|
color: $dark-gray;
|
|
display: block;
|
|
padding: 5px 0px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.chatchannels__misc {
|
|
height: 70px;
|
|
border-top: 1px solid #c9c9c9;
|
|
}
|
|
|
|
// Chatmessage
|
|
.chatmessage {
|
|
padding: var(--su-2) var(--su-6);
|
|
display: flex;
|
|
max-width: 100%;
|
|
@media not all and (pointer: coarse) {
|
|
&:hover {
|
|
@include themeable(
|
|
background,
|
|
theme-container-background-hover,
|
|
$light-gray
|
|
);
|
|
|
|
.chatmessagebody__username--link {
|
|
@include themeable(
|
|
background,
|
|
theme-container-background-hover,
|
|
transparent
|
|
);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.chat__channelinvitationsindicator a,
|
|
.chat__channelinvitationsindicator button {
|
|
background: linear-gradient(10deg, darken($green, 25%), darken($green, 15%));
|
|
text-align: center;
|
|
padding: 30px 0px;
|
|
display: block;
|
|
border-radius: var(--radius);
|
|
margin: 3px 0px;
|
|
border: 0px;
|
|
width: 94%;
|
|
color: white;
|
|
font-size: 1.1em;
|
|
font-weight: var(--fw-bold);
|
|
-webkit-appearance: unset;
|
|
}
|
|
|
|
.chatchanneltabbutton {
|
|
border: none;
|
|
width: 100%;
|
|
background: transparent;
|
|
box-sizing: border-box;
|
|
color: var(--body-color);
|
|
display: block;
|
|
position: relative;
|
|
padding: 0;
|
|
|
|
.crayons-indicator {
|
|
vertical-align: -1px;
|
|
margin-right: var(--su-1);
|
|
}
|
|
}
|
|
|
|
.chatchanneltab {
|
|
display: inline-block;
|
|
width: 100%;
|
|
background: inherit;
|
|
text-align: start;
|
|
border-radius: var(--radius);
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
box-sizing: border-box;
|
|
border: 1px solid transparent;
|
|
font-size: 13px;
|
|
padding: var(--su-3);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.chatchanneltab--active {
|
|
border: 1px solid var(--base-30);
|
|
background: var(--base-10);
|
|
img {
|
|
border: 1px solid var(--base-30);
|
|
}
|
|
}
|
|
|
|
.chatchanneltab__name {
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.chatchanneltab--new {
|
|
border: 1px solid var(--accent-brand-darker);
|
|
color: var(--accent-brand-darker);
|
|
}
|
|
|
|
.chatchanneltab--video {
|
|
background: lighten($green, 10%);
|
|
animation: small-pulser 0.5s linear infinite;
|
|
}
|
|
|
|
.chatchanneltabindicator {
|
|
display: inline-block;
|
|
min-height: 0.3em;
|
|
min-width: 0.3em;
|
|
margin-right: 5px;
|
|
flex-shrink: 0;
|
|
|
|
img {
|
|
height: calc(22px + 0.3vw);
|
|
width: calc(22px + 0.3vw);
|
|
vertical-align: calc(-6px - 0.14vw);
|
|
border-radius: 100px;
|
|
border: 1px solid var(--base-30);
|
|
background: white;
|
|
}
|
|
|
|
.chatchanneltabgroupicon {
|
|
display: inline-block;
|
|
margin-left: calc(20px + 0.3vw);
|
|
}
|
|
}
|
|
|
|
.chatchanneltabindicator .chatchanneltabindicatorgroupimage {
|
|
border-radius: var(--radius);
|
|
}
|
|
|
|
.chatchanneltabindicator--new img {
|
|
border: 1px solid var(--accent-brand);
|
|
}
|
|
|
|
.chatmessage__body {
|
|
flex-grow: 1;
|
|
max-width: calc(100% - 37px);
|
|
}
|
|
|
|
.message__info {
|
|
display: flex;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.chatmessagebody__username {
|
|
font-size: var(--fs-base);
|
|
font-weight: var(--fw-medium);
|
|
margin-right: var(--su-2);
|
|
}
|
|
|
|
.chatmessage__timestamp {
|
|
font-size: var(--fs-s);
|
|
color: var(--base-60);
|
|
}
|
|
|
|
.chatmessage__bodytext {
|
|
overflow-wrap: break-word;
|
|
word-wrap: break-word;
|
|
word-break: break-word;
|
|
|
|
pre {
|
|
background: #29292e;
|
|
}
|
|
|
|
code {
|
|
background: #29292e;
|
|
padding: 0.1em 0.3em;
|
|
border-radius: 2px;
|
|
color: #eff0f9;
|
|
font-size: 0.95em;
|
|
vertical-align: 0.05em;
|
|
max-width: 100%;
|
|
line-height: 1.4em;
|
|
font-family: var(--ff-monospace);
|
|
}
|
|
}
|
|
|
|
.chatmessage__profilepic {
|
|
margin-right: var(--su-2);
|
|
}
|
|
|
|
.chatmessagebody__profileimage {
|
|
height: var(--su-7);
|
|
width: var(--su-7);
|
|
border-radius: 100%;
|
|
}
|
|
|
|
.chatmessagebody__username--link {
|
|
color: inherit;
|
|
border-radius: 3px;
|
|
padding: 0px 2px;
|
|
display: inline-block;
|
|
|
|
&:hover {
|
|
@include themeable(
|
|
background,
|
|
theme-container-background-hover,
|
|
transparent
|
|
);
|
|
}
|
|
}
|
|
|
|
.chatmessagebody__message {
|
|
p {
|
|
margin-top: 0;
|
|
margin-bottom: 9px;
|
|
|
|
&:last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
}
|
|
|
|
blockquote {
|
|
border-left: 4px solid $black;
|
|
margin-left: 0px;
|
|
padding-left: 8px;
|
|
}
|
|
|
|
a h1 {
|
|
color: var(--card-color);
|
|
border-color: var(--card-color);
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
}
|
|
}
|
|
|
|
.chatmessagebody__currentuser {
|
|
background: black;
|
|
color: white;
|
|
padding: 1px 5px;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
// Messagecomposer
|
|
.messagecomposer {
|
|
display: flex;
|
|
height: inherit;
|
|
align-items: stretch;
|
|
position: relative;
|
|
height: auto;
|
|
padding: var(--su-4);
|
|
|
|
textarea {
|
|
margin-right: var(--su-4);
|
|
}
|
|
}
|
|
|
|
.messagelist__sentinel {
|
|
height: 5px;
|
|
}
|
|
|
|
.chatcodeeditor {
|
|
position: absolute;
|
|
top: 40px;
|
|
left: 0px;
|
|
right: 24px;
|
|
bottom: 0px;
|
|
}
|
|
|
|
.chatcodeeditor__header {
|
|
position: absolute;
|
|
top: -27px;
|
|
left: 35px;
|
|
font-family: var(--ff-monospace);
|
|
@include themeable(color, theme-color, $dark-gray);
|
|
}
|
|
|
|
.cursorelement {
|
|
border-left: 3px solid $red;
|
|
animation: blinker 1s linear infinite;
|
|
padding: 0px;
|
|
z-index: 0;
|
|
}
|
|
|
|
@keyframes blinker {
|
|
50% {
|
|
opacity: 0;
|
|
}
|
|
}
|
|
|
|
@keyframes pulser {
|
|
50% {
|
|
opacity: 0.8;
|
|
box-shadow: 2px 2px 0px $green;
|
|
padding: 18px;
|
|
}
|
|
}
|
|
|
|
@keyframes small-pulser {
|
|
50% {
|
|
opacity: 0.6;
|
|
box-shadow: 2px 2px 0px $green;
|
|
}
|
|
}
|
|
|
|
.chatchanneljumpback {
|
|
position: relative;
|
|
}
|
|
|
|
.chatchanneljumpback__messages {
|
|
position: absolute;
|
|
bottom: 12px;
|
|
right: 8px;
|
|
background: var(--body-bg);
|
|
color: var(--body-color);
|
|
border: 2px solid $black;
|
|
padding: 7px 15px;
|
|
border-radius: 20px;
|
|
cursor: pointer;
|
|
font-size: 13px;
|
|
text-transform: uppercase;
|
|
font-weight: bold;
|
|
z-index: 7;
|
|
}
|
|
|
|
.chatchanneljumpback__hide {
|
|
display: none;
|
|
}
|
|
|
|
.message__info__actions {
|
|
display: grid;
|
|
grid-template-columns: 19fr 1fr;
|
|
}
|
|
|
|
.message__actions {
|
|
position: relative;
|
|
justify-content: end;
|
|
-webkit-justify-content: flex-end;
|
|
|
|
.ellipsis__menubutton img {
|
|
height: 17px;
|
|
vertical-align: middle;
|
|
color: var(--theme-color, #0a0a0a);
|
|
}
|
|
|
|
&:hover {
|
|
.ellipsis__menubutton {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
&:focus-within {
|
|
.ellipsis__menubutton {
|
|
opacity: 1;
|
|
}
|
|
}
|
|
|
|
img {
|
|
height: 100%;
|
|
opacity: 0.6;
|
|
}
|
|
|
|
.messagebody__dropdownmenu {
|
|
position: absolute;
|
|
background-color: var(--theme-container-background, #fff);
|
|
border-style: solid;
|
|
border-color: var(--theme-color, #0a0a0a);
|
|
border-radius: 5px;
|
|
border-width: 1px;
|
|
top: 100%;
|
|
right: 0;
|
|
|
|
button {
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
}
|
|
}
|
|
|
|
.message__actions span {
|
|
margin-left: 7px;
|
|
font-size: var(--fs-s);
|
|
font-weight: bold;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.chatmessage:hover .message__actions {
|
|
display: -webkit-flex;
|
|
display: flex;
|
|
}
|
|
|
|
.chatchannels__richlink {
|
|
border: 1px solid darken($light-medium-gray, 15%);
|
|
border-radius: 3px;
|
|
box-shadow: 2px 2px 0px darken($light-medium-gray, 15%);
|
|
color: $black;
|
|
display: block;
|
|
max-width: 670px;
|
|
padding: 0px;
|
|
margin-bottom: 6px;
|
|
background: var(--card-bg);
|
|
font-size: 0.9em;
|
|
&.chatchannels__richlink--base {
|
|
h1 {
|
|
margin: 18px auto;
|
|
}
|
|
}
|
|
.chatchannels__richlinkmainimage {
|
|
position: relative;
|
|
width: 100%;
|
|
margin: auto;
|
|
background: transparent no-repeat center center;
|
|
background-size: cover;
|
|
z-index: 2;
|
|
padding-top: 42%;
|
|
}
|
|
h1 {
|
|
margin-top: 8px;
|
|
padding: 0px calc(10px + 0.2vw);
|
|
line-height: 1.1em;
|
|
font-size: 1.8em;
|
|
img {
|
|
height: 1.2em;
|
|
width: 1.2em;
|
|
margin-right: 5px;
|
|
vertical-align: -0.25em;
|
|
&.chatchannels__richlinkprofilepic {
|
|
border-radius: 100px;
|
|
border: 1px solid var(--card-color-tertiary);
|
|
}
|
|
}
|
|
}
|
|
h4 {
|
|
margin-top: 12px;
|
|
margin-bottom: 15px;
|
|
color: var(--card-color-tertiary);
|
|
font-weight: 500;
|
|
padding: 0px calc(10px + 0.2vw);
|
|
img {
|
|
height: 22px;
|
|
width: 22px;
|
|
border-radius: 100px;
|
|
margin-right: 3px;
|
|
border: 1px solid var(--card-color-tertiary);
|
|
vertical-align: -6px;
|
|
}
|
|
}
|
|
}
|
|
|
|
.delete-actions__container {
|
|
margin-top: var(--su-4);
|
|
}
|
|
|
|
.message__delete__button {
|
|
margin-right: var(--su-2);
|
|
}
|
|
|
|
.message__delete__modal__hide {
|
|
display: none;
|
|
}
|
|
|
|
.composer-container__edit {
|
|
height: auto;
|
|
padding: var(--su-4);
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.composer-textarea__edit {
|
|
height: 80px;
|
|
max-height: 8rem;
|
|
margin-bottom: var(--su-4);
|
|
}
|
|
|
|
.composer-textarea {
|
|
height: auto;
|
|
margin-bottom: var(--su-4);
|
|
min-height: 2.5rem;
|
|
resize: vertical;
|
|
max-height: 8rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.composer-btn-group {
|
|
button {
|
|
margin-right: var(--su-2);
|
|
|
|
&:last-child {
|
|
margin-right: 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
.mention__list {
|
|
position: absolute;
|
|
background: var(--card-bg);
|
|
display: none;
|
|
z-index: 1;
|
|
border-top: 1px solid #dbdbdb;
|
|
bottom: 90px;
|
|
width: 100%;
|
|
max-height: 280px;
|
|
overflow-x: scroll;
|
|
}
|
|
.mention__list .mention__user {
|
|
padding: 5px 10px;
|
|
border-bottom: 1px solid #dbdbdb;
|
|
cursor: pointer;
|
|
}
|
|
.compose__outer__container {
|
|
position: relative;
|
|
box-shadow: 0 0 0 1px var(--card-border);
|
|
}
|
|
.mention__user__image {
|
|
height: 25px;
|
|
width: 25px;
|
|
margin-right: 6px;
|
|
border-radius: 20px;
|
|
align-self: center;
|
|
}
|
|
.mention__visible {
|
|
display: block;
|
|
}
|
|
.mention__user {
|
|
display: grid;
|
|
grid-template-columns: 30px 1fr;
|
|
}
|
|
.mention__user p {
|
|
margin: 0px;
|
|
font-size: 9px;
|
|
color: gray;
|
|
width: max-content;
|
|
}
|
|
.mentioned-all {
|
|
color: rgb(213, 138, 0);
|
|
}
|
|
|
|
.active__message__list {
|
|
background: var(--theme-container-accent-background, #f5f6f7);
|
|
}
|
|
.chatmessage__action {
|
|
&:hover {
|
|
background: none;
|
|
}
|
|
|
|
.chatmessage__bodytext {
|
|
margin: 0;
|
|
font-size: 12px;
|
|
font-style: italic;
|
|
color: var(--card-color-tertiary);
|
|
a {
|
|
text-decoration: none;
|
|
color: var(--card-color-tertiary);
|
|
&:hover {
|
|
text-decoration: underline;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.joining-message {
|
|
display: grid;
|
|
margin-top: 30px;
|
|
justify-content: center;
|
|
h3,
|
|
h2 {
|
|
width: 90%;
|
|
margin-top: 10px;
|
|
text-align: center;
|
|
justify-self: center;
|
|
}
|
|
}
|
|
.user-picture,
|
|
.send-request {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: 10vh;
|
|
}
|
|
.user-picture {
|
|
.chatmessage__profilepic {
|
|
.chatmessagebody__profileimage {
|
|
width: 50px;
|
|
height: 50px;
|
|
border: 1px solid var(--base-30);
|
|
}
|
|
}
|
|
}
|
|
|
|
.loading-user {
|
|
height: '210px';
|
|
width: '210px';
|
|
margin: ' 15px auto';
|
|
display: 'block';
|
|
border-radius: '500px';
|
|
background-color: '#f5f6f7';
|
|
}
|
|
.request-card {
|
|
display: grid;
|
|
grid-template-columns: 200px 1fr;
|
|
}
|
|
|
|
.request-actions {
|
|
justify-content: space-between;
|
|
display: flex;
|
|
}
|
|
|
|
.request-message {
|
|
width: 100%;
|
|
|
|
@media screen and (min-width: $breakpoint-s) {
|
|
width: 60%;
|
|
}
|
|
}
|
|
|
|
.channel_details {
|
|
margin-top: 30px;
|
|
}
|
|
.channel-request-card {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
flex-wrap: wrap;
|
|
}
|
|
.request_manager_header {
|
|
margin-top: 30px;
|
|
}
|
|
|
|
.requests-badge {
|
|
position: absolute;
|
|
height: 17px;
|
|
width: 17px;
|
|
padding: 2px;
|
|
margin-left: -10px;
|
|
margin-top: -2px;
|
|
}
|
|
|
|
.chat_channel-member-list {
|
|
height: 300px;
|
|
overflow-y: scroll;
|
|
}
|
|
|
|
.member-list-item {
|
|
justify-content: space-between;
|
|
|
|
.admin-emoji {
|
|
width: 6%;
|
|
}
|
|
|
|
.admin-emoji-button {
|
|
width: 10%;
|
|
}
|
|
}
|
|
|
|
.connect-draw {
|
|
margin-top: 30px;
|
|
.draw-title {
|
|
display: flex;
|
|
justify-content: flex-start;
|
|
}
|
|
.connect-draw__colors {
|
|
z-index: 2;
|
|
margin: 5px 20px;
|
|
text-align: center;
|
|
pointer-events: all;
|
|
}
|
|
|
|
.connect-draw__color {
|
|
height: 30px;
|
|
width: 30px;
|
|
margin-right: 10px;
|
|
border-radius: 50%;
|
|
border: none;
|
|
}
|
|
.color:hover {
|
|
opacity: 0.7;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.color:focus {
|
|
outline: 0;
|
|
}
|
|
.connect-draw__draw-area {
|
|
display: grid;
|
|
|
|
.connect-draw__draw {
|
|
border: 1px solid black;
|
|
background-color: white;
|
|
justify-self: center;
|
|
}
|
|
.connect-draw__actions {
|
|
margin: 20px 0px;
|
|
display: flex;
|
|
button {
|
|
margin-left: 10px;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.report__abuse-options {
|
|
.crayons-field + .crayons-field {
|
|
margin-top: var(--su-2);
|
|
}
|
|
}
|
|
|
|
.report__abuse__button {
|
|
width: 135px;
|
|
}
|
|
.reported__message {
|
|
border: 1px solid;
|
|
max-height: 300px;
|
|
overflow: scroll;
|
|
}
|
|
|
|
.membership-section {
|
|
position: relative;
|
|
|
|
.membership-actions {
|
|
position: relative;
|
|
|
|
.membership-management__dropdown-memu {
|
|
display: none;
|
|
position: absolute;
|
|
background-color: var(--theme-container-background, #fff);
|
|
border-style: solid;
|
|
border-color: var(--theme-color, #0a0a0a);
|
|
border-radius: 5px;
|
|
border-width: 1px;
|
|
z-index: 100;
|
|
width: 200px;
|
|
right: 78px;
|
|
top: 20px;
|
|
|
|
button {
|
|
width: 100%;
|
|
text-align: left;
|
|
}
|
|
|
|
&:hover {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.membership-management__dropdown-button {
|
|
height: 17px;
|
|
cursor: pointer;
|
|
color: var(--theme-color, #0a0a0a);
|
|
|
|
&:hover + .membership-management__dropdown-memu {
|
|
display: block;
|
|
}
|
|
|
|
img {
|
|
height: 100%;
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
}
|
|
}
|