2020-01-24 06:00:13 +09:00
|
|
|
.announcements__item__content {
|
|
|
|
word-wrap: break-word;
|
2020-03-06 23:20:14 +09:00
|
|
|
overflow-y: auto;
|
2020-01-24 06:00:13 +09:00
|
|
|
|
|
|
|
.emojione {
|
|
|
|
width: 20px;
|
|
|
|
height: 20px;
|
|
|
|
margin: -3px 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
p {
|
|
|
|
margin-bottom: 10px;
|
|
|
|
white-space: pre-wrap;
|
|
|
|
|
|
|
|
&:last-child {
|
|
|
|
margin-bottom: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
a {
|
2020-01-27 06:26:50 +09:00
|
|
|
color: $secondary-text-color;
|
2020-01-24 06:00:13 +09:00
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
|
|
|
|
&.mention {
|
|
|
|
&:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
|
|
|
|
span {
|
|
|
|
text-decoration: underline;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2020-01-27 06:26:50 +09:00
|
|
|
|
|
|
|
&.unhandled-link {
|
2022-06-19 15:18:08 +09:00
|
|
|
color: $highlight-text-color;
|
2020-01-27 06:26:50 +09:00
|
|
|
}
|
2020-01-24 06:00:13 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.announcements {
|
2020-01-26 00:35:33 +09:00
|
|
|
background: lighten($ui-base-color, 8%);
|
2020-01-24 06:00:13 +09:00
|
|
|
font-size: 13px;
|
|
|
|
display: flex;
|
|
|
|
align-items: flex-end;
|
|
|
|
|
|
|
|
&__mastodon {
|
|
|
|
width: 124px;
|
|
|
|
flex: 0 0 auto;
|
|
|
|
|
|
|
|
@media screen and (max-width: 124px + 300px) {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__container {
|
|
|
|
width: calc(100% - 124px);
|
|
|
|
flex: 0 0 auto;
|
|
|
|
position: relative;
|
|
|
|
|
|
|
|
@media screen and (max-width: 124px + 300px) {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__item {
|
|
|
|
box-sizing: border-box;
|
|
|
|
width: 100%;
|
|
|
|
padding: 15px;
|
|
|
|
position: relative;
|
2020-01-25 12:20:06 +09:00
|
|
|
font-size: 15px;
|
|
|
|
line-height: 20px;
|
|
|
|
word-wrap: break-word;
|
|
|
|
font-weight: 400;
|
2020-03-06 23:20:14 +09:00
|
|
|
max-height: 50vh;
|
|
|
|
overflow: hidden;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2020-01-24 06:00:13 +09:00
|
|
|
|
|
|
|
&__range {
|
|
|
|
display: block;
|
|
|
|
font-weight: 500;
|
|
|
|
margin-bottom: 10px;
|
2023-04-17 00:45:18 +09:00
|
|
|
padding-inline-end: 18px;
|
2020-01-24 06:00:13 +09:00
|
|
|
}
|
2020-02-03 09:53:09 +09:00
|
|
|
|
|
|
|
&__unread {
|
|
|
|
position: absolute;
|
2020-02-09 07:44:01 +09:00
|
|
|
top: 19px;
|
2023-04-17 00:45:18 +09:00
|
|
|
inset-inline-end: 19px;
|
2020-02-09 07:44:01 +09:00
|
|
|
display: block;
|
2020-02-03 09:53:09 +09:00
|
|
|
background: $highlight-text-color;
|
|
|
|
border-radius: 50%;
|
|
|
|
width: 0.625rem;
|
|
|
|
height: 0.625rem;
|
|
|
|
}
|
2020-01-24 06:00:13 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
&__pagination {
|
|
|
|
padding: 15px;
|
|
|
|
color: $darker-text-color;
|
|
|
|
position: absolute;
|
|
|
|
bottom: 3px;
|
2023-04-17 00:45:18 +09:00
|
|
|
inset-inline-end: 0;
|
2020-01-24 06:00:13 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.layout-multiple-columns .announcements__mastodon {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.layout-multiple-columns .announcements__container {
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
.reactions-bar {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
align-items: center;
|
|
|
|
margin-top: 15px;
|
2023-04-17 00:45:18 +09:00
|
|
|
margin-inline-start: -2px;
|
2020-01-24 06:00:13 +09:00
|
|
|
width: calc(100% - (90px - 33px));
|
|
|
|
|
|
|
|
&__item {
|
|
|
|
flex-shrink: 0;
|
|
|
|
background: lighten($ui-base-color, 12%);
|
|
|
|
border: 0;
|
|
|
|
border-radius: 3px;
|
|
|
|
margin: 2px;
|
|
|
|
cursor: pointer;
|
|
|
|
user-select: none;
|
|
|
|
padding: 0 6px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
transition: all 100ms ease-in;
|
|
|
|
transition-property: background-color, color;
|
|
|
|
|
|
|
|
&__emoji {
|
|
|
|
display: block;
|
|
|
|
margin: 3px 0;
|
|
|
|
width: 16px;
|
|
|
|
height: 16px;
|
|
|
|
|
|
|
|
img {
|
|
|
|
display: block;
|
|
|
|
margin: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
min-width: auto;
|
|
|
|
min-height: auto;
|
|
|
|
vertical-align: bottom;
|
|
|
|
object-fit: contain;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&__count {
|
|
|
|
display: block;
|
|
|
|
min-width: 9px;
|
|
|
|
font-size: 13px;
|
|
|
|
font-weight: 500;
|
|
|
|
text-align: center;
|
2023-04-17 00:45:18 +09:00
|
|
|
margin-inline-start: 6px;
|
2020-01-24 06:00:13 +09:00
|
|
|
color: $darker-text-color;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:focus,
|
|
|
|
&:active {
|
|
|
|
background: lighten($ui-base-color, 16%);
|
|
|
|
transition: all 200ms ease-out;
|
|
|
|
transition-property: background-color, color;
|
|
|
|
|
|
|
|
&__count {
|
|
|
|
color: lighten($darker-text-color, 4%);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&.active {
|
|
|
|
transition: all 100ms ease-in;
|
|
|
|
transition-property: background-color, color;
|
2023-02-13 12:57:03 +09:00
|
|
|
background-color: mix(
|
|
|
|
lighten($ui-base-color, 12%),
|
|
|
|
$ui-highlight-color,
|
|
|
|
80%
|
|
|
|
);
|
2020-01-24 06:00:13 +09:00
|
|
|
|
|
|
|
.reactions-bar__item__count {
|
2020-01-25 13:23:05 +09:00
|
|
|
color: lighten($highlight-text-color, 8%);
|
2020-01-24 06:00:13 +09:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.emoji-picker-dropdown {
|
|
|
|
margin: 2px;
|
|
|
|
}
|
|
|
|
|
|
|
|
&:hover .emoji-button {
|
|
|
|
opacity: 0.85;
|
|
|
|
}
|
|
|
|
|
|
|
|
.emoji-button {
|
|
|
|
color: $darker-text-color;
|
|
|
|
margin: 0;
|
|
|
|
font-size: 16px;
|
|
|
|
width: auto;
|
|
|
|
flex-shrink: 0;
|
|
|
|
padding: 0 6px;
|
|
|
|
height: 22px;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
opacity: 0.5;
|
|
|
|
transition: all 100ms ease-in;
|
|
|
|
transition-property: background-color, color;
|
|
|
|
|
|
|
|
&:hover,
|
|
|
|
&:active,
|
|
|
|
&:focus {
|
|
|
|
opacity: 1;
|
|
|
|
color: lighten($darker-text-color, 4%);
|
|
|
|
transition: all 200ms ease-out;
|
|
|
|
transition-property: background-color, color;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&--empty {
|
|
|
|
.emoji-button {
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|