@sugarat/theme 0.5.12-beta.0 → 0.5.12-beta.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.
Files changed (39) hide show
  1. package/node.js +1 -1
  2. package/node.mjs +1 -1
  3. package/package.json +1 -2
  4. package/src/components/Alert.vue +123 -162
  5. package/src/components/Avatar.vue +7 -8
  6. package/src/components/BlogAlert.vue +5 -5
  7. package/src/components/BlogApp.vue +1 -8
  8. package/src/components/BlogArticleAnalyze.vue +41 -46
  9. package/src/components/BlogAuthor.vue +13 -15
  10. package/src/components/BlogBackToTop.vue +21 -24
  11. package/src/components/BlogButtonAfterArticle.vue +9 -12
  12. package/src/components/BlogCommentWrapper.vue +34 -41
  13. package/src/components/BlogDocCover.vue +1 -1
  14. package/src/components/BlogFooter.vue +26 -32
  15. package/src/components/BlogFriendLink.vue +38 -47
  16. package/src/components/BlogHomeBanner.vue +25 -31
  17. package/src/components/BlogHomeHeaderAvatar.vue +16 -23
  18. package/src/components/BlogHomeInfo.vue +1 -1
  19. package/src/components/BlogHomeOverview.vue +12 -15
  20. package/src/components/BlogHomeTags.vue +14 -17
  21. package/src/components/BlogHotArticle.vue +66 -77
  22. package/src/components/BlogItem.vue +14 -23
  23. package/src/components/BlogList.vue +12 -15
  24. package/src/components/BlogRecommendArticle.vue +53 -69
  25. package/src/components/BlogSidebar.vue +1 -1
  26. package/src/components/Button.vue +69 -84
  27. package/src/components/Carousel.vue +22 -27
  28. package/src/components/CarouselItem.vue +11 -26
  29. package/src/components/CommentArtalk.vue +1 -1
  30. package/src/components/Image.vue +8 -9
  31. package/src/components/ImageViewer.vue +54 -53
  32. package/src/components/Pagination.vue +148 -176
  33. package/src/components/Tag.vue +72 -91
  34. package/src/components/UserWorks.vue +115 -155
  35. package/src/index.ts +1 -1
  36. package/src/styles/{index.scss → index.css} +56 -91
  37. package/src/styles/scss/algolia.scss +0 -231
  38. package/src/styles/scss/global.scss +0 -156
  39. package/src/styles/scss/highlight.scss +0 -12
@@ -1,231 +0,0 @@
1
- .algolia {
2
- // [command-root] {
3
- // // padding: 8px;
4
- // }
5
-
6
- [command-input] {
7
- font-family: var(--font-sans);
8
- width: 100%;
9
- font-size: 18px;
10
- padding: 12px;
11
- outline: none;
12
- background: var(--bg);
13
- color: var(--gray12);
14
- border-bottom: 1px solid var(--gray6);
15
- border-radius: 4px;
16
- caret-color: var(--vcp-c-brand);
17
- margin: 0;
18
- border: 1px solid var(--vcp-c-brand);
19
-
20
- &::placeholder {
21
- color: var(--gray9);
22
- }
23
- }
24
-
25
- [command-list] {
26
- height: var(--command-list-height);
27
- max-height: 360px;
28
- overflow: auto;
29
- overscroll-behavior: contain;
30
- transition: 100ms ease;
31
- transition-property: height;
32
- }
33
-
34
- [command-item] {
35
- position: relative;
36
- content-visibility: auto;
37
- cursor: pointer;
38
- height: 56px;
39
- font-size: 14px;
40
- display: flex;
41
- align-items: center;
42
- gap: 12px;
43
- padding: 0px 16px;
44
- color: var(--gray12);
45
- user-select: none;
46
- will-change: background, color;
47
- transition: all 150ms ease;
48
- transition-property: none;
49
- border-radius: 4px;
50
- margin-top: 4px;
51
- background-color: var(--lowContrast);
52
-
53
- &:first-child {
54
- margin-top: 0px;
55
- }
56
-
57
- &[aria-selected='true'],
58
- &:hover {
59
- background: var(--vcp-c-brand);
60
- color: #fff;
61
-
62
- svg {
63
- color: #fff;
64
- }
65
-
66
- [command-linear-shortcuts] {
67
- display: flex;
68
- margin-left: auto;
69
- gap: 8px;
70
-
71
- kbd {
72
- font-family: var(--font-sans);
73
- font-size: 13px;
74
- color: var(--gray11);
75
- }
76
- }
77
- }
78
-
79
- // &[aria-disabled='true'] {
80
- // color: var(--gray8);
81
- // cursor: not-allowed;
82
- // }
83
-
84
- &:active {
85
- transition-property: background;
86
- background: var(--gray4);
87
- }
88
-
89
- svg {
90
- width: 16px;
91
- height: 16px;
92
- color: var(--gray10);
93
- }
94
- }
95
-
96
- [command-empty=''] {
97
- font-size: 14px;
98
- display: flex;
99
- align-items: center;
100
- justify-content: center;
101
- height: 64px;
102
- white-space: pre-wrap;
103
- color: var(--gray11);
104
- }
105
-
106
- [command-dialog-mask] {
107
- background-color: rgba(75, 75, 75, 0.8);
108
- }
109
-
110
- [command-dialog-header] {
111
- padding: 12px;
112
- }
113
-
114
- [command-dialog-body] {
115
- padding: 0 12px 12px;
116
- }
117
-
118
- [command-dialog-footer] {
119
- align-items: center;
120
- border-radius: 0 0 8px 8px;
121
- box-shadow: 0 -1px 0 0 #e0e3e8, 0 -3px 6px 0 rgba(69, 98, 155, 0.12);
122
- display: flex;
123
- flex-direction: row-reverse;
124
- flex-shrink: 0;
125
- height: 44px;
126
- justify-content: space-between;
127
- padding: 0 12px;
128
- position: relative;
129
- user-select: none;
130
- width: 100%;
131
- z-index: 300;
132
- }
133
-
134
- [command-group-heading] {
135
- color: var(--vcp-c-brand);
136
- font-size: 0.85em;
137
- font-weight: 600;
138
- line-height: 32px;
139
- margin: 0 -4px;
140
- padding: 8px 4px 0;
141
- top: 0;
142
- z-index: 10;
143
- width: 100%;
144
- }
145
-
146
- .command-palette-commands {
147
- color: var(--docsearch-muted-color);
148
- display: flex;
149
- list-style: none;
150
- margin: 0;
151
- padding: 0;
152
-
153
- li {
154
- display: flex;
155
- align-items: center;
156
- }
157
- li:not(:last-of-type) {
158
- margin-right: 0.8em;
159
- }
160
- }
161
-
162
- .command-palette-logo {
163
- a {
164
- display: flex;
165
- align-items: center;
166
- gap: 8px;
167
- }
168
- svg {
169
- height: 24px;
170
- width: 24px;
171
- }
172
- }
173
-
174
- .command-palette-commands-key {
175
- align-items: center;
176
- background: var(--gray3);
177
- border-radius: 2px;
178
- display: flex;
179
- height: 18px;
180
- justify-content: center;
181
- margin-right: 0.4em;
182
- padding: 0 0 1px;
183
- color: var(--gray11);
184
- border: 0;
185
- width: 20px;
186
- }
187
- }
188
-
189
- .dark .algolia [command-dialog-footer] {
190
- box-shadow: none;
191
- }
192
-
193
- // transition for command-dialog
194
- // .command-dialog-enter-active,
195
- // .command-dialog-leave-active {
196
- // transition: opacity 0.2s ease-in-out;
197
- // }
198
-
199
- // .command-dialog-enter-from,
200
- // .command-dialog-leave-to {
201
- // opacity: 0;
202
- // }
203
-
204
- // .command-dialog-enter-active {
205
- // transition-duration: 0.5s;
206
- // }
207
-
208
- // // transition for command-dialog-wrapper
209
- // .command-dialog-enter-active [command-dialog-wrapper] {
210
- // // transition-delay: 0.2s;
211
- // }
212
-
213
- // .command-dialog-enter-from [command-dialog-wrapper],
214
- // .command-dialog-leave-to [command-dialog-wrapper] {
215
- // // opacity: 0;
216
- // transform: translateY(10px) scale(0.95);
217
- // }
218
-
219
- // .command-dialog-enter-active [command-dialog-wrapper] {
220
- // transition: transform ease-out 0.3s;
221
- // }
222
-
223
- // .command-dialog-enter-to [command-dialog-wrapper],
224
- // .command-dialog-leave-from [command-dialog-wrapper] {
225
- // opacity: 1;
226
- // transform: translateY(0) scale(1);
227
- // }
228
-
229
- // .command-dialog-leave-active [command-dialog-wrapper] {
230
- // transition: transfrom ease-in 0.2s;
231
- // }
@@ -1,156 +0,0 @@
1
- @import 'highlight.scss';
2
-
3
- body {
4
- margin: 0;
5
- padding: 0;
6
- }
7
-
8
- ul {
9
- margin: 0;
10
- padding: 0;
11
- }
12
-
13
- :root {
14
- --font-sans: 'Inter', --apple-system, BlinkMacSystemFont, Segoe UI, Roboto,
15
- Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
16
- --app-bg: var(--gray1);
17
- --app-text: #000000;
18
- --command-shadow: 0 16px 70px rgb(0 0 0 / 20%);
19
-
20
- --lowContrast: #ffffff;
21
- --highContrast: #000000;
22
- --vcp-c-brand: var(--vp-c-brand-2);
23
- --vcp-c-accent: #35495e;
24
-
25
- --gray1: hsl(0, 0%, 98%);
26
- --gray2: hsl(0, 0%, 97.3%);
27
- --gray3: hsl(0, 0%, 95.1%);
28
- --gray4: hsl(0, 0%, 93%);
29
- --gray5: hsl(0, 0%, 90.9%);
30
- --gray6: hsl(0, 0%, 88.7%);
31
- --gray7: hsl(0, 0%, 85.8%);
32
- --gray8: hsl(0, 0%, 78%);
33
- --gray9: hsl(0, 0%, 56.1%);
34
- --gray10: hsl(0, 0%, 52.3%);
35
- --gray11: hsl(0, 0%, 43.5%);
36
- --gray12: hsl(0, 0%, 9%);
37
-
38
- --grayA1: hsla(0, 0%, 0%, 0.012);
39
- --grayA2: hsla(0, 0%, 0%, 0.027);
40
- --grayA3: hsla(0, 0%, 0%, 0.047);
41
- --grayA4: hsla(0, 0%, 0%, 0.071);
42
- --grayA5: hsla(0, 0%, 0%, 0.09);
43
- --grayA6: hsla(0, 0%, 0%, 0.114);
44
- --grayA7: hsla(0, 0%, 0%, 0.141);
45
- --grayA8: hsla(0, 0%, 0%, 0.22);
46
- --grayA9: hsla(0, 0%, 0%, 0.439);
47
- --grayA10: hsla(0, 0%, 0%, 0.478);
48
- --grayA11: hsla(0, 0%, 0%, 0.565);
49
- --grayA12: hsla(0, 0%, 0%, 0.91);
50
-
51
- --blue1: hsl(206, 100%, 99.2%);
52
- --blue2: hsl(210, 100%, 98%);
53
- --blue3: hsl(209, 100%, 96.5%);
54
- --blue4: hsl(210, 98.8%, 94%);
55
- --blue5: hsl(209, 95%, 90.1%);
56
- --blue6: hsl(209, 81.2%, 84.5%);
57
- --blue7: hsl(208, 77.5%, 76.9%);
58
- --blue8: hsl(206, 81.9%, 65.3%);
59
- --blue9: hsl(206, 100%, 50%);
60
- --blue10: hsl(208, 100%, 47.3%);
61
- --blue11: hsl(211, 100%, 43.2%);
62
- --blue12: hsl(211, 100%, 15%);
63
- }
64
-
65
- .dark {
66
- --app-bg: var(--gray1);
67
- --app-text: #ffffff;
68
-
69
- --lowContrast: #000000;
70
- --highContrast: #ffffff;
71
-
72
- --gray1: hsl(0, 0%, 8.5%);
73
- --gray2: hsl(0, 0%, 11%);
74
- --gray3: hsl(0, 0%, 13.6%);
75
- --gray4: hsl(0, 0%, 15.8%);
76
- --gray5: hsl(0, 0%, 17.9%);
77
- --gray6: hsl(0, 0%, 20.5%);
78
- --gray7: hsl(0, 0%, 24.3%);
79
- --gray8: hsl(0, 0%, 31.2%);
80
- --gray9: hsl(0, 0%, 43.9%);
81
- --gray10: hsl(0, 0%, 49.4%);
82
- --gray11: hsl(0, 0%, 62.8%);
83
- --gray12: hsl(0, 0%, 93%);
84
-
85
- --grayA1: hsla(0, 0%, 100%, 0);
86
- --grayA2: hsla(0, 0%, 100%, 0.026);
87
- --grayA3: hsla(0, 0%, 100%, 0.056);
88
- --grayA4: hsla(0, 0%, 100%, 0.077);
89
- --grayA5: hsla(0, 0%, 100%, 0.103);
90
- --grayA6: hsla(0, 0%, 100%, 0.129);
91
- --grayA7: hsla(0, 0%, 100%, 0.172);
92
- --grayA8: hsla(0, 0%, 100%, 0.249);
93
- --grayA9: hsla(0, 0%, 100%, 0.386);
94
- --grayA10: hsla(0, 0%, 100%, 0.446);
95
- --grayA11: hsla(0, 0%, 100%, 0.592);
96
- --grayA12: hsla(0, 0%, 100%, 0.923);
97
-
98
- --blue1: hsl(212, 35%, 9.2%);
99
- --blue2: hsl(216, 50%, 11.8%);
100
- --blue3: hsl(214, 59.4%, 15.3%);
101
- --blue4: hsl(214, 65.8%, 17.9%);
102
- --blue5: hsl(213, 71.2%, 20.2%);
103
- --blue6: hsl(212, 77.4%, 23.1%);
104
- --blue7: hsl(211, 85.1%, 27.4%);
105
- --blue8: hsl(211, 89.7%, 34.1%);
106
- --blue9: hsl(206, 100%, 50%);
107
- --blue10: hsl(209, 100%, 60.6%);
108
- --blue11: hsl(210, 100%, 66.1%);
109
- --blue12: hsl(206, 98%, 95.8%);
110
- }
111
-
112
- body {
113
- // background: var(--app-bg);
114
- }
115
-
116
- div [command-dialog-mask] {
117
- background-color: rgba(0, 0, 0, 0.3);
118
- height: 100vh;
119
- left: 0;
120
- position: fixed;
121
- top: 0;
122
- width: 100vw;
123
- z-index: 200;
124
- // animation: 333ms cubic-bezier(0.16, 1, 0.3, 1) 0s 1 normal none running shown;
125
- }
126
-
127
- div [command-dialog-wrapper] {
128
- position: relative;
129
- background: var(--gray2);
130
- border-radius: 6px;
131
- box-shadow: none;
132
- flex-direction: column;
133
- margin: 20vh auto auto;
134
- max-width: 560px;
135
- // animation: 333ms cubic-bezier(0.16, 1, 0.3, 1) 0s 1 normal none running shown;
136
- }
137
-
138
- div [command-dialog-footer] {
139
- border-top: 1px solid var(--gray6);
140
- align-items: center;
141
- background: var(--gray4);
142
- color: var(--gray11);
143
- border-radius: 0 0 8px 8px;
144
- box-shadow: none;
145
- display: flex;
146
- flex-direction: row-reverse;
147
- flex-shrink: 0;
148
- height: 44px;
149
- justify-content: space-between;
150
- padding: 0 12px;
151
- position: relative;
152
- user-select: none;
153
- width: 100%;
154
- z-index: 300;
155
- font-size: 12px;
156
- }
@@ -1,12 +0,0 @@
1
- @use 'sass:meta';
2
-
3
- html {
4
- @include meta.load-css('highlight.js/styles/github');
5
- }
6
- html.dark {
7
- @include meta.load-css('highlight.js/styles/github-dark');
8
- }
9
-
10
- code.hljs {
11
- border-radius: 16px;
12
- }