-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'destinygg:master' into feature/escape-pins-chat
- Loading branch information
Showing
35 changed files
with
2,270 additions
and
622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,148 @@ | ||
@use '../../abstracts/' as a; | ||
@use '../../messages/event/_donation' as donation; | ||
|
||
.event-bar-event { | ||
position: relative; | ||
cursor: pointer; | ||
transition: transform 100ms; | ||
|
||
font-size: 1.1em; | ||
border-radius: 10px; | ||
border-style: solid; | ||
border-color: unset; | ||
border-width: 2px; | ||
margin: a.$gutter-sm; | ||
|
||
.event-contents { | ||
display: flex; | ||
padding: 0 a.$gutter-xs 0 0.4em; | ||
background-color: a.$color-chat-emphasize; | ||
justify-content: space-between; | ||
align-items: center; | ||
border-radius: 10px; | ||
} | ||
|
||
.event-info { | ||
margin-right: a.$gutter-xs; | ||
max-width: 12ch; | ||
overflow: hidden; | ||
} | ||
|
||
.event-icon { | ||
width: 2em; | ||
height: 2em; | ||
border: 0.25em solid transparent; | ||
opacity: 0.75; | ||
|
||
&.subscription { | ||
@include a.icon-background('../img/sub-regular.svg'); | ||
} | ||
|
||
&.giftsub { | ||
filter: invert(100%); | ||
|
||
@include a.icon-background('../img/sub-gift.png'); | ||
} | ||
|
||
&.massgift { | ||
filter: invert(100%); | ||
|
||
@include a.icon-background('../img/sub-mass-gift.png'); | ||
} | ||
} | ||
|
||
.user { | ||
font-weight: 500; | ||
color: a.$color-label-user; | ||
display: inline-block; | ||
animation: scrolling-event-username 12s linear 3s infinite; | ||
word-wrap: normal; | ||
|
||
&::before { | ||
content: unset; | ||
} | ||
|
||
&:hover { | ||
text-decoration: none; | ||
} | ||
} | ||
|
||
&.amount-0 { | ||
border-color: #1c5cdb; | ||
} | ||
|
||
@each $amount, $color in donation.$amount-color-map { | ||
&.amount-#{$amount} { | ||
border-color: $color; | ||
|
||
.event-icon { | ||
filter: invert(100%); | ||
|
||
@include a.icon-background('../img/donation-amount-#{$amount}.png'); | ||
} | ||
} | ||
} | ||
|
||
&.rainbow-border { | ||
background-clip: padding-box; | ||
border: solid 2px transparent; | ||
|
||
&:before { | ||
content: ''; | ||
position: absolute; | ||
inset: 0; | ||
z-index: -1; | ||
margin: -2px; | ||
border-radius: inherit; | ||
background: var(--rainbow-gradient); | ||
} | ||
} | ||
|
||
&:hover { | ||
transform: scale(1.05); | ||
} | ||
|
||
// Ensure `removed` can override `enter` because `enter` is not removed from | ||
// the event after the animation completes. | ||
&.enter { | ||
animation: event-bar-appear 500ms linear; | ||
} | ||
|
||
&.removed { | ||
animation: event-bar-disappear 500ms linear; | ||
} | ||
} | ||
|
||
@keyframes event-bar-appear { | ||
0% { | ||
transform: scale(0.1); | ||
opacity: 0; | ||
} | ||
|
||
100% { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
@keyframes event-bar-disappear { | ||
0% { | ||
opacity: 1; | ||
} | ||
|
||
100% { | ||
transform: scale(0.1); | ||
opacity: 0; | ||
} | ||
} | ||
|
||
@keyframes scrolling-event-username { | ||
25%, | ||
50% { | ||
transform: translateX(calc(-1 * max(0px, 100% - 12ch))); | ||
} | ||
|
||
75%, | ||
100% { | ||
transform: translateX(0%); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
@use '../../abstracts/' as a; | ||
|
||
@use 'event-bar-event'; | ||
|
||
#chat-event-bar { | ||
&:empty { | ||
display: none; | ||
} | ||
|
||
display: inline-flex; | ||
overflow-x: scroll; | ||
background: #111113; | ||
z-index: 6; | ||
|
||
scrollbar-width: none; | ||
&::-webkit-scrollbar { | ||
display: none; | ||
} | ||
} | ||
|
||
#chat-event-selected { | ||
position: absolute; | ||
z-index: 210; | ||
inset: 0; | ||
background-color: rgba(0, 0, 0, 0.5); | ||
|
||
.event-bar-selected-message { | ||
margin: a.$gutter-sm; | ||
|
||
.focus:not(.watching-focus) & { | ||
opacity: 1; | ||
} | ||
} | ||
|
||
&.hidden { | ||
display: none; | ||
} | ||
} | ||
|
||
.onstreamchat { | ||
#chat-event-bar { | ||
display: none; | ||
} | ||
|
||
#chat-event-selected, | ||
#chat-pinned-message { | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@use '../abstracts/' as a; | ||
|
||
#event-action-menu { | ||
height: fit-content; | ||
width: fit-content; | ||
min-width: 75px; | ||
max-width: 250px; | ||
z-index: 221; | ||
|
||
.chat-menu-inner { | ||
background-color: a.$color-surface-dark3; | ||
} | ||
|
||
.event-action { | ||
transition: background-color 150ms ease; | ||
color: a.$color-light; | ||
padding: 0.5rem 1rem; | ||
|
||
&:hover { | ||
background-color: a.$color-surface-dark4; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
@use '../abstracts' as a; | ||
|
||
@use 'base'; | ||
@use 'modifiers'; | ||
@use 'ui'; | ||
@use 'user'; | ||
@use 'emote'; | ||
@use 'event'; | ||
@use 'pinned'; | ||
@use 'modifiers'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.