hexo-theme-particlex 2.6.6 → 2.6.8

Sign up to get free protection for your applications and to get access to all the features.
package/layout/card.ejs CHANGED
@@ -1,5 +1,5 @@
1
- <div id="card-div">
2
- <div class="card-style">
1
+ <div id="card-style">
2
+ <div id="card-div">
3
3
  <div class="avatar">
4
4
  <img src="<%- url_for(theme.avatar) %>" alt="avatar" />
5
5
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-particlex",
3
- "version": "2.6.6",
3
+ "version": "2.6.8",
4
4
  "description": "A concise Hexo theme, based on Particle.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -42,10 +42,6 @@
42
42
  #archives h3 {
43
43
  margin: 10px 0;
44
44
  }
45
- #card-div {
46
- position: sticky;
47
- top: 80px;
48
- }
49
45
  #crypto {
50
46
  margin: 50px 0;
51
47
  }
@@ -85,16 +81,26 @@
85
81
  #home-card {
86
82
  width: 300px;
87
83
  }
88
- #home-card .card-style {
84
+ #home-card #card-style {
89
85
  background: #fff;
90
86
  border: none;
91
87
  border-radius: 10px;
92
88
  box-shadow: 0 0 20px #d9d9d980;
93
- padding: 25px 0;
89
+ display: flex;
90
+ flex-direction: column;
91
+ height: 60vh;
92
+ justify-content: center;
93
+ overflow: auto;
94
+ position: sticky;
94
95
  text-align: center;
96
+ top: 20vh;
95
97
  width: 300px;
96
98
  }
97
- #home-card .card-style .avatar {
99
+ #home-card #card-div {
100
+ overflow: auto;
101
+ padding: 25px 0;
102
+ }
103
+ #home-card #card-div .avatar {
98
104
  border: #f1f1f1 solid 3px;
99
105
  border-radius: 50%;
100
106
  height: 140px;
@@ -102,50 +108,50 @@
102
108
  text-align: center;
103
109
  width: 140px;
104
110
  }
105
- #home-card .card-style .avatar img {
111
+ #home-card #card-div .avatar img {
106
112
  border-radius: 50%;
107
113
  height: 100%;
108
114
  width: 100%;
109
115
  }
110
- #home-card .card-style .avatar:hover img {
116
+ #home-card #card-div .avatar:hover img {
111
117
  transform: rotate(360deg);
112
118
  }
113
- #home-card .card-style .description {
119
+ #home-card #card-div .description {
114
120
  margin: 20px auto;
115
121
  width: 85%;
116
122
  }
117
- #home-card .card-style .friend-links .friend-link {
123
+ #home-card #card-div .friend-links .friend-link {
118
124
  margin-bottom: 5px;
119
125
  }
120
- #home-card .card-style .friend-links a {
126
+ #home-card #card-div .friend-links a {
121
127
  border-radius: 5px;
122
128
  color: #5c6b72;
123
129
  display: block;
124
130
  padding: 8px 0;
125
131
  }
126
- #home-card .card-style .icon-links .icon-link {
132
+ #home-card #card-div .icon-links .icon-link {
127
133
  margin: 5px;
128
134
  }
129
- #home-card .card-style .icon-links a {
135
+ #home-card #card-div .icon-links a {
130
136
  border-radius: 5px;
131
137
  color: #5c6b72;
132
138
  font-size: 18px;
133
139
  padding: 5px;
134
140
  }
135
- #home-card .card-style .icon-links a:hover,
136
- #home-card .card-style .friend-links a:hover,
141
+ #home-card #card-div .icon-links a:hover,
142
+ #home-card #card-div .friend-links a:hover,
137
143
  #home-posts .page-current .page-num:hover {
138
144
  background: #66afef;
139
145
  color: #fff;
140
146
  }
141
- #home-card .card-style .icon-links,
142
- #home-card .card-style .friend-links {
147
+ #home-card #card-div .icon-links,
148
+ #home-card #card-div .friend-links {
143
149
  border-top: #cdcdcd solid 1px;
144
150
  margin: 10px auto;
145
151
  padding-top: 10px;
146
152
  width: 85%;
147
153
  }
148
- #home-card .card-style .name {
154
+ #home-card #card-div .name {
149
155
  font-size: 16px;
150
156
  font-weight: bold;
151
157
  margin: 20px auto;
@@ -485,7 +491,6 @@
485
491
  margin-right: 10px;
486
492
  }
487
493
  .code-content {
488
- background: none;
489
494
  font-size: 13px;
490
495
  line-height: 2;
491
496
  overflow: auto;
@@ -542,7 +547,7 @@ body::-webkit-scrollbar-track {
542
547
  border-right: 1px solid #ccc;
543
548
  color: #ccc;
544
549
  padding-right: 10px !important;
545
- text-align: center;
550
+ text-align: right;
546
551
  vertical-align: top;
547
552
  }
548
553
  .icon {
@@ -774,13 +779,12 @@ pre {
774
779
  border-radius: 15px;
775
780
  box-shadow: 0 2px 12px 0 #0000001a;
776
781
  margin: 25px 0;
782
+ overflow: hidden;
777
783
  white-space: normal;
778
784
  }
779
785
  pre,
780
786
  code,
781
787
  .hljs,
782
- .highlight,
783
- .commit-tease-sha,
784
788
  .input,
785
789
  .language {
786
790
  font-family: "Fira Code", "Noto Sans SC", monospace;
@@ -22,7 +22,7 @@ mixins.highlight = {
22
22
  highlighted = code;
23
23
  }
24
24
  i.innerHTML = `
25
- <div class="code-content">${highlighted}</div>
25
+ <div class="code-content hljs">${highlighted}</div>
26
26
  <div class="language">${language}</div>
27
27
  <div class="copycode">
28
28
  <i class="fa-solid fa-copy fa-fw"></i>
package/source/js/main.js CHANGED
@@ -32,9 +32,10 @@ const app = Vue.createApp({
32
32
  this.showMenuItems = false;
33
33
  } else this.hiddenMenu = false;
34
34
  if (wrap) {
35
- wrap.style.top = -Math.min(newScrollTop / 5, 80) + "px";
36
35
  if (newScrollTop <= window.innerHeight - 100) this.menuColor = true;
37
36
  else this.menuColor = false;
37
+ if (newScrollTop <= 400) wrap.style.top = "-" + newScrollTop / 5 + "px";
38
+ else wrap.style.top = "-80px";
38
39
  }
39
40
  this.scrollTop = newScrollTop;
40
41
  },