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";
|
2017-11-02 00:01:55 +08:00
|
|
|
@import "/imports/ui/stylesheets/variables/_all";
|
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
|
|
|
|
|
|
|
&:hover {
|
|
|
|
@include highContrastOutline();
|
|
|
|
}
|
|
|
|
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
@include highContrastOutline();
|
|
|
|
outline-style: solid;
|
|
|
|
}
|
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
|
|
|
|
|
|
|
.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;
|
2017-06-01 22:24:29 +08:00
|
|
|
|
2019-05-14 21:15:54 +08:00
|
|
|
[dir="rtl"] & {
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
2017-06-01 22:24:29 +08:00
|
|
|
&:before {
|
|
|
|
content: "\00a0"; // non-breaking space
|
|
|
|
}
|
|
|
|
}
|
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;
|
|
|
|
}
|
|
|
|
}
|