2017-11-02 00:01:55 +08:00
|
|
|
@import "/imports/ui/stylesheets/mixins/focus";
|
2020-09-02 02:46:13 +08:00
|
|
|
@import "/imports/ui/stylesheets/variables/breakpoints";
|
|
|
|
@import "/imports/ui/stylesheets/variables/placeholders";
|
2016-06-02 00:33:19 +08:00
|
|
|
|
2019-04-04 23:29:46 +08:00
|
|
|
:root {
|
|
|
|
--toast-content-width: 98%;
|
|
|
|
--toast-font-size: 80%;
|
|
|
|
--toast-content-margin-sm: .4rem;
|
|
|
|
--toast-content-margin-md: 1.4rem;
|
|
|
|
}
|
2018-06-13 01:21:31 +08:00
|
|
|
|
2019-04-04 23:29:46 +08:00
|
|
|
@mixin lineClamp($lineHeight: 1em, $lineCount: 1) {
|
2018-06-13 01:21:31 +08:00
|
|
|
position: relative;
|
2019-04-04 23:29:46 +08:00
|
|
|
white-space: nowrap;
|
2018-06-14 04:18:16 +08:00
|
|
|
overflow: hidden;
|
2019-04-04 23:29:46 +08:00
|
|
|
text-overflow: ellipsis;
|
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
|
|
|
}
|
2017-12-05 03:43:08 +08:00
|
|
|
|
2016-06-02 00:33:19 +08:00
|
|
|
.chat {
|
2019-04-04 23:29:46 +08:00
|
|
|
background-color: var(--color-white);
|
2019-08-21 23:42:17 +08:00
|
|
|
padding:
|
|
|
|
var(--md-padding-x)
|
|
|
|
var(--md-padding-y)
|
|
|
|
var(--md-padding-x)
|
|
|
|
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;
|
2020-04-02 23:23:45 +08:00
|
|
|
|
|
|
|
:global(.browser-chrome) & {
|
|
|
|
transform: translateZ(0);
|
|
|
|
}
|
|
|
|
|
|
|
|
@include mq($small-only) {
|
|
|
|
transform: none !important;
|
|
|
|
}
|
2016-06-02 00:33:19 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
2019-03-20 01:11:48 +08:00
|
|
|
position: relative;
|
|
|
|
top: var(--poll-header-offset);
|
2017-03-17 06:39:34 +08:00
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
2019-03-20 01:11:48 +08:00
|
|
|
align-items: center;
|
|
|
|
justify-content: space-between;
|
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 {
|
2019-04-04 23:29:46 +08:00
|
|
|
max-width: var(--toast-content-width);
|
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;
|
2019-03-22 06:16:56 +08:00
|
|
|
background-color: var(--color-white);
|
2018-10-16 22:33:42 +08:00
|
|
|
display: block;
|
2019-03-22 06:16:56 +08:00
|
|
|
margin: var(--border-size-large);
|
|
|
|
margin-bottom: var(--border-size);
|
2019-05-14 21:15:54 +08:00
|
|
|
padding-left: 0;
|
|
|
|
padding-right: inherit;
|
2020-11-10 06:40:25 +08:00
|
|
|
z-index: 3;
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
padding-left: inherit;
|
|
|
|
padding-right: 0;
|
|
|
|
}
|
2018-10-16 22:33:42 +08:00
|
|
|
|
|
|
|
> i {
|
2019-03-22 06:16:56 +08:00
|
|
|
color: var(--color-gray-dark);
|
|
|
|
font-size: smaller;
|
2019-05-14 21:15:54 +08:00
|
|
|
|
|
|
|
[dir="rtl"] & {
|
|
|
|
-webkit-transform: scale(-1, 1);
|
|
|
|
-moz-transform: scale(-1, 1);
|
|
|
|
-ms-transform: scale(-1, 1);
|
|
|
|
-o-transform: scale(-1, 1);
|
|
|
|
transform: scale(-1, 1);
|
|
|
|
}
|
2018-10-16 22:33:42 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
&:hover {
|
2019-03-22 06:16:56 +08:00
|
|
|
background-color: var(--color-white);
|
2018-10-16 22:33:42 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
2019-04-04 23:29:46 +08:00
|
|
|
margin-top: var(--toast-content-margin-md);
|
|
|
|
margin-bottom: var(--toast-content-margin-sm);
|
|
|
|
margin-left: var(--toast-content-margin-sm);
|
|
|
|
margin-right: var(--toast-content-margin-sm);
|
2018-07-06 20:05:56 +08:00
|
|
|
background-color: inherit;
|
2019-04-04 23:29:46 +08:00
|
|
|
width: var(--toast-content-width);
|
2018-05-30 00:43:11 +08:00
|
|
|
}
|
|
|
|
|
2018-06-13 01:21:31 +08:00
|
|
|
.userNameMessage {
|
|
|
|
margin: 0;
|
2019-04-04 23:29:46 +08:00
|
|
|
font-size: var(--toast-font-size);
|
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 {
|
2019-04-04 23:29:46 +08:00
|
|
|
margin-top: var(--border-radius);
|
|
|
|
font-size: var(--toast-font-size);
|
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
|
|
|
}
|