@trimble-oss/modus-docs-hugo-theme 1.0.0-alpha15 → 1.0.0-alpha16

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,6 +15,18 @@
15
15
 
16
16
  <div class="col col-auto col-12 col-main border-start p-0 overflow-x-hidden">
17
17
 
18
+ <script>
19
+ function _calculateScrollbarWidth() {
20
+ document.documentElement.style.setProperty('--scrollbar-width', (window.innerWidth - document.documentElement.clientWidth) + "px");
21
+ }
22
+ // recalculate on resize
23
+ window.addEventListener('resize', _calculateScrollbarWidth, false);
24
+ // recalculate on dom load
25
+ document.addEventListener('DOMContentLoaded', _calculateScrollbarWidth, false);
26
+ // recalculate on load (assets loaded as well)
27
+ window.addEventListener('load', _calculateScrollbarWidth);
28
+ </script>
29
+
18
30
  <main id="main" class="container">
19
31
 
20
32
  {{ .Content }}
@@ -28,4 +40,4 @@
28
40
 
29
41
  </div>
30
42
  </div>
31
- {{- end -}}
43
+ {{- end -}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trimble-oss/modus-docs-hugo-theme",
3
- "version": "1.0.0-alpha15",
3
+ "version": "1.0.0-alpha16",
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,19 +26,19 @@
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-alpha15",
30
- "@trimble-oss/modus-icons": "1.8.0"
29
+ "@trimble-oss/modus-bootstrap": "2.0.0-alpha17",
30
+ "@trimble-oss/modus-icons": "1.9.0"
31
31
  },
32
32
  "devDependencies": {
33
- "autoprefixer": "10.4.16",
33
+ "autoprefixer": "10.4.17",
34
34
  "eslint": "8.56.0",
35
35
  "eslint-config-prettier": "9.1.0",
36
36
  "htmlhint": "1.1.4",
37
- "hugo-bin": "0.117.1",
37
+ "hugo-bin": "0.118.1",
38
38
  "postcss": "8.4.33",
39
39
  "postcss-cli": "11.0.0",
40
- "prettier": "3.1.1",
41
- "stylelint": "16.1.0",
40
+ "prettier": "3.2.4",
41
+ "stylelint": "16.2.0",
42
42
  "stylelint-config-standard-scss": "13.0.0",
43
43
  "stylelint-order": "6.0.4"
44
44
  },