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
|
|
|
|
2018-06-13 01:21:31 +08:00
|
|
|
|
2018-10-19 04:37:14 +08:00
|
|
|
|
|
|
|
@mixin lineClamp($lineHeight: 1em, $lineCount: 1, $bgColor: inherit) {
|
2018-06-13 01:21:31 +08:00
|
|
|
display: block;
|
2018-06-14 04:18:16 +08:00
|
|
|
box-orient: vertical;
|
2018-06-13 01:21:31 +08:00
|
|
|
position: relative;
|
|
|
|
word-break: break-word;
|
|
|
|
|
2018-06-14 04:18:16 +08:00
|
|
|
overflow: hidden;
|
2018-06-13 01:21:31 +08:00
|
|
|
line-height: $lineHeight;
|
2018-10-19 04:37:14 +08:00
|
|
|
max-height: calc(#{"$lineHeight * $lineCount"});
|
2018-06-13 01:21:31 +08:00
|
|
|
|
|
|
|
&:before {
|
2018-10-19 04:37:14 +08:00
|
|
|
content: '...';
|
|
|
|
width: 10%;
|
|
|
|
height: lineHeight;
|
|
|
|
text-align: right;
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
bottom: 0;
|
|
|
|
background: linear-gradient(to right, rgba(255, 255, 255, 0), $bgColor 75%);
|
2018-06-13 01:21:31 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:after {
|
|
|
|
content: '';
|
|
|
|
position: absolute;
|
|
|
|
right: 0;
|
|
|
|
width: 1em;
|
|
|
|
height: $lineHeight;
|
|
|
|
margin-top: 0.2em;
|
|
|
|
background-color: $bgColor;
|
|
|
|
}
|
|
|
|
}
|
2017-12-05 03:43:08 +08:00
|
|
|
|
2016-06-02 00:33:19 +08:00
|
|
|
.chat {
|
|
|
|
background-color: #fff;
|
2018-10-19 04:37:14 +08:00
|
|
|
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;
|
2017-01-28 06:13:25 +08:00
|
|
|
overflow: hidden;
|
2018-07-09 02:53:52 +08:00
|
|
|
height: 100vh;
|
2018-09-20 01:57:39 +08:00
|
|
|
transform: translateZ(0);
|
2016-06-02 00:33:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
2017-03-17 06:39:34 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2017-08-05 01:58:55 +08:00
|
|
|
align-items: left;
|
|
|
|
flex-shrink: 0;
|
2017-03-17 06:39:34 +08:00
|
|
|
|
|
|
|
a {
|
2018-10-19 04:37:14 +08:00
|
|
|
@include elementFocus(var(--color-primary));
|
|
|
|
padding-bottom: var(--sm-padding-y);
|
|
|
|
padding-left: var(--sm-padding-y);
|
2017-03-17 06:39:34 +08:00
|
|
|
text-decoration: none;
|
2017-08-05 01:58:55 +08:00
|
|
|
display: block;
|
2017-03-17 06:39:34 +08:00
|
|
|
}
|
|
|
|
|
2017-08-05 01:58:55 +08:00
|
|
|
[class^="icon-bbb-"],
|
|
|
|
[class*=" icon-bbb-"] {
|
2016-12-07 01:07:22 +08:00
|
|
|
font-size: 85%;
|
|
|
|
}
|
2016-06-02 00:33:19 +08:00
|
|
|
}
|
2016-12-16 01:29:17 +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 {
|
|
|
|
margin-top: 0;
|
|
|
|
padding-top: 0;
|
|
|
|
border-top: 0;
|
|
|
|
}
|
2017-03-17 06:39:34 +08:00
|
|
|
}
|
2017-03-02 05:27:05 +08:00
|
|
|
|
2017-12-05 03:43:08 +08:00
|
|
|
.closeBtn {
|
2018-10-19 04:37:14 +08:00
|
|
|
background-color: var(--color-white);
|
2017-08-05 01:58:55 +08:00
|
|
|
flex: 0 0;
|
2017-12-05 03:43:08 +08:00
|
|
|
padding: 0 0.25rem !important;
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-size: 0.85em;
|
2018-10-19 04:37:14 +08:00
|
|
|
color: var(--color-gray-dark) !important;
|
|
|
|
top: -.4em;
|
2017-12-05 03:43:08 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:focus,
|
2018-10-19 04:37:14 +08:00
|
|
|
&:hover {
|
|
|
|
background-color: var(--color-white) !important;
|
|
|
|
i {
|
|
|
|
color: var(--color-gray);
|
2017-12-05 03:43:08 +08:00
|
|
|
}
|
|
|
|
}
|
2016-12-16 01:29:17 +08:00
|
|
|
}
|
2018-05-18 19:54:26 +08:00
|
|
|
|
2018-10-16 22:33:42 +08:00
|
|
|
.hideBtn {
|
|
|
|
position: relative;
|
|
|
|
background-color: white;
|
|
|
|
display: block;
|
|
|
|
margin: 4px;
|
|
|
|
margin-bottom: 2px;
|
|
|
|
padding-left: 0px;
|
|
|
|
|
|
|
|
> i {
|
|
|
|
color: black;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
background-color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-05-18 19:54:26 +08:00
|
|
|
.link {
|
|
|
|
text-decoration: none;
|
2018-07-06 20:05:56 +08:00
|
|
|
background-color: inherit;
|
2018-05-30 00:43:11 +08:00
|
|
|
}
|
|
|
|
|
2018-06-13 01:21:31 +08:00
|
|
|
.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;
|
2018-05-30 00:43:11 +08:00
|
|
|
}
|
|
|
|
|
2018-06-13 01:21:31 +08:00
|
|
|
.userNameMessage {
|
|
|
|
margin: 0;
|
|
|
|
font-size: 80%;
|
2018-10-19 04:37:14 +08:00
|
|
|
color: var(--color-gray-dark);
|
2018-06-13 01:21:31 +08:00
|
|
|
font-weight: bold;
|
2018-07-06 20:05:56 +08:00
|
|
|
background-color: inherit;
|
2018-10-19 04:37:14 +08:00
|
|
|
@include lineClamp(1em, 1);
|
2018-05-30 00:43:11 +08:00
|
|
|
}
|
|
|
|
|
2018-06-13 01:21:31 +08:00
|
|
|
.contentMessage {
|
|
|
|
margin-top: .2rem;
|
|
|
|
font-size: 80%;
|
2018-07-06 20:05:56 +08:00
|
|
|
background-color: inherit;
|
2018-10-19 04:37:14 +08:00
|
|
|
@include lineClamp(var(--font-size-small), 10);
|
2018-05-18 19:54:26 +08:00
|
|
|
}
|