From 62f7e4d45c0aa7bdbedecd639e51e6f2446fcc2b Mon Sep 17 00:00:00 2001 From: Vendicated Date: Mon, 30 Jan 2023 05:02:17 +0100 Subject: Add stylelint --- src/components/PluginSettings/styles.css | 3 ++- src/components/VencordSettings/settingsStyles.css | 3 +-- src/plugins/messageLogger/index.tsx | 12 ++++++------ src/plugins/messageLogger/messageLogger.css | 17 +++++++++-------- src/plugins/shikiCodeblocks/devicon.css | 2 +- src/plugins/shikiCodeblocks/shiki.css | 5 ++--- src/plugins/spotifyControls/spotifyStyles.css | 18 +++++++++++------- 7 files changed, 32 insertions(+), 28 deletions(-) (limited to 'src') diff --git a/src/components/PluginSettings/styles.css b/src/components/PluginSettings/styles.css index 1626d7d..a756fa9 100644 --- a/src/components/PluginSettings/styles.css +++ b/src/components/PluginSettings/styles.css @@ -94,6 +94,7 @@ -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; + /* stylelint-disable-next-line property-no-unknown */ box-orient: vertical; } @@ -132,6 +133,6 @@ margin-top: 0.5em; } -.vc-plugins-info-button svg:not(:hover):not(:focus) { +.vc-plugins-info-button svg:not(:hover, :focus) { color: var(--text-muted); } diff --git a/src/components/VencordSettings/settingsStyles.css b/src/components/VencordSettings/settingsStyles.css index 4b1e16b..76064be 100644 --- a/src/components/VencordSettings/settingsStyles.css +++ b/src/components/VencordSettings/settingsStyles.css @@ -16,9 +16,8 @@ gap: 1em; align-items: center; justify-content: space-between; - flex-wrap: wrap; flex-grow: 1; - flex-direction: row; + flex-flow: row wrap; margin-bottom: 1em; } diff --git a/src/plugins/messageLogger/index.tsx b/src/plugins/messageLogger/index.tsx index 8c7fa11..8c897b6 100644 --- a/src/plugins/messageLogger/index.tsx +++ b/src/plugins/messageLogger/index.tsx @@ -45,8 +45,8 @@ export default definePlugin({ }, stop() { - document.querySelectorAll(".messageLogger-deleted").forEach(e => e.remove()); - document.querySelectorAll(".messageLogger-edited").forEach(e => e.remove()); + document.querySelectorAll(".messagelogger-deleted").forEach(e => e.remove()); + document.querySelectorAll(".messagelogger-edited").forEach(e => e.remove()); document.body.classList.remove("messagelogger-red-overlay"); document.body.classList.remove("messagelogger-red-text"); }, @@ -54,7 +54,7 @@ export default definePlugin({ renderEdit(edit: { timestamp: any, content: string; }) { return ( -
+
{Parser.parse(edit.content)} svg, [class*="vc-spotify-repeat"] > svg { width: 22px; height: 22px; } + .vc-spotify-button svg path { width: 100%; height: 100%; } + /* .vc-spotify-button:hover { filter: brightness(1.3); } */ @@ -51,7 +56,9 @@ white-space: nowrap; padding-right: 0.2em; max-width: 100%; + margin: unset; } + .vc-spotify-repeat-1 { font-size: 70%; position: absolute; @@ -92,15 +99,12 @@ overflow: hidden; } -.vc-spotify-tooltip-text { - margin: unset; -} - #vc-spotify-song-title { color: var(--header-primary); font-size: 14px; font-weight: 600; } + .vc-spotify-ellipoverflow { white-space: nowrap; overflow: hidden; @@ -137,7 +141,6 @@ #vc-spotify-progress-bar { position: relative; - color: var(--text-normal); width: 100%; margin: 0.5em 0; @@ -153,6 +156,7 @@ #vc-spotify-progress-bar > [class^="slider"] [class^="bar-"] { height: 4px !important; } + #vc-spotify-progress-bar > [class^="slider"] [class^="grabber"] { /* these importants are neccessary, it applies a width and height through inline styles */ height: 10px !important; @@ -168,7 +172,6 @@ .vc-spotify-progress-time { font-size: 12px; - top: 10px; position: absolute; } @@ -176,6 +179,7 @@ .vc-spotify-time-left { left: 0; } + .vc-spotify-time-right { right: 0; } -- cgit