hexo-theme-solitude 3.0.6 → 3.0.8

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.
@@ -250,13 +250,14 @@
250
250
  display flex
251
251
  flex-direction row
252
252
  flex-wrap wrap
253
- height 164px
253
+ justify-content flex-start
254
254
  gap .5rem
255
+ height 164px
255
256
 
256
- li.card-archive-list-item
257
- flex 0 1 calc(35% - .625rem)
257
+ li.item
258
+ flex 1 1 calc(100% / 4 - 1.5rem)
258
259
 
259
- .card-archive-list-link
260
+ a
260
261
  border-radius 8px
261
262
  display flex
262
263
  flex-direction column
@@ -271,15 +272,15 @@
271
272
  color var(--efu-white)
272
273
  cursor pointer
273
274
 
274
- .card-archive-list-date
275
+ .date
275
276
  font-size 14px
276
277
  opacity .6
277
278
 
278
- .card-archive-list-count-group
279
+ .count-group
279
280
  display flex
280
281
  flex-direction row
281
282
 
282
- .card-archive-list-count
283
+ .count
283
284
  width auto
284
285
  text-align left
285
286
  font-size 1.1rem
@@ -287,7 +288,7 @@
287
288
  margin-right 2px
288
289
  font-weight 700
289
290
 
290
- .card-archive-list-count-unit
291
+ .unit
291
292
  width auto
292
293
  text-align left
293
294
  font-size 14px
@@ -173,7 +173,6 @@
173
173
  flex-direction row
174
174
  gap .5rem
175
175
  flex-wrap wrap
176
- margin-bottom 60px
177
176
 
178
177
  a
179
178
  color var(--efu-fontcolor)
@@ -102,6 +102,7 @@
102
102
  .solitude
103
103
  font-size 14px
104
104
  margin-right 4px
105
+ color var(--efu-card-bg)
105
106
 
106
107
  .reward-list-item-time
107
108
  font-size 12px
@@ -71,7 +71,7 @@ function adjustBrightness(r, g, b) {
71
71
  [...document.getElementsByClassName('card-content')].forEach(item => {
72
72
  item.style.setProperty('--efu-card-bg', 'var(--efu-white)');
73
73
  });
74
- [...document.getElementsByClassName('author-info__sayhi')].forEach(item => {
74
+ [...document.getElementsByClassName('sayhi')].forEach(item => {
75
75
  item.style.setProperty('background', 'var(--efu-white-op)');
76
76
  item.style.setProperty('color', 'var(--efu-white)');
77
77
  });
@@ -69,7 +69,7 @@ const adjustBrightness = (r, g, b) => {
69
69
  document.querySelectorAll('.card-content').forEach(item => {
70
70
  item.style.setProperty('--efu-card-bg', 'var(--efu-white)');
71
71
  });
72
- document.querySelectorAll('.author-info__sayhi').forEach(item => {
72
+ document.querySelectorAll('.sayhi').forEach(item => {
73
73
  item.style.setProperty('background', 'var(--efu-white-op)');
74
74
  item.style.setProperty('color', 'var(--efu-white)');
75
75
  });
@@ -87,7 +87,7 @@ const adjustCardStyles = () => {
87
87
  item.style.setProperty('--efu-card-bg', 'var(--efu-white)');
88
88
  });
89
89
 
90
- const authorInfo = document.querySelectorAll('.author-info__sayhi');
90
+ const authorInfo = document.querySelectorAll('.sayhi');
91
91
  authorInfo.forEach(item => {
92
92
  item.style.setProperty('background', 'var(--efu-white-op)');
93
93
  item.style.setProperty('color', 'var(--efu-white)');
package/source/js/main.js CHANGED
@@ -234,7 +234,7 @@ const sco = {
234
234
  },
235
235
  changeWittyWord() {
236
236
  const greetings = GLOBAL_CONFIG.aside.witty_words;
237
- const greetingElement = document.getElementById("author-info__sayhi");
237
+ const greetingElement = document.getElementById("sayhi");
238
238
  let randomGreeting;
239
239
  do {
240
240
  randomGreeting = greetings[Math.floor(Math.random() * greetings.length)];
@@ -312,7 +312,7 @@ const sco = {
312
312
  },
313
313
  scrollToComment: () => utils.scrollToDest(utils.getEleTop(document.getElementById('post-comment')), 300),
314
314
  setTimeState() {
315
- const el = document.getElementById('author-info__sayhi');
315
+ const el = document.getElementById('sayhi');
316
316
  if (el) {
317
317
  const hours = new Date().getHours();
318
318
  const lang = GLOBAL_CONFIG.aside.state;
@@ -1,17 +0,0 @@
1
- - var archive = theme.aside.archive
2
-
3
- ul.card-archive-list
4
- - var type = archive.type ? archive.type : 'year'
5
- each value, key in getArchiveLength(type)
6
- li.card-archive-list-item
7
- a.card-archive-list-link(href=`/archives/${key}/`)
8
- span.card-archive-list-date= key
9
- .card-archive-list-count-group
10
- span.card-archive-list-count= value
11
- span.card-archive-list-count-unit= __('console.archive_unit')
12
- li.card-archive-list-item
13
- a.card-archive-list-link(href='/archives/')
14
- span.card-archive-list-date= __('console.archive_all')
15
- .card-archive-list-count-group
16
- span.card-archive-list-count= site.posts.length
17
- span.card-archive-list-count-unit= __('console.archive_unit')
@@ -1,5 +0,0 @@
1
- .card-widget.card-platform
2
- #flip-wrapper
3
- #flip-content
4
- .face
5
- .back.face