From d06784958d73159b5e4abafe5114804662114ed7 Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Thu, 9 Jul 2026 22:15:53 -0400 Subject: move ubersicht modules in tree --- .../lib/styles/components/data/netstats.js | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/data/netstats.js (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/data/netstats.js') diff --git a/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/data/netstats.js b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/data/netstats.js new file mode 100755 index 0000000..384d970 --- /dev/null +++ b/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/data/netstats.js @@ -0,0 +1,48 @@ +// Styles for /lib/components/data/netstats.jsx component +export const netstatsStyles = /* css */ ` +.netstats { + display: flex; + align-items: center; + justify-content: space-between; + gap: 6px; + color: var(--foreground); + background-color: var(--minor); + z-index: 0; +} +.netstats--graph { + min-width: 120px; + padding: 0; +} +.simple-bar--widgets-background-color-as-foreground .netstats { + background-color: transparent; +} +.netstats__item { + width: 9ch; + display: flex; + align-items: center; + justify-content: center; + gap: 4px; + padding: 0 4px; +} +.netstats__value { + display: flex; + align-items: baseline; + justify-content: flex-end; + margin: 0 auto; +} +.netstats__value > em { + font-size: 0.8em; + font-style: normal; +} +.netstats__icon { + flex: 0 0 12px; + width: 12px; + height: 12px; +} +.netstats__icon--download { + fill: var(--magenta); +} +.netstats__icon--upload { + fill: var(--blue); +} +`; -- cgit v1.3