2017-11-02 00:01:55 +08:00
|
|
|
@import "/imports/ui/stylesheets/mixins/focus";
|
2019-04-08 22:22:22 +08:00
|
|
|
@import "/imports/ui/stylesheets/mixins/_indicators";
|
2020-09-02 02:46:13 +08:00
|
|
|
@import "/imports/ui/stylesheets/variables/placeholders";
|
2016-06-02 00:33:19 +08:00
|
|
|
|
2020-05-26 04:56:26 +08:00
|
|
|
:root {
|
|
|
|
--max-chat-input-msg-height: .93rem;
|
|
|
|
}
|
|
|
|
|
2016-06-02 00:33:19 +08:00
|
|
|
.form {
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
|
|
|
align-self: flex-end;
|
2017-06-01 22:24:29 +08:00
|
|
|
width: 100%;
|
|
|
|
position: relative;
|
2018-10-19 04:37:14 +08:00
|
|
|
margin-bottom: calc(-1 * var(--sm-padding-x));
|
2017-06-01 22:24:29 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.wrapper {
|
2016-06-02 00:33:19 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
|
|
|
|
.actions {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
flex-grow: 0;
|
|
|
|
flex-shrink: 0;
|
2018-10-19 04:37:14 +08:00
|
|
|
border: var(--border-size) solid var(--color-gray-lighter);
|
2019-01-25 00:16:23 +08:00
|
|
|
background-color: #fff;
|
2018-10-19 04:37:14 +08:00
|
|
|
border-radius: var(--border-radius) 0 0 var(--border-radius);
|
|
|
|
color: var(--color-gray-light);
|
|
|
|
padding: var(--sm-padding-y) var(--sm-padding-x);
|
2016-06-14 01:00:38 +08:00
|
|
|
cursor: pointer;
|
|
|
|
|
2019-04-11 23:04:10 +08:00
|
|
|
:global(.animationsEnabled) & {
|
2019-03-05 10:46:37 +08:00
|
|
|
transition: all .3s;
|
|
|
|
}
|
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
--bg-faded: rgba(167,179,189,0.25);
|
|
|
|
|
2016-06-14 01:00:38 +08:00
|
|
|
&:hover,
|
|
|
|
&:focus {
|
2018-10-19 04:37:14 +08:00
|
|
|
background-color: var(--bg-faded);
|
2016-06-14 01:00:38 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:disabled,
|
|
|
|
&[disabled] {
|
|
|
|
cursor: not-allowed;
|
|
|
|
opacity: .75;
|
2018-10-19 04:37:14 +08:00
|
|
|
background-color: var(--bg-faded);
|
2016-06-14 01:00:38 +08:00
|
|
|
}
|
2016-06-02 00:33:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.input {
|
2018-10-19 04:37:14 +08:00
|
|
|
@include inputFocus(var(--color-blue-light));
|
2017-11-18 02:57:39 +08:00
|
|
|
|
2016-06-02 00:33:19 +08:00
|
|
|
flex: 1;
|
|
|
|
background: #fff;
|
|
|
|
background-clip: padding-box;
|
|
|
|
margin: 0;
|
2018-10-19 04:37:14 +08:00
|
|
|
color: var(--color-text);
|
2016-06-02 00:33:19 +08:00
|
|
|
-webkit-appearance: none;
|
2018-10-19 04:37:14 +08:00
|
|
|
padding: calc(var(--sm-padding-y) * 2.5) calc(var(--sm-padding-x) * 1.25);
|
2016-06-02 00:33:19 +08:00
|
|
|
resize: none;
|
|
|
|
transition: none;
|
2018-10-19 04:37:14 +08:00
|
|
|
border-radius: var(--border-radius);
|
|
|
|
font-size: var(--font-size-base);
|
2016-12-07 01:07:22 +08:00
|
|
|
min-height: 2.5rem;
|
2016-06-02 00:33:19 +08:00
|
|
|
max-height: 10rem;
|
2018-10-19 04:37:14 +08:00
|
|
|
border: 1px solid var(--color-gray-lighter);
|
2018-12-29 05:04:18 +08:00
|
|
|
box-shadow: 0 0 0 1px var(--color-gray-lighter);
|
2016-06-14 01:00:38 +08:00
|
|
|
|
|
|
|
&:disabled,
|
|
|
|
&[disabled] {
|
|
|
|
cursor: not-allowed;
|
|
|
|
opacity: .75;
|
2018-10-19 04:37:14 +08:00
|
|
|
background-color: rgba(167,179,189,0.25);
|
2016-06-14 01:00:38 +08:00
|
|
|
}
|
2019-04-08 22:22:22 +08:00
|
|
|
|
2020-09-02 02:46:13 +08:00
|
|
|
&:hover,
|
2019-04-08 22:22:22 +08:00
|
|
|
&:active,
|
|
|
|
&:focus {
|
2020-09-02 02:46:13 +08:00
|
|
|
@extend %highContrastOutline;
|
2019-04-08 22:22:22 +08:00
|
|
|
}
|
2016-06-02 00:33:19 +08:00
|
|
|
}
|
2017-04-05 21:21:30 +08:00
|
|
|
|
|
|
|
.sendButton {
|
2019-05-14 21:15:54 +08:00
|
|
|
margin:0 0 0 var(--sm-padding-x);
|
2017-11-17 01:25:38 +08:00
|
|
|
align-self: center;
|
2017-11-18 02:57:39 +08:00
|
|
|
font-size: 0.9rem;
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
margin: 0 var(--sm-padding-x) 0 0;
|
|
|
|
-webkit-transform: scale(-1, 1);
|
|
|
|
-moz-transform: scale(-1, 1);
|
|
|
|
-ms-transform: scale(-1, 1);
|
|
|
|
-o-transform: scale(-1, 1);
|
|
|
|
transform: scale(-1, 1);
|
|
|
|
}
|
2017-04-05 21:21:30 +08:00
|
|
|
}
|
2017-06-01 22:24:29 +08:00
|
|
|
|
2019-08-14 22:38:26 +08:00
|
|
|
.error,
|
2017-06-01 22:24:29 +08:00
|
|
|
.info {
|
2018-10-19 04:37:14 +08:00
|
|
|
font-size: calc(var(--font-size-base) * .75);
|
2019-07-31 10:37:50 +08:00
|
|
|
color: var(--color-gray-dark);
|
2019-07-05 23:29:45 +08:00
|
|
|
text-align: left;
|
2018-10-19 04:37:14 +08:00
|
|
|
padding: var(--border-size) 0;
|
2020-05-26 04:56:26 +08:00
|
|
|
position: relative;
|
2017-06-01 22:24:29 +08:00
|
|
|
}
|
2019-07-31 10:37:50 +08:00
|
|
|
|
2020-05-26 04:56:26 +08:00
|
|
|
.error,
|
|
|
|
.info,
|
|
|
|
.space {
|
|
|
|
height: var(--max-chat-input-msg-height);
|
|
|
|
max-height: var(--max-chat-input-msg-height);
|
2019-08-30 02:50:33 +08:00
|
|
|
}
|
|
|
|
|
2019-10-01 03:50:35 +08:00
|
|
|
.coupleTyper,
|
|
|
|
.singleTyper {
|
2019-08-30 02:50:33 +08:00
|
|
|
overflow: hidden;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
white-space: nowrap;
|
2019-11-05 00:29:14 +08:00
|
|
|
font-weight: bold;
|
|
|
|
font-size: var(--font-size-smaller);
|
2019-08-30 02:50:33 +08:00
|
|
|
}
|
|
|
|
|
2019-10-01 03:50:35 +08:00
|
|
|
.singleTyper {
|
|
|
|
max-width: 70%;
|
2019-08-30 02:50:33 +08:00
|
|
|
}
|
|
|
|
|
2019-10-01 03:50:35 +08:00
|
|
|
.coupleTyper {
|
2019-10-02 13:02:51 +08:00
|
|
|
max-width: 25%;
|
2019-08-30 02:50:33 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.typingIndicator {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-10-02 13:02:51 +08:00
|
|
|
|
|
|
|
> span {
|
2020-05-26 04:56:26 +08:00
|
|
|
display: block;
|
2019-10-03 04:33:45 +08:00
|
|
|
width: 100%;
|
2019-11-05 00:29:14 +08:00
|
|
|
line-height: var(--font-size-md);
|
2019-10-02 13:02:51 +08:00
|
|
|
}
|
2020-05-26 04:56:26 +08:00
|
|
|
|
|
|
|
text-align: left;
|
|
|
|
[dir="rtl"] & {
|
|
|
|
text-align: right;
|
|
|
|
}
|
2019-08-30 02:50:33 +08:00
|
|
|
}
|
|
|
|
|
2019-08-14 22:38:26 +08:00
|
|
|
.error {
|
|
|
|
color: var(--color-danger);
|
|
|
|
}
|
2019-07-31 10:37:50 +08:00
|
|
|
|
|
|
|
.connectingAnimation {
|
|
|
|
margin: auto;
|
|
|
|
display: inline-block;
|
|
|
|
width: 1.5em;
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
overflow: hidden;
|
|
|
|
display: inline-block;
|
|
|
|
vertical-align: bottom;
|
|
|
|
content: "\2026"; /* ascii code for the ellipsis character */
|
|
|
|
width: 0;
|
|
|
|
margin-left: 0.25em;
|
|
|
|
|
|
|
|
:global(.animationsEnabled) & {
|
|
|
|
animation: ellipsis steps(4, end) 900ms infinite;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
@keyframes ellipsis {
|
|
|
|
to {
|
|
|
|
width: 1.5em;
|
|
|
|
}
|
|
|
|
}
|