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

104 lines
1.8 KiB
SCSS
Raw Normal View History

@import "/imports/ui/stylesheets/mixins/focus";
@import "/imports/ui/stylesheets/variables/_all";
2016-06-02 00:33:19 +08:00
@mixin lineClamp($lineHeight: 1em, $lineCount: 1, $bgColor: inherit) {
display: block;
2018-06-14 04:18:16 +08:00
box-orient: vertical;
position: relative;
word-break: break-word;
2018-06-14 04:18:16 +08:00
overflow: hidden;
line-height: $lineHeight;
max-height: calc(#{"$lineHeight * $lineCount"});
&:after {
content: '';
position: absolute;
right: 0;
width: 1em;
height: $lineHeight;
margin-top: 0.2em;
background-color: $bgColor;
}
}
2016-06-02 00:33:19 +08:00
.chat {
background-color: #fff;
padding: var(--md-padding-x);
2016-06-02 00:33:19 +08:00
display: flex;
flex-grow: 1;
flex-direction: column;
2017-03-17 06:39:34 +08:00
justify-content: space-around;
overflow: hidden;
height: 100vh;
transform: translateZ(0);
2016-06-02 00:33:19 +08:00
}
.header {
position: relative;
top: var(--poll-header-offset);
2017-03-17 06:39:34 +08:00
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
2016-06-02 00:33:19 +08:00
}
2017-08-05 01:58:55 +08:00
.title {
@extend %text-elipsis;
flex: 1;
2018-10-26 02:03:25 +08:00
& > button, button:hover {
max-width: 98%;
}
}
2018-10-16 22:33:42 +08:00
.hideBtn {
position: relative;
background-color: var(--color-white);
2018-10-16 22:33:42 +08:00
display: block;
margin: var(--border-size-large);
margin-bottom: var(--border-size);
2018-10-16 22:33:42 +08:00
padding-left: 0px;
> i {
color: var(--color-gray-dark);
font-size: smaller;
2018-10-16 22:33:42 +08:00
}
&:hover {
background-color: var(--color-white);
2018-10-16 22:33:42 +08:00
}
}
.link {
text-decoration: none;
2018-07-06 20:05:56 +08:00
background-color: inherit;
}
.pushMessageContent {
margin-left: 2rem;
margin-right: 2rem;
margin-top: 1.4rem;
margin-bottom: .4rem;
2018-07-06 20:05:56 +08:00
background-color: inherit;
}
.userNameMessage {
margin: 0;
font-size: 80%;
color: var(--color-gray-dark);
font-weight: bold;
2018-07-06 20:05:56 +08:00
background-color: inherit;
@include lineClamp(1em, 1);
}
.contentMessage {
margin-top: .2rem;
font-size: 80%;
2018-07-06 20:05:56 +08:00
background-color: inherit;
@include lineClamp(var(--font-size-small), 10);
}