mirror of
https://github.com/DerTyp7/teamspeak-obs-overlay.git
synced 2025-10-29 04:42:08 +01:00
better generator
This commit is contained in:
@@ -1,14 +1,11 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
env: { browser: true, es2020: true },
|
env: { browser: true, es2020: true },
|
||||||
extends: [
|
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:react-hooks/recommended"],
|
||||||
'eslint:recommended',
|
parser: "@typescript-eslint/parser",
|
||||||
'plugin:@typescript-eslint/recommended',
|
parserOptions: { ecmaVersion: "latest", sourceType: "module" },
|
||||||
'plugin:react-hooks/recommended',
|
plugins: ["react-refresh"],
|
||||||
],
|
|
||||||
parser: '@typescript-eslint/parser',
|
|
||||||
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
|
|
||||||
plugins: ['react-refresh'],
|
|
||||||
rules: {
|
rules: {
|
||||||
'react-refresh/only-export-components': 'warn',
|
"react-refresh/only-export-components": "warn",
|
||||||
|
"react-hooks/exhaustive-deps": "ignore",
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"tabWidth": 2,
|
"tabWidth": 2,
|
||||||
"useTabs": false,
|
"useTabs": false,
|
||||||
"printWidth": 120,
|
"printWidth": 180,
|
||||||
"singleQuote": false,
|
"singleQuote": false,
|
||||||
"semi": true
|
"semi": true
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
public/images/viewer_example_background.png
Normal file
BIN
public/images/viewer_example_background.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.1 MiB |
20
src/App.tsx
20
src/App.tsx
@@ -1,22 +1,11 @@
|
|||||||
import "@styles/App.scss";
|
import "@styles/App.scss";
|
||||||
|
|
||||||
import { Navigate, Route, Routes, useSearchParams } from "react-router-dom";
|
import { Navigate, Route, Routes, useSearchParams } from "react-router-dom";
|
||||||
import useTSRemoteApp, { IClient } from "react-ts5-remote-app-api";
|
|
||||||
import Viewer from "./Viewer";
|
import Viewer from "./Viewer";
|
||||||
import Generator from "./Generator";
|
import Generator from "./Generator";
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
const [searchParams] = useSearchParams();
|
const [searchParams] = useSearchParams();
|
||||||
const { clients, activeConnectionId, currentChannel } = useTSRemoteApp({
|
|
||||||
remoteAppPort: parseInt(searchParams.get("remoteAppPort") ?? "5899"),
|
|
||||||
auth: {
|
|
||||||
identifier: "de.tealfire.obs",
|
|
||||||
version: "2.0.0",
|
|
||||||
name: "TS5 OBS Overlay",
|
|
||||||
description: "A OBS overlay for TS5 by DerTyp7",
|
|
||||||
},
|
|
||||||
logging: true,
|
|
||||||
});
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Routes>
|
<Routes>
|
||||||
@@ -24,17 +13,10 @@ export default function App() {
|
|||||||
path="/"
|
path="/"
|
||||||
element={
|
element={
|
||||||
<Viewer
|
<Viewer
|
||||||
|
remoteAppPort={parseInt(searchParams.get("remoteAppPort") ?? "5899")}
|
||||||
showChannelName={searchParams.get("showChannelName") === "true"}
|
showChannelName={searchParams.get("showChannelName") === "true"}
|
||||||
hideNonTalking={searchParams.get("hideNonTalking") === "true"}
|
hideNonTalking={searchParams.get("hideNonTalking") === "true"}
|
||||||
clientLimit={searchParams.get("clientLimit") ? parseInt(searchParams.get("clientLimit") ?? "0") : 0}
|
clientLimit={searchParams.get("clientLimit") ? parseInt(searchParams.get("clientLimit") ?? "0") : 0}
|
||||||
clients={
|
|
||||||
clients.map((client) => {
|
|
||||||
if (client.channel?.id === currentChannel?.id && client.channel.connection.id === activeConnectionId) {
|
|
||||||
return client;
|
|
||||||
}
|
|
||||||
}) as IClient[]
|
|
||||||
}
|
|
||||||
channel={currentChannel}
|
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@@ -1,11 +1,29 @@
|
|||||||
import React, { ChangeEvent } from "react";
|
import React, { ChangeEvent, useRef, useState } from "react";
|
||||||
import "@styles/Generator.scss";
|
import "@styles/Generator.scss";
|
||||||
|
import Viewer from "./Viewer";
|
||||||
|
|
||||||
export default function Generator() {
|
export default function Generator() {
|
||||||
const [outputUrl, setOutputUrl] = React.useState("sdlgkhfldskgjhdkjfghlkdfsjghlkjdshg");
|
const [outputUrl, setOutputUrl] = useState(new URL(window.location.href).toString());
|
||||||
const copiedTooltipRef = React.useRef<HTMLDivElement>(null);
|
const copiedTooltipRef = useRef<HTMLDivElement>(null);
|
||||||
|
|
||||||
const [showChannelName, setShowChannelName] = React.useState(true);
|
const [remoteAppPort, setRemoteAppPort] = useState(5899);
|
||||||
|
const [showChannelName, setShowChannelName] = useState(true);
|
||||||
|
const [hideNonTalking, setHideNonTalking] = useState(false);
|
||||||
|
const [clientLimit, setClientLimit] = useState(0);
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
generateUrl();
|
||||||
|
}, [remoteAppPort, showChannelName, hideNonTalking, clientLimit]);
|
||||||
|
|
||||||
|
function generateUrl() {
|
||||||
|
const url = new URL(window.location.href.replace("/generate", ""));
|
||||||
|
url.searchParams.set("remoteAppPort", remoteAppPort.toString());
|
||||||
|
url.searchParams.set("showChannelName", showChannelName.toString());
|
||||||
|
url.searchParams.set("hideNonTalking", hideNonTalking.toString());
|
||||||
|
url.searchParams.set("clientLimit", clientLimit.toString());
|
||||||
|
|
||||||
|
setOutputUrl(url.toString());
|
||||||
|
}
|
||||||
|
|
||||||
function copy() {
|
function copy() {
|
||||||
navigator.clipboard.writeText(outputUrl);
|
navigator.clipboard.writeText(outputUrl);
|
||||||
@@ -25,6 +43,10 @@ export default function Generator() {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="generator">
|
<div className="generator">
|
||||||
|
<div className="headline">
|
||||||
|
<h1>TS5-OBS-Overlay Generator</h1>
|
||||||
|
<h4>by DerTyp7</h4>
|
||||||
|
</div>
|
||||||
<div className="output">
|
<div className="output">
|
||||||
<p className="url">
|
<p className="url">
|
||||||
<code>{outputUrl}</code>
|
<code>{outputUrl}</code>
|
||||||
@@ -36,9 +58,9 @@ export default function Generator() {
|
|||||||
Copied!
|
Copied!
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="configuration">
|
<div className="generatorContent">
|
||||||
<div className="options">
|
<div className="configurations">
|
||||||
<h1>Configurations</h1>
|
<h2>Configurations</h2>
|
||||||
|
|
||||||
<div className="option">
|
<div className="option">
|
||||||
<input
|
<input
|
||||||
@@ -54,9 +76,9 @@ export default function Generator() {
|
|||||||
<div className="option">
|
<div className="option">
|
||||||
<input
|
<input
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={showChannelName}
|
checked={hideNonTalking}
|
||||||
onChange={(e: ChangeEvent<HTMLInputElement>) => {
|
onChange={(e: ChangeEvent<HTMLInputElement>) => {
|
||||||
setShowChannelName(e.target.checked);
|
setHideNonTalking(e.target.checked);
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<label>Hide non talking clients</label>
|
<label>Hide non talking clients</label>
|
||||||
@@ -66,15 +88,30 @@ export default function Generator() {
|
|||||||
<input
|
<input
|
||||||
type="number"
|
type="number"
|
||||||
value={20}
|
value={20}
|
||||||
|
min={0}
|
||||||
onChange={(e: ChangeEvent<HTMLInputElement>) => {
|
onChange={(e: ChangeEvent<HTMLInputElement>) => {
|
||||||
setShowChannelName(e.target.checked);
|
setClientLimit(parseInt(e.target.value));
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<label>Client Limit</label>
|
<label>Client Limit</label>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div className="option">
|
||||||
|
<input
|
||||||
|
type="number"
|
||||||
|
value={5899}
|
||||||
|
min={0}
|
||||||
|
onChange={(e: ChangeEvent<HTMLInputElement>) => {
|
||||||
|
setRemoteAppPort(parseInt(e.target.value));
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<label>RemoteApp-Port</label>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div className="viewer">s</div>
|
<div className="preview">
|
||||||
|
<Viewer remoteAppPort={remoteAppPort} showChannelName={showChannelName} hideNonTalking={hideNonTalking} clientLimit={clientLimit} />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,27 +1,42 @@
|
|||||||
import "@styles/Viewer.scss";
|
import "@styles/Viewer.scss";
|
||||||
import { IChannel, IClient } from "react-ts5-remote-app-api";
|
import useTSRemoteApp, { IClient } from "react-ts5-remote-app-api";
|
||||||
|
|
||||||
export default function Viewer({
|
export default function Viewer({
|
||||||
clients,
|
remoteAppPort = 5899,
|
||||||
channel,
|
|
||||||
showChannelName = false,
|
showChannelName = false,
|
||||||
hideNonTalking = false,
|
hideNonTalking = false,
|
||||||
clientLimit = 0,
|
clientLimit = 0,
|
||||||
}: {
|
}: {
|
||||||
clients: IClient[] | undefined;
|
remoteAppPort?: number;
|
||||||
channel: IChannel | undefined;
|
|
||||||
showChannelName?: boolean;
|
showChannelName?: boolean;
|
||||||
hideNonTalking?: boolean;
|
hideNonTalking?: boolean;
|
||||||
clientLimit?: number;
|
clientLimit?: number;
|
||||||
}) {
|
}) {
|
||||||
|
const { clients, activeConnectionId, currentChannel } = useTSRemoteApp({
|
||||||
|
remoteAppPort: remoteAppPort,
|
||||||
|
auth: {
|
||||||
|
identifier: "de.tealfire.obs",
|
||||||
|
version: "2.0.0",
|
||||||
|
name: "TS5 OBS Overlay",
|
||||||
|
description: "A OBS overlay for TS5 by DerTyp7",
|
||||||
|
},
|
||||||
|
logging: true,
|
||||||
|
});
|
||||||
|
|
||||||
|
const currentClients = clients.map((client) => {
|
||||||
|
if (client.channel?.id === currentChannel?.id && client.channel.connection.id === activeConnectionId) {
|
||||||
|
return client;
|
||||||
|
}
|
||||||
|
}) as IClient[];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="viewer">
|
<div className="viewer">
|
||||||
{showChannelName ? (
|
{showChannelName ? (
|
||||||
<div className="channelNameContainer">
|
<div className="channelNameContainer">
|
||||||
<h3>{channel?.properties.name}</h3>
|
<h3>{currentChannel?.properties.name}</h3>
|
||||||
</div>
|
</div>
|
||||||
) : null}
|
) : null}
|
||||||
{clients?.map((client, i) => {
|
{currentClients?.map((client, i) => {
|
||||||
//* Client limit
|
//* Client limit
|
||||||
if (clientLimit != 0 && i >= clientLimit) {
|
if (clientLimit != 0 && i >= clientLimit) {
|
||||||
return null;
|
return null;
|
||||||
@@ -29,10 +44,7 @@ export default function Viewer({
|
|||||||
|
|
||||||
if (client) {
|
if (client) {
|
||||||
//* Non-talking client
|
//* Non-talking client
|
||||||
if (
|
if (hideNonTalking && (client.properties.inputMuted || client.properties.outputMuted || client.talkStatus == 0)) {
|
||||||
hideNonTalking &&
|
|
||||||
(client.properties.inputMuted || client.properties.outputMuted || client.talkStatus == 0)
|
|
||||||
) {
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -73,16 +85,7 @@ export default function Viewer({
|
|||||||
d="M88.62,54.15V64A24.69,24.69,0,0,1,64,88.62a25.26,25.26,0,0,1-8.38-1.46l-7.39,7.39A34,34,0,0,0,64,98.46,34.5,34.5,0,0,0,98.46,64V54.15a4.92,4.92,0,1,1,9.85,0V64a44.31,44.31,0,0,1-39.38,44v10.15H88.62a4.92,4.92,0,0,1,0,9.85H39.38a4.92,4.92,0,1,1,0-9.85H59.08V108A43.3,43.3,0,0,1,41,101.77L21.46,121.31a2.46,2.46,0,0,1-3.54,0L11.62,115a2.46,2.46,0,0,1,0-3.54l94.92-94.92a2.46,2.46,0,0,1,3.54,0l6.31,6.31a2.46,2.46,0,0,1,0,3.54ZM22.92,80.46A43.3,43.3,0,0,1,19.69,64V54.15a4.92,4.92,0,1,1,9.85,0V64a35.94,35.94,0,0,0,1.15,8.69ZM39.38,64V24.62a24.62,24.62,0,0,1,47.77-8.38Z"
|
d="M88.62,54.15V64A24.69,24.69,0,0,1,64,88.62a25.26,25.26,0,0,1-8.38-1.46l-7.39,7.39A34,34,0,0,0,64,98.46,34.5,34.5,0,0,0,98.46,64V54.15a4.92,4.92,0,1,1,9.85,0V64a44.31,44.31,0,0,1-39.38,44v10.15H88.62a4.92,4.92,0,0,1,0,9.85H39.38a4.92,4.92,0,1,1,0-9.85H59.08V108A43.3,43.3,0,0,1,41,101.77L21.46,121.31a2.46,2.46,0,0,1-3.54,0L11.62,115a2.46,2.46,0,0,1,0-3.54l94.92-94.92a2.46,2.46,0,0,1,3.54,0l6.31,6.31a2.46,2.46,0,0,1,0,3.54ZM22.92,80.46A43.3,43.3,0,0,1,19.69,64V54.15a4.92,4.92,0,1,1,9.85,0V64a35.94,35.94,0,0,0,1.15,8.69ZM39.38,64V24.62a24.62,24.62,0,0,1,47.77-8.38Z"
|
||||||
fill="#d8d8d8"
|
fill="#d8d8d8"
|
||||||
/>
|
/>
|
||||||
<rect
|
<rect x="-5.93" y="61.89" width="139.87" height="14.02" rx="2.87" ry="2.87" transform="translate(-29.97 65.43) rotate(-45)" fill="#c9070a" />
|
||||||
x="-5.93"
|
|
||||||
y="61.89"
|
|
||||||
width="139.87"
|
|
||||||
height="14.02"
|
|
||||||
rx="2.87"
|
|
||||||
ry="2.87"
|
|
||||||
transform="translate(-29.97 65.43) rotate(-45)"
|
|
||||||
fill="#c9070a"
|
|
||||||
/>
|
|
||||||
</g>
|
</g>
|
||||||
</svg>
|
</svg>
|
||||||
) : client.properties.outputMuted ? (
|
) : client.properties.outputMuted ? (
|
||||||
|
|||||||
@@ -2,17 +2,6 @@
|
|||||||
$breakpoint-1: 760px;
|
$breakpoint-1: 760px;
|
||||||
$breakpoint-2: 565px;
|
$breakpoint-2: 565px;
|
||||||
|
|
||||||
body {
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
height: 100vh;
|
|
||||||
width: 100vw;
|
|
||||||
background-color: #232528;
|
|
||||||
}
|
|
||||||
|
|
||||||
@keyframes tooltipAnimation {
|
@keyframes tooltipAnimation {
|
||||||
0% {
|
0% {
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
@@ -25,26 +14,20 @@ body {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.generator {
|
.generator {
|
||||||
|
background-color: #232528;
|
||||||
|
color: white;
|
||||||
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
height: 100%;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
|
||||||
gap: 50px;
|
gap: 50px;
|
||||||
color: white;
|
box-sizing: border-box;
|
||||||
|
padding: 50px 0;
|
||||||
|
|
||||||
button {
|
.headline {
|
||||||
background-color: #202024;
|
text-align: center;
|
||||||
color: #fff;
|
letter-spacing: 1.8px;
|
||||||
font-weight: bold;
|
|
||||||
border: 2px solid #31f399;
|
|
||||||
border-radius: 5px;
|
|
||||||
padding: 10px 20px;
|
|
||||||
cursor: pointer;
|
|
||||||
transition: all 300ms ease-in-out;
|
|
||||||
&:hover {
|
|
||||||
background-color: #42d486;
|
|
||||||
color: #202024;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.output {
|
.output {
|
||||||
@@ -54,7 +37,7 @@ body {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
column-gap: 20px;
|
column-gap: 20px;
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 20px;
|
height: 50px;
|
||||||
|
|
||||||
.url {
|
.url {
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@@ -98,39 +81,34 @@ body {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.configuration {
|
.generatorContent {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 100%;
|
padding: 0 50px;
|
||||||
flex: 1;
|
|
||||||
gap: 30px;
|
gap: 30px;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
h1 {
|
.configurations {
|
||||||
font-size: 1.2rem;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.options {
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: left;
|
align-items: left;
|
||||||
justify-content: center;
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
border-right: 5px solid rgb(131, 131, 131);
|
|
||||||
gap: 10px;
|
gap: 10px;
|
||||||
}
|
|
||||||
|
|
||||||
.viewer {
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
flex: 1;
|
||||||
background-color: #fff;
|
}
|
||||||
|
.preview {
|
||||||
|
flex: 1;
|
||||||
|
border: 2px solid #31f39973;
|
||||||
|
.viewer {
|
||||||
|
background-image: url("/images/viewer_example_background.png");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-size: cover;
|
||||||
|
min-height: 500px;
|
||||||
|
padding: 10px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.option {
|
.option {
|
||||||
@@ -200,23 +178,3 @@ body {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// custom dark themed scrollbar
|
|
||||||
::-webkit-scrollbar {
|
|
||||||
width: 5px;
|
|
||||||
height: 15px;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-track {
|
|
||||||
background: #363638;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb {
|
|
||||||
background: #31f39973;
|
|
||||||
border-radius: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
::-webkit-scrollbar-thumb:hover {
|
|
||||||
background: #48ee95;
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: 0 0;
|
gap: 0 0;
|
||||||
padding: 1rem;
|
|
||||||
font-size: 3rem;
|
font-size: 3rem;
|
||||||
|
|
||||||
.channelNameContainer {
|
.channelNameContainer {
|
||||||
|
|||||||
@@ -2,4 +2,78 @@
|
|||||||
font-family: Arial, Helvetica, sans-serif;
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-size: 1rem;
|
font-size: 1rem;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
body,
|
||||||
|
html {
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
#root {
|
||||||
|
min-height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 1.8rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 1.5rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
font-size: 1.2rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h4 {
|
||||||
|
font-size: 1.1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1,
|
||||||
|
h2,
|
||||||
|
h3,
|
||||||
|
h4,
|
||||||
|
h5,
|
||||||
|
h6 {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
background-color: #202024;
|
||||||
|
color: #fff;
|
||||||
|
font-weight: bold;
|
||||||
|
border: 2px solid #31f399;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 10px 20px;
|
||||||
|
cursor: pointer;
|
||||||
|
transition: all 300ms ease-in-out;
|
||||||
|
&:hover {
|
||||||
|
background-color: #42d486;
|
||||||
|
color: #202024;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// custom dark themed scrollbar
|
||||||
|
::-webkit-scrollbar {
|
||||||
|
width: 5px;
|
||||||
|
height: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-track {
|
||||||
|
background: #363638;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb {
|
||||||
|
background: #31f39973;
|
||||||
|
border-radius: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
::-webkit-scrollbar-thumb:hover {
|
||||||
|
background: #48ee95;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user