@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.
- package/README.md +5 -1
- package/assets/{styles → css}/_article.scss +16 -11
- package/assets/{styles → css}/_autocomplete.scss +12 -12
- package/assets/{styles → css}/_cards.scss +4 -3
- package/assets/{styles → css}/_menu-right.scss +6 -5
- package/assets/{styles → css}/_mobile.scss +4 -4
- package/assets/css/_mq-forced-colors-active.scss +29 -0
- package/assets/css/_navbar-search.scss +54 -0
- package/assets/css/_navbar.scss +27 -0
- package/assets/{styles → css}/_scroll-to-top-btn.scss +5 -5
- package/assets/{styles → css}/_sidebar.scss +3 -11
- package/assets/{styles → css}/_skippy.scss +2 -2
- package/assets/css/_tables.scss +34 -0
- package/assets/{styles → css}/_theme-light.scss +1 -1
- package/assets/{styles → css}/_theme-toggle.scss +5 -11
- package/assets/{styles → css}/_was-this-page-helpful.scss +3 -3
- package/assets/{styles/styles.scss → css/modus-docs.scss} +5 -5
- package/assets/js/auto-complete.min.js +1 -1
- package/assets/js/search.min.js +1 -1
- package/assets/js/was-this-page-helpful.js +10 -3
- package/data/navbar_apps.yml +8 -4
- package/layouts/_default/_markup/render-heading.html +4 -4
- package/layouts/_default/_markup/render-link.html +3 -3
- package/layouts/_default/baseof.html +9 -4
- package/layouts/_default/home.html +3 -8
- package/layouts/_default/list.html +2 -7
- package/layouts/_default/redirect.html +1 -1
- package/layouts/_default/single.html +6 -11
- package/layouts/index.json +1 -1
- package/layouts/partials/analytics.html +3 -7
- package/layouts/partials/blog-brief.html +4 -4
- package/layouts/partials/blog-share.html +7 -7
- package/layouts/partials/col-sidebar-menu.html +22 -6
- package/layouts/partials/header.html +15 -4
- package/layouts/partials/icons/brands/codepen.svg +1 -1
- package/layouts/partials/icons/brands/facebook-square.svg +1 -1
- package/layouts/partials/icons/brands/github-alt.svg +1 -1
- package/layouts/partials/icons/brands/github.svg +1 -1
- package/layouts/partials/icons/brands/linkedin.svg +1 -1
- package/layouts/partials/icons/brands/vimeo-square.svg +1 -1
- package/layouts/partials/icons/modus-outlined/accessibility-circle.svg +1 -1
- package/layouts/partials/icons/modus-outlined/arrow-up.svg +1 -1
- package/layouts/partials/icons/modus-outlined/bar-graph-square.svg +1 -1
- package/layouts/partials/icons/modus-outlined/code.svg +3 -0
- package/layouts/partials/icons/modus-outlined/launch.svg +1 -1
- package/layouts/partials/icons/modus-outlined/menu.svg +1 -1
- package/layouts/partials/icons/modus-outlined/more-vertical.svg +1 -1
- package/layouts/partials/icons/modus-outlined/person-account.svg +1 -1
- package/layouts/partials/icons/modus-outlined/search.svg +1 -1
- package/layouts/partials/icons/modus-outlined/sync.svg +1 -1
- package/layouts/partials/icons/modus-outlined/thumbs-down.svg +1 -1
- package/layouts/partials/icons/modus-outlined/thumbs-up.svg +1 -1
- package/layouts/partials/icons/modus-outlined/web.svg +1 -1
- package/layouts/partials/icons/modus-solid/apps.svg +3 -0
- package/layouts/partials/icons/modus-solid/code.svg +3 -0
- package/layouts/partials/icons/modus-solid/email.svg +1 -1
- package/layouts/partials/icons/modus-solid/menu.svg +3 -0
- package/layouts/partials/icons/modus-solid/palette.svg +1 -1
- package/layouts/partials/icons/modus-solid/thumbs-down.svg +3 -0
- package/layouts/partials/icons/modus-solid/thumbs-up.svg +3 -0
- package/layouts/partials/icons/modus-solid/trimble-logo.svg +3 -0
- package/layouts/partials/icons/modus-solid/user-guide.svg +3 -0
- package/layouts/partials/icons/transportation/truck.svg +1 -1
- package/layouts/partials/logos/trimble.svg +1 -1
- package/layouts/partials/menu-right.html +3 -2
- package/layouts/partials/meta.html +31 -19
- package/layouts/partials/navbar-dropdown.html +2 -2
- package/layouts/partials/navbar-search.html +6 -6
- package/layouts/partials/navbar.html +19 -9
- package/layouts/partials/related-content.html +1 -1
- package/layouts/partials/skippy.html +4 -4
- package/layouts/partials/trimble-logo.html +1 -1
- package/layouts/partials/was-this-page-helpful.html +5 -3
- package/layouts/shortcodes/example.html +2 -2
- package/package.json +27 -16
- package/static/img/icons/check-circle-outlined.svg +3 -0
- package/static/img/icons/code.svg +3 -0
- package/static/img/icons/github.svg +3 -0
- package/static/img/icons/trimble.svg +4 -0
- package/static/img/icons/web-components.svg +3 -0
- package/static/img/trimble-logo.svg +5 -1
- package/assets/js/scroll-to-top.js +0 -33
- package/assets/styles/_col-sidebar.scss +0 -3
- package/assets/styles/_navbar-search.scss +0 -53
- package/assets/styles/_navbar.scss +0 -5
- package/assets/styles/_tables.scss +0 -5
- package/layouts/index.rss.xml +0 -49
- package/layouts/partials/col-sidebar.html +0 -28
- package/layouts/partials/icons/trimble-logo.svg +0 -1
- package/layouts/sitemap.xml +0 -8
- package/static/js/theme-toggle.js +0 -41
- package/assets/{styles → css}/_codefences-dark.scss +0 -0
- package/assets/{styles → css}/_codefences.scss +0 -0
- package/assets/{styles → css}/_font-open-sans.scss +0 -0
- package/assets/{styles → css}/_footer.scss +0 -0
- package/assets/{styles → css}/_javascript-disabled.scss +3 -3
- package/assets/{styles → css}/_list-js.scss +6 -6
- package/assets/{styles → css}/_news.scss +1 -1
- package/assets/{styles → css}/_onetrust-cookie-banner.scss +9 -9
- package/assets/{styles → css}/_posts.scss +2 -2
- /package/assets/{styles → css}/_print.scss +0 -0
- /package/assets/{styles → css}/_theme-dark.scss +0 -0
- /package/assets/{styles → css}/_utilities.scss +0 -0
- /package/assets/{styles → css}/_xxl.scss +0 -0
- /package/layouts/partials/{btn-theme-toggle.html → navbar-theme-toggle.html} +0 -0
package/README.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# Modus Docs Hugo Theme (Experimental)
|
2
2
|
|
3
|
+
[](https://raw.githubusercontent.com/trimble-oss/modus-docs-hugo-theme/main/LICENSE)
|
4
|
+
[](https://github.com/marketplace/actions/super-linter)
|
5
|
+
[](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
|
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,24 @@ 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
|
+
#main {
|
64
|
+
max-width: 1090px;
|
65
|
+
}
|
66
|
+
|
63
67
|
#main::before {
|
64
|
-
display: block;
|
65
68
|
content: " ";
|
69
|
+
display: block;
|
66
70
|
height: 80px;
|
67
71
|
margin-top: -80px;
|
68
|
-
visibility: hidden;
|
69
72
|
top: 80px;
|
73
|
+
visibility: hidden;
|
70
74
|
}
|
71
75
|
|
72
76
|
// anchors # for deep links within docs
|
@@ -77,15 +81,15 @@ a.header-link {
|
|
77
81
|
|
78
82
|
a.header-link::after {
|
79
83
|
content: "#";
|
80
|
-
min-width: 20px;
|
81
84
|
display: inline-block;
|
85
|
+
min-width: 20px;
|
82
86
|
}
|
83
87
|
|
84
88
|
.docs-callout {
|
85
|
-
margin-top: 1.25rem;
|
86
|
-
margin-bottom: 1.25rem;
|
87
89
|
border-left-width: 0.25rem !important;
|
88
90
|
border-radius: 0.25rem;
|
91
|
+
margin-bottom: 1.25rem;
|
92
|
+
margin-top: 1.25rem;
|
89
93
|
}
|
90
94
|
|
91
95
|
.docs-callout-danger {
|
@@ -117,3 +121,4 @@ article .nav-tabs .nav-link::after {
|
|
117
121
|
article table {
|
118
122
|
width: 100%;
|
119
123
|
}
|
124
|
+
|
@@ -1,23 +1,23 @@
|
|
1
1
|
/*! purgecss start ignore */
|
2
2
|
.autocomplete-suggestions {
|
3
|
-
|
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
|
-
|
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
|
-
|
13
|
+
position: absolute;
|
14
|
+
z-index: 33333; // higher than navbar
|
15
15
|
}
|
16
16
|
|
17
17
|
[data-bs-theme="dark"] {
|
18
18
|
.autocomplete-suggestions {
|
19
19
|
background-color: #171c1e;
|
20
|
-
color:
|
20
|
+
color: var(--bs-body-color);
|
21
21
|
}
|
22
22
|
|
23
23
|
.autocomplete-suggestion {
|
@@ -26,19 +26,19 @@
|
|
26
26
|
}
|
27
27
|
|
28
28
|
.autocomplete-suggestion {
|
29
|
-
|
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
|
-
|
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 {
|
@@ -1,5 +1,6 @@
|
|
1
1
|
.card-blog-brief {
|
2
2
|
min-height: 140px;
|
3
|
+
transition: none;
|
3
4
|
}
|
4
5
|
|
5
6
|
.card-blog-brief:hover {
|
@@ -18,8 +19,8 @@
|
|
18
19
|
}
|
19
20
|
|
20
21
|
.card-post .card-header {
|
21
|
-
min-height: 89px;
|
22
|
-
background-size: cover;
|
23
|
-
background-position: center;
|
24
22
|
aspect-ratio: 4 / 1;
|
23
|
+
background-position: center;
|
24
|
+
background-size: cover;
|
25
|
+
min-height: 89px;
|
25
26
|
}
|
@@ -7,20 +7,21 @@
|
|
7
7
|
#TableOfContents ul ul,
|
8
8
|
#TableOfContents ul ul li {
|
9
9
|
list-style: none;
|
10
|
+
padding-left: 0 !important;
|
10
11
|
text-indent: 10px;
|
11
12
|
}
|
12
13
|
|
13
14
|
// right menu
|
14
15
|
#TableOfContents li a {
|
15
|
-
padding-top: 0.3rem;
|
16
|
-
padding-bottom: 0.3rem;
|
17
|
-
font-size: 13px;
|
18
16
|
border-left: 1px solid transparent;
|
17
|
+
font-size: 13px;
|
18
|
+
padding-bottom: 0.3rem;
|
19
|
+
padding-top: 0.3rem;
|
19
20
|
}
|
20
21
|
|
21
22
|
.menu-right a {
|
22
|
-
font-size: 13px;
|
23
23
|
color: #171c1e;
|
24
|
+
font-size: 13px;
|
24
25
|
}
|
25
26
|
|
26
27
|
[data-bs-theme="dark"] {
|
@@ -50,6 +51,6 @@ hr {
|
|
50
51
|
|
51
52
|
// scrollspy color
|
52
53
|
.menu-right #TableOfContents li .active {
|
53
|
-
color: #000 !important;
|
54
54
|
border-left: 1px solid #0d6aa8 !important;
|
55
|
+
color: #000 !important;
|
55
56
|
}
|
@@ -29,8 +29,8 @@
|
|
29
29
|
/* SM */
|
30
30
|
@media (max-width: 767px) {
|
31
31
|
#sidebar.show {
|
32
|
-
width:
|
33
|
-
|
32
|
+
min-width: 100%;
|
33
|
+
width: 100%
|
34
34
|
}
|
35
35
|
|
36
36
|
#sidebar.show + div {
|
@@ -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
|
}
|
@@ -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
|
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
@media (forced-colors: active) {
|
2
|
+
nav.navbar.sticky-top {
|
3
|
+
border-bottom: 1px solid transparent;
|
4
|
+
}
|
5
|
+
|
6
|
+
.col-sidebar {
|
7
|
+
border-right: 1px solid transparent;
|
8
|
+
}
|
9
|
+
|
10
|
+
.highlight {
|
11
|
+
margin-bottom: 1rem;
|
12
|
+
outline: 1px solid transparent;
|
13
|
+
}
|
14
|
+
|
15
|
+
.nav-link.active {
|
16
|
+
outline: 1px solid transparent;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
@media (forced-colors: active) and (prefers-color-scheme: light) {
|
21
|
+
nav.navbar.sticky-top .btn svg {
|
22
|
+
fill: ButtonText;
|
23
|
+
}
|
24
|
+
|
25
|
+
nav .navbar-brand svg {
|
26
|
+
filter: invert(1);
|
27
|
+
forced-color-adjust: none;
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
.search-container {
|
2
|
+
left: -12px;
|
3
|
+
width: 40px;
|
4
|
+
}
|
5
|
+
|
6
|
+
.form-control-search {
|
7
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m16.38 14.92-.66.05-.41-.41c2.44-2.81 2.28-7.1-.5-9.7S7.8 2.4 5.17 4.94a6.988 6.988 0 0 0-.08 9.98c2.61 2.61 6.77 2.72 9.52.34l.41.41-.05.65 3.89 3.89a.996.996 0 1 0 1.41-1.41l-3.88-3.88Zm-2.81-1.41a5.016 5.016 0 0 1-7.08 0c-1.95-1.95-1.95-5.13 0-7.08s5.13-1.95 7.08 0 1.95 5.13 0 7.08Z'/%3E%3C/svg%3E");
|
8
|
+
background-position: 5px center;
|
9
|
+
background-repeat: no-repeat;
|
10
|
+
background-size: 20px;
|
11
|
+
border-left: 0;
|
12
|
+
border-right: 0;
|
13
|
+
left: auto;
|
14
|
+
padding: 0;
|
15
|
+
right: -6px;
|
16
|
+
top: 0;
|
17
|
+
transition: all 0.2s;
|
18
|
+
width: 0 !important;
|
19
|
+
z-index: 1210;
|
20
|
+
}
|
21
|
+
|
22
|
+
.form-control-search:focus {
|
23
|
+
max-width: calc(100vw - 200px);
|
24
|
+
padding: 0 4px 4px 16px;
|
25
|
+
text-indent: 18px;
|
26
|
+
visibility: visible;
|
27
|
+
width: 363px !important;
|
28
|
+
}
|
29
|
+
|
30
|
+
.form-control-search:focus + .btn-search {
|
31
|
+
background-color: transparent;
|
32
|
+
pointer-events: none !important;
|
33
|
+
transition: all 1s;
|
34
|
+
}
|
35
|
+
|
36
|
+
.form-control-search:focus + .btn-search img {
|
37
|
+
opacity: 0;
|
38
|
+
}
|
39
|
+
|
40
|
+
.btn-search {
|
41
|
+
top: 0;
|
42
|
+
}
|
43
|
+
|
44
|
+
.btn-search svg {
|
45
|
+
margin-top: 11px;
|
46
|
+
}
|
47
|
+
|
48
|
+
[data-bs-theme="dark"] .form-control-search {
|
49
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' viewBox='0 0 24 24'%3E%3Cpath d='m16.38 14.92-.66.05-.41-.41c2.44-2.81 2.28-7.1-.5-9.7S7.8 2.4 5.17 4.94a6.988 6.988 0 0 0-.08 9.98c2.61 2.61 6.77 2.72 9.52.34l.41.41-.05.65 3.89 3.89a.996.996 0 1 0 1.41-1.41l-3.88-3.88Zm-2.81-1.41a5.016 5.016 0 0 1-7.08 0c-1.95-1.95-1.95-5.13 0-7.08s5.13-1.95 7.08 0 1.95 5.13 0 7.08Z'/%3E%3C/svg%3E") !important;
|
50
|
+
}
|
51
|
+
|
52
|
+
[data-bs-theme="dark"] .btn-search img {
|
53
|
+
filter: invert(1);
|
54
|
+
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
html[data-bs-theme="dark"] {
|
2
|
+
nav.navbar-blue .dropdown-menu img {
|
3
|
+
filter: invert(1);
|
4
|
+
}
|
5
|
+
}
|
6
|
+
|
7
|
+
.navbar-site-title {
|
8
|
+
margin-top: 12px;
|
9
|
+
}
|
10
|
+
|
11
|
+
nav.navbar-blue {
|
12
|
+
label.btn,
|
13
|
+
button.btn {
|
14
|
+
border-color: transparent !important;
|
15
|
+
|
16
|
+
&:hover {
|
17
|
+
background-color: #217cbb !important;
|
18
|
+
border: 1px solid #019aeb !important;
|
19
|
+
border-color: #019aeb;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
nav.navbar-blue .dropdown-menu {
|
25
|
+
min-width: 250px;
|
26
|
+
z-index: 1030;
|
27
|
+
}
|
@@ -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
|
-
|
8
|
-
|
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: 2000;
|
12
12
|
}
|
13
13
|
|
14
14
|
.btn-to-top-show {
|
@@ -1,7 +1,3 @@
|
|
1
|
-
.card-blog-brief {
|
2
|
-
transition: none;
|
3
|
-
}
|
4
|
-
|
5
1
|
#sidebar-menu {
|
6
2
|
max-height: calc(100vh - 66px);
|
7
3
|
}
|
@@ -40,7 +36,7 @@
|
|
40
36
|
}
|
41
37
|
|
42
38
|
.col-main {
|
43
|
-
|
39
|
+
width: 100%;
|
44
40
|
}
|
45
41
|
|
46
42
|
.collapse-horizontal.collapse:not(.show) {
|
@@ -48,16 +44,12 @@
|
|
48
44
|
}
|
49
45
|
|
50
46
|
.row-main {
|
51
|
-
height: calc(100dvh - 66px);
|
52
|
-
}
|
53
|
-
|
54
|
-
#sidebar.collapsing {
|
55
|
-
transition: none;
|
47
|
+
min-height: calc(100dvh - 66px);
|
56
48
|
}
|
57
49
|
|
58
50
|
#sidebar.collapsing + div,
|
59
51
|
#sidebar.show + div {
|
60
|
-
max-width:
|
52
|
+
max-width: 100%;
|
61
53
|
}
|
62
54
|
|
63
55
|
.col-sidebar .sticky-offset {
|
@@ -0,0 +1,34 @@
|
|
1
|
+
main table {
|
2
|
+
border: 1px solid rgba(133, 133, 133, 0.1);
|
3
|
+
margin-bottom: 1rem;
|
4
|
+
vertical-align: top;
|
5
|
+
width: 100%;
|
6
|
+
|
7
|
+
// border-color: var(--bs-table-border-color);
|
8
|
+
}
|
9
|
+
|
10
|
+
main table thead th {
|
11
|
+
border-bottom-width: 1px;
|
12
|
+
line-height: 1.25;
|
13
|
+
vertical-align: middle;
|
14
|
+
}
|
15
|
+
|
16
|
+
main table thead tr {
|
17
|
+
background-color: rgba(133, 133, 133, 0.1);
|
18
|
+
}
|
19
|
+
|
20
|
+
main table td {
|
21
|
+
font-size: 0.875rem;
|
22
|
+
vertical-align: middle;
|
23
|
+
}
|
24
|
+
|
25
|
+
.table-bordered > :not(caption) > * > * {
|
26
|
+
border-width: 0 var(--bs-border-width);
|
27
|
+
}
|
28
|
+
|
29
|
+
table > :not(caption) > * > * {
|
30
|
+
background-color: var(--bs-table-bg);
|
31
|
+
border-bottom-width: var(--bs-border-width);
|
32
|
+
box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
|
33
|
+
padding: 0.25rem 1rem;
|
34
|
+
}
|
@@ -3,11 +3,11 @@
|
|
3
3
|
}
|
4
4
|
|
5
5
|
.sun-and-moon > :is(.moon, .sun) {
|
6
|
-
fill:
|
6
|
+
fill: #fff;
|
7
7
|
}
|
8
8
|
|
9
9
|
.sun-and-moon > .sun-beams {
|
10
|
-
stroke:
|
10
|
+
stroke: #fff;
|
11
11
|
stroke-width: 2px;
|
12
12
|
}
|
13
13
|
|
@@ -44,14 +44,10 @@
|
|
44
44
|
}
|
45
45
|
}
|
46
46
|
|
47
|
-
[data-bs-theme="dark"] .sun-and-moon > :is(.moon, .sun) {
|
48
|
-
fill: rgb(255, 255, 255);
|
49
|
-
}
|
50
|
-
|
51
47
|
[data-bs-theme="dark"] .sun-and-moon > .sun {
|
52
48
|
transform: scale(1.75);
|
53
|
-
transition-timing-function: cubic-bezier(0.25, 0, 0.3, 1);
|
54
49
|
transition-duration: 0.25s;
|
50
|
+
transition-timing-function: cubic-bezier(0.25, 0, 0.3, 1);
|
55
51
|
}
|
56
52
|
|
57
53
|
[data-bs-theme="dark"] .sun-and-moon > .sun-beams {
|
@@ -66,17 +62,15 @@
|
|
66
62
|
}
|
67
63
|
|
68
64
|
.theme-toggle {
|
69
|
-
--icon-fill: rgb(0, 0, 0);
|
70
|
-
|
71
65
|
aspect-ratio: 1;
|
72
66
|
cursor: pointer;
|
73
|
-
touch-action: manipulation;
|
74
67
|
-webkit-tap-highlight-color: transparent;
|
68
|
+
touch-action: manipulation;
|
75
69
|
}
|
76
70
|
|
77
71
|
.theme-toggle > svg {
|
78
|
-
inline-size: 100%;
|
79
72
|
block-size: 100%;
|
73
|
+
inline-size: 100%;
|
80
74
|
max-height: 18px;
|
81
75
|
max-width: 18px;
|
82
76
|
stroke-linecap: round;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
.feedback {
|
2
|
-
border-color: #90939f
|
2
|
+
border-color: #90939f;
|
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
|
|
@@ -4,11 +4,10 @@
|
|
4
4
|
@import "autocomplete"; // search autocomplete dropdown
|
5
5
|
@import "article";
|
6
6
|
@import "cards";
|
7
|
-
@import "col-sidebar"; // 1st column
|
8
7
|
@import "codefences"; // code syntax highlighting
|
9
8
|
@import "codefences-dark"; // code syntax highlighting
|
10
9
|
@import "javascript-disabled"; // display message at top if JS is disabled
|
11
|
-
|
10
|
+
@import "mq-forced-colors-active"; // forced colors mode
|
12
11
|
@import "sidebar";
|
13
12
|
@import "menu-right"; // 'On this page' menu
|
14
13
|
@import "mobile"; // optimizations for xxs mobile screens
|
@@ -17,7 +16,8 @@
|
|
17
16
|
@import "news";
|
18
17
|
@import "posts";
|
19
18
|
@import "print";
|
20
|
-
|
19
|
+
|
20
|
+
// @import "scroll-to-top-btn";
|
21
21
|
@import "skippy"; // skip to content accessibility
|
22
22
|
@import "tables";
|
23
23
|
@import "footer";
|
@@ -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 -
|
65
|
+
min-height: calc(100vh - 340px);
|
66
66
|
}
|
@@ -1 +1 @@
|
|
1
|
-
var autoComplete=function(){function e(e){function t(e,t){return e.classList?e.classList.contains(t):new RegExp("\\b"+t+"\\b").test(e.className)}function o(e,t,o){e.attachEvent?e.attachEvent("on"+t,o):e.addEventListener(t,o)}function s(e,t,o){e.detachEvent?e.detachEvent("on"+t,o):e.removeEventListener(t,o)}function n(e,s,n,l){o(l||document,s,function(o){for(var s,l=o.target||o.srcElement;l&&!(s=t(l,e));)l=l.parentElement;s&&n.call(l,o)})}if(document.querySelector){var l={selector:0,source:0,minChars:3,delay:150,offsetLeft:0,offsetTop:1,cache:1,menuClass:"",renderItem:function(e,t){t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var o=new RegExp("("+t.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" data-val="'+e+'">'+e.replace(o,"<b>$1</b>")+"</div>"},onSelect:function(){}};for(var c in e)e.hasOwnProperty(c)&&(l[c]=e[c]);for(var a="object"==typeof l.selector?[l.selector]:document.querySelectorAll(l.selector),u=0;u<a.length;u++){var i=a[u];i.sc=document.createElement("div"),i.sc.className="autocomplete-suggestions
|
1
|
+
var autoComplete=function(){function e(e){function t(e,t){return e.classList?e.classList.contains(t):new RegExp("\\b"+t+"\\b").test(e.className)}function o(e,t,o){e.attachEvent?e.attachEvent("on"+t,o):e.addEventListener(t,o)}function s(e,t,o){e.detachEvent?e.detachEvent("on"+t,o):e.removeEventListener(t,o)}function n(e,s,n,l){o(l||document,s,function(o){for(var s,l=o.target||o.srcElement;l&&!(s=t(l,e));)l=l.parentElement;s&&n.call(l,o)})}if(document.querySelector){var l={selector:0,source:0,minChars:3,delay:150,offsetLeft:0,offsetTop:1,cache:1,menuClass:"",renderItem:function(e,t){t=t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var o=new RegExp("("+t.split(" ").join("|")+")","gi");return'<div class="autocomplete-suggestion" role="link" data-val="'+e+'">'+e.replace(o,"<b>$1</b>")+"</div>"},onSelect:function(){}};for(var c in e)e.hasOwnProperty(c)&&(l[c]=e[c]);for(var a="object"==typeof l.selector?[l.selector]:document.querySelectorAll(l.selector),u=0;u<a.length;u++){var i=a[u];i.sc=document.createElement("div"),i.sc.className="autocomplete-suggestions"+l.menuClass,i.autocompleteAttr=i.getAttribute("autocomplete"),i.setAttribute("autocomplete","off"),i.cache={},i.last_val="",i.updateSC=function(e,t){var o=i.getBoundingClientRect();if(i.sc.style.left=Math.round(o.left+(window.pageXOffset||document.documentElement.scrollLeft)+l.offsetLeft)+"px",i.sc.style.top=Math.round(o.bottom+(window.pageYOffset||document.documentElement.scrollTop)+l.offsetTop)+"px",i.sc.style.width=Math.round(o.right-o.left)+"px",!e&&(i.sc.style.display="block",i.sc.maxHeight||(i.sc.maxHeight=parseInt((window.getComputedStyle?getComputedStyle(i.sc,null):i.sc.currentStyle).maxHeight)),i.sc.suggestionHeight||(i.sc.suggestionHeight=i.sc.querySelector(".autocomplete-suggestion").offsetHeight),i.sc.suggestionHeight))if(t){var s=i.sc.scrollTop,n=t.getBoundingClientRect().top-i.sc.getBoundingClientRect().top;n+i.sc.suggestionHeight-i.sc.maxHeight>0?i.sc.scrollTop=n+i.sc.suggestionHeight+s-i.sc.maxHeight:0>n&&(i.sc.scrollTop=n+s)}else i.sc.scrollTop=0},o(window,"resize",i.updateSC),document.body.appendChild(i.sc),n("autocomplete-suggestion","mouseleave",function(){var e=i.sc.querySelector(".autocomplete-suggestion.selected");e&&setTimeout(function(){e.className=e.className.replace("selected","")},20)},i.sc),n("autocomplete-suggestion","mouseover",function(){var e=i.sc.querySelector(".autocomplete-suggestion.selected");e&&(e.className=e.className.replace("selected","")),this.className+=" selected"},i.sc),n("autocomplete-suggestion","mousedown",function(e){if(t(this,"autocomplete-suggestion")){var o=this.getAttribute("data-val");i.value=o,l.onSelect(e,o,this),i.sc.style.display="none"}},i.sc),i.blurHandler=function(){try{var e=document.querySelector(".autocomplete-suggestions:hover")}catch(t){var e=0}e?i!==document.activeElement&&setTimeout(function(){i.focus()},20):(i.last_val=i.value,i.sc.style.display="none",setTimeout(function(){i.sc.style.display="none"},350))},o(i,"blur",i.blurHandler);var r=function(e){var t=i.value;if(i.cache[t]=e,e.length&&t.length>=l.minChars){for(var o="",s=0;s<e.length;s++)o+=l.renderItem(e[s],t);i.sc.innerHTML=o,i.updateSC(0)}else i.sc.style.display="none"};i.keydownHandler=function(e){var t=window.event?e.keyCode:e.which;if((40==t||38==t)&&i.sc.innerHTML){var o,s=i.sc.querySelector(".autocomplete-suggestion.selected");return s?(o=40==t?s.nextSibling:s.previousSibling,o?(s.className=s.className.replace("selected",""),o.className+=" selected",i.value=o.getAttribute("data-val")):(s.className=s.className.replace("selected",""),i.value=i.last_val,o=0)):(o=40==t?i.sc.querySelector(".autocomplete-suggestion"):i.sc.childNodes[i.sc.childNodes.length-1],o.className+=" selected",console.log(o),i.value=o.getAttribute("data-val")),i.updateSC(0,o),!1}if(27==t)i.value=i.last_val,i.sc.style.display="none";else if(13==t||9==t){var s=i.sc.querySelector(".autocomplete-suggestion.selected");s&&"none"!=i.sc.style.display&&(l.onSelect(e,s.getAttribute("data-val"),s),setTimeout(function(){i.sc.style.display="none"},20))}},o(i,"keydown",i.keydownHandler),i.keyupHandler=function(e){var t=window.event?e.keyCode:e.which;if(!t||(35>t||t>40)&&13!=t&&27!=t){var o=i.value;if(o.length>=l.minChars){if(o!=i.last_val){if(i.last_val=o,clearTimeout(i.timer),l.cache){if(o in i.cache)return void r(i.cache[o]);for(var s=1;s<o.length-l.minChars;s++){var n=o.slice(0,o.length-s);if(n in i.cache&&!i.cache[n].length)return void r([])}}i.timer=setTimeout(function(){l.source(o,r)},l.delay)}}else i.last_val=o,i.sc.style.display="none"}},o(i,"keyup",i.keyupHandler),i.focusHandler=function(e){i.last_val="\n",i.keyupHandler(e)},l.minChars||o(i,"focus",i.focusHandler)}this.destroy=function(){for(var e=0;e<a.length;e++){var t=a[e];s(window,"resize",t.updateSC),s(t,"blur",t.blurHandler),s(t,"focus",t.focusHandler),s(t,"keydown",t.keydownHandler),s(t,"keyup",t.keyupHandler),t.autocompleteAttr?t.setAttribute("autocomplete",t.autocompleteAttr):t.removeAttribute("autocomplete"),document.body.removeChild(t.sc),t=null}}}}return e}();!function(){"function"==typeof define&&define.amd?define("autoComplete",function(){return autoComplete}):"undefined"!=typeof module&&module.exports?module.exports=autoComplete:window.autoComplete=autoComplete}();
|
package/assets/js/search.min.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
var lunrIndex,pagesIndex;function endsWith(a,b){return-1!==a.indexOf(b,a.length-b.length)}function initLunr(){endsWith(baseurl,"/")||(baseurl+="/");jQuery.getJSON(baseurl+"index.json").done(function(a){pagesIndex=a,lunrIndex=lunr(function(){this.ref("uri"),this.field("title",{boost:15}),this.field("tags",{boost:10}),this.field("content",{boost:5}),this.pipeline.remove(lunr.stemmer),this.searchPipeline.remove(lunr.stemmer),pagesIndex.forEach(function(a){this.add(a)},this)})}).fail(function(a,b,c){console.error("Error getting Hugo index file:",b+", "+c)})}function search(a){return lunrIndex.search(a+"^100 "+a+"*^10 *"+a+"^10 "+a+"~2^1").map(function(a){return pagesIndex.filter(function(b){return b.uri===a.ref})[0]})}initLunr(),jQuery(document).ready(function(){new autoComplete({selector:jQuery("#search-by").get(0),source:function(a,b){b(search(a))},renderItem:function(a,b){var c=a.content.match("(?:\\s?(?:[\\w]+)\\s?){0,2}"+b+"(?:\\s?(?:[\\w]+)\\s?){0,"+2+"}");return a.context=c,"<div class=\"autocomplete-suggestion\" data-term=\""+b+"\" data-title=\""+a.title+"\" data-uri=\""+a.uri+"?q="+b+"#"+b+"\" data-context=\""+a.context+"\">\xBB "+a.title+"<div class=\"context\">"+(a.context||"")+"</div></div>"},onSelect:function(a,b,c){location.href=c.getAttribute("data-uri")}})});
|
1
|
+
var lunrIndex,pagesIndex;function endsWith(a,b){return-1!==a.indexOf(b,a.length-b.length)}function initLunr(){endsWith(baseurl,"/")||(baseurl+="/");jQuery.getJSON(baseurl+"index.json").done(function(a){pagesIndex=a,lunrIndex=lunr(function(){this.ref("uri"),this.field("title",{boost:15}),this.field("tags",{boost:10}),this.field("content",{boost:5}),this.pipeline.remove(lunr.stemmer),this.searchPipeline.remove(lunr.stemmer),pagesIndex.forEach(function(a){this.add(a)},this)})}).fail(function(a,b,c){console.error("Error getting Hugo index file:",b+", "+c)})}function search(a){return lunrIndex.search(a+"^100 "+a+"*^10 *"+a+"^10 "+a+"~2^1").map(function(a){return pagesIndex.filter(function(b){return b.uri===a.ref})[0]})}initLunr(),jQuery(document).ready(function(){new autoComplete({selector:jQuery("#search-by").get(0),source:function(a,b){b(search(a))},renderItem:function(a,b){var c=a.content.match("(?:\\s?(?:[\\w]+)\\s?){0,2}"+b+"(?:\\s?(?:[\\w]+)\\s?){0,"+2+"}");return a.context=c,"<div class=\"autocomplete-suggestion\" role=\"link\" data-term=\""+b+"\" aria-label=\""+a.title+"\" data-title=\""+a.title+"\" data-uri=\""+a.uri+"?q="+b+"#"+b+"\" data-context=\""+a.context+"\">\xBB "+a.title+"<div aria-hidden=\"true\" class=\"context\">"+(a.context||"")+"</div></div>"},onSelect:function(a,b,c){location.href=c.getAttribute("data-uri")}})});
|
@@ -1,15 +1,22 @@
|
|
1
1
|
$(function () {
|
2
|
-
$('.feedback').fadeIn('slow').addClass('d-block')
|
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
|
-
$('.
|
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
|
-
$('.
|
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
|
});
|
package/data/navbar_apps.yml
CHANGED
@@ -1,15 +1,19 @@
|
|
1
|
+
- title: Modus Style Guide
|
2
|
+
icon: "/img/icons/trimble.svg"
|
3
|
+
url: "https://modus.trimble.com/"
|
4
|
+
|
1
5
|
- title: Modus Web Components
|
2
|
-
icon: ""
|
6
|
+
icon: "/img/icons/web-components.svg"
|
3
7
|
url: "https://modus-web-components.trimble.com/"
|
4
8
|
|
5
9
|
- title: Modus Icons
|
6
|
-
icon: ""
|
10
|
+
icon: "/img/icons/check-circle-outlined.svg"
|
7
11
|
url: "https://modus-icons.trimble.com"
|
8
12
|
|
9
13
|
- title: Modus Bootstrap
|
10
|
-
icon: ""
|
14
|
+
icon: "/img/icons/code.svg"
|
11
15
|
url: "https://modus-bootstrap.trimble.com/"
|
12
16
|
|
13
17
|
- title: Modus on GitHub
|
14
|
-
icon: ""
|
18
|
+
icon: "/img/icons/github.svg"
|
15
19
|
url: "https://github.com/trimble-oss/?q=modus&type=all&language=&sort=stargazers"
|