@trimble-oss/modus-docs-hugo-theme 1.0.0-alpha13 → 1.0.0-alpha14

Sign up to get free protection for your applications and to get access to all the features.
@@ -38,7 +38,7 @@
38
38
  width: 0;
39
39
  }
40
40
 
41
- .collapsing {
41
+ #sidebar.collapsing {
42
42
  transition: none !important;
43
43
  }
44
44
  }
@@ -48,11 +48,11 @@
48
48
  }
49
49
 
50
50
  .row-main {
51
- height: calc(100dvh - 66px);
51
+ min-height: calc(100dvh - 66px);
52
52
  }
53
53
 
54
54
  #sidebar.collapsing {
55
- transition: none;
55
+ transition: none !important;
56
56
  }
57
57
 
58
58
  #sidebar.collapsing + div,
@@ -4,30 +4,30 @@
4
4
  * Licensed under MIT
5
5
  */
6
6
 
7
- let target = document.querySelector('footer');
7
+ const ScrollToTop = (() => {
8
+ const target = document.querySelector('footer');
9
+ const scrollToTopBtn = document.querySelector('.btn-to-top');
10
+ const rootElement = document.documentElement;
8
11
 
9
- let scrollToTopBtn = document.querySelector('.btn-to-top');
10
- let rootElement = document.documentElement;
11
-
12
- function callback(entries, observer) {
13
- entries.forEach((entry) => {
14
- window.onscroll = function (e) {
12
+ function callback(entries, observer) {
13
+ entries.forEach((entry) => {
15
14
  if (entry.isIntersecting) {
16
15
  scrollToTopBtn.classList.add('btn-to-top-show');
17
16
  } else {
18
17
  scrollToTopBtn.classList.remove('btn-to-top-show');
19
18
  }
20
- };
21
- });
22
- }
19
+ });
20
+ }
21
+
22
+ function scrollToTop() {
23
+ rootElement.scrollTo({
24
+ top: 0,
25
+ behavior: 'smooth',
26
+ });
27
+ }
23
28
 
24
- function scrollToTop() {
25
- rootElement.scrollTo({
26
- top: 0,
27
- behavior: 'smooth',
28
- });
29
- }
30
- scrollToTopBtn.addEventListener('click', scrollToTop);
29
+ scrollToTopBtn.addEventListener('click', scrollToTop);
31
30
 
32
- const observer = new IntersectionObserver(callback);
33
- observer.observe(target);
31
+ const observer = new IntersectionObserver(callback);
32
+ observer.observe(target);
33
+ })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trimble-oss/modus-docs-hugo-theme",
3
- "version": "1.0.0-alpha13",
3
+ "version": "1.0.0-alpha14",
4
4
  "description": "A Documentation theme for Hugo built by Trimble",
5
5
  "homepage": "https://github.com/trimble-oss/modus-docs-hugo-theme",
6
6
  "bugs": {
@@ -26,21 +26,21 @@
26
26
  "test": "npm run lint-css && npm run lint-html && npm run lint-js"
27
27
  },
28
28
  "dependencies": {
29
- "@trimble-oss/modus-bootstrap": "2.0.0-alpha12",
30
- "@trimble-oss/modus-icons": "1.7.0"
29
+ "@trimble-oss/modus-bootstrap": "2.0.0-alpha15",
30
+ "@trimble-oss/modus-icons": "1.8.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "autoprefixer": "10.4.16",
34
- "eslint": "8.53.0",
35
- "eslint-config-prettier": "9.0.0",
34
+ "eslint": "8.55.0",
35
+ "eslint-config-prettier": "9.1.0",
36
36
  "htmlhint": "1.1.4",
37
37
  "hugo-bin": "0.116.4",
38
- "postcss": "8.4.31",
39
- "postcss-cli": "10.1.0",
40
- "prettier": "3.0.3",
41
- "stylelint": "15.11.0",
42
- "stylelint-config-standard-scss": "11.1.0",
43
- "stylelint-order": "6.0.3"
38
+ "postcss": "8.4.32",
39
+ "postcss-cli": "11.0.0",
40
+ "prettier": "3.1.1",
41
+ "stylelint": "16.0.2",
42
+ "stylelint-config-standard-scss": "12.0.0",
43
+ "stylelint-order": "6.0.4"
44
44
  },
45
45
  "hugo-bin": {
46
46
  "buildTags": "extended"