appscms-tools-theme 4.8.1 → 4.8.2

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.
@@ -2135,7 +2135,246 @@ select:focus {
2135
2135
  font-size: 12px;
2136
2136
  }
2137
2137
  }
2138
+ .mobile-search-bar {
2139
+ position: relative;
2140
+ height: 100px;
2141
+ width: 100%;
2142
+ display: none;
2143
+ }
2144
+
2145
+ .mobile-search-container {
2146
+ display: flex;
2147
+ border: 1px solid #ccc;
2148
+ border-radius: 5px;
2149
+ overflow: hidden;
2150
+ height: 38px;
2151
+ margin: 20px 0px 20px 0px;
2152
+ background-color: white;
2153
+ position: relative;
2154
+ }
2155
+
2156
+ .mobile-search-input {
2157
+ flex: 1;
2158
+ border: none;
2159
+ padding: 12px 16px;
2160
+ font-size: 16px;
2161
+ outline: none;
2162
+ }
2163
+
2164
+ .mobile-search-input::placeholder {
2165
+ color: #888;
2166
+ }
2167
+
2168
+ .mobile-search-button {
2169
+ background-color: #000;
2170
+ border: none;
2171
+ padding: 0 16px;
2172
+ display: flex;
2173
+ align-items: center;
2174
+ justify-content: center;
2175
+ cursor: pointer;
2176
+ outline: none;
2177
+ }
2178
+
2179
+ .mobile-search-button svg {
2180
+ /* fill: #fff; */
2181
+ height: 20px;
2182
+ }
2183
+
2184
+ .mobile-search-button:active {
2185
+ background-color: #555;
2186
+ }
2187
+
2188
+ .mobile-nav-search {
2189
+ position: relative;
2190
+ }
2191
+
2192
+ .mobile-result-item {
2193
+ padding: 9px 12px;
2194
+ }
2195
+
2196
+ .mobile-result-item a {
2197
+ color: #222325;
2198
+ }
2199
+
2200
+ .mobile-searchbarResults {
2201
+ background-color: #fff;
2202
+ border: 1px solid #e4e5e7;
2203
+ border-radius: 6px;
2204
+ -webkit-box-shadow: 0 17px 58px rgba(0, 0, 0, 0.08);
2205
+ box-shadow: 0 17px 58px rgba(0, 0, 0, 0.08);
2206
+ -webkit-box-sizing: border-box;
2207
+ box-sizing: border-box;
2208
+ color: #74767e;
2209
+ cursor: default;
2210
+ margin-top: 8px;
2211
+ padding: 12px;
2212
+ position: fixed;
2213
+ margin-top: 42px;
2214
+ width: 244px;
2215
+ height: 400px;
2216
+ overflow-y: scroll;
2217
+ z-index: 101;
2218
+ display: none;
2219
+ }
2220
+
2221
+ .scroll-container {
2222
+ display: flex;
2223
+ align-items: center;
2224
+ background-color: #333;
2225
+ position: relative;
2226
+ }
2227
+
2228
+ .scroll-left,
2229
+ .scroll-right {
2230
+ background-color: #4456f6f7;
2231
+ color: white;
2232
+ border: none;
2233
+ height: 40px;
2234
+ cursor: pointer;
2235
+ position: absolute;
2236
+ width: 40px;
2237
+ top: 50%;
2238
+ z-index: 100;
2239
+ transform: translateY(-50%);
2240
+ }
2241
+
2242
+ .scroll-left {
2243
+ left: 0;
2244
+ }
2245
+
2246
+ .scroll-right {
2247
+ right: 0;
2248
+ }
2249
+
2250
+ .scroll-left:hover,
2251
+ .scroll-right:hover {
2252
+ background-color: #8691f6f7;
2253
+ }
2138
2254
 
2255
+ .navbar {
2256
+ /* overflow-x: auto; */
2257
+ white-space: nowrap;
2258
+ flex-grow: 1;
2259
+ scroll-behavior: smooth;
2260
+ display: flex;
2261
+ }
2262
+
2263
+ .navbar ul {
2264
+ padding: 0;
2265
+ margin: 0;
2266
+ display: flex;
2267
+ list-style-type: none;
2268
+ }
2269
+
2270
+ .navbar li {
2271
+ display: inline;
2272
+ }
2273
+
2274
+ .search-container {
2275
+ display: flex;
2276
+ border: 1px solid #ccc;
2277
+ border-radius: 5px;
2278
+ overflow: hidden;
2279
+ height: 38px;
2280
+ width: 400px;
2281
+ background-color: white;
2282
+ position: relative;
2283
+ }
2284
+
2285
+ .search-input {
2286
+ flex: 1;
2287
+ border: none;
2288
+ padding: 12px 16px;
2289
+ font-size: 16px;
2290
+ outline: none;
2291
+ }
2292
+
2293
+ .search-input::placeholder {
2294
+ color: #888;
2295
+ }
2296
+
2297
+ .search-button {
2298
+ background-color: #1a2ee7;
2299
+ border: none;
2300
+ padding: 0 16px;
2301
+ display: flex;
2302
+ align-items: center;
2303
+ justify-content: center;
2304
+ cursor: pointer;
2305
+ outline: none;
2306
+ }
2307
+
2308
+ .search-button svg {
2309
+ /* fill: #fff; */
2310
+ height: 20px;
2311
+ }
2312
+
2313
+ .search-button:active {
2314
+ background-color: #555;
2315
+ }
2316
+ .nav-search {
2317
+ position: relative;
2318
+ }
2319
+ .result-item {
2320
+ padding: 9px 12px;
2321
+ }
2322
+ .result-item a {
2323
+ color: #222325;
2324
+ }
2325
+ .searchbarResults {
2326
+ overflow: scroll;
2327
+ height: 60vh;
2328
+ background-color: #fff;
2329
+ border: 1px solid #e4e5e7;
2330
+ border-radius: 6px;
2331
+ -webkit-box-shadow: 0 17px 58px rgba(0, 0, 0, 0.08);
2332
+ box-shadow: 0 17px 58px rgba(0, 0, 0, 0.08);
2333
+ -webkit-box-sizing: border-box;
2334
+ box-sizing: border-box;
2335
+ color: #74767e;
2336
+ cursor: default;
2337
+ margin-top: 8px;
2338
+ padding: 12px;
2339
+ position: absolute;
2340
+ width: 100%;
2341
+ z-index: 101;
2342
+ display: none;
2343
+ }
2344
+
2345
+ .modal1 {
2346
+ display: none;
2347
+ position: fixed;
2348
+ z-index: 1000;
2349
+ left: 0;
2350
+ top: 0;
2351
+ width: 100%;
2352
+ height: 100%;
2353
+ overflow: auto;
2354
+ background-color: rgba(59, 58, 58, 0.9);
2355
+ }
2356
+ .modal1-content1 {
2357
+ margin: auto;
2358
+ display: block;
2359
+ width: 80%;
2360
+ max-width: 800px;
2361
+ margin-top: 20px;
2362
+ }
2363
+ .modal1-body img {
2364
+ width: 100%;
2365
+ height: auto;
2366
+ }
2367
+ .close1 {
2368
+ position: absolute;
2369
+ top: 10px;
2370
+ right: 10px;
2371
+ font-size: 24px;
2372
+ color: #fff;
2373
+ cursor: pointer;
2374
+ }
2375
+ .close1:hover {
2376
+ color: #ccc;
2377
+ }
2139
2378
  /* Large devices (desktops) */
2140
2379
  @media (min-width: 992px) and (max-width: 1199.98px) {
2141
2380
  /* Insert CSS code here */
@@ -0,0 +1,49 @@
1
+ function openModal1(imageSrc) {
2
+ var modal1 = document.getElementById("imageModal1");
3
+ var modal1Img = document.getElementById("modal1Image");
4
+ modal1.style.display = "block";
5
+ modal1Img.src = imageSrc;
6
+ }
7
+ function closeModal1() {
8
+ var modal1 = document.getElementById("imageModal1");
9
+ modal1.style.display = "none";
10
+ }
11
+ document.addEventListener("click", function (event) {
12
+ var modal1 = document.getElementById("imageModal1");
13
+ if (event.target === modal1) {
14
+ closeModal1();
15
+ }
16
+ });
17
+ const carousel = document.querySelector(".carousel-inner"),
18
+ firstImg = carousel.querySelectorAll("img")[0],
19
+ arrowIcons = document.querySelectorAll(".wrapper i");
20
+ const numImages = carousel.querySelectorAll("img").length;
21
+ const isMobile = window.matchMedia("(max-width: 767px)").matches; // Check if screen width is less than or equal to 767px
22
+ if (numImages > 3) {
23
+ arrowIcons[1].style.display = "block";
24
+ } else {
25
+ arrowIcons[0].style.display = "none";
26
+ arrowIcons[1].style.display = "none";
27
+ }
28
+ let isDragStart = false,
29
+ isDragging = false,
30
+ prevPageX,
31
+ prevScrollLeft,
32
+ positionDiff;
33
+ const showHideIcons = () => {
34
+ let scrollWidth = carousel.scrollWidth - carousel.clientWidth; // getting max scrollable width
35
+ arrowIcons[0].style.display = carousel.scrollLeft == 0 ? "none" : "block";
36
+ arrowIcons[1].style.display =
37
+ carousel.scrollLeft == scrollWidth ? "none" : "block";
38
+ };
39
+ arrowIcons.forEach((icon) => {
40
+ icon.addEventListener("click", () => {
41
+ let firstImgWidth = firstImg.clientWidth + 40;
42
+ const scrollAmount = icon.id === "left" ? -firstImgWidth : firstImgWidth;
43
+ carousel.scrollBy({
44
+ left: scrollAmount,
45
+ behavior: "smooth",
46
+ });
47
+ setTimeout(() => showHideIcons(), 60); // calling showHideIcons after 60ms
48
+ });
49
+ });
@@ -129,48 +129,6 @@ if ("{{ site.removeBootstrapJs }}" === "true") {
129
129
  }
130
130
  }
131
131
 
132
- // document.querySelector('.scroll-left').addEventListener('click', function() {
133
- // const toolbarList = document.querySelector('.appscms-toolbar-list');
134
- // toolbarList.scrollBy({
135
- // left: -100,
136
- // behavior: 'smooth'
137
- // });
138
- // updateButtonStatus(toolbarList);
139
- // });
140
-
141
- // document.querySelector('.scroll-right').addEventListener('click', function() {
142
- // const toolbarList = document.querySelector('.appscms-toolbar-list');
143
- // toolbarList.scrollBy({
144
- // left: 100,
145
- // behavior: 'smooth'
146
- // });
147
- // updateButtonStatus(toolbarList);
148
- // });
149
-
150
- // function updateButtonStatus(toolbarList) {
151
- // const scrollLeft = toolbarList.scrollLeft;
152
- // const scrollWidth = toolbarList.scrollWidth;
153
- // const clientWidth = toolbarList.clientWidth;
154
-
155
- // const scrollRightButton = document.querySelector('.scroll-right');
156
- // const scrollLeftButton = document.querySelector('.scroll-left');
157
-
158
- // if (scrollLeft === 0) {
159
- // scrollLeftButton.disabled = true;
160
- // } else {
161
- // scrollLeftButton.disabled = false;
162
- // }
163
-
164
- // if (scrollLeft + clientWidth >= scrollWidth) {
165
- // scrollRightButton.disabled = true;
166
- // } else {
167
- // scrollRightButton.disabled = false;
168
- // }
169
- // }
170
-
171
- // // Initial button status update
172
- // updateButtonStatus(document.querySelector('.appscms-toolbar-list'));
173
-
174
132
  document.addEventListener("DOMContentLoaded", function() {
175
133
  const downloadButton = document.getElementById("download-button");
176
134
 
@@ -299,10 +257,35 @@ if ("{{ site.navigationSearch }}" === "true" ) {
299
257
  mobileResultsContainer.style.display = 'none';
300
258
  }
301
259
  }
302
-
303
-
304
260
  });
305
-
306
-
261
+ }
262
+ document.addEventListener("DOMContentLoaded", function () {
263
+ const scrollContainer = document.querySelector(".appscms-toolbar-list");
264
+ const scrollLeft = document.querySelector(".scroll-left");
265
+ const scrollRight = document.querySelector(".scroll-right");
266
+
267
+ function updateScrollButtons() {
268
+ scrollLeft.style.display =
269
+ scrollContainer.scrollLeft > 0 ? "block" : "none";
270
+ scrollRight.style.display =
271
+ scrollContainer.scrollWidth >
272
+ scrollContainer.clientWidth + scrollContainer.scrollLeft
273
+ ? "block"
274
+ : "none";
275
+ }
276
+
277
+ scrollLeft.addEventListener("click", function () {
278
+ scrollContainer.scrollLeft -= 120; // Adjust this value as needed
279
+ updateScrollButtons();
280
+ });
281
+
282
+ scrollRight.addEventListener("click", function () {
283
+ scrollContainer.scrollLeft += 120; // Adjust this value as needed
284
+ updateScrollButtons();
285
+ });
286
+
287
+ scrollContainer.addEventListener("scroll", updateScrollButtons);
307
288
 
308
- }
289
+ // Initial check to hide buttons if necessary
290
+ updateScrollButtons();
291
+ });
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.1
4
+ version: 4.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-03 00:00:00.000000000 Z
11
+ date: 2024-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -528,6 +528,7 @@ files:
528
528
  - assets/js/adBlocker.js
529
529
  - assets/js/ads.js
530
530
  - assets/js/append-div.js
531
+ - assets/js/appscms-infographics.js
531
532
  - assets/js/appscms-search.js
532
533
  - assets/js/appscms-theme.js
533
534
  - assets/js/batch.js