@mshuja288/aksuicore 0.3.0 → 0.4.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.
@@ -33,20 +33,146 @@
33
33
  display: none;
34
34
  }
35
35
 
36
+ /* Mobile drawer — hidden on desktop */
37
+ .nav-drawer-backdrop,
38
+ .nav-drawer {
39
+ display: none;
40
+ }
41
+
42
+ button.topbar-menu-button {
43
+ display: none;
44
+ width: 40px;
45
+ height: 40px;
46
+ padding: 0;
47
+ border-radius: var(--aks-radius);
48
+ background: transparent;
49
+ color: var(--aks-brand);
50
+ box-shadow: none;
51
+ }
52
+
53
+ button.topbar-menu-button svg {
54
+ width: 22px;
55
+ height: 22px;
56
+ }
57
+
58
+ button.topbar-menu-button:hover {
59
+ transform: none;
60
+ background: #f4f2ef;
61
+ box-shadow: none;
62
+ }
63
+
36
64
  @media (max-width: 900px) {
37
65
  .app-body {
38
66
  grid-template-columns: 1fr;
39
67
  }
40
68
 
41
- .app-shell .side-nav {
69
+ .app-shell .app-body > .side-nav {
42
70
  display: none;
43
71
  }
44
72
 
45
- .app-shell .screen {
73
+ button.topbar-menu-button {
74
+ display: inline-grid;
75
+ place-items: center;
76
+ }
77
+
78
+ .app-shell.mobile-nav-drawer .screen,
79
+ .app-shell.mobile-nav-hybrid:not(.has-bottom-nav) .screen {
80
+ padding: 10px;
81
+ }
82
+
83
+ .app-shell.has-bottom-nav .screen {
46
84
  padding: 10px 10px 88px;
47
85
  }
48
86
 
49
- .bottom-nav {
87
+ /* Drawer overlay */
88
+ .nav-drawer-backdrop {
89
+ display: block;
90
+ position: fixed;
91
+ inset: 0;
92
+ z-index: 40;
93
+ border: 0;
94
+ padding: 0;
95
+ margin: 0;
96
+ background: rgba(30, 39, 53, 0.42);
97
+ opacity: 0;
98
+ pointer-events: none;
99
+ transition: opacity 160ms ease;
100
+ box-shadow: none;
101
+ }
102
+
103
+ .nav-drawer-backdrop.open {
104
+ opacity: 1;
105
+ pointer-events: auto;
106
+ }
107
+
108
+ .nav-drawer {
109
+ display: flex;
110
+ flex-direction: column;
111
+ position: fixed;
112
+ top: 0;
113
+ left: 0;
114
+ bottom: 0;
115
+ z-index: 50;
116
+ width: min(300px, calc(100vw - 48px));
117
+ background: #fff;
118
+ border-right: 1px solid var(--aks-line);
119
+ box-shadow: 12px 0 32px rgba(30, 39, 53, 0.18);
120
+ transform: translateX(-105%);
121
+ transition: transform 180ms ease;
122
+ pointer-events: none;
123
+ }
124
+
125
+ .nav-drawer.open {
126
+ transform: translateX(0);
127
+ pointer-events: auto;
128
+ }
129
+
130
+ .nav-drawer-head {
131
+ display: flex;
132
+ align-items: center;
133
+ justify-content: space-between;
134
+ gap: 12px;
135
+ flex: 0 0 auto;
136
+ padding: 14px 14px 10px;
137
+ border-bottom: 1px solid var(--aks-line);
138
+ }
139
+
140
+ .nav-drawer-title {
141
+ margin: 0;
142
+ color: var(--aks-brand);
143
+ font-size: 12px;
144
+ font-weight: 700;
145
+ letter-spacing: 0.06em;
146
+ text-transform: uppercase;
147
+ }
148
+
149
+ button.nav-drawer-close {
150
+ padding: 6px 10px;
151
+ font-size: 12px;
152
+ box-shadow: none;
153
+ }
154
+
155
+ .nav-drawer .side-nav,
156
+ .nav-drawer-nav {
157
+ display: flex !important;
158
+ flex-direction: column;
159
+ flex: 1 1 auto;
160
+ min-height: 0;
161
+ overflow: auto;
162
+ padding: 10px;
163
+ gap: 4px;
164
+ border: 0;
165
+ background: transparent;
166
+ }
167
+
168
+ .nav-drawer .side-nav button {
169
+ justify-content: flex-start;
170
+ width: 100%;
171
+ text-align: left;
172
+ }
173
+
174
+ /* Legacy / optional bottom nav */
175
+ .app-shell.has-bottom-nav .bottom-nav {
50
176
  position: fixed;
51
177
  left: 0;
52
178
  right: 0;
@@ -61,6 +187,10 @@
61
187
  box-shadow: 0 -8px 24px rgba(30, 39, 53, 0.18);
62
188
  }
63
189
 
190
+ .app-shell.mobile-nav-hybrid.has-bottom-nav .bottom-nav {
191
+ grid-template-columns: 1fr auto;
192
+ }
193
+
64
194
  .bottom-nav button {
65
195
  display: flex;
66
196
  flex-direction: column;
@@ -74,18 +204,37 @@
74
204
  font-size: 10px;
75
205
  line-height: 1.1;
76
206
  white-space: nowrap;
207
+ overflow: hidden;
208
+ text-overflow: ellipsis;
77
209
  box-shadow: none;
78
210
  }
79
211
 
212
+ .bottom-nav button.bottom-nav-current {
213
+ align-items: flex-start;
214
+ padding-left: 14px;
215
+ font-size: 12px;
216
+ font-weight: 600;
217
+ color: #fff;
218
+ opacity: 1;
219
+ }
220
+
221
+ .bottom-nav button.bottom-nav-menu {
222
+ min-width: 72px;
223
+ background: var(--aks-accent);
224
+ color: #fff;
225
+ font-size: 12px;
226
+ font-weight: 700;
227
+ }
228
+
80
229
  .bottom-nav button.active,
81
- .bottom-nav button:hover {
230
+ .bottom-nav button:hover:not(:disabled) {
82
231
  transform: none;
83
232
  background: var(--aks-accent);
84
233
  color: #fff;
85
234
  box-shadow: none;
86
235
  }
87
236
 
88
- .snackbar-host {
237
+ .app-shell.has-bottom-nav .snackbar-host {
89
238
  right: 16px;
90
239
  bottom: calc(78px + env(safe-area-inset-bottom));
91
240
  }