Skip to content

Commit

Permalink
Merge pull request #66 from NyxIsBad/master
Browse files Browse the repository at this point in the history
Threads + Bug Fixes
  • Loading branch information
Leozard authored Jul 29, 2021
2 parents 31c5cef + 5b92407 commit 741bc84
Show file tree
Hide file tree
Showing 13 changed files with 163 additions and 20 deletions.
53 changes: 52 additions & 1 deletion lib/selectors/selectorPlaceholders.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4184,6 +4184,9 @@ pre {
.replyBar-1YLQ2F {
@extend %replyBar !optional;
}
.threadSuggestionBar-2ufK2Z{
@extend %replySuggestion !optional;
}
.mentionButton-3710-W {
@extend %replyMentionButton !optional;
}
Expand Down Expand Up @@ -4480,4 +4483,52 @@ pre {
}
.icon-3pEw1v {
@extend %treadsPopoutIcon !optional;
}
}
.icon-1zIRB4 {
@extend %threadsChatIcon !optional;
}
.jump-2-Xh5Z {
@extend %threadsJumpButton !optional;
}
.container-3hZ-gs {
@extend %threadsEmbed !optional;
}
.spine--Wla_O {
@extend %threadChannelConnector !optional;
}
.chatHeaderBar-4vZS1x {
@extend %threadHeaderBar !optional;
}
.popout-APcvZm {
@extend %channelThreadPopout !optional;
}
.row-1ImlrZ {
@extend %channelThreadPopoutEntry !optional;
}
.container-2I9Hud {
@extend %threadPreview !optional;
}
.modal-2DCYwU {
@extend %threadModal !optional;
}
.list-wek7hJ {
@extend %threadModalList !optional;
}
.tabBar-wS4pjJ {
@extend %threadModalTabBar !optional;
}
.tab-17bjMB {
@extend %threadModalTab !optional;
}
.active-3JUHqX {
@extend %threadModalTabActive !optional;
}
.previewMessage-1ZN7YG {
@extend %accessibilityMessagePreview !optional;
}
.hasThread-2k82W0 {
@extend %messageThread !optional;
}
.cozy-3raOZG {
@extend %cozy !optional;
}
4 changes: 4 additions & 0 deletions main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ $version: "6.1.1";
@import "src/messages/attachment";
@import "src/messages/blocked";
@import "src/messages/textContainer";
@import "src/messages/threads";

// MEMBERS
@import "src/members/members";
Expand Down Expand Up @@ -119,6 +120,8 @@ $version: "6.1.1";
@import "src/popouts/gifPicker";
@import "src/popouts/stickers";
@import "src/popouts/messagesPopout";
@import "src/popouts/threadPopout";


// MODALS
@import "src/modals/modal";
Expand Down Expand Up @@ -150,6 +153,7 @@ $version: "6.1.1";
// TREADS
@import "src/treads/createTread";
@import "src/treads/treadsPopout";
@import "src/treads/threadModal";

// BETTERDISCORD
@import "src/bd/sidebar";
Expand Down
3 changes: 3 additions & 0 deletions src/channels/channels.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@
-webkit-mask: linear-gradient(to bottom, #000, transparent);
mask: linear-gradient(to bottom, #000, transparent);
}
%threadChannelConnector {
color: $main-color;
}
}
3 changes: 2 additions & 1 deletion src/chat/textArea.scss
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@
}

// REPLY
%replyBar {
%replyBar,
%replySuggestion {
background: transparent;
border: 2px solid transparent;
}
Expand Down
5 changes: 5 additions & 0 deletions src/headerBar/headerBar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
box-shadow: 0 0 10px rgba(0, 0, 0, calc(#{cv("bg.app.shading")} * .6));
color: hsla(0, 0%, 100%, .5);
}
%threadHeaderBar {
background: rgba(0, 0, 0, calc(#{cv("bg.app.shading")} * .6));
box-shadow: 0 0 10px rgba(0, 0, 0, calc(#{cv("bg.app.shading")} * .6));
color: hsla(0, 0%, 100%, .5);
}
}
%headerBar {
%headerBarChildren {
Expand Down
11 changes: 10 additions & 1 deletion src/messages/message.scss
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,15 @@
}
}

// THREADS
%cozy{
&%messageThread {
&:after {
border-color: $main-color;
}
}
}

// BUTTONS
%messageButtonWrapper {
background-color: transparent;
Expand Down Expand Up @@ -127,4 +136,4 @@
&:before {
background-color: var(--main-color);
}
}
}
17 changes: 17 additions & 0 deletions src/messages/threads.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Threads in Messages */
%threadsChatIcon {
color: $main-color;
filter: drop-shadow(0 0 3px);
width: 22px;
}
%threadsJumpButton{
background-color: var(--main-color);
color: #fff;
&:hover {
background-color: var(--hover-color);
color: #fff;
}
}
%threadsEmbed {
background-color: hsla(0, 0%, 0%, 0.30);
}
30 changes: 17 additions & 13 deletions src/modals/newServerModal.scss
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
.theme-dark{
.footer-2gL1pp {
.footerTitle-2CYZch {
color: #fff;
}
.button-38aScr {
color: #fff;
&:hover {
text-decoration: underline;
}
}
}
.footerTitle-2CYZch {
color: #fff;
}
.button-38aScr {
color: #fff;
&:hover {
text-decoration: underline;
}
}
}
.base-1x0h_U {
color: #fff;
}
}

.root-1gCeng {
.colorHeaderPrimary-26Jzh-,.colorHeaderSecondary-3Sp3Ft {
.colorHeaderPrimary-26Jzh-,
.colorHeaderSecondary-3Sp3Ft,
.container-1CE3eW .input-cIJ7To {
color: #fff;
}
.iconContainer-2B0ixr>svg>circle {
Expand All @@ -29,9 +34,8 @@
.container-UC8Ug1 {
background-color: $main-color;
&:hover {
background-color: $hover-color;
background-color: $hover-color;
}
.base-1x0h_U,
.text-1FOLJS {
color: #fff;
}
Expand Down
9 changes: 9 additions & 0 deletions src/popouts/threadPopout.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* THREAD HEADER POPOUT */
%channelThreadPopout {
background-color: hsla(0, 0%, 0%, .8);
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, .5);
%channelThreadPopoutEntry:hover {
background-color: $hover-color;
}
}
3 changes: 2 additions & 1 deletion src/popouts/userPopout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@
// FOOTER
%userPopoutFooter {
background: cv("bg.popout.overlay");
margin-top: 0px;
}
%userPopoutTip {
color: hsla(0, 0%, 100%, .5);
opacity: 1;
}
}
}
7 changes: 6 additions & 1 deletion src/settings/userSettings.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@

// HypeSquad

// Accessibility Tab
%accessibilityMessagePreview {
background-color: hsla(0, 0%, 0%, 0.00);
}

// Voice
%themeDark {
%userSettingsVoice {
Expand Down Expand Up @@ -193,4 +198,4 @@
border: hsla(0, 0%, 100%, .07);
}
}
}
}
30 changes: 30 additions & 0 deletions src/treads/threadModal.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/* THREAD MODAL */
%threadModal {
background-color: hsla(0, 0%, 0%, .6) !important;
animation: cv-menu-fold-y .2s cubic-bezier(.2, .6, .5, 1.1);
transform-origin: 50% 0;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, .5);
&%treadsPopoutContainer {
background-color: transparent;
}
}

%themeDark %threadModalList %threadModalTabBar %threadModalTab {
color: #fff;
&%threadModalTabActive {
background-color: var(--main-color);
}
&:hover:not(%threadModalTabActive) {
background-color: hsla(0, 0%, 100%, .06);
color: #fff;
}
}

%threadPreview {
background-color: hsla(0, 0%, 0%, .3);
border: 2px solid var(--main-color);
&:hover {
border: 2px solid var(--hover-color);
}
}
8 changes: 6 additions & 2 deletions src/treads/treadsPopout.scss
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
/* TREADS POPOUT */
%treadsPopoutContainer {
background-color: hsla(0, 0%, 0%, .8);
background-color: transparent;
}
%popoutLayer %treadsPopoutContainer {
background-color: hsla(0, 0%, 0%, .8);
animation: cv-menu-fold-y .2s cubic-bezier(.2, .6, .5, 1.1);
transform-origin: 50% 0;
border-radius: 5px;
box-shadow: 0 0 10px rgba(0, 0, 0, .5);
}

%treadsPopoutHeader {
background-color: transparent;
}
Expand All @@ -23,4 +27,4 @@
background-color: hsla(0, 0%, 100%, .06);
color: #fff;
}
}
}

0 comments on commit 741bc84

Please sign in to comment.