Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DGGTweaker Features - Link Hitbox Scaling, RustleSearch button and Lucide Icons #553

Merged
merged 14 commits into from
Nov 16, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions assets/chat/css/chat/_toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ $toolbar-icons-map: (
display: flex;
position: relative;
user-select: none;
margin: 0 -0.25em;
}

.chat-tools-group {
Expand Down
4 changes: 4 additions & 0 deletions assets/chat/css/menus/_user-info.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ $toolbar-icons-map: (
'whisper': 'whispers',
'ignore': 'ignore',
'unignore': 'unignore',
'rustle': 'rustle'
);

#chat-user-info {
Expand Down Expand Up @@ -57,6 +58,9 @@ $toolbar-icons-map: (
}
}

width: 2.75em;
height: 2.75em;

@each $id, $icon in $toolbar-icons-map {
&##{$id}-user-btn .btn-icon {
@include a.icon-background('../img/icon-#{$icon}.svg');
Expand Down
20 changes: 19 additions & 1 deletion assets/chat/css/messages/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $link-color-map: (
cursor: pointer;
margin-left: a.$gutter-sm;
color: a.$color-label-user;
position: relative;
z-index: 2;
}

.chat-user {
Expand All @@ -46,9 +48,20 @@ $link-color-map: (
.externallink {
border-style: solid;
border-color: transparent;
border-width: 1px 0 1px 0;
color: a.$color-link;
position: relative;
display: inline-block;
border-width: 0px;

// Links are over emotes and text but under usernames and the embed button
z-index: 1;
&::before {
content: "";
position: absolute;
width: calc(100% + var(--link-size) * 1em);
height: calc(100% + var(--link-size) * 1em);
margin: calc(var(--link-size) * -0.5em + 2px);
}

&:visited {
color: a.$color-link-visited;
Expand All @@ -59,6 +72,10 @@ $link-color-map: (
color: a.$color-link-hover;
}
}
&:last-child .externallink {
padding-bottom: 0px;
margin-bottom: 0px;
}

@each $type, $color in $link-color-map {
.#{$type}-link {
Expand All @@ -78,6 +95,7 @@ $link-color-map: (
margin-left: a.$gutter-sm;
margin-right: a.$gutter-xs;
opacity: 0.5;
z-index: 2;

&:hover {
opacity: 1;
Expand Down
2 changes: 2 additions & 0 deletions assets/chat/css/messages/user/_index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
vertical-align: text-top;
align-items: center;
margin-left: -(a.$gutter-xs);
position: relative;
z-index: 2;
}

.flair {
Expand Down
6 changes: 3 additions & 3 deletions assets/chat/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ hr {

.tippy-box[data-theme~='dgg'] {
text-align: center;
background-color: white;
color: #000;
background-color: a.$color-surface-dark4;
color: a.$color-chat-text1;
}

.tippy-box[data-theme~='dgg'] > .tippy-svg-arrow {
fill: white;
fill: a.$color-surface-dark4;
}

/* Small screen, non-retina */
Expand Down
2 changes: 1 addition & 1 deletion assets/chat/img/icon-ban.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions assets/chat/img/icon-close.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions assets/chat/img/icon-emotes.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions assets/chat/img/icon-favorite-fill.svg
AlexDavies8 marked this conversation as resolved.
Show resolved Hide resolved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions assets/chat/img/icon-favorite.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/chat/img/icon-ignore.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions assets/chat/img/icon-lock.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/chat/img/icon-logs.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/chat/img/icon-mute.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions assets/chat/img/icon-open-in-new.svg
AlexDavies8 marked this conversation as resolved.
Show resolved Hide resolved
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions assets/chat/img/icon-pin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions assets/chat/img/icon-rustle.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions assets/chat/img/icon-settings.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions assets/chat/img/icon-share.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading