2017-11-02 00:01:55 +08:00
|
|
|
@import "/imports/ui/stylesheets/mixins/focus";
|
|
|
|
@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-03-05 10:46:37 +08:00
|
|
|
[style~="--enableAnimation:1;"] & {
|
|
|
|
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;
|
|
|
|
outline: 0;
|
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
|
|
|
}
|
2016-06-02 00:33:19 +08:00
|
|
|
}
|
2017-04-05 21:21:30 +08:00
|
|
|
|
|
|
|
.sendButton {
|
2018-10-19 04:37:14 +08:00
|
|
|
margin-left: 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;
|
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);
|
|
|
|
color: var(--color-gray-light);
|
2017-06-01 22:24:29 +08:00
|
|
|
text-align: right;
|
2018-10-19 04:37:14 +08:00
|
|
|
padding: var(--border-size) 0;
|
2017-06-01 22:24:29 +08:00
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: "\00a0"; // non-breaking space
|
|
|
|
}
|
|
|
|
}
|