summaryrefslogtreecommitdiff
path: root/users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/data/netstats.js
diff options
context:
space:
mode:
authorRyan Schanzenbacher <ryan@rschanz.org>2026-08-03 01:22:44 -0400
committerRyan Schanzenbacher <ryan@rschanz.org>2026-08-03 01:22:44 -0400
commit0c8fa3a2a270747f3dbb54fe8792f3f0aec997e3 (patch)
tree6f94ff3aeea2af859c7c166e01a8e73002017893 /users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/data/netstats.js
Initial commit: combined darwin + guix-linux home-manager flake
Supersedes nix-dotfiles (darwin) and guix-dotfiles' ad-hoc nix-home-manager flake (linux). See README.md/MIGRATION.md.
Diffstat (limited to 'users/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/data/netstats.js')
-rwxr-xr-xusers/ryan/modules/simple-bar/simple-bar-source/lib/styles/components/data/netstats.js48
1 files changed, 48 insertions, 0 deletions
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 @@
1// Styles for /lib/components/data/netstats.jsx component
2export const netstatsStyles = /* css */ `
3.netstats {
4 display: flex;
5 align-items: center;
6 justify-content: space-between;
7 gap: 6px;
8 color: var(--foreground);
9 background-color: var(--minor);
10 z-index: 0;
11}
12.netstats--graph {
13 min-width: 120px;
14 padding: 0;
15}
16.simple-bar--widgets-background-color-as-foreground .netstats {
17 background-color: transparent;
18}
19.netstats__item {
20 width: 9ch;
21 display: flex;
22 align-items: center;
23 justify-content: center;
24 gap: 4px;
25 padding: 0 4px;
26}
27.netstats__value {
28 display: flex;
29 align-items: baseline;
30 justify-content: flex-end;
31 margin: 0 auto;
32}
33.netstats__value > em {
34 font-size: 0.8em;
35 font-style: normal;
36}
37.netstats__icon {
38 flex: 0 0 12px;
39 width: 12px;
40 height: 12px;
41}
42.netstats__icon--download {
43 fill: var(--magenta);
44}
45.netstats__icon--upload {
46 fill: var(--blue);
47}
48`;