@awes-io/ui 2.98.2 → 2.100.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.
- package/CHANGELOG.md +39 -0
- package/assets/css/components/_index.css +1 -0
- package/assets/css/components/action-button.css +15 -1
- package/assets/css/components/description.css +1 -7
- package/assets/css/components/layout-menu.css +0 -4
- package/assets/css/components/layout.css +12 -4
- package/assets/css/components/nav.css +22 -1
- package/assets/css/components/page-header.css +83 -10
- package/assets/css/components/page-single.css +5 -33
- package/assets/css/components/page.css +25 -15
- package/assets/css/components/select.css +2 -2
- package/assets/css/components/text-field.css +16 -0
- package/assets/css/components/toggle-show-aside.css +81 -0
- package/assets/css/typography.css +2 -2
- package/assets/js/icons/mono.js +2 -2
- package/assets/js/styles.js +11 -11
- package/components/1_atoms/AwActionCard.vue +8 -1
- package/components/1_atoms/AwInput.vue +15 -1
- package/components/1_atoms/AwSelectNative.vue +1 -1
- package/components/1_atoms/AwTag.vue +5 -0
- package/components/2_molecules/_AwSelectFakeInput.vue +1 -1
- package/components/3_organisms/AwToggleShowAside.vue +190 -0
- package/components/4_pages/AwPage.vue +85 -30
- package/components/4_pages/AwPageMenuButtons.vue +50 -28
- package/components/4_pages/AwPageSingle.vue +1 -28
- package/components/4_pages/_AwPageHeader.vue +34 -2
- package/components/5_layouts/_AwLayoutMenu.vue +48 -7
- package/components/5_layouts/_AwMobileMenuItem.vue +7 -5
- package/components/5_layouts/_AwNav.vue +76 -70
- package/components/_config.js +20 -1
- package/directives/tooltip.js +31 -29
- package/mixins/page.js +58 -0
- package/package.json +2 -2
- package/tailwind/container.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,45 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.100.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.99.0...@awes-io/ui@2.100.0) (2024-04-04)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **nuxt-auth:** remove auth interceptor fixed ([389b092](https://github.com/awes-io/client/commit/389b092e4d95771104c747b29e8324689624f6d5))
|
|
12
|
+
* fix style in page single ([bb63361](https://github.com/awes-io/client/commit/bb633613ec304753bc9af4336590cfcdbb2d1cca))
|
|
13
|
+
* select native caret properly named ([87cfef9](https://github.com/awes-io/client/commit/87cfef93f6b5c0cba9b84d20bab721705481d791))
|
|
14
|
+
* toggle show aside z-index increeased ([6d6aeb9](https://github.com/awes-io/client/commit/6d6aeb961d7ab6a9185c2b8303d35163dc0c6bc2))
|
|
15
|
+
* typography styles updated ([f998b63](https://github.com/awes-io/client/commit/f998b63107374516647ad31ba799bcddaf152094))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* add new header for aw page ([a2d895a](https://github.com/awes-io/client/commit/a2d895a84182f849db86c0c8a5cee0df077bc428))
|
|
21
|
+
* page headers unified ([00afeb8](https://github.com/awes-io/client/commit/00afeb8655c8c76e8cd96a80734ed77af229bdb0))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
# [2.99.0](https://github.com/awes-io/client/compare/@awes-io/ui@2.98.2...@awes-io/ui@2.99.0) (2024-03-25)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Bug Fixes
|
|
31
|
+
|
|
32
|
+
* toggle show aside moved to organisms ([9783aa1](https://github.com/awes-io/client/commit/9783aa11c288235b1e40f9e08b44ddb4e77b8eb2))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
### Features
|
|
36
|
+
|
|
37
|
+
* aside controls from config ([eb4bd0a](https://github.com/awes-io/client/commit/eb4bd0af6369d4034b727c9ce41f3079e3fdbee9))
|
|
38
|
+
* change prefix style in select ([0b5600a](https://github.com/awes-io/client/commit/0b5600a37599682d3bc82589d0cda4318f4d07ef))
|
|
39
|
+
* create new component for toggle aside ([d5fcb35](https://github.com/awes-io/client/commit/d5fcb35b16f3a0d1e47d8bbf478faa4453db4ae5))
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
6
45
|
## [2.98.2](https://github.com/awes-io/client/compare/@awes-io/ui@2.98.1...@awes-io/ui@2.98.2) (2024-02-27)
|
|
7
46
|
|
|
8
47
|
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
.aw-action-button {
|
|
2
2
|
@apply bg-surface;
|
|
3
3
|
|
|
4
|
+
--min-header-height: 2.875rem;
|
|
5
|
+
|
|
4
6
|
display: grid;
|
|
5
7
|
align-items: start;
|
|
6
8
|
grid-template-columns: auto 1fr auto;
|
|
7
|
-
grid-template-rows: max-content minmax(
|
|
9
|
+
grid-template-rows: minmax(var(--min-header-height), max-content) minmax(
|
|
10
|
+
0,
|
|
11
|
+
auto
|
|
12
|
+
);
|
|
8
13
|
gap: 0 1rem;
|
|
9
14
|
|
|
10
15
|
padding: 2rem;
|
|
@@ -38,12 +43,14 @@
|
|
|
38
43
|
|
|
39
44
|
&__text {
|
|
40
45
|
font-size: 1rem;
|
|
46
|
+
font-weight: 700;
|
|
41
47
|
line-height: 1.5;
|
|
42
48
|
align-self: center;
|
|
43
49
|
}
|
|
44
50
|
|
|
45
51
|
&__description {
|
|
46
52
|
display: block;
|
|
53
|
+
font-weight: normal;
|
|
47
54
|
margin-top: 0.25rem;
|
|
48
55
|
}
|
|
49
56
|
|
|
@@ -61,4 +68,11 @@
|
|
|
61
68
|
&--narrow {
|
|
62
69
|
padding: 1rem;
|
|
63
70
|
}
|
|
71
|
+
|
|
72
|
+
& > :where(.aw-action-icon) {
|
|
73
|
+
margin-top: max(
|
|
74
|
+
0px,
|
|
75
|
+
calc((var(--min-header-height) - var(--size)) / 2)
|
|
76
|
+
);
|
|
77
|
+
}
|
|
64
78
|
}
|
|
@@ -19,20 +19,30 @@
|
|
|
19
19
|
max-width: 5rem;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
&.aw-layout-menu--hide-submenu {
|
|
23
|
+
max-width: 6rem;
|
|
24
|
+
z-index: 11;
|
|
25
|
+
}
|
|
26
|
+
|
|
22
27
|
& ~ * {
|
|
23
28
|
max-width: calc(100% - 300px);
|
|
24
29
|
margin-left: 300px;
|
|
30
|
+
transition: max-width ease-in-out 0.3s, margin-left ease-in-out 0.3s;
|
|
25
31
|
}
|
|
26
32
|
|
|
27
33
|
&.aw-layout-menu--no-submenu ~ * {
|
|
28
34
|
max-width: calc(100% - 5rem);
|
|
29
35
|
margin-left: 5rem;
|
|
30
36
|
}
|
|
37
|
+
|
|
38
|
+
&.aw-layout-menu--hide-submenu ~ * {
|
|
39
|
+
max-width: calc(100% - 6rem);
|
|
40
|
+
margin-left: 6rem;
|
|
41
|
+
}
|
|
31
42
|
}
|
|
32
43
|
}
|
|
33
44
|
|
|
34
45
|
.layout {
|
|
35
|
-
|
|
36
46
|
&&--default,
|
|
37
47
|
&&--simple {
|
|
38
48
|
position: relative;
|
|
@@ -120,7 +130,6 @@
|
|
|
120
130
|
}
|
|
121
131
|
|
|
122
132
|
@media (min-width: 35rem) {
|
|
123
|
-
|
|
124
133
|
.layout {
|
|
125
134
|
&&--frame-center,
|
|
126
135
|
&&--frame-left {
|
|
@@ -141,7 +150,6 @@
|
|
|
141
150
|
|
|
142
151
|
@media (max-width: 35rem) {
|
|
143
152
|
.layout {
|
|
144
|
-
|
|
145
153
|
&&--frame-center,
|
|
146
154
|
&&--frame-left {
|
|
147
155
|
background-image: none !important;
|
|
@@ -172,7 +180,7 @@
|
|
|
172
180
|
}
|
|
173
181
|
|
|
174
182
|
&&--simple &__content {
|
|
175
|
-
|
|
183
|
+
@apply pl-0;
|
|
176
184
|
}
|
|
177
185
|
|
|
178
186
|
&__logo {
|
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
.aw-nav {
|
|
2
|
-
@apply
|
|
2
|
+
@apply pt-8;
|
|
3
|
+
|
|
4
|
+
&__wrapper {
|
|
5
|
+
overflow-y: auto;
|
|
6
|
+
overscroll-behavior: contain;
|
|
7
|
+
|
|
8
|
+
scrollbar-width: thin;
|
|
9
|
+
scrollbar-color: rgba(var(--c-on-surface-rgb), 0.15) rgba(var(--c-on-surface-rgb), 0.1);
|
|
10
|
+
|
|
11
|
+
&::-webkit-scrollbar {
|
|
12
|
+
width: 6px;
|
|
13
|
+
height: 6px;
|
|
14
|
+
background-color: rgba(var(--c-on-surface-rgb), 0.1);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&::-webkit-scrollbar-thumb {
|
|
18
|
+
background-color: rgba(var(--c-on-surface-rgb), 0.1);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
max-height: calc(100vh - 5rem);
|
|
22
|
+
padding-bottom: 2rem;
|
|
23
|
+
}
|
|
3
24
|
|
|
4
25
|
&__title {
|
|
5
26
|
@apply text-xl font-heading mb-5 truncate;
|
|
@@ -2,10 +2,29 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: 1rem;
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
padding: var(--header-padding-top) var(--header-padding-horizontal)
|
|
7
|
+
var(--header-padding-bottom);
|
|
6
8
|
height: var(--header-height);
|
|
9
|
+
box-shadow: none;
|
|
7
10
|
|
|
8
11
|
position: relative;
|
|
12
|
+
z-index: 10;
|
|
13
|
+
|
|
14
|
+
transition: none;
|
|
15
|
+
|
|
16
|
+
&--is-stuck {
|
|
17
|
+
@apply bg-surface;
|
|
18
|
+
width: 100%;
|
|
19
|
+
|
|
20
|
+
box-shadow: 0px 10px 20px 0px rgba(0, 19, 106, 0.1);
|
|
21
|
+
|
|
22
|
+
transition: 60ms box-shadow 120ms;
|
|
23
|
+
animation: aw-page-header-slide 180ms ease-out;
|
|
24
|
+
|
|
25
|
+
position: sticky;
|
|
26
|
+
top: 0;
|
|
27
|
+
}
|
|
9
28
|
|
|
10
29
|
.aw-progress {
|
|
11
30
|
position: absolute;
|
|
@@ -13,14 +32,22 @@
|
|
|
13
32
|
left: 0;
|
|
14
33
|
}
|
|
15
34
|
|
|
35
|
+
&--container {
|
|
36
|
+
max-width: 100%;
|
|
37
|
+
width: var(--header-container-width);
|
|
38
|
+
margin-left: auto;
|
|
39
|
+
margin-right: auto;
|
|
40
|
+
}
|
|
41
|
+
|
|
16
42
|
&--primary {
|
|
17
43
|
@apply bg-surface;
|
|
44
|
+
width: 100%;
|
|
18
45
|
}
|
|
19
46
|
|
|
20
47
|
&__title {
|
|
21
48
|
@apply font-body;
|
|
22
49
|
|
|
23
|
-
flex: 1 1
|
|
50
|
+
flex: 1 1 calc(100% - 6rem);
|
|
24
51
|
|
|
25
52
|
display: -webkit-box;
|
|
26
53
|
-webkit-line-clamp: 2;
|
|
@@ -37,7 +64,7 @@
|
|
|
37
64
|
|
|
38
65
|
&__breadcrumbs,
|
|
39
66
|
&__buttons {
|
|
40
|
-
flex: 1 1
|
|
67
|
+
flex: 1 1 3rem;
|
|
41
68
|
|
|
42
69
|
display: flex;
|
|
43
70
|
gap: 1rem;
|
|
@@ -51,27 +78,73 @@
|
|
|
51
78
|
|
|
52
79
|
@screen md {
|
|
53
80
|
.aw-page-header {
|
|
81
|
+
&__title {
|
|
82
|
+
flex: 10 1 max-content;
|
|
83
|
+
}
|
|
54
84
|
|
|
55
|
-
&
|
|
56
|
-
&
|
|
57
|
-
flex: 1
|
|
85
|
+
&__breadcrumbs,
|
|
86
|
+
&__buttons {
|
|
87
|
+
flex: 1 10 calc(100% / 3);
|
|
58
88
|
}
|
|
59
89
|
|
|
60
90
|
&__buttons {
|
|
61
|
-
|
|
62
|
-
min-width: calc(100% / 3);
|
|
91
|
+
min-width: max-content;
|
|
63
92
|
}
|
|
64
93
|
}
|
|
65
94
|
}
|
|
66
95
|
|
|
67
96
|
@screen lg {
|
|
68
97
|
.aw-page-header {
|
|
69
|
-
padding-left: 2.5rem;
|
|
70
|
-
padding-right: 2.5rem;
|
|
98
|
+
/* padding-left: 2.5rem;
|
|
99
|
+
padding-right: 2.5rem; */
|
|
71
100
|
|
|
72
101
|
&__title {
|
|
73
102
|
font-size: 1.25rem;
|
|
74
103
|
line-height: 1.2;
|
|
75
104
|
}
|
|
105
|
+
|
|
106
|
+
&__breadcrumbs {
|
|
107
|
+
padding-right: 1rem;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
&--container {
|
|
111
|
+
gap: 0;
|
|
112
|
+
width: 100%;
|
|
113
|
+
margin-left: 0;
|
|
114
|
+
margin-right: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:where(&--container) &__breadcrumbs {
|
|
118
|
+
flex: 0 0
|
|
119
|
+
calc(
|
|
120
|
+
50% - var(--header-container-width) / 2 +
|
|
121
|
+
var(--header-padding-horizontal)
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
:where(&--container) &__title {
|
|
126
|
+
text-align: left;
|
|
127
|
+
margin-right: 1rem;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
:where(&--container) &__buttons {
|
|
131
|
+
margin-right: max(
|
|
132
|
+
0px,
|
|
133
|
+
calc(
|
|
134
|
+
50% - var(--header-container-width) / 2 +
|
|
135
|
+
var(--header-padding-horizontal)
|
|
136
|
+
)
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@keyframes aw-page-header-slide {
|
|
143
|
+
from {
|
|
144
|
+
transform: translateY(-100%);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
to {
|
|
148
|
+
transform: translateY(0);
|
|
76
149
|
}
|
|
77
150
|
}
|
|
@@ -5,24 +5,6 @@
|
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
min-height: 100dvh;
|
|
7
7
|
|
|
8
|
-
&__header {
|
|
9
|
-
box-shadow: none;
|
|
10
|
-
|
|
11
|
-
transition: none;
|
|
12
|
-
|
|
13
|
-
z-index: 10;
|
|
14
|
-
|
|
15
|
-
&--is-stuck {
|
|
16
|
-
box-shadow: 0px 10px 20px 0px rgba(0, 19, 106, 0.1);
|
|
17
|
-
|
|
18
|
-
transition: 60ms box-shadow 120ms;
|
|
19
|
-
animation: aw-page-single-header-slide 180ms ease-out;
|
|
20
|
-
|
|
21
|
-
position: sticky;
|
|
22
|
-
top: 0;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
8
|
&__container {
|
|
27
9
|
flex-grow: 1;
|
|
28
10
|
|
|
@@ -45,8 +27,8 @@
|
|
|
45
27
|
|
|
46
28
|
padding: 0 1.5rem;
|
|
47
29
|
|
|
48
|
-
font-size: 1.
|
|
49
|
-
line-height: 1;
|
|
30
|
+
font-size: 1.25rem;
|
|
31
|
+
line-height: 1.2;
|
|
50
32
|
font-weight: bold;
|
|
51
33
|
}
|
|
52
34
|
|
|
@@ -121,10 +103,10 @@
|
|
|
121
103
|
&__header {
|
|
122
104
|
position: sticky;
|
|
123
105
|
top: 0;
|
|
106
|
+
}
|
|
124
107
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
108
|
+
.aw-page-header--is-stuck {
|
|
109
|
+
animation: none;
|
|
128
110
|
}
|
|
129
111
|
|
|
130
112
|
&__container {
|
|
@@ -179,13 +161,3 @@
|
|
|
179
161
|
}
|
|
180
162
|
}
|
|
181
163
|
}
|
|
182
|
-
|
|
183
|
-
@keyframes aw-page-single-header-slide {
|
|
184
|
-
from {
|
|
185
|
-
transform: translateY(-100%);
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
to {
|
|
189
|
-
transform: translateY(0);
|
|
190
|
-
}
|
|
191
|
-
}
|
|
@@ -88,26 +88,36 @@
|
|
|
88
88
|
|
|
89
89
|
/* TODO: remove when block removed */
|
|
90
90
|
&__heading {
|
|
91
|
-
|
|
91
|
+
display: contents;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
&__header {
|
|
95
|
+
&--is-empty.aw-page-header {
|
|
96
|
+
display: none;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
&__mobile-title {
|
|
101
|
+
padding: 0;
|
|
102
|
+
|
|
103
|
+
font-size: 1.25rem;
|
|
104
|
+
line-height: 1.2;
|
|
105
|
+
font-weight: bold;
|
|
106
|
+
margin-bottom: 1.5rem;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&__top-scroll-mark {
|
|
110
|
+
height: 1px;
|
|
111
|
+
margin-top: -1.5rem;
|
|
112
|
+
margin-bottom: 1.5rem;
|
|
92
113
|
}
|
|
93
114
|
}
|
|
94
115
|
|
|
95
116
|
@screen lg {
|
|
96
117
|
.aw-page {
|
|
97
|
-
&
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
&--sticky {
|
|
101
|
-
position: sticky;
|
|
102
|
-
top: 0;
|
|
103
|
-
background-color: var(--c-mono-900);
|
|
104
|
-
border-bottom-width: 1px;
|
|
105
|
-
z-index: 1;
|
|
106
|
-
|
|
107
|
-
.aw-page-headline__container {
|
|
108
|
-
padding-top: 0;
|
|
109
|
-
}
|
|
110
|
-
}
|
|
118
|
+
&__mobile-title,
|
|
119
|
+
&__top-scroll-mark {
|
|
120
|
+
display: none;
|
|
111
121
|
}
|
|
112
122
|
|
|
113
123
|
&__content {
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
|
|
70
70
|
.aw-text-field__prefix {
|
|
71
71
|
background: transparent;
|
|
72
|
-
padding-left: 0.
|
|
72
|
+
padding-left: 0.1875rem;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
|
|
118
118
|
.aw-text-field__prefix {
|
|
119
119
|
background: transparent;
|
|
120
|
-
padding-left: 0.
|
|
120
|
+
padding-left: 0.1875rem;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
padding-top: 0.1875rem;
|
|
9
9
|
padding-bottom: 0.1875rem;
|
|
10
10
|
|
|
11
|
+
&--page {
|
|
12
|
+
background-color: var(--c-page-bg);
|
|
13
|
+
}
|
|
14
|
+
|
|
11
15
|
&.aw-search {
|
|
12
16
|
padding-top: 0;
|
|
13
17
|
padding-bottom: 0;
|
|
@@ -48,6 +52,11 @@
|
|
|
48
52
|
margin-bottom: -0.1875rem;
|
|
49
53
|
}
|
|
50
54
|
|
|
55
|
+
&--uncolor-prefix &__prefix {
|
|
56
|
+
background-color: inherit;
|
|
57
|
+
color: inherit;
|
|
58
|
+
}
|
|
59
|
+
|
|
51
60
|
&__prefix {
|
|
52
61
|
@apply rounded-l;
|
|
53
62
|
}
|
|
@@ -99,6 +108,10 @@
|
|
|
99
108
|
}
|
|
100
109
|
}
|
|
101
110
|
|
|
111
|
+
&--page &__element {
|
|
112
|
+
@apply bg-page-bg;
|
|
113
|
+
}
|
|
114
|
+
|
|
102
115
|
&__fake-input {
|
|
103
116
|
--icon-width: 2.5rem;
|
|
104
117
|
--icon-count: 0;
|
|
@@ -114,6 +127,9 @@
|
|
|
114
127
|
&.is-select,
|
|
115
128
|
&.is-select &__element {
|
|
116
129
|
cursor: pointer;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&.is-select &__element {
|
|
117
133
|
position: relative;
|
|
118
134
|
z-index: 1;
|
|
119
135
|
background-color: transparent;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
.aw-toggle-show-aside {
|
|
2
|
+
transition: width 300ms ease-in-out 0s;
|
|
3
|
+
position: relative;
|
|
4
|
+
z-index: 29;
|
|
5
|
+
|
|
6
|
+
&--hide {
|
|
7
|
+
width: 1rem !important;
|
|
8
|
+
background: var(--c-surface);
|
|
9
|
+
|
|
10
|
+
.aw-toggle-show-aside__btn-wrapper {
|
|
11
|
+
width: 1rem;
|
|
12
|
+
|
|
13
|
+
opacity: 1;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&--shadow {
|
|
18
|
+
box-shadow: 0 0 4px rgb(0 0 0 / 20%);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.aw-toggle-show-aside__btn-wrapper {
|
|
22
|
+
width: inherit;
|
|
23
|
+
position: fixed;
|
|
24
|
+
top: 0;
|
|
25
|
+
|
|
26
|
+
transition: 300ms opacity;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&:where(:not(&--hide)) &__btn-wrapper {
|
|
30
|
+
opacity: 0;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:hover &__btn-wrapper {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__arrow-btn {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 2rem;
|
|
44
|
+
right: 0;
|
|
45
|
+
|
|
46
|
+
width: 1.5rem;
|
|
47
|
+
height: 1.5rem;
|
|
48
|
+
padding: 0.25rem;
|
|
49
|
+
|
|
50
|
+
background: var(--c-surface);
|
|
51
|
+
border: 1px solid var(--c-mono-800);
|
|
52
|
+
border-radius: 2rem;
|
|
53
|
+
|
|
54
|
+
color: var(--c-mono-500);
|
|
55
|
+
transition: 100ms background-color, 100ms border-color, 100ms color;
|
|
56
|
+
transform: translateX(50%);
|
|
57
|
+
|
|
58
|
+
&:hover {
|
|
59
|
+
background: var(--c-on-surface);
|
|
60
|
+
border: 1px solid var(--c-on-surface);
|
|
61
|
+
color: var(--c-surface);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-icon {
|
|
65
|
+
flex: none;
|
|
66
|
+
transition: 300ms transform;
|
|
67
|
+
|
|
68
|
+
&--reverse {
|
|
69
|
+
transform: rotate(180deg);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&--reverse {
|
|
75
|
+
.aw-toggle-show-aside {
|
|
76
|
+
&__btn-wrapper {
|
|
77
|
+
width: 0;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
@@ -160,12 +160,12 @@
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
kbd {
|
|
163
|
-
@apply bg-mono-0 bg-opacity-20
|
|
163
|
+
@apply bg-mono-0 bg-opacity-20;
|
|
164
164
|
border-radius: 2px;
|
|
165
165
|
display: inline-block;
|
|
166
166
|
white-space: nowrap;
|
|
167
167
|
line-height: 0.875em;
|
|
168
|
-
font-size: 0.625em;
|
|
168
|
+
/* font-size: 0.625em; */
|
|
169
169
|
padding: 4px;
|
|
170
170
|
min-width: 16px;
|
|
171
171
|
text-align: center;
|
package/assets/js/icons/mono.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const ICONS = {
|
|
2
2
|
angle:
|
|
3
|
-
'
|
|
3
|
+
'm13.29 18.7-6-5.99a1 1 0 0 1-.1-1.3l.1-.11 6-6a1 1 0 0 1 1.5 1.3l-.09.1-5.04 5.38 5.04 5.21a1 1 0 0 1 .1 1.3l-.1.12a1 1 0 0 1-1.3.1l-.11-.1Z',
|
|
4
4
|
'angle-r':
|
|
5
|
-
'
|
|
5
|
+
'm10.7 18.7 6-5.99a1 1 0 0 0 .1-1.3l-.1-.11-6-6a1 1 0 0 0-1.5 1.3l.1.1 5.03 5.38L9.3 17.3a1 1 0 0 0-.1 1.3l.1.12a1 1 0 0 0 1.3.1l.12-.1Z',
|
|
6
6
|
arrow:
|
|
7
7
|
'm1.3 12.5 6.2 6.2.1.1a1 1 0 0 0 1.3-.1l.1-.1a1 1 0 0 0 0-1.4l-4.5-4.4h17.6a1 1 0 0 0 .9-1v-.2a1 1 0 0 0-1-.8H4.5L9 6.3H9a1 1 0 0 0-1.5-1.4L1.3 11h-.1a1 1 0 0 0 .1 1.4Z',
|
|
8
8
|
'arrow-r':
|
package/assets/js/styles.js
CHANGED
|
@@ -31,17 +31,17 @@ export const CUSTOM_COLORS_BG_LIGHT = {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export const CUSTOM_COLORS_BG_DARK = {
|
|
34
|
-
red: '#
|
|
35
|
-
peach: '#
|
|
36
|
-
yellow: '#
|
|
37
|
-
magenta: '#
|
|
38
|
-
purple: '#
|
|
39
|
-
'light-blue': '#
|
|
40
|
-
blue: '#
|
|
41
|
-
green: '#
|
|
42
|
-
lime: '#
|
|
43
|
-
grey: '#
|
|
44
|
-
'light-grey': '#
|
|
34
|
+
red: '#583433',
|
|
35
|
+
peach: '#583C36',
|
|
36
|
+
yellow: '#584729',
|
|
37
|
+
magenta: '#56273E',
|
|
38
|
+
purple: '#3F3158',
|
|
39
|
+
'light-blue': '#234657',
|
|
40
|
+
blue: '#2E3A5C',
|
|
41
|
+
green: '#2D4A2C',
|
|
42
|
+
lime: '#464C29',
|
|
43
|
+
grey: '#393A3D',
|
|
44
|
+
'light-grey': '#41444B'
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export default {
|
|
@@ -3,7 +3,12 @@
|
|
|
3
3
|
<div class="aw-action-card__header">
|
|
4
4
|
<slot name="before-title"></slot>
|
|
5
5
|
|
|
6
|
-
<AwHeadline
|
|
6
|
+
<AwHeadline
|
|
7
|
+
class="aw-action-card__title"
|
|
8
|
+
:class="{ truncate: !fullTitle }"
|
|
9
|
+
>
|
|
10
|
+
{{ title }}
|
|
11
|
+
</AwHeadline>
|
|
7
12
|
|
|
8
13
|
<slot name="after-title">
|
|
9
14
|
<AwButton
|
|
@@ -39,6 +44,8 @@ export default {
|
|
|
39
44
|
default: ''
|
|
40
45
|
},
|
|
41
46
|
|
|
47
|
+
fullTitle: Boolean,
|
|
48
|
+
|
|
42
49
|
action: {
|
|
43
50
|
type: Object,
|
|
44
51
|
default: null
|