@design.estate/dees-wcctools 1.0.101 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -17,31 +17,68 @@ export class WccSidebar extends DeesElement {
17
17
 
18
18
  public render(): TemplateResult {
19
19
  return html`
20
- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
20
+ <link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" rel="stylesheet" />
21
21
  <style>
22
22
  :host {
23
+ /* CSS Variables - Always dark theme to match wcc-properties */
24
+ --background: #0a0a0a;
25
+ --foreground: #e5e5e5;
26
+ --card: #0f0f0f;
27
+ --card-foreground: #f0f0f0;
28
+ --muted: #1a1a1a;
29
+ --muted-foreground: #666;
30
+ --accent: #222;
31
+ --accent-foreground: #fff;
32
+ --border: rgba(255, 255, 255, 0.06);
33
+ --input: #141414;
34
+ --primary: #3b82f6;
35
+ --primary-foreground: #fff;
36
+ --ring: #3b82f6;
37
+ --radius: 4px;
38
+
23
39
  display: block;
24
- border-right: 1px solid #999;
25
- font-family: 'Roboto', 'Inter', sans-serif;
26
- font-size: 12px;
40
+ border-right: 1px solid rgba(255, 255, 255, 0.08);
41
+ font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
42
+ font-size: 14px;
27
43
  box-sizing: border-box;
28
44
  position: absolute;
29
45
  left: 0px;
30
46
  width: 200px;
31
47
  top: 0px;
32
48
  bottom: 0px;
33
- overflow-y: scroll;
49
+ overflow-y: auto;
34
50
  overflow-x: hidden;
35
- background: #222;
36
- color: #fff;
37
- padding: 5px;
51
+ background: var(--background);
52
+ color: var(--foreground);
53
+ }
54
+
55
+ .menu {
56
+ padding: 0.5rem 0;
57
+ }
58
+
59
+ h3 {
60
+ padding: 0.3rem 0.75rem;
61
+ font-size: 0.65rem;
62
+ font-weight: 500;
63
+ text-transform: uppercase;
64
+ letter-spacing: 0.08em;
65
+ color: #888;
66
+ margin: 0;
67
+ margin-top: 0.5rem;
68
+ background: rgba(59, 130, 246, 0.03);
69
+ border-bottom: 1px solid var(--border);
70
+ border-top: 1px solid var(--border);
71
+ }
72
+
73
+ h3:first-child {
74
+ margin-top: 0;
38
75
  }
39
76
 
40
77
  .material-symbols-outlined {
41
78
  font-family: 'Material Symbols Outlined';
42
79
  font-weight: normal;
43
80
  font-style: normal;
44
- font-size: 24px; /* Preferred icon size */
81
+ font-size: 16px;
45
82
  display: inline-block;
46
83
  line-height: 1;
47
84
  text-transform: none;
@@ -49,51 +86,75 @@ export class WccSidebar extends DeesElement {
49
86
  word-wrap: normal;
50
87
  white-space: nowrap;
51
88
  direction: ltr;
52
- font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
89
+ font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
90
+ opacity: 0.5;
53
91
  }
54
92
 
55
93
  .selectOption {
56
94
  user-select: none;
57
95
  position: relative;
58
- line-height: 24px;
59
- padding: 5px;
60
- transition: all 0.2s;
96
+ margin: 0.125rem 0.5rem;
97
+ padding: 0.5rem 0.75rem;
98
+ transition: all 0.15s ease;
61
99
  display: grid;
62
- grid-template-columns: 28px auto;
100
+ grid-template-columns: 20px 1fr;
101
+ align-items: center;
102
+ gap: 0.5rem;
103
+ border-radius: var(--radius);
104
+ cursor: pointer;
105
+ font-size: 0.75rem;
106
+ color: #999;
107
+ background: transparent;
63
108
  }
109
+
64
110
  .selectOption:hover {
65
- padding: 5px;
66
- color: #333;
67
- background: #fff;
111
+ background: rgba(59, 130, 246, 0.05);
112
+ color: #bbb;
113
+ }
114
+
115
+ .selectOption:hover .material-symbols-outlined {
116
+ opacity: 0.7;
68
117
  }
69
118
 
70
119
  .selectOption.selected {
71
- background: #455A64;;
120
+ background: rgba(59, 130, 246, 0.15);
121
+ color: var(--primary);
122
+ }
123
+
124
+ .selectOption.selected .material-symbols-outlined {
125
+ opacity: 1;
126
+ font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
72
127
  }
73
128
 
74
129
  .selectOption.selected:hover {
75
- color: #ffffff;
76
- background: #455A64;
130
+ background: rgba(59, 130, 246, 0.2);
131
+ color: var(--primary);
77
132
  }
78
133
 
79
- .selectOption .material-symbols-outlined {
80
- color: #666;
134
+ .selectOption .text {
81
135
  display: block;
82
- transition: all 0.2s;
136
+ overflow: hidden;
137
+ text-overflow: ellipsis;
138
+ white-space: nowrap;
139
+ font-weight: 400;
83
140
  }
84
141
 
85
- .selectOption.selected .material-symbols-outlined {
86
- color: #000;
142
+ ::-webkit-scrollbar {
143
+ width: 8px;
87
144
  }
88
145
 
89
- .selectOption .text {
90
- display: block;
91
- word-wrap: break-word;
92
- word-break: break-all;
93
- max-width: 100%;
146
+ ::-webkit-scrollbar-track {
147
+ background: transparent;
94
148
  }
95
149
 
96
-
150
+ ::-webkit-scrollbar-thumb {
151
+ background: rgba(255, 255, 255, 0.1);
152
+ border-radius: 4px;
153
+ }
154
+
155
+ ::-webkit-scrollbar-thumb:hover {
156
+ background: rgba(255, 255, 255, 0.2);
157
+ }
97
158
  </style>
98
159
  <div class="menu">
99
160
  <h3>Pages</h3>