arsxy-theme 1.0.0.pre.rc

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 (56) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +166 -0
  4. data/_config.yml +131 -0
  5. data/_includes/footer.html +45 -0
  6. data/_includes/header.html +68 -0
  7. data/_includes/image.html +8 -0
  8. data/_includes/related-posts.html +83 -0
  9. data/_includes/search.html +32 -0
  10. data/_includes/social-sharing.html +86 -0
  11. data/_includes/toc.html +83 -0
  12. data/_layouts/default.html +76 -0
  13. data/_layouts/docs.html +90 -0
  14. data/_layouts/home.html +172 -0
  15. data/_layouts/post.html +114 -0
  16. data/_sass/_base.scss +264 -0
  17. data/_sass/_dark-mode.scss +749 -0
  18. data/_sass/_layout.scss +118 -0
  19. data/_sass/_responsive.scss +157 -0
  20. data/_sass/_syntax-highlighting.scss +147 -0
  21. data/_sass/_typography.scss +226 -0
  22. data/_sass/_utilities.scss +138 -0
  23. data/_sass/_variables.scss +63 -0
  24. data/_sass/components/_code.scss +245 -0
  25. data/_sass/components/_docs.scss +263 -0
  26. data/_sass/components/_footer.scss +170 -0
  27. data/_sass/components/_header.scss +313 -0
  28. data/_sass/components/_homepage.scss +597 -0
  29. data/_sass/components/_image.scss +22 -0
  30. data/_sass/components/_pagination.scss +146 -0
  31. data/_sass/components/_post.scss +1039 -0
  32. data/_sass/components/_related-posts.scss +70 -0
  33. data/_sass/components/_search.scss +276 -0
  34. data/_sass/components/_social-sharing.scss +95 -0
  35. data/_sass/components/_toc.scss +193 -0
  36. data/assets/css/main.scss +24 -0
  37. data/assets/images/favicon/android-chrome-192x192.png +0 -0
  38. data/assets/images/favicon/android-chrome-512x512.png +0 -0
  39. data/assets/images/favicon/apple-touch-icon.png +0 -0
  40. data/assets/images/favicon/favicon-16x16.png +0 -0
  41. data/assets/images/favicon/favicon-32x32.png +0 -0
  42. data/assets/images/favicon/favicon.ico +0 -0
  43. data/assets/images/favicon/site.webmanifest +19 -0
  44. data/assets/images/new-features-update.svg +58 -0
  45. data/assets/images/related-posts-example.svg +37 -0
  46. data/assets/images/seo-optimization.png +0 -0
  47. data/assets/images/social-sharing-sample.png +0 -0
  48. data/assets/images/ss-arsxy-theme.png +0 -0
  49. data/assets/images/table-of-content-thumbnail.png +0 -0
  50. data/assets/images/theme-demo-2.jpeg +0 -0
  51. data/assets/images/theme-demo.jpeg +0 -0
  52. data/assets/images/welcome-to-arsxy-theme.png +0 -0
  53. data/assets/js/main.js +369 -0
  54. data/assets/js/search-index.json +31 -0
  55. data/assets/js/search.js +207 -0
  56. metadata +226 -0
@@ -0,0 +1,70 @@
1
+ /*
2
+ * Related Posts Styling
3
+ */
4
+
5
+ .related-posts {
6
+ margin-top: 3rem;
7
+ padding-top: 2rem;
8
+ border-top: 1px solid var(--border-color);
9
+
10
+ h3 {
11
+ margin-bottom: 1.5rem;
12
+ font-size: 1.5rem;
13
+ }
14
+
15
+ .related-posts-grid {
16
+ display: grid;
17
+ grid-template-columns: repeat(3, 1fr);
18
+ gap: 1.5rem;
19
+
20
+ @media (max-width: 768px) {
21
+ grid-template-columns: repeat(2, 1fr);
22
+ }
23
+
24
+ @media (max-width: 576px) {
25
+ grid-template-columns: 1fr;
26
+ }
27
+ }
28
+
29
+ .related-post-card {
30
+ display: block;
31
+ padding: 1rem;
32
+ border-radius: 8px;
33
+ border: 1px solid var(--border-color);
34
+ transition: transform 0.2s ease, box-shadow 0.2s ease;
35
+ text-decoration: none;
36
+ color: var(--text-color);
37
+
38
+ &:hover {
39
+ transform: translateY(-3px);
40
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
41
+ }
42
+
43
+ .related-post-image {
44
+ width: 100%;
45
+ height: 140px;
46
+ margin-bottom: 1rem;
47
+ border-radius: 4px;
48
+ overflow: hidden;
49
+
50
+ img {
51
+ width: 100%;
52
+ height: 100%;
53
+ object-fit: cover;
54
+ }
55
+ }
56
+
57
+ .related-post-content {
58
+ h4 {
59
+ margin: 0 0 0.5rem;
60
+ font-size: 1.1rem;
61
+ line-height: 1.4;
62
+ }
63
+
64
+ .related-post-date {
65
+ font-size: 0.85rem;
66
+ color: var(--text-muted);
67
+ }
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,276 @@
1
+ /*
2
+ * Search Functionality Styling
3
+ */
4
+
5
+ /* Search toggle button in header */
6
+ .search-toggle {
7
+ display: flex;
8
+ align-items: center;
9
+ margin-right: 0.5rem;
10
+
11
+ .search-button {
12
+ background: none;
13
+ border: none;
14
+ padding: 0.5rem;
15
+ cursor: pointer;
16
+ display: flex;
17
+ align-items: center;
18
+ justify-content: center;
19
+ color: var(--text-color);
20
+ border-radius: 4px;
21
+ transition: background-color 0.2s;
22
+
23
+ &:hover {
24
+ background-color: var(--hover-bg);
25
+ }
26
+
27
+ svg {
28
+ width: 1.2rem;
29
+ height: 1.2rem;
30
+ stroke: currentColor;
31
+ }
32
+ }
33
+ }
34
+
35
+ /* Search overlay styles */
36
+ .search-overlay {
37
+ position: fixed;
38
+ top: 0;
39
+ left: 0;
40
+ width: 100%;
41
+ height: 100vh; /* Use viewport height units */
42
+ background-color: rgba(0, 0, 0, 0.9); /* Changed from 0.85 to 0.9 for 90% opacity */
43
+ display: flex;
44
+ align-items: center; /* Center vertically */
45
+ justify-content: center; /* Center horizontally */
46
+ z-index: 1000;
47
+ opacity: 0;
48
+ visibility: hidden;
49
+ transition: opacity 0.3s ease, visibility 0.3s ease;
50
+ backdrop-filter: blur(5px);
51
+ padding: 2rem;
52
+
53
+ &.active {
54
+ opacity: 1;
55
+ visibility: visible;
56
+ }
57
+
58
+ .search-overlay-content {
59
+ position: relative; /* Add position relative */
60
+ width: 90%;
61
+ max-width: 800px;
62
+ background-color: var(--bg-color);
63
+ border-radius: 8px;
64
+ box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
65
+ margin: 0; /* Remove any margin that might affect centering */
66
+ overflow: hidden;
67
+ max-height: 80vh;
68
+ display: flex;
69
+ flex-direction: column;
70
+ transform: translate(0, 0); /* Reset any transforms */
71
+ animation: fadeInSearch 0.3s ease forwards;
72
+ top: 0; /* Reset any potential top positioning */
73
+ }
74
+
75
+ .search-header {
76
+ display: flex;
77
+ align-items: center;
78
+ justify-content: space-between;
79
+ padding: 1rem 1.5rem;
80
+ border-bottom: 1px solid var(--border-color);
81
+
82
+ h2 {
83
+ margin: 0;
84
+ font-size: 1.5rem;
85
+ }
86
+
87
+ .close-search {
88
+ background: none;
89
+ border: none;
90
+ cursor: pointer;
91
+ display: flex;
92
+ padding: 0.5rem;
93
+ color: var(--text-color);
94
+ border-radius: 4px;
95
+ transition: background-color 0.2s;
96
+
97
+ &:hover {
98
+ background-color: var(--hover-bg);
99
+ }
100
+
101
+ svg {
102
+ width: 1.2rem;
103
+ height: 1.2rem;
104
+ stroke: currentColor;
105
+ }
106
+ }
107
+ }
108
+
109
+ .search-form {
110
+ padding: 1.5rem;
111
+ flex: 1;
112
+ overflow-y: auto;
113
+
114
+ input[type="text"] {
115
+ width: 100%;
116
+ padding: 0.75rem 1rem;
117
+ font-size: 1.1rem;
118
+ border: 1px solid var(--border-color);
119
+ border-radius: 4px;
120
+ background-color: var(--bg-color);
121
+ color: var(--text-color);
122
+ margin-bottom: 1.5rem;
123
+
124
+ &:focus {
125
+ border-color: var(--primary-color);
126
+ outline: none;
127
+ box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
128
+ }
129
+ }
130
+
131
+ .advanced-search-link {
132
+ margin-top: 1.5rem;
133
+ text-align: center;
134
+ padding-top: 1rem;
135
+ border-top: 1px solid var(--border-color);
136
+
137
+ a {
138
+ display: inline-block;
139
+ color: var(--primary-color);
140
+ font-size: 0.9rem;
141
+ text-decoration: none;
142
+ transition: color 0.2s ease;
143
+
144
+ &:hover {
145
+ color: var(--primary-color-dark);
146
+ text-decoration: underline;
147
+ }
148
+
149
+ &::after {
150
+ content: " →";
151
+ display: inline-block;
152
+ transition: transform 0.2s ease;
153
+ }
154
+
155
+ &:hover::after {
156
+ transform: translateX(3px);
157
+ }
158
+ }
159
+ }
160
+ }
161
+ }
162
+
163
+ @keyframes fadeInSearch {
164
+ from {
165
+ opacity: 0;
166
+ transform: scale(0.95);
167
+ }
168
+ to {
169
+ opacity: 1;
170
+ transform: scale(1);
171
+ }
172
+ }
173
+
174
+ /* Search page and results styling */
175
+ .search-page {
176
+ padding: 2rem 0;
177
+
178
+ h1 {
179
+ margin-bottom: 2rem;
180
+ }
181
+
182
+ .search-container {
183
+ margin-bottom: 2rem;
184
+
185
+ input[type="text"] {
186
+ width: 100%;
187
+ padding: 0.75rem 1rem;
188
+ font-size: 1.1rem;
189
+ border: 1px solid var(--border-color);
190
+ border-radius: 4px;
191
+ background-color: var(--bg-color);
192
+ color: var(--text-color);
193
+ margin-bottom: 1.5rem;
194
+
195
+ &:focus {
196
+ border-color: var(--primary-color);
197
+ outline: none;
198
+ box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
199
+ }
200
+ }
201
+ }
202
+
203
+ .search-instructions {
204
+ margin-bottom: 2rem;
205
+
206
+ kbd {
207
+ display: inline-block;
208
+ padding: 0.2rem 0.4rem;
209
+ font-size: 0.9rem;
210
+ background-color: var(--code-bg);
211
+ border: 1px solid var(--border-color);
212
+ border-radius: 3px;
213
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
214
+ }
215
+ }
216
+ }
217
+
218
+ /* Shared search results styling */
219
+ .search-results-container {
220
+ .search-message {
221
+ padding: 1rem;
222
+ color: var(--text-muted);
223
+ text-align: center;
224
+ font-style: italic;
225
+ }
226
+
227
+ .search-result {
228
+ margin-bottom: 1.5rem;
229
+ border-bottom: 1px solid var(--border-color);
230
+ padding-bottom: 1.5rem;
231
+
232
+ &:last-child {
233
+ border-bottom: none;
234
+ }
235
+
236
+ .search-result-link {
237
+ display: block;
238
+ color: var(--text-color);
239
+ text-decoration: none;
240
+
241
+ &:hover {
242
+ .search-result-title {
243
+ color: var(--primary-color);
244
+ }
245
+ }
246
+ }
247
+
248
+ .search-result-title {
249
+ font-size: 1.3rem;
250
+ margin: 0 0 0.5rem;
251
+ font-weight: 600;
252
+ transition: color 0.2s;
253
+ }
254
+
255
+ .search-result-meta {
256
+ display: flex;
257
+ gap: 1rem;
258
+ margin-bottom: 0.75rem;
259
+ font-size: 0.9rem;
260
+ color: var(--text-muted);
261
+ }
262
+
263
+ .search-result-excerpt {
264
+ font-size: 1rem;
265
+ line-height: 1.6;
266
+ color: var(--text-color-light);
267
+
268
+ mark {
269
+ background-color: rgba(var(--primary-color-rgb), 0.15);
270
+ color: var(--text-color);
271
+ padding: 0 0.2rem;
272
+ border-radius: 2px;
273
+ }
274
+ }
275
+ }
276
+ }
@@ -0,0 +1,95 @@
1
+ /*
2
+ * Social Sharing Buttons Styling
3
+ */
4
+
5
+ .social-sharing {
6
+ margin: 2rem 0;
7
+ padding: 1.5rem 0;
8
+ border-top: 1px solid var(--border-color);
9
+ border-bottom: 1px solid var(--border-color);
10
+
11
+ h3 {
12
+ margin-bottom: 1rem;
13
+ font-size: 1.2rem;
14
+ }
15
+
16
+ .share-buttons {
17
+ display: flex;
18
+ flex-wrap: wrap;
19
+ gap: 0.75rem;
20
+ list-style: none;
21
+ padding: 0;
22
+ margin: 0;
23
+
24
+ li {
25
+ margin: 0;
26
+ }
27
+
28
+ .share-button {
29
+ display: flex;
30
+ align-items: center;
31
+ gap: 0.5rem;
32
+ padding: 0.5rem 1rem;
33
+ border-radius: 30px;
34
+ text-decoration: none;
35
+ font-size: 0.9rem;
36
+ font-weight: 500;
37
+ transition: all 0.2s ease;
38
+ color: #fff;
39
+
40
+ svg {
41
+ width: 1rem;
42
+ height: 1rem;
43
+ fill: #fff;
44
+ }
45
+
46
+ &.twitter {
47
+ background-color: #1DA1F2;
48
+ &:hover { background-color: darken(#1DA1F2, 10%); }
49
+ }
50
+
51
+ &.facebook {
52
+ background-color: #4267B2;
53
+ &:hover { background-color: darken(#4267B2, 10%); }
54
+ }
55
+
56
+ &.linkedin {
57
+ background-color: #0077B5;
58
+ &:hover { background-color: darken(#0077B5, 10%); }
59
+ }
60
+
61
+ &.reddit {
62
+ background-color: #FF4500;
63
+ &:hover { background-color: darken(#FF4500, 10%); }
64
+ }
65
+
66
+ &.email {
67
+ background-color: #505050;
68
+ &:hover { background-color: darken(#505050, 10%); }
69
+ }
70
+
71
+ &.copy-link {
72
+ background-color: #27ae60;
73
+ &:hover { background-color: darken(#27ae60, 10%); }
74
+ }
75
+ }
76
+ }
77
+
78
+ @media (max-width: 576px) {
79
+ .share-buttons {
80
+ .share-button {
81
+ padding: 0.4rem 0.75rem;
82
+
83
+ span {
84
+ display: none;
85
+ }
86
+
87
+ svg {
88
+ width: 1.2rem;
89
+ height: 1.2rem;
90
+ margin: 0;
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
@@ -0,0 +1,193 @@
1
+ /* Table of Contents styles */
2
+ .table-of-contents {
3
+ background-color: $light-gray;
4
+ padding: $spacing-md;
5
+ margin-bottom: $spacing-lg;
6
+ border-radius: $border-radius;
7
+ border: 1px solid $border-color;
8
+
9
+ h2 {
10
+ margin-top: 0;
11
+ margin-bottom: $spacing-sm;
12
+ font-size: 1.2rem;
13
+ }
14
+
15
+ .toc {
16
+ margin-bottom: 0;
17
+ margin-left: 0;
18
+ padding-left: $spacing-sm;
19
+ list-style-type: none;
20
+
21
+ /* First level */
22
+ > li {
23
+ margin-bottom: $spacing-xs;
24
+ position: relative;
25
+
26
+ &::before {
27
+ content: "•";
28
+ position: absolute;
29
+ left: -$spacing-sm;
30
+ color: $primary-color;
31
+ }
32
+
33
+ > a {
34
+ font-weight: 500;
35
+ }
36
+ }
37
+
38
+ /* Nested TOC */
39
+ ul {
40
+ list-style-type: none;
41
+ padding-left: $spacing-sm;
42
+ margin-top: $spacing-xs;
43
+ margin-bottom: 0;
44
+
45
+ li {
46
+ margin-bottom: $spacing-xs;
47
+ position: relative;
48
+
49
+ &::before {
50
+ content: "◦";
51
+ position: absolute;
52
+ left: -$spacing-sm;
53
+ color: $dark-gray;
54
+ }
55
+
56
+ &:last-child {
57
+ margin-bottom: 0;
58
+ }
59
+ }
60
+ }
61
+
62
+ a {
63
+ color: $text-color;
64
+ text-decoration: none;
65
+ transition: $transition-base;
66
+ display: inline-block;
67
+ line-height: 1.4;
68
+
69
+ &:hover {
70
+ color: $primary-color;
71
+ text-decoration: underline;
72
+ }
73
+ }
74
+
75
+ /* Additional styles for TOC content */
76
+ .toc-level-2 {
77
+ font-size: 0.5rem;
78
+ margin-bottom: 8px;
79
+ }
80
+
81
+ .toc-level-3 {
82
+ font-size: 0.4rem;
83
+ margin-left: 12px;
84
+ margin-bottom: 6px;
85
+ }
86
+
87
+ .toc-level-4 {
88
+ font-size: 0.3rem;
89
+ margin-left: 18px;
90
+ margin-bottom: 4px;
91
+ color: lighten($dark-gray, 10%);
92
+ }
93
+ }
94
+
95
+ /* Make it sticky on larger screens */
96
+ @media (min-width: $on-laptop) {
97
+ &.sticky {
98
+ position: sticky;
99
+ top: 100px;
100
+ }
101
+ }
102
+ }
103
+
104
+ /* Collapsible TOC for mobile */
105
+ @media (max-width: $on-palm) {
106
+ .table-of-contents {
107
+ h2 {
108
+ cursor: pointer;
109
+ display: flex;
110
+ justify-content: space-between;
111
+ align-items: center;
112
+
113
+ &::after {
114
+ content: "+";
115
+ transition: transform 0.3s ease;
116
+ }
117
+
118
+ &.active::after {
119
+ transform: rotate(45deg);
120
+ }
121
+ }
122
+
123
+ .toc-content {
124
+ max-height: 0;
125
+ overflow: hidden;
126
+ transition: max-height 0.3s ease;
127
+
128
+ &.expanded {
129
+ max-height: 500px;
130
+ }
131
+ }
132
+ }
133
+ }
134
+
135
+ /* TOC highlighting for current section */
136
+ .toc-entry.active > a {
137
+ color: $primary-color;
138
+ font-weight: 600;
139
+ }
140
+
141
+ /* Floating sidebar TOC adjustments */
142
+ .floating-toc {
143
+ .toc {
144
+ font-size: 0.55rem;
145
+
146
+ a {
147
+ padding: 1px 0;
148
+ font-size: 0.55rem;
149
+ white-space: normal;
150
+ line-height: 1.1;
151
+ display: block;
152
+ border-left: 1px solid transparent;
153
+ padding-left: 5px;
154
+ margin-bottom: 2px;
155
+ color: $text-color; /* Changed from $secondary-color to $text-color for better visibility */
156
+ font-weight: 400;
157
+
158
+ }
159
+
160
+ .toc-level-2 > a {
161
+ font-weight: 500;
162
+ font-size: 0.55rem;
163
+ color: $text-color; /* Changed from $secondary-color to $text-color for better visibility */
164
+ }
165
+
166
+ .toc-level-3 > a {
167
+ font-size: 0.5rem;
168
+ padding-left: 7px;
169
+ color: $text-color; /* Changed from $secondary-color to $text-color for better visibility */
170
+ opacity: 0.9; /* Slightly more transparent for hierarchy */
171
+ }
172
+
173
+ ul {
174
+ margin-top: 1px;
175
+ margin-bottom: 4px;
176
+ }
177
+ }
178
+
179
+ /* Elegant heading style */
180
+ h2 {
181
+ margin-top: 0;
182
+ margin-bottom: $spacing-xs;
183
+ font-size: 0.6rem;
184
+ color: $primary-color; /* Changed from $secondary-color to $primary-color for better visibility and distinction */
185
+ text-transform: uppercase;
186
+ letter-spacing: 0.5px;
187
+ font-weight: 600;
188
+
189
+ &::after {
190
+ display: none;
191
+ }
192
+ }
193
+ }
@@ -0,0 +1,24 @@
1
+ ---
2
+ # This ensures Jekyll processes this file
3
+ ---
4
+
5
+ @import "variables";
6
+ @import "base";
7
+ @import "layout";
8
+ @import "typography";
9
+ @import "syntax-highlighting";
10
+ @import "components/header";
11
+ @import "components/footer";
12
+ @import "components/post";
13
+ @import "components/code";
14
+ @import "components/toc";
15
+ @import "components/homepage";
16
+ @import "components/pagination";
17
+ @import "components/related-posts";
18
+ @import "components/social-sharing";
19
+ @import "components/search";
20
+ @import "components/image";
21
+ @import "components/docs";
22
+ @import "utilities";
23
+ @import "responsive";
24
+ @import "dark-mode";
Binary file
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "Arsxy Theme",
3
+ "short_name": "Arsxy",
4
+ "icons": [
5
+ {
6
+ "src": "/assets/images/favicon/android-chrome-192x192.png",
7
+ "sizes": "192x192",
8
+ "type": "image/png"
9
+ },
10
+ {
11
+ "src": "/assets/images/favicon/android-chrome-512x512.png",
12
+ "sizes": "512x512",
13
+ "type": "image/png"
14
+ }
15
+ ],
16
+ "theme_color": "#3273dc",
17
+ "background_color": "#ffffff",
18
+ "display": "standalone"
19
+ }