@apo100l/ace-ui-kit 0.4.0 → 0.6.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.
@@ -0,0 +1,73 @@
1
+ // The signed-in user at the top of the sidebar: initials avatar, name, an action line.
2
+ // <div class="ak-sidebar-profile">
3
+ // <a class="ak-sidebar-profile__link" href="/admin/users/1/edit/">
4
+ // <span class="ak-sidebar-profile__avatar" aria-hidden="true">АП</span>
5
+ // <span class="ak-sidebar-profile__text">
6
+ // <span class="ak-sidebar-profile__name">Александр Апостол</span>
7
+ // <span class="ak-sidebar-profile__hint">Редактировать профиль</span>
8
+ // </span>
9
+ // </a>
10
+ // </div>
11
+ // Works in .ak-sidebar and in the legacy #sidebar.
12
+
13
+ .ak-sidebar-profile {
14
+ padding: var(--ak-space-3);
15
+ border-bottom: 1px solid var(--ak-color-border);
16
+ background: var(--ak-color-ground);
17
+
18
+ &__link {
19
+ display: flex;
20
+ align-items: center;
21
+ gap: var(--ak-space-3);
22
+ padding: var(--ak-space-2);
23
+ border-radius: var(--ak-radius-card);
24
+ color: inherit;
25
+ text-decoration: none;
26
+ transition:
27
+ background-color var(--ak-duration-fast) ease,
28
+ box-shadow var(--ak-duration-fast) ease;
29
+
30
+ &:hover {
31
+ background: var(--ak-color-surface);
32
+ box-shadow: 0 1px 2px rgb(0 0 0 / 8%);
33
+ color: inherit;
34
+ text-decoration: none;
35
+ }
36
+ &:focus-visible {
37
+ outline: none;
38
+ box-shadow: var(--ak-focus-ring);
39
+ }
40
+ }
41
+ &__avatar {
42
+ display: inline-flex;
43
+ flex: none;
44
+ align-items: center;
45
+ justify-content: center;
46
+ width: 44px;
47
+ height: 44px;
48
+ border-radius: 50%;
49
+ background: var(--ak-avatar-bg);
50
+ color: #fff;
51
+ font-size: var(--ak-font-size-md);
52
+ font-weight: var(--ak-font-weight-semibold);
53
+ letter-spacing: 0.02em;
54
+ }
55
+ &__text {
56
+ display: grid;
57
+ flex: 1;
58
+ gap: 2px;
59
+ min-width: 0;
60
+ }
61
+ &__name {
62
+ overflow: hidden;
63
+ color: var(--ak-color-text);
64
+ font-size: var(--ak-font-size-md);
65
+ font-weight: var(--ak-font-weight-semibold);
66
+ text-overflow: ellipsis;
67
+ white-space: nowrap;
68
+ }
69
+ &__hint {
70
+ color: var(--ak-color-muted);
71
+ font-size: var(--ak-font-size-xs);
72
+ }
73
+ }
@@ -18,6 +18,9 @@
18
18
  // .ak-table--compact: 36px rows. .ak-muted / .ak-dash for secondary text and missing values.
19
19
 
20
20
  .ak-table-wrap {
21
+ // positioned, so absolutely placed bits inside (.ak-sr-only headers) stay in the scroll box instead of
22
+ // widening the page — on phones that stretched the layout viewport and the fixed top bar with it
23
+ position: relative;
21
24
  width: 100%;
22
25
  overflow-x: auto;
23
26
 
@@ -12,5 +12,6 @@
12
12
  @use 'components/tabs';
13
13
  @use 'components/overlay';
14
14
  @use 'components/shell';
15
+ @use 'components/sidebar-profile';
15
16
  @use 'components/feedback';
16
17
  @use 'components/auth';