@trimble-oss/modus-docs-hugo-theme 1.0.0-alpha3 → 1.0.0-alpha30

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. package/README.md +5 -1
  2. package/assets/{styles → css}/_article.scss +16 -11
  3. package/assets/{styles → css}/_autocomplete.scss +12 -12
  4. package/assets/{styles → css}/_cards.scss +4 -3
  5. package/assets/{styles → css}/_menu-right.scss +6 -5
  6. package/assets/{styles → css}/_mobile.scss +4 -4
  7. package/assets/css/_mq-forced-colors-active.scss +29 -0
  8. package/assets/css/_navbar-search.scss +54 -0
  9. package/assets/css/_navbar.scss +27 -0
  10. package/assets/{styles → css}/_scroll-to-top-btn.scss +5 -5
  11. package/assets/{styles → css}/_sidebar.scss +3 -11
  12. package/assets/{styles → css}/_skippy.scss +2 -2
  13. package/assets/css/_tables.scss +34 -0
  14. package/assets/{styles → css}/_theme-light.scss +1 -1
  15. package/assets/{styles → css}/_theme-toggle.scss +5 -11
  16. package/assets/{styles → css}/_was-this-page-helpful.scss +3 -3
  17. package/assets/{styles/styles.scss → css/modus-docs.scss} +5 -5
  18. package/assets/js/auto-complete.min.js +1 -1
  19. package/assets/js/search.min.js +1 -1
  20. package/assets/js/was-this-page-helpful.js +10 -3
  21. package/data/navbar_apps.yml +8 -4
  22. package/layouts/_default/_markup/render-heading.html +4 -4
  23. package/layouts/_default/_markup/render-link.html +3 -3
  24. package/layouts/_default/baseof.html +9 -4
  25. package/layouts/_default/home.html +3 -8
  26. package/layouts/_default/list.html +2 -7
  27. package/layouts/_default/redirect.html +1 -1
  28. package/layouts/_default/single.html +6 -11
  29. package/layouts/index.json +1 -1
  30. package/layouts/partials/analytics.html +3 -7
  31. package/layouts/partials/blog-brief.html +4 -4
  32. package/layouts/partials/blog-share.html +7 -7
  33. package/layouts/partials/col-sidebar-menu.html +22 -6
  34. package/layouts/partials/header.html +15 -4
  35. package/layouts/partials/icons/brands/codepen.svg +1 -1
  36. package/layouts/partials/icons/brands/facebook-square.svg +1 -1
  37. package/layouts/partials/icons/brands/github-alt.svg +1 -1
  38. package/layouts/partials/icons/brands/github.svg +1 -1
  39. package/layouts/partials/icons/brands/linkedin.svg +1 -1
  40. package/layouts/partials/icons/brands/vimeo-square.svg +1 -1
  41. package/layouts/partials/icons/modus-outlined/accessibility-circle.svg +1 -1
  42. package/layouts/partials/icons/modus-outlined/arrow-up.svg +1 -1
  43. package/layouts/partials/icons/modus-outlined/bar-graph-square.svg +1 -1
  44. package/layouts/partials/icons/modus-outlined/code.svg +3 -0
  45. package/layouts/partials/icons/modus-outlined/launch.svg +1 -1
  46. package/layouts/partials/icons/modus-outlined/menu.svg +1 -1
  47. package/layouts/partials/icons/modus-outlined/more-vertical.svg +1 -1
  48. package/layouts/partials/icons/modus-outlined/person-account.svg +1 -1
  49. package/layouts/partials/icons/modus-outlined/search.svg +1 -1
  50. package/layouts/partials/icons/modus-outlined/sync.svg +1 -1
  51. package/layouts/partials/icons/modus-outlined/thumbs-down.svg +1 -1
  52. package/layouts/partials/icons/modus-outlined/thumbs-up.svg +1 -1
  53. package/layouts/partials/icons/modus-outlined/web.svg +1 -1
  54. package/layouts/partials/icons/modus-solid/apps.svg +3 -0
  55. package/layouts/partials/icons/modus-solid/code.svg +3 -0
  56. package/layouts/partials/icons/modus-solid/email.svg +1 -1
  57. package/layouts/partials/icons/modus-solid/menu.svg +3 -0
  58. package/layouts/partials/icons/modus-solid/palette.svg +1 -1
  59. package/layouts/partials/icons/modus-solid/thumbs-down.svg +3 -0
  60. package/layouts/partials/icons/modus-solid/thumbs-up.svg +3 -0
  61. package/layouts/partials/icons/modus-solid/trimble-logo.svg +3 -0
  62. package/layouts/partials/icons/modus-solid/user-guide.svg +3 -0
  63. package/layouts/partials/icons/transportation/truck.svg +1 -1
  64. package/layouts/partials/logos/trimble.svg +1 -1
  65. package/layouts/partials/menu-right.html +3 -2
  66. package/layouts/partials/meta.html +31 -19
  67. package/layouts/partials/navbar-dropdown.html +2 -2
  68. package/layouts/partials/navbar-search.html +6 -6
  69. package/layouts/partials/navbar.html +19 -9
  70. package/layouts/partials/related-content.html +1 -1
  71. package/layouts/partials/skippy.html +4 -4
  72. package/layouts/partials/trimble-logo.html +1 -1
  73. package/layouts/partials/was-this-page-helpful.html +5 -3
  74. package/layouts/shortcodes/example.html +2 -2
  75. package/package.json +27 -16
  76. package/static/img/icons/check-circle-outlined.svg +3 -0
  77. package/static/img/icons/code.svg +3 -0
  78. package/static/img/icons/github.svg +3 -0
  79. package/static/img/icons/trimble.svg +4 -0
  80. package/static/img/icons/web-components.svg +3 -0
  81. package/static/img/trimble-logo.svg +5 -1
  82. package/assets/js/scroll-to-top.js +0 -33
  83. package/assets/styles/_col-sidebar.scss +0 -3
  84. package/assets/styles/_navbar-search.scss +0 -53
  85. package/assets/styles/_navbar.scss +0 -5
  86. package/assets/styles/_tables.scss +0 -5
  87. package/layouts/index.rss.xml +0 -49
  88. package/layouts/partials/col-sidebar.html +0 -28
  89. package/layouts/partials/icons/trimble-logo.svg +0 -1
  90. package/layouts/sitemap.xml +0 -8
  91. package/static/js/theme-toggle.js +0 -41
  92. package/assets/{styles → css}/_codefences-dark.scss +0 -0
  93. package/assets/{styles → css}/_codefences.scss +0 -0
  94. package/assets/{styles → css}/_font-open-sans.scss +0 -0
  95. package/assets/{styles → css}/_footer.scss +0 -0
  96. package/assets/{styles → css}/_javascript-disabled.scss +3 -3
  97. package/assets/{styles → css}/_list-js.scss +6 -6
  98. package/assets/{styles → css}/_news.scss +1 -1
  99. package/assets/{styles → css}/_onetrust-cookie-banner.scss +9 -9
  100. package/assets/{styles → css}/_posts.scss +2 -2
  101. /package/assets/{styles → css}/_print.scss +0 -0
  102. /package/assets/{styles → css}/_theme-dark.scss +0 -0
  103. /package/assets/{styles → css}/_utilities.scss +0 -0
  104. /package/assets/{styles → css}/_xxl.scss +0 -0
  105. /package/layouts/partials/{btn-theme-toggle.html → navbar-theme-toggle.html} +0 -0
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" {{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{- . -}}"{{ end }} viewBox="0 0 216 51"><path d="M74.862 16.979h8.883v4.241h.112c1.114-3.519 5.137-4.913 8.714-4.913v9.157a10.7 10.7 0 00-3.688-.781c-3.015 0-3.966.781-4.973 2.178V45.01h-9.048zm20.089 0h9.05V45.01h-9.05zm12.11 0h9.051v3.74h.111a9.424 9.424 0 017.99-4.412c2.737 0 5.472 1.728 5.64 4.412h.109a9.426 9.426 0 017.99-4.412c3.627 0 6.309 1.957 6.309 5.973v22.73h-9.048V25.184c0-1.5-.5-2.508-2.177-2.508a2.847 2.847 0 00-2.346 1.17l-.507.667v20.5h-9.045V25.184c0-1.5-.5-2.508-2.177-2.508a2.871 2.871 0 00-2.352 1.17l-.5.667v20.5h-9.051zm40.24-11.731h9.053v13.345h.116a8.332 8.332 0 015.467-2.29c6.263 0 9.608 6.254 9.608 14.348 0 6.42-2.677 14.689-10.272 14.689-3.522 0-5.812-1.673-7.6-4.358l-1.681 4.024h-4.693zm9.053 30.771c-.163 2.342 1.233 3.63 2.96 3.63 2.512 0 2.848-2.518 2.848-7.708v-2.12c0-5.584 0-8.491-2.788-8.491a4.035 4.035 0 00-2.515 1.122l-.5.495zm17.55-30.771h9.05V45.01h-9.05zm20.455 26.909c0 2.463.5 6.65 4.078 6.65a4.791 4.791 0 004.576-3.857l6.088 2.23a11.546 11.546 0 01-11.226 7.658c-8.659 0-12.567-6.982-12.567-14.739 0-7.934 4.134-14.634 12.454-14.634 8.716 0 11.731 7.485 11.731 14.8v1.9zm6.755-5.356c-.054-2.624-.276-5.642-3.407-5.642-2.567 0-3.348 3.018-3.348 5.642zM94.926 5.073H104v8.068h-9.074z" fill="currentColor"/><path d="M50.771 5.099h28.043v7.708H69.82v32.054H59.764V12.807h-8.993zM32.572 35.038a14.593 14.593 0 01-.516 1.739q-.087.235-.178.46c-.382.378-.654.608-.732.672a17.178 17.178 0 01-11.7 4.237l-3.877 2.1a19.8 19.8 0 0010.09-.413 19.374 19.374 0 007.124-3.96 19.727 19.727 0 004.64-5.911 22.025 22.025 0 00.9-2.035zM18.983 7.682c.136-.006.279-.008.42-.01.258-.008.514-.006.771 0a9.081 9.081 0 00-1.312.416l3.463 1.876a9.827 9.827 0 017.28 3.067c-.42.04-.857.1-1.3.171l5.862 3.176c-.013-.064-.02-.131-.034-.2a2.792 2.792 0 01.623.514l3.9 2.11c-.048-.148-.087-.293-.137-.442a22.183 22.183 0 00-1.436-3.283 17.847 17.847 0 00-2.3-3.184 21.85 21.85 0 00-2.438-2.314c-.031-.025-.167-.137-.34-.272a20.665 20.665 0 00-10.549-4.143c-.116-.008-.221-.01-.333-.016a17.973 17.973 0 00-3.865.105l-.229.038c-.551.078-1.03.167-1.417.257-.35.08-.676.164-.986.248l3.607 1.954c.25-.023.498-.057.75-.068zM3.798 31.338a18.109 18.109 0 01-1.038-3.762 20.006 20.006 0 01-.2-3.162 11.364 11.364 0 01.139-1.745 17.522 17.522 0 011.225-4.46v-5.135a18.81 18.81 0 00-1.729 2.777 20.059 20.059 0 00-2.023 6.408 13.835 13.835 0 00-.171 2.183 21.623 21.623 0 00.217 3.43 20.207 20.207 0 001.445 4.979 20.861 20.861 0 001.8 3.235 1.18 1.18 0 00.2.279c.084.12.178.239.266.358V31.03a5.798 5.798 0 00-.131.308zm29.425-9.291a7.784 7.784 0 01-.85 1.122 26.517 26.517 0 012.2 5.283c.2-.262.391-.527.564-.809a9.438 9.438 0 00.734-1.476 9.654 9.654 0 00.469-1.58 10.134 10.134 0 00.2-1.656 10.868 10.868 0 00-.071-1.711 11.487 11.487 0 00-.541-2.417l-.046-.129a7.027 7.027 0 00-1-1.8l-.136-.18-.589-.319a7.821 7.821 0 01-.934 5.672zM15.071 8.393a16.38 16.38 0 012.028.624 8.79 8.79 0 011.76-.925l-.626-.339a27.477 27.477 0 00-3.162.64zm23.251 23.534l12.279-6.648-11.952-6.471a19.532 19.532 0 01-.327 13.119zM21.431 10.035a7.462 7.462 0 00-1.413.338 28.8 28.8 0 015 3.611 24.159 24.159 0 013.281-.781L22.32 9.965a8.042 8.042 0 00-.889.07z" fill="currentColor"/><path d="M27.232 35.217A20.478 20.478 0 018.983 27.68a14.378 14.378 0 00-3.082 5.513 4.6 4.6 0 00-.1 1.766c.275.381.576.766.928 1.184a17.231 17.231 0 008.264 5.321 17.41 17.41 0 004.46.679l13.123-7.108a9.066 9.066 0 00.166-1.652 15.324 15.324 0 01-5.51 1.834zM9.329 23.5a40.33 40.33 0 015.27-4.321 9.895 9.895 0 01-.348-.853 8.029 8.029 0 01.6-6.952c.075-.123.163-.232.243-.349a9.319 9.319 0 00-3.894-.384 9.608 9.608 0 00-3.266 7.322 11.841 11.841 0 00.693 3.918 13.957 13.957 0 00.702 1.619zm7.337-6.019c.035.1.08.189.117.284a40.837 40.837 0 015.47-2.772 24.243 24.243 0 00-4.679-3 5.142 5.142 0 00-.538.715 5.52 5.52 0 00-.37 4.778zm9.979 5.898a6.872 6.872 0 002.384-.779 32.135 32.135 0 00-4.634-5.707c-.306.112-.612.228-.922.355a36.858 36.858 0 00-5.365 2.723 9.725 9.725 0 008.537 3.408zM9.665 7.888a19.768 19.768 0 014.961-2.095l-10.7-5.8v13.081a19.816 19.816 0 015.739-5.186zm21.373 12.827a5.516 5.516 0 00.372-4.779c-.05-.147-.115-.289-.176-.432a15.972 15.972 0 00-4.075.537 35 35 0 013.804 4.782c.02-.037.053-.07.075-.108z" fill="currentColor"/><path d="M26.883 32.685a12.352 12.352 0 005.551-2.151 22.653 22.653 0 00-2.122-5.718 9.443 9.443 0 01-3.309 1.1 12.4 12.4 0 01-11.026-4.541 38.391 38.391 0 00-5.249 4.39 17.78 17.78 0 0016.155 6.92zm-19.4-7.217a16.386 16.386 0 01-1.27-2.741 13.6 13.6 0 01-.47-7.809 16.158 16.158 0 00-1.26 2.085c-.216.427-.393.823-.556 1.2V31.03a20.35 20.35 0 013.556-5.562zm28.557 5.247c-.263.3-.544.583-.833.855q.052.48.077.945a18.343 18.343 0 00.756-1.8zM4.763 37.793c-.309-.369-.58-.718-.84-1.066v13.828l11.649-6.31a23.43 23.43 0 01-1.293-.321 19.865 19.865 0 01-9.516-6.131zM39.471 42.2a3.131 3.131 0 113.14 3.066 3.095 3.095 0 01-3.14-3.066zm.6 0a2.538 2.538 0 102.544-2.433 2.482 2.482 0 00-2.548 2.433zm4.107 1.719h-.6l-1.005-1.574h-.611v1.574h-.519v-3.412h1.53a1.719 1.719 0 01.854.165.841.841 0 01.386.732c0 .677-.478.926-1.1.941zm-1.648-2c.492 0 1.168.087 1.168-.526 0-.44-.386-.5-.827-.5h-.907v1.03zm166.893.281a3.131 3.131 0 113.14 3.066 3.095 3.095 0 01-3.14-3.066zm.6 0a2.538 2.538 0 102.544-2.433 2.482 2.482 0 00-2.548 2.433zm4.107 1.719h-.6l-1-1.574h-.611v1.574h-.518v-3.412h1.531a1.719 1.719 0 01.854.165.841.841 0 01.386.732c0 .677-.478.926-1.1.941zm-1.648-2c.492 0 1.168.087 1.168-.526 0-.44-.387-.5-.827-.5h-.907v1.03z" fill="currentColor"/></svg>
@@ -1,8 +0,0 @@
1
- {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
2
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
3
- {{- range .Data.Pages -}}{{ if ne .Params.sitemap_exclude true }}
4
- <url><loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
5
- <lastmod>{{ safeHTML (.Lastmod.Format "2006-01-02T15:04:05-07:00") }}</lastmod>{{ end }}
6
- </url>{{- end -}}
7
- {{- end -}}
8
- </urlset>
@@ -1,41 +0,0 @@
1
- // script adapted from Adam Argyle's tutorial: https://web.dev/building-a-theme-switch-component/
2
-
3
- const storageKey = 'theme-preference';
4
-
5
- const onClick = () => {
6
- theme.value = theme.value === 'light' ? 'dark' : 'light';
7
-
8
- setPreference();
9
- };
10
-
11
- const getColorPreference = () => {
12
- if (localStorage.getItem(storageKey)) return localStorage.getItem(storageKey);
13
- else return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
14
- };
15
-
16
- const setPreference = () => {
17
- localStorage.setItem(storageKey, theme.value);
18
- reflectPreference();
19
- };
20
-
21
- const reflectPreference = () => {
22
- document.firstElementChild.setAttribute('data-bs-theme', theme.value);
23
-
24
- document.querySelector('#theme-toggle')?.setAttribute('aria-label', theme.value);
25
- };
26
-
27
- const theme = {
28
- value: getColorPreference(),
29
- };
30
-
31
- reflectPreference();
32
-
33
- window.onload = () => {
34
- reflectPreference();
35
- document.querySelector('#theme-toggle').addEventListener('click', onClick);
36
- };
37
-
38
- window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', ({ matches: isDark }) => {
39
- theme.value = isDark ? 'dark' : 'light';
40
- setPreference();
41
- });
File without changes
File without changes
File without changes
File without changes
@@ -1,7 +1,7 @@
1
1
  .no-js input,
2
2
  .no-js a[data-toggle] {
3
- pointer-events: none !important;
4
3
  opacity: 0.65;
4
+ pointer-events: none !important;
5
5
  }
6
6
 
7
7
  .no-js nav.navbar {
@@ -9,12 +9,12 @@
9
9
  }
10
10
 
11
11
  .no-js body::before {
12
- height: 32px;
13
12
  background-color: #e0e1e9;
14
- text-align: center;
15
13
  content: "⚠️ JavaScript is disabled. This site requires JavaScript to be enabled ⚠️";
16
14
  display: block;
15
+ height: 32px;
17
16
  position: fixed;
17
+ text-align: center;
18
18
  top: 0;
19
19
  width: 100%;
20
20
  z-index: 1;
@@ -1,13 +1,13 @@
1
1
  .list:empty::before {
2
+ background-color: rgba(133, 133, 133, 0.1);
3
+ border-radius: 0.5rem;
4
+ content: "Nothing found, try searching again.";
2
5
  display: block;
3
- width: 100%;
4
- padding: 100px 2rem;
5
- margin-right: 15px;
6
6
  margin-left: 15px;
7
+ margin-right: 15px;
8
+ padding: 100px 2rem;
7
9
  text-align: center;
8
- content: "Nothing found, try searching again.";
9
- background-color: rgba(133, 133, 133, 0.1);
10
- border-radius: 0.5rem;
10
+ width: 100%;
11
11
  }
12
12
 
13
13
  [data-bs-theme="dark"] {
@@ -1,6 +1,6 @@
1
1
  body[data-url^="/news/"] header {
2
2
  aspect-ratio: 4 / 1;
3
- background-size: cover;
4
3
  background-position: center;
4
+ background-size: cover;
5
5
  min-height: 200px;
6
6
  }
@@ -16,25 +16,25 @@
16
16
  #onetrust-accept-btn-handler {
17
17
  background-color: #0063a3 !important;
18
18
  border-color: #0063a3 !important;
19
- padding: 0.1875rem 1rem !important;
20
19
  font-size: 0.8rem !important;
21
20
  font-weight: 600 !important;
22
- user-select: none !important;
23
21
  line-height: 1.75 !important;
22
+ padding: 0.1875rem 1rem !important;
24
23
  text-transform: lowercase !important;
24
+ user-select: none !important;
25
25
  }
26
26
 
27
27
  /** 'Cookie Settings' button **/
28
28
  #onetrust-pc-btn-handler {
29
- color: #0063a3 !important;
30
29
  border: 1px solid #0063a3 !important;
30
+ color: #0063a3 !important;
31
31
  font-size: 0.8rem !important;
32
32
  font-weight: 600 !important;
33
- padding: 0.1875rem 1rem !important;
34
- user-select: none !important;
35
33
  line-height: 1.75 !important;
34
+ padding: 0.1875rem 1rem !important;
36
35
  text-decoration: none !important;
37
36
  text-transform: lowercase !important;
37
+ user-select: none !important;
38
38
  }
39
39
 
40
40
  /** capitalize first letter of button **/
@@ -57,9 +57,9 @@
57
57
 
58
58
  /* stylelint-disable-next-line */
59
59
  #onetrust-banner-sdk.otFlat {
60
- max-width: 998px;
61
60
  margin-left: auto !important;
62
61
  margin-right: auto !important;
62
+ max-width: 998px;
63
63
  overflow-y: hidden !important;
64
64
  }
65
65
 
@@ -87,8 +87,8 @@
87
87
  }
88
88
 
89
89
  .ot-table-header {
90
- position: static !important;
91
90
  border-bottom-width: 2px !important;
91
+ position: static !important;
92
92
  }
93
93
 
94
94
  #ot-sdk-cookie-policy-v2 table,
@@ -140,17 +140,17 @@
140
140
 
141
141
  .ot-acc-txt,
142
142
  .ot-acc-txt p {
143
- color: #252a2e !important;
144
143
  background-color: #f1f1f6 !important;
144
+ color: #252a2e !important;
145
145
  }
146
146
 
147
147
  #ot-sdk-btn {
148
148
  border-color: #0063a3 !important;
149
149
  font-size: 14px !important;
150
+ line-height: 1.75 !important;
150
151
  padding: 0.1875rem 1rem !important;
151
152
  text-transform: lowercase;
152
153
  user-select: none !important;
153
- line-height: 1.75 !important;
154
154
  }
155
155
 
156
156
  #ot-sdk-btn::first-letter {
@@ -1,11 +1,11 @@
1
1
  // blog posts
2
2
  header.header-blog {
3
- background-size: cover;
4
- min-height: 90px;
5
3
  aspect-ratio: 21/9;
6
4
  background-position: center;
5
+ background-size: cover;
7
6
  border-radius: 8px;
8
7
  max-height: 600px;
8
+ min-height: 90px;
9
9
  }
10
10
 
11
11
  .share svg {
File without changes
File without changes
File without changes
File without changes