bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/chat/message-form/styles.scss

143 lines
2.8 KiB
SCSS
Raw Normal View History

@import "/imports/ui/stylesheets/mixins/focus";
@import "/imports/ui/stylesheets/mixins/_indicators";
@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;
width: 100%;
position: relative;
margin-bottom: calc(-1 * var(--sm-padding-x));
}
.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;
border: var(--border-size) solid var(--color-gray-lighter);
background-color: #fff;
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;
:global(.animationsEnabled) & {
transition: all .3s;
}
--bg-faded: rgba(167,179,189,0.25);
2016-06-14 01:00:38 +08:00
&:hover,
&:focus {
background-color: var(--bg-faded);
2016-06-14 01:00:38 +08:00
}
&:disabled,
&[disabled] {
cursor: not-allowed;
opacity: .75;
background-color: var(--bg-faded);
2016-06-14 01:00:38 +08:00
}
2016-06-02 00:33:19 +08:00
}
.input {
@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;
color: var(--color-text);
2016-06-02 00:33:19 +08:00
-webkit-appearance: none;
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;
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;
border: 1px solid var(--color-gray-lighter);
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;
background-color: rgba(167,179,189,0.25);
2016-06-14 01:00:38 +08:00
}
&:hover {
@include highContrastOutline();
}
&:active,
&:focus {
@include highContrastOutline();
outline-style: solid;
}
2016-06-02 00:33:19 +08:00
}
.sendButton {
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;
[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);
}
}
.info {
font-size: calc(var(--font-size-base) * .75);
2019-07-31 10:37:50 +08:00
color: var(--color-gray-dark);
text-align: left;
padding: var(--border-size) 0;
[dir="rtl"] & {
text-align: left;
}
&: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;
}
}