@trimble-oss/modus-docs-hugo-theme 1.0.0-alpha10 → 1.0.0-alpha12

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.
package/README.md CHANGED
@@ -1,8 +1,12 @@
1
1
  # Modus Docs Hugo Theme (Experimental)
2
2
 
3
+ [![LICENSE](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://raw.githubusercontent.com/trimble-oss/modus-docs-hugo-theme/main/LICENSE)
4
+ [![GitHub Super-Linter](https://github.com/trimble-oss/modus-docs-hugo-theme/workflows/Lint%20Code%20Base/badge.svg)](https://github.com/marketplace/actions/super-linter)
5
+ [![npm Version](https://img.shields.io/npm/v/@trimble-oss/modus-docs-hugo-theme)](https://www.npmjs.com/package/@trimble-oss/modus-docs-hugo-theme)
6
+
3
7
  A documentation theme for Hugo.
4
8
 
5
- Status: Alpha. This theme is currently under development and is not yet ready for production use.
9
+ **Status: Alpha. This theme is currently under development.**
6
10
 
7
11
  ## Installation
8
12
 
@@ -33,17 +33,17 @@ header {
33
33
  // external links have an icon
34
34
  .menu-right a[href^="http"]::after,
35
35
  article a:not(.stretched-link)[href^="https"]::after {
36
- content: "";
37
- width: 12px;
38
- height: 12px;
39
- margin-left: 4px;
40
- margin-bottom: -1px;
41
36
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.78 19.78H4.22V4.22h6.67c.61 0 1.11-.5 1.11-1.11C12 2.5 11.5 2 10.89 2H3c-.55 0-1 .45-1 1v18c0 .55.45 1 1 1h18c.55 0 1-.45 1-1v-7.89c0-.61-.5-1.11-1.11-1.11-.61 0-1.11.5-1.11 1.11v6.67ZM14.22 3.11c0 .61.5 1.11 1.11 1.11h2.88L8.07 14.36c-.43.43-.43 1.13 0 1.57.43.43 1.13.43 1.57 0L19.78 5.79v2.88c0 .61.5 1.11 1.11 1.11.61 0 1.11-.5 1.11-1.11V3c0-.55-.45-1-1-1h-5.67c-.61 0-1.11.5-1.11 1.11Z'/%3E%3C/svg%3E");
42
37
  background-position: bottom;
43
38
  background-repeat: no-repeat;
44
39
  background-size: contain;
40
+ content: "";
45
41
  display: inline-block;
42
+ height: 12px;
43
+ margin-bottom: -1px;
44
+ margin-left: 4px;
46
45
  opacity: 0.7;
46
+ width: 12px;
47
47
  }
48
48
 
49
49
  main .sticky-offset {
@@ -53,20 +53,20 @@ main .sticky-offset {
53
53
  // offsets the anchors to adjust for the fixed navbar
54
54
  article h2:target::before,
55
55
  article h3:target::before {
56
- display: block;
57
56
  content: " ";
57
+ display: block;
58
58
  height: 80px;
59
59
  margin-top: -80px;
60
60
  visibility: hidden;
61
61
  }
62
62
 
63
63
  #main::before {
64
- display: block;
65
64
  content: " ";
65
+ display: block;
66
66
  height: 80px;
67
67
  margin-top: -80px;
68
- visibility: hidden;
69
68
  top: 80px;
69
+ visibility: hidden;
70
70
  }
71
71
 
72
72
  // anchors # for deep links within docs
@@ -77,8 +77,8 @@ a.header-link {
77
77
 
78
78
  a.header-link::after {
79
79
  content: "#";
80
- min-width: 20px;
81
80
  display: inline-block;
81
+ min-width: 20px;
82
82
  }
83
83
 
84
84
  #main {
@@ -86,10 +86,10 @@ a.header-link::after {
86
86
  }
87
87
 
88
88
  .docs-callout {
89
- margin-top: 1.25rem;
90
- margin-bottom: 1.25rem;
91
89
  border-left-width: 0.25rem !important;
92
90
  border-radius: 0.25rem;
91
+ margin-bottom: 1.25rem;
92
+ margin-top: 1.25rem;
93
93
  }
94
94
 
95
95
  .docs-callout-danger {
@@ -1,17 +1,17 @@
1
1
  /*! purgecss start ignore */
2
2
  .autocomplete-suggestions {
3
- cursor: default;
3
+ background-color: #fff;
4
4
  border: 1px solid #cbcdd6;
5
5
  border-top: 0;
6
- background-color: #fff;
7
6
  box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.1);
8
- position: absolute;
7
+ box-sizing: border-box;
8
+ cursor: default;
9
9
  display: none;
10
- z-index: 33333; // higher than navbar
11
10
  max-height: 254px;
12
11
  overflow: hidden;
13
12
  overflow-y: auto;
14
- box-sizing: border-box;
13
+ position: absolute;
14
+ z-index: 33333; // higher than navbar
15
15
  }
16
16
 
17
17
  [data-bs-theme="dark"] {
@@ -26,19 +26,19 @@
26
26
  }
27
27
 
28
28
  .autocomplete-suggestion {
29
- position: relative;
29
+ color: #353a40;
30
30
  cursor: pointer;
31
- padding: 7px;
32
31
  line-height: 23px;
33
- white-space: nowrap;
34
32
  overflow: hidden;
33
+ padding: 7px;
34
+ position: relative;
35
35
  text-overflow: ellipsis;
36
- color: #353a40;
36
+ white-space: nowrap;
37
37
  }
38
38
 
39
39
  .autocomplete-suggestion b {
40
- font-weight: 400;
41
40
  color: #1f8dd6;
41
+ font-weight: 400;
42
42
  }
43
43
 
44
44
  .autocomplete-suggestion.selected {
@@ -52,8 +52,8 @@
52
52
  }
53
53
 
54
54
  .autocomplete-suggestion > .context {
55
- font-size: 12px;
56
55
  color: #7d808d;
56
+ font-size: 12px;
57
57
  }
58
58
 
59
59
  .autocomplete-suggestion.selected > .context {
@@ -18,8 +18,8 @@
18
18
  }
19
19
 
20
20
  .card-post .card-header {
21
- min-height: 89px;
22
- background-size: cover;
23
- background-position: center;
24
21
  aspect-ratio: 4 / 1;
22
+ background-position: center;
23
+ background-size: cover;
24
+ min-height: 89px;
25
25
  }
@@ -1,3 +1,27 @@
1
1
  .col-sidebar {
2
2
  width: 64px !important;
3
3
  }
4
+
5
+ .col-sidebar .list-group {
6
+ height: calc(100dvh - 66px);
7
+ }
8
+
9
+ [data-bs-theme="light"] {
10
+ .col-sidebar a.btn:hover,
11
+ .col-sidebar button:hover {
12
+ background-color: #e0e1e9 !important;
13
+ }
14
+ }
15
+
16
+ [data-bs-theme="dark"] {
17
+ .col-sidebar a.btn:hover,
18
+ .col-sidebar button:hover {
19
+ background-color: #424649 !important;
20
+ }
21
+ }
22
+
23
+ .col-sidebar button.list-group-item {
24
+ height: 48px;
25
+ margin-left: 6px;
26
+ width: 48px;
27
+ }
@@ -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"] {
@@ -12,15 +12,15 @@
12
12
 
13
13
  // right menu
14
14
  #TableOfContents li a {
15
- padding-top: 0.3rem;
16
- padding-bottom: 0.3rem;
17
- font-size: 13px;
18
15
  border-left: 1px solid transparent;
16
+ font-size: 13px;
17
+ padding-bottom: 0.3rem;
18
+ padding-top: 0.3rem;
19
19
  }
20
20
 
21
21
  .menu-right a {
22
- font-size: 13px;
23
22
  color: #171c1e;
23
+ font-size: 13px;
24
24
  }
25
25
 
26
26
  [data-bs-theme="dark"] {
@@ -50,6 +50,6 @@ hr {
50
50
 
51
51
  // scrollspy color
52
52
  .menu-right #TableOfContents li .active {
53
- color: #000 !important;
54
53
  border-left: 1px solid #0d6aa8 !important;
54
+ color: #000 !important;
55
55
  }
@@ -29,8 +29,8 @@
29
29
  /* SM */
30
30
  @media (max-width: 767px) {
31
31
  #sidebar.show {
32
- width: calc(100% - 68px) !important;
33
32
  min-width: calc(100% - 68px) !important;
33
+ width: calc(100% - 68px) !important;
34
34
  }
35
35
 
36
36
  #sidebar.show + div {
@@ -46,7 +46,7 @@
46
46
  /* SM Only */
47
47
  @media (min-width: 575px) and (max-width: 767px) {
48
48
  #sidebar-menu .list-unstyled li {
49
- width: 50%;
50
49
  display: inline-block;
50
+ width: 50%;
51
51
  }
52
52
  }
@@ -1,6 +1,6 @@
1
1
  .search-container {
2
- width: 40px;
3
2
  left: -12px;
3
+ width: 40px;
4
4
  }
5
5
 
6
6
  .form-control-search {
@@ -10,27 +10,27 @@
10
10
  background-size: 20px;
11
11
  border-left: 0;
12
12
  border-right: 0;
13
+ left: auto;
13
14
  padding: 0;
15
+ right: 5px;
16
+ top: 10px;
17
+ transition: all 0.2s;
14
18
  width: 0 !important;
15
19
  z-index: 1210;
16
- transition: all 0.2s;
17
- left: auto;
18
- top: 10px;
19
- right: 5px;
20
20
  }
21
21
 
22
22
  .form-control-search:focus {
23
- width: 363px !important;
24
23
  max-width: calc(100vw - 200px);
25
- text-indent: 18px;
26
24
  padding: 0 4px 4px 16px;
25
+ text-indent: 18px;
27
26
  visibility: visible;
27
+ width: 363px !important;
28
28
  }
29
29
 
30
30
  .form-control-search:focus + .btn-search {
31
- transition: all 1s;
32
31
  background-color: transparent;
33
32
  pointer-events: none !important;
33
+ transition: all 1s;
34
34
  }
35
35
 
36
36
  .form-control-search:focus + .btn-search img {
@@ -7,3 +7,10 @@ html[data-bs-theme="dark"] {
7
7
  .navbar-site-title {
8
8
  margin-top: 12px;
9
9
  }
10
+
11
+ nav.navbar label.btn:hover,
12
+ nav.navbar button.btn:hover {
13
+ background-color: #217cbb !important;
14
+ border: 1px solid #019aeb !important;
15
+ border-color: #019aeb;
16
+ }
@@ -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 {
@@ -1,14 +1,14 @@
1
1
  .btn-to-top {
2
- font-size: 18px;
3
- line-height: 48px !important;
4
2
  background-color: #353a40 !important;
5
- width: 48px;
6
3
  bottom: 20px;
7
- right: 20px;
8
- z-index: 6000;
4
+ font-size: 18px;
5
+ line-height: 48px !important;
9
6
  opacity: 0;
7
+ right: 20px;
10
8
  transform: translateY(100px);
11
9
  transition: all 1s ease;
10
+ width: 48px;
11
+ z-index: 6000;
12
12
  }
13
13
 
14
14
  .btn-to-top-show {
@@ -9,7 +9,7 @@
9
9
  }
10
10
 
11
11
  .visually-hidden-focusable:focus {
12
- top: 0 !important;
13
12
  margin-bottom: 30px;
13
+ top: 0 !important;
14
14
  z-index: 22222;
15
15
  }
@@ -1,16 +1,16 @@
1
1
  main table {
2
- width: 100%;
3
- margin-bottom: 1rem;
4
2
  border: 1px solid rgba(133, 133, 133, 0.1);
3
+ margin-bottom: 1rem;
5
4
  vertical-align: top;
5
+ width: 100%;
6
6
 
7
7
  // border-color: var(--bs-table-border-color);
8
8
  }
9
9
 
10
10
  main table thead th {
11
- vertical-align: middle;
12
- line-height: 1.25;
13
11
  border-bottom-width: 1px;
12
+ line-height: 1.25;
13
+ vertical-align: middle;
14
14
  }
15
15
 
16
16
  main table thead tr {
@@ -27,8 +27,8 @@ main table td {
27
27
  }
28
28
 
29
29
  table > :not(caption) > * > * {
30
- padding: 0.25rem 1rem;
31
30
  background-color: var(--bs-table-bg);
32
31
  border-bottom-width: var(--bs-border-width);
33
32
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
33
+ padding: 0.25rem 1rem;
34
34
  }
@@ -50,8 +50,8 @@
50
50
 
51
51
  [data-bs-theme="dark"] .sun-and-moon > .sun {
52
52
  transform: scale(1.75);
53
- transition-timing-function: cubic-bezier(0.25, 0, 0.3, 1);
54
53
  transition-duration: 0.25s;
54
+ transition-timing-function: cubic-bezier(0.25, 0, 0.3, 1);
55
55
  }
56
56
 
57
57
  [data-bs-theme="dark"] .sun-and-moon > .sun-beams {
@@ -70,13 +70,13 @@
70
70
 
71
71
  aspect-ratio: 1;
72
72
  cursor: pointer;
73
- touch-action: manipulation;
74
73
  -webkit-tap-highlight-color: transparent;
74
+ touch-action: manipulation;
75
75
  }
76
76
 
77
77
  .theme-toggle > svg {
78
- inline-size: 100%;
79
78
  block-size: 100%;
79
+ inline-size: 100%;
80
80
  max-height: 18px;
81
81
  max-width: 18px;
82
82
  stroke-linecap: round;
@@ -3,8 +3,8 @@
3
3
  }
4
4
 
5
5
  .btn-feedback {
6
- opacity: 0.7;
7
6
  min-width: 32px;
7
+ opacity: 0.7;
8
8
  }
9
9
 
10
10
  .btn-feedback svg {
@@ -16,8 +16,8 @@
16
16
  }
17
17
 
18
18
  .btn-feedback[disabled] {
19
- opacity: 0.4;
20
19
  cursor: default;
20
+ opacity: 0.4;
21
21
  pointer-events: none;
22
22
  }
23
23
 
@@ -40,7 +40,7 @@ h6 {
40
40
  }
41
41
 
42
42
  // underline links
43
- main a {
43
+ main a:not([class], li.breadcrumb-item a) {
44
44
  text-decoration: underline;
45
45
  }
46
46
 
@@ -62,5 +62,5 @@ code {
62
62
  }
63
63
 
64
64
  main {
65
- min-height: calc(100vh - 418px);
65
+ min-height: calc(100vh - 518px);
66
66
  }
@@ -1,15 +1,22 @@
1
1
  $(function () {
2
- $('.feedback').fadeIn('slow').addClass('d-block').removeClass('d-none');
2
+ $('.feedback').fadeIn('slow').addClass('d-block');
3
3
  $('.btn-feedback').click(function () {
4
4
  $('.btn-feedback').addClass('img-grayscale').attr('disabled', 'disabled');
5
5
  $('.feedback-thanks').fadeIn('slow').addClass('d-block');
6
6
  });
7
+
7
8
  $('.btn-feedback-helpful').click(function () {
8
9
  $('.feedback-helpful').fadeIn('slow').addClass('d-block');
9
- $('.feedback-helpful').removeClass('d-none');
10
+ $('.icon-helpful-solid').addClass('d-block');
11
+ $('.icon-helpful-solid').removeClass('d-none');
12
+ $('.icon-helpful-outlined').removeClass('d-block');
13
+ $('.icon-helpful-outlined').addClass('d-none');
10
14
  });
11
15
  $('.btn-feedback-not-helpful').click(function () {
12
16
  $('.feedback-not-helpful').fadeIn('slow').addClass('d-block');
13
- $('.feedback-not-helpful').removeClass('d-none');
17
+ $('.icon-not-helpful-solid').addClass('d-block');
18
+ $('.icon-not-helpful-solid').removeClass('d-none');
19
+ $('.icon-not-helpful-solid').removeClass('d-none');
20
+ $('.icon-not-helpful-outlined').addClass('d-none');
14
21
  });
15
22
  });
@@ -26,7 +26,7 @@
26
26
  </h1>
27
27
  <div class="d-flex">
28
28
  <div class="mx-3">
29
- <img src="/img/author/{{ .Params.author | urlize }}.jpg"
29
+ <img src="/img/author/{{- .Params.author | urlize -}}.jpg"
30
30
  class="bg-light rounded-circle mx-auto text-center border" height="44" width="44"
31
31
  alt="{{- .Params.author -}}">
32
32
  </div>
@@ -1,11 +1,9 @@
1
1
  <div
2
- class="list-group d-block border-0 text-center sticky-top sticky-offset d-flex flex-column align-items-start justify-content-between"
3
- style="height: calc(100dvh - 66px)">
2
+ class="list-group d-block border-0 text-center sticky-top sticky-offset d-flex flex-column align-items-start justify-content-between">
4
3
 
5
4
  <div class="text-center mx-auto w-100">
6
- <button class="btn btn-lg btn-outline-secondary bg-transparent list-group-item border-0 mt-1" type="button"
7
- data-bs-target="#sidebar" data-bs-toggle="collapse" aria-label="Expand Menu"
8
- style="width:48px; margin-left: 6px;">
5
+ <button class="btn btn-lg btn-outline-secondary bg-transparent list-group-item border-0 mt-1 p-1 pt-0" type="button"
6
+ data-bs-target="#sidebar" data-bs-toggle="collapse" aria-label="Expand Menu">
9
7
  <div class="text-body text-center">
10
8
  {{ partial "icons/modus-solid/user-guide.svg" (dict "class" "" "width" "24" "height" "24") }}
11
9
  </div>
@@ -14,9 +12,10 @@
14
12
 
15
13
  <div>
16
14
  {{- with .Site.Params.GitHubRepo -}}
17
- <a href="{{- . -}}" class="btn btn-lg btn-outline-secondary text-body bg-transparent btn-icon-only border-0 mx-1"
18
- target="_blank" rel="noopener" data-bs-toggle="tooltip" title="GitHub">
19
- {{ partial "icons/brands/github.svg" (dict "class" "mt-2" "width" "22" "height" "22") }}
15
+ <a href="{{- . -}}"
16
+ class="btn btn-lg btn-outline-secondary text-body bg-transparent btn-icon-only border-0 mx-1 p-1" target="_blank"
17
+ rel="noopener" data-bs-toggle="tooltip" title="GitHub">
18
+ {{ partial "icons/brands/github.svg" (dict "class" "mt-2" "width" "24" "height" "24") }}
20
19
  </a>
21
20
  {{ end }}
22
21
 
@@ -7,8 +7,8 @@
7
7
  {{- .Title | title -}}
8
8
  </h1>
9
9
  <h2 class="ps-2 ps-sm-3 my-4 opacity-75">
10
- {{- .Params.description -}}
10
+ {{- .Params.description | markdownify -}}
11
11
  </h2>
12
12
  {{ end }}
13
13
  </div>
14
- </header>
14
+ </header>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" {{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 24 24">
2
+ <path fill="currentColor" d="M4 15.02H3c-.55 0-1-.45-1-1v-9c0-.55.45-1 1-1h1c.55 0 1 .45 1 1v9c0 .55-.45 1-1 1Zm17.95-2.06c0 1.11-.9 2.01-2.01 2.01h-5.03c-.25 0-.48 0-.69.03h-.05c-.48.06-.82.19-.87.46.3 2.27 1.08 5.3-1.67 6.42-1.56.62-1.95-1.05-1.73-2.24.34-2.17-1.58-3.55-2.77-5.07-.13-.2-.12-.73-.12-.73V6.02c0-1.11.91-2.01 2.02-2.01h8.46c1.11 0 1.58.28 2.33 2.25 0 0 1.91 4.57 2.05 4.89s.09 1.82.09 1.82Z"/>
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" {{ with .width }} width="{{ . }}"{{ end }}{{ with .height }} height="{{ . }}"{{ end }}{{ with .class }} class="{{ . }}"{{ end }} viewBox="0 0 24 24">
2
+ <path fill="currentColor" d="M4 9H3c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-9c0-.55-.45-1-1-1Zm17.95 2.06c0-1.11-.9-2.01-2.01-2.01h-5.03c-.25 0-.48 0-.69-.03h-.05c-.48-.06-.82-.19-.87-.46.3-2.27 1.08-5.3-1.67-6.42-1.56-.62-1.95 1.05-1.73 2.24.34 2.17-1.58 3.55-2.77 5.07-.13.2-.12.73-.12.73V18c0 1.11.91 2.01 2.02 2.01h8.46c1.11 0 1.58-.28 2.33-2.25 0 0 1.91-4.57 2.05-4.89s.09-1.82.09-1.82Z"/>
3
+ </svg>
@@ -35,7 +35,7 @@
35
35
  <meta property="og:locale" content="en_US">
36
36
  {{ end }}
37
37
 
38
- <!-- no need to define additional Twitter card meta tags as fallback to Open Graph -->
38
+ <!-- no need to define additional X (Twitter) card meta tags as fallback to Open Graph -->
39
39
  <!-- https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started#twitter-cards-and-open-graph -->
40
40
 
41
41
  {{- if .Params.private -}}
@@ -49,14 +49,6 @@
49
49
  <meta name="theme-color" content="{{- . | default "#005f9e" -}}">
50
50
  {{ end }}
51
51
 
52
- {{- if .IsHome -}}
53
- {{- with .Site.Params.googleSiteVerification -}}
54
- <!-- Google Site Verification -->
55
- <!-- https://support.google.com/webmasters/answer/9008080?hl=en -->
56
- <meta name="google-site-verification" content="{{- . -}}">
57
- {{ end }}
58
- {{ end }}
59
-
60
52
  <!-- Loads the Trimble favicon and the SVG icon -->
61
53
  <link rel="alternate icon" type="image/x-icon" href="{{- .Site.BaseURL -}}favicon.ico">
62
54
  <link rel="icon" type="image/svg+xml" href="{{- .Site.BaseURL -}}favicon.svg">
@@ -86,6 +78,14 @@
86
78
  <!-- Loads Bootstrap 5 JS from CDN -->
87
79
  <script src="{{- .Site.BaseURL -}}js/bootstrap.bundle.min.js"></script>
88
80
 
81
+ {{- if .IsHome -}}
82
+ {{- with .Site.Params.googleSiteVerification -}}
83
+ <!-- Google Site Verification -->
84
+ <!-- https://support.google.com/webmasters/answer/9008080?hl=en -->
85
+ <meta name="google-site-verification" content="{{- . -}}">
86
+ {{ end }}
87
+ {{ end }}
88
+
89
89
  {{ partial "analytics" . }}
90
90
 
91
91
  {{ partial "custom-header" . }}
@@ -1,7 +1,7 @@
1
1
  <search class="search-container d-inline-block position-relative" role="search">
2
2
  <input class="form-control form-control-search position-absolute" aria-label="Search" id="search-by" type="search"
3
3
  name="q" placeholder="Search..." autocomplete="off" title="" required>
4
- <label class="btn btn-lg btn-icon-only border-0 btn-search position-absolute px-1" for="search-by">
4
+ <label class="btn btn-lg btn-icon-only border-transparent btn-search position-absolute px-1" for="search-by">
5
5
  <i class="modus-icons notranslate text-white" aria-hidden="true">search</i>
6
6
  </label>
7
7
  </search>
@@ -3,12 +3,14 @@
3
3
  <button type="button"
4
4
  class="btn btn-light btn-outline-secondary btn-feedback btn-feedback-helpful border rounded p-1 me-2"
5
5
  aria-label="Helpful">
6
- {{- partial "icons/modus-outlined/thumbs-up.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary") -}}
6
+ {{- partial "icons/modus-solid/thumbs-up.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary d-none icon-helpful-solid") -}}
7
+ {{- partial "icons/modus-outlined/thumbs-up.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary icon-helpful-outlined") -}}
7
8
  </button>
8
9
  <button type="button"
9
10
  class="btn btn-light btn-outline-secondary btn-feedback btn-feedback-not-helpful border rounded p-1"
10
11
  aria-label="Not Helpful">
11
- {{- partial "icons/modus-outlined/thumbs-down.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary") -}}
12
+ {{- partial "icons/modus-solid/thumbs-down.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary d-none icon-not-helpful-solid") -}}
13
+ {{- partial "icons/modus-outlined/thumbs-down.svg" (dict "width" "22" "height" "22" "class" "mx-2 mx-auto text-primary icon-not-helpful-outlined") -}}
12
14
  </button>
13
15
  </div>
14
16
 
@@ -18,4 +20,4 @@
18
20
 
19
21
  <div class="small ml-2 d-none feedback-not-helpful">
20
22
  <a href="" rel="nofollow" target="_blank">Please, provide feedback about how we can improve the page</a>. Thank you!
21
- </div>
23
+ </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trimble-oss/modus-docs-hugo-theme",
3
- "version": "1.0.0-alpha10",
3
+ "version": "1.0.0-alpha12",
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,20 +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-alpha3",
30
- "@trimble-oss/modus-icons": "1.5.1"
29
+ "@trimble-oss/modus-bootstrap": "2.0.0-alpha11",
30
+ "@trimble-oss/modus-icons": "1.7.0"
31
31
  },
32
32
  "devDependencies": {
33
33
  "autoprefixer": "10.4.16",
34
- "eslint": "8.50.0",
34
+ "eslint": "8.53.0",
35
35
  "eslint-config-prettier": "9.0.0",
36
36
  "htmlhint": "1.1.4",
37
- "hugo-bin": "0.114.2",
37
+ "hugo-bin": "0.115.0",
38
38
  "postcss": "8.4.31",
39
39
  "postcss-cli": "10.1.0",
40
40
  "prettier": "3.0.3",
41
- "stylelint": "15.10.3",
42
- "stylelint-config-standard-scss": "11.0.0"
41
+ "stylelint": "15.11.0",
42
+ "stylelint-config-standard-scss": "11.1.0",
43
+ "stylelint-order": "6.0.3"
43
44
  },
44
45
  "hugo-bin": {
45
46
  "buildTags": "extended"