@design.estate/dees-wcctools 1.0.101 → 1.1.1

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