luna-one 3.1.597 → 3.1.599
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +2315 -2315
- package/dist/global-styles/content/typography.scss +140 -140
- package/dist/global-styles/fonts/benton.scss +113 -113
- package/dist/global-styles/global-terra.scss +10 -10
- package/dist/global-styles/global-vars.scss +599 -599
- package/dist/global-styles/layout/_css-grid.scss +20 -20
- package/dist/global-styles/layout/_media-queries.scss +35 -35
- package/dist/global-styles/layout/_normalize.scss +340 -340
- package/dist/global-styles/layout/_reset.scss +13 -13
- package/dist/global-styles/mixins/_box-shadow.scss +6 -6
- package/dist/global-styles/mixins/_mixins.scss +5 -5
- package/dist/global-styles/mixins/_organism-padding-hack.scss +7 -7
- package/dist/global-styles/mixins/_typography.scss +102 -102
- package/dist/global-styles/mixins/_yiq.scss +50 -50
- package/dist/global-styles/mixins/_z-index.scss +3 -3
- package/dist/global-styles/terra.scss +15 -15
- package/dist/global-styles/utilities/_box-shadow.scss +8 -8
- package/dist/global-styles/utilities/_display.scss +48 -48
- package/dist/global-styles/utilities/_font-family.scss +15 -15
- package/dist/global-styles/utilities/_parallax.scss +23 -23
- package/dist/global-styles/utilities/_text-align.scss +24 -24
- package/dist/luna/components/2x2/2x2.scss +915 -915
- package/dist/luna/components/2x2/2x2Documentation.mdx +77 -77
- package/dist/luna/components/Accordion/Accordion.scss +154 -154
- package/dist/luna/components/Accordion/AccordionDocumentation.mdx +45 -45
- package/dist/luna/components/AdminCategoryData/AdminCategoryData.scss +81 -81
- package/dist/luna/components/AdminProductData/AdminProductData.scss +75 -75
- package/dist/luna/components/BlockListItems/BlockListItems.scss +285 -285
- package/dist/luna/components/BlockListItems/BlockListItemsDocumentation.mdx +339 -339
- package/dist/luna/components/BrowserSupportBanner/BrowserSupportBanner.scss +6 -6
- package/dist/luna/components/CTAButtons/CTAButtons.scss +19 -19
- package/dist/luna/components/CTAButtons/CTAButtonsDocumentation.mdx +33 -33
- package/dist/luna/components/Carousel/Carousel.scss +155 -155
- package/dist/luna/components/Carousel/CarouselDocumentation.mdx +161 -161
- package/dist/luna/components/ComparisonTable/ComparisonTable.scss +331 -331
- package/dist/luna/components/ComparisonTable/ComparisonTableDocumentation.mdx +159 -159
- package/dist/luna/components/CtaWithHeader/CTAHeaderTextDocumentation.mdx +45 -45
- package/dist/luna/components/CtaWithHeader/CtaWithHeader.scss +324 -324
- package/dist/luna/components/DataPoint/DataPoint.scss +170 -170
- package/dist/luna/components/DataPoint/DataPointDocumentation.mdx +40 -40
- package/dist/luna/components/EventCard/EventCard.scss +134 -134
- package/dist/luna/components/EventCard/EventCardDocumentation.mdx +46 -46
- package/dist/luna/components/FilterHero/FilterHero.scss +80 -80
- package/dist/luna/components/FilterSection/FilterSection.scss +175 -175
- package/dist/luna/components/Flyout/Flyout.scss +367 -367
- package/dist/luna/components/Flyout/FlyoutDocumentation.mdx +60 -60
- package/dist/luna/components/Footer/Footer.scss +484 -484
- package/dist/luna/components/Footer/FooterDocumentation.mdx +133 -133
- package/dist/luna/components/FullBackgroundHero/FullBackgroundHero.scss +722 -722
- package/dist/luna/components/FullBackgroundHero/FullBackgroundHeroDocumentation.mdx +93 -93
- package/dist/luna/components/HTMLEmbed/HTMLEmbed.scss +51 -51
- package/dist/luna/components/HTMLEmbed/HTMLEmbedDocumentation.mdx +31 -31
- package/dist/luna/components/Header/Header.scss +36 -36
- package/dist/luna/components/Header/HeaderDocumentation.mdx +24 -24
- package/dist/luna/components/IconTextList/IconTextList.scss +124 -124
- package/dist/luna/components/IconTextList/IconTextListDocumentation.mdx +45 -45
- package/dist/luna/components/ImageGallery/ImageGallery.scss +442 -442
- package/dist/luna/components/ImageGallery/ImageGalleryDocumentation.mdx +90 -90
- package/dist/luna/components/InPageJumpNav/InPageJumpNav.scss +122 -122
- package/dist/luna/components/InPageJumpNav/InPageJumpNavDocumentation.mdx +22 -22
- package/dist/luna/components/JobPosting/JobPosting.scss +171 -171
- package/dist/luna/components/JobPosting/JobPostingDocumentation.mdx +69 -69
- package/dist/luna/components/LanguageSelector/LanguageSelector.js +4 -4
- package/dist/luna/components/LanguageSelector/LanguageSelector.scss +318 -318
- package/dist/luna/components/LanguageSelector/LanguageSelectorDocumentation.mdx +119 -119
- package/dist/luna/components/LinkList/LinkList.scss +59 -59
- package/dist/luna/components/LinkList/LinkListDocumentation.mdx +54 -54
- package/dist/luna/components/LoadingSpinner/LoadingSpinner.scss +34 -34
- package/dist/luna/components/Login/Login.scss +180 -180
- package/dist/luna/components/MarketoForm/MarketoForm.scss +56 -56
- package/dist/luna/components/MarketoForm/MarketoFormDocumentation.mdx +1 -1
- package/dist/luna/components/MegaMenu/MegaMenu.scss +570 -570
- package/dist/luna/components/MobileLogin/MobileLogin.scss +38 -38
- package/dist/luna/components/MobileMegaMenu/MobileMegaMenu.scss +289 -289
- package/dist/luna/components/MobileMenu/MobileMenu.scss +70 -70
- package/dist/luna/components/MobileNav/MobileNav.scss +286 -286
- package/dist/luna/components/NavBar/NavBar.scss +628 -628
- package/dist/luna/components/NavBar/NavigationBarDocumentation.mdx +245 -245
- package/dist/luna/components/NavBarTop/NavBarTop.scss +403 -403
- package/dist/luna/components/NavSearch/NavSearch.scss +130 -130
- package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntries.scss +339 -339
- package/dist/luna/components/NonTimeBasedListEntries/NonTimeBasedListEntriesDocumentation.mdx +89 -89
- package/dist/luna/components/OverlayNotice/OverlayNotice.scss +247 -247
- package/dist/luna/components/OverlayNotice/OverlayNoticeDocumentation.mdx +45 -45
- package/dist/luna/components/Pagination/Pagination.scss +27 -27
- package/dist/luna/components/ProductSummary/ProductSummary.scss +273 -273
- package/dist/luna/components/ProductsPackage/ProductsPackage.scss +194 -194
- package/dist/luna/components/ProseLayout/ProseLayout.js +7 -5
- package/dist/luna/components/ProseLayout/ProseLayout.scss +394 -384
- package/dist/luna/components/ProseLayout/ProseLayoutDocumentation.mdx +93 -93
- package/dist/luna/components/PullQuote/PullQuote.scss +400 -400
- package/dist/luna/components/PullQuote/PullQuoteDocumentation.mdx +60 -60
- package/dist/luna/components/PullQuote/ico-quote-white.svg +3 -3
- package/dist/luna/components/PullQuote/ico-quote.svg +3 -3
- package/dist/luna/components/RegionCard/RegionCard.scss +86 -86
- package/dist/luna/components/ResourceGrid/ResourceGrid.scss +34 -34
- package/dist/luna/components/ResourceGrid/ResourceGridDocumentation.mdx +102 -102
- package/dist/luna/components/ScrollInPlace/ScrollInPlace.scss +219 -219
- package/dist/luna/components/ScrollInPlace/ScrollInPlaceDocumentation.mdx +123 -123
- package/dist/luna/components/SketchUpPricingCard/SketchUpPricingCard.scss +142 -142
- package/dist/luna/components/SlideOutFeat/SlideOutFeat.scss +124 -124
- package/dist/luna/components/StoreFrontCard/StoreFrontCard.scss +434 -434
- package/dist/luna/components/SubNav/SubNav.scss +274 -274
- package/dist/luna/components/SuperHero/SuperHero.scss +804 -804
- package/dist/luna/components/SuperHero/SuperHeroDocumentation.mdx +57 -57
- package/dist/luna/components/SupportCard/SupportCard.scss +134 -134
- package/dist/luna/components/Tabs/Tabs.scss +871 -871
- package/dist/luna/components/Tabs/TabsDocumentation.mdx +94 -94
- package/dist/luna/components/TimeBasedList/TimeBasedList.scss +394 -394
- package/dist/luna/components/TimeBasedList/TimeBasedListDocumentation.mdx +123 -123
- package/dist/luna/components/TrainerCard/TrainerCard.scss +51 -51
- package/dist/luna/components/TrialForm/TrialComponents/TrialSpecifics.scss +44 -44
- package/dist/luna/components/TrialForm/TrialComponents/TrialSummary.scss +57 -57
- package/dist/luna/components/TrialForm/TrialFormStart/TrialFormStart.scss +28 -28
- package/dist/luna/components/TrialForm/images/check.svg +3 -3
- package/dist/luna/components/TrialForm/images/form-border-bottom-dark.svg +4 -4
- package/dist/luna/components/TrialForm/images/form-border-bottom-light.svg +4 -4
- package/dist/luna/components/TrialForm/images/form-border-top-dark.svg +4 -4
- package/dist/luna/components/TrialForm/images/form-border-top-light.svg +4 -4
- package/dist/luna/components/UnboundedCard/UnboundedCard.scss +108 -108
- package/dist/luna/components/UnboundedCard/playIcon.svg +17 -17
- package/dist/luna/components/VariableContentCard/VariableContentCard.scss +253 -253
- package/dist/luna/components/Video/Video.scss +209 -209
- package/dist/luna/components/Video/VideoDocumentation.mdx +56 -56
- package/dist/luna/components/VidyardModal/VidyardModal.scss +34 -34
- package/dist/luna/components/WaffleMenu/WaffleMenu.scss +73 -73
- package/dist/luna/images/arrow-diagonal-black.svg +13 -13
- package/dist/luna/images/arrow-diagonal-blue.svg +13 -13
- package/dist/luna/images/arrow-diagonal-white.svg +13 -13
- package/dist/luna/images/bulletpoint.svg +3 -3
- package/dist/luna/images/callout-icon.svg +3 -3
- package/dist/luna/images/carat-down.svg +3 -3
- package/dist/luna/images/carat-up.svg +3 -3
- package/dist/luna/images/check-blue.svg +4 -4
- package/dist/luna/images/circle-arrow-right-black.svg +3 -3
- package/dist/luna/images/circle-arrow-right-white.svg +3 -3
- package/dist/luna/images/circle-arrow.svg +3 -3
- package/dist/luna/images/close-blue.svg +4 -4
- package/dist/luna/images/close-button.svg +42 -42
- package/dist/luna/images/close-dark-navy.svg +3 -3
- package/dist/luna/images/close-icon.svg +3 -3
- package/dist/luna/images/close.svg +3 -3
- package/dist/luna/images/collapse-close-blue.svg +5 -5
- package/dist/luna/images/collapse-close-gold.svg +5 -5
- package/dist/luna/images/collapse-open-blue.svg +4 -4
- package/dist/luna/images/collapse-open-gold.svg +4 -4
- package/dist/luna/images/cross-medium-blue.svg +4 -4
- package/dist/luna/images/cross-medium-white.svg +5 -5
- package/dist/luna/images/down-caret-dark-blue.svg +4 -4
- package/dist/luna/images/down-caret-dark-gray.svg +4 -4
- package/dist/luna/images/down-caret-light-gray.svg +4 -4
- package/dist/luna/images/downArrow.svg +36 -36
- package/dist/luna/images/ellipses.svg +6 -6
- package/dist/luna/images/external-arrow-blue.svg +11 -11
- package/dist/luna/images/external-arrow-white-theme.svg +12 -12
- package/dist/luna/images/external-arrow.svg +12 -12
- package/dist/luna/images/facebook.svg +13 -13
- package/dist/luna/images/form-border-top-light.svg +4 -4
- package/dist/luna/images/frame-intersection.svg +3 -3
- package/dist/luna/images/gallery-image-corner-border.svg +3 -3
- package/dist/luna/images/green-tick.svg +3 -3
- package/dist/luna/images/instagram.svg +19 -19
- package/dist/luna/images/internal-arrow-blue.svg +15 -15
- package/dist/luna/images/internal-arrow-white-theme.svg +15 -15
- package/dist/luna/images/internal-arrow.svg +15 -15
- package/dist/luna/images/linkedin.svg +15 -15
- package/dist/luna/images/logo-icon.svg +17 -17
- package/dist/luna/images/pdf-doc.svg +9 -9
- package/dist/luna/images/play.svg +17 -17
- package/dist/luna/images/right-caret-dark-blue.svg +3 -3
- package/dist/luna/images/right-caret-light-gray.svg +4 -4
- package/dist/luna/images/right-caret-light-yellow-stroke.svg +9 -9
- package/dist/luna/images/right-caret-light-yellow.svg +4 -4
- package/dist/luna/images/right-caret-medium-gray.svg +4 -4
- package/dist/luna/images/search.svg +9 -9
- package/dist/luna/images/skipicon.svg +154 -154
- package/dist/luna/images/text-doc.svg +9 -9
- package/dist/luna/images/text-lines.svg +22 -22
- package/dist/luna/images/tooltip-close-icon.svg +3 -3
- package/dist/luna/images/tooltip-icon.svg +3 -3
- package/dist/luna/images/twitter.svg +17 -17
- package/dist/luna/images/up-arrow.svg +36 -36
- package/dist/luna/images/up-right-arrow.svg +9 -9
- package/dist/luna/images/user-profile.svg +37 -37
- package/dist/luna/images/user.svg +4 -4
- package/dist/luna/images/waffle.svg +11 -11
- package/dist/luna/images/worldwide.svg +19 -19
- package/dist/luna/images/youtube.svg +14 -14
- package/package.json +91 -91
@@ -1,90 +1,90 @@
|
|
1
|
-
#### Block List Item
|
2
|
-
|
3
|
-
###### Props -
|
4
|
-
|
5
|
-
- `content` **(required)** - object containing cards, with following props
|
6
|
-
- `cards` - array containing objects for generating cards
|
7
|
-
- `eyebrow` - string for generating card eyebrow text
|
8
|
-
- `header` - string for generating card header text
|
9
|
-
- `text` - string for generating card body text
|
10
|
-
- `cardAlignment` - boolean for changing position of card image: image-top or image-bottom options toggled by `false` and `true` respectively
|
11
|
-
- `image` - object for generating card image
|
12
|
-
- `url` - string for generating image source text
|
13
|
-
- `altText` - string for generating image accessibility text
|
14
|
-
- `src` - string source of image
|
15
|
-
- `gatsbyImage` - boolean for use with image, allows use of GatsbyImage component
|
16
|
-
- `textLink` - object for generating card text CTA
|
17
|
-
- `url` - string for generating CTA href or React Router `to`
|
18
|
-
- `text` - string for generating CTA text
|
19
|
-
- `Link` - optional - either a react-router-dom or gatsby-link component
|
20
|
-
- `button` - optional object for use when a button is desired
|
21
|
-
- `text` - string for generating button text
|
22
|
-
- `url` - string for generating CTA href or React Router `to`
|
23
|
-
- `type` - string for assigning CSS class to button
|
24
|
-
- `displayButton` - boolean for when a button is desired (required to display button)
|
25
|
-
- `bgColor` - string used for determining background-color of card - currently only `grey` is available.
|
26
|
-
- `type` **(required)** - required to render the correct type of block list - e.g. `bounded_cards`
|
27
|
-
- `motion` - boolean used to indicate whether or not motion should be used
|
28
|
-
- `paddingClass` - string containing the container padding class name
|
29
|
-
|
30
|
-
###### Example -
|
31
|
-
|
32
|
-
```
|
33
|
-
const CardImage = "../images/dummy-image.png";
|
34
|
-
const content = {
|
35
|
-
type: "bounded_cards",
|
36
|
-
cards: [
|
37
|
-
{
|
38
|
-
image: { src: CardImage, altText: "FPO Image" },
|
39
|
-
eyebrow: "Eyebrow Option",
|
40
|
-
header: "Trimble S9 HP",
|
41
|
-
displayButton: true,
|
42
|
-
button: {
|
43
|
-
url: "/#",
|
44
|
-
text: "Button",
|
45
|
-
},
|
46
|
-
text:
|
47
|
-
"Combines top field technologies with the highest level of accuracy and most advanced engineering features.",
|
48
|
-
},
|
49
|
-
{
|
50
|
-
image: { src: CardImage, altText: "FPO Image" },
|
51
|
-
eyebrow: "Eyebrow Option",
|
52
|
-
header: "Trimble Zephyr 3 for GIS",
|
53
|
-
displayButton: true,
|
54
|
-
button: {
|
55
|
-
url: "/#",
|
56
|
-
text: "Button",
|
57
|
-
},
|
58
|
-
},
|
59
|
-
{
|
60
|
-
image: { src: CardImage, altText: "FPO Image" },
|
61
|
-
eyebrow: "Eyebrow Option",
|
62
|
-
header: "Trimble S5",
|
63
|
-
displayButton: true,
|
64
|
-
button: {
|
65
|
-
url: "/#",
|
66
|
-
text: "Button",
|
67
|
-
},
|
68
|
-
text:
|
69
|
-
"The no nonsense workhorse that works efficiently and dependably while maintaining the highest possible accuracy",
|
70
|
-
},
|
71
|
-
{
|
72
|
-
image: { src: CardImage, altText: "FPO Image" },
|
73
|
-
eyebrow: "Eyebrow Option",
|
74
|
-
header: "Yo I am a title! Woooo",
|
75
|
-
displayButton: true,
|
76
|
-
button: {
|
77
|
-
url: "/#",
|
78
|
-
text: "Button",
|
79
|
-
},
|
80
|
-
text:
|
81
|
-
"Uncompromising performance, range, accuracy and speed.",
|
82
|
-
}
|
83
|
-
],
|
84
|
-
cardAlignment: true,
|
85
|
-
};
|
86
|
-
|
87
|
-
return (
|
88
|
-
<ListFeat content={content} motion />
|
89
|
-
)
|
90
|
-
```
|
1
|
+
#### Block List Item
|
2
|
+
|
3
|
+
###### Props -
|
4
|
+
|
5
|
+
- `content` **(required)** - object containing cards, with following props
|
6
|
+
- `cards` - array containing objects for generating cards
|
7
|
+
- `eyebrow` - string for generating card eyebrow text
|
8
|
+
- `header` - string for generating card header text
|
9
|
+
- `text` - string for generating card body text
|
10
|
+
- `cardAlignment` - boolean for changing position of card image: image-top or image-bottom options toggled by `false` and `true` respectively
|
11
|
+
- `image` - object for generating card image
|
12
|
+
- `url` - string for generating image source text
|
13
|
+
- `altText` - string for generating image accessibility text
|
14
|
+
- `src` - string source of image
|
15
|
+
- `gatsbyImage` - boolean for use with image, allows use of GatsbyImage component
|
16
|
+
- `textLink` - object for generating card text CTA
|
17
|
+
- `url` - string for generating CTA href or React Router `to`
|
18
|
+
- `text` - string for generating CTA text
|
19
|
+
- `Link` - optional - either a react-router-dom or gatsby-link component
|
20
|
+
- `button` - optional object for use when a button is desired
|
21
|
+
- `text` - string for generating button text
|
22
|
+
- `url` - string for generating CTA href or React Router `to`
|
23
|
+
- `type` - string for assigning CSS class to button
|
24
|
+
- `displayButton` - boolean for when a button is desired (required to display button)
|
25
|
+
- `bgColor` - string used for determining background-color of card - currently only `grey` is available.
|
26
|
+
- `type` **(required)** - required to render the correct type of block list - e.g. `bounded_cards`
|
27
|
+
- `motion` - boolean used to indicate whether or not motion should be used
|
28
|
+
- `paddingClass` - string containing the container padding class name
|
29
|
+
|
30
|
+
###### Example -
|
31
|
+
|
32
|
+
```
|
33
|
+
const CardImage = "../images/dummy-image.png";
|
34
|
+
const content = {
|
35
|
+
type: "bounded_cards",
|
36
|
+
cards: [
|
37
|
+
{
|
38
|
+
image: { src: CardImage, altText: "FPO Image" },
|
39
|
+
eyebrow: "Eyebrow Option",
|
40
|
+
header: "Trimble S9 HP",
|
41
|
+
displayButton: true,
|
42
|
+
button: {
|
43
|
+
url: "/#",
|
44
|
+
text: "Button",
|
45
|
+
},
|
46
|
+
text:
|
47
|
+
"Combines top field technologies with the highest level of accuracy and most advanced engineering features.",
|
48
|
+
},
|
49
|
+
{
|
50
|
+
image: { src: CardImage, altText: "FPO Image" },
|
51
|
+
eyebrow: "Eyebrow Option",
|
52
|
+
header: "Trimble Zephyr 3 for GIS",
|
53
|
+
displayButton: true,
|
54
|
+
button: {
|
55
|
+
url: "/#",
|
56
|
+
text: "Button",
|
57
|
+
},
|
58
|
+
},
|
59
|
+
{
|
60
|
+
image: { src: CardImage, altText: "FPO Image" },
|
61
|
+
eyebrow: "Eyebrow Option",
|
62
|
+
header: "Trimble S5",
|
63
|
+
displayButton: true,
|
64
|
+
button: {
|
65
|
+
url: "/#",
|
66
|
+
text: "Button",
|
67
|
+
},
|
68
|
+
text:
|
69
|
+
"The no nonsense workhorse that works efficiently and dependably while maintaining the highest possible accuracy",
|
70
|
+
},
|
71
|
+
{
|
72
|
+
image: { src: CardImage, altText: "FPO Image" },
|
73
|
+
eyebrow: "Eyebrow Option",
|
74
|
+
header: "Yo I am a title! Woooo",
|
75
|
+
displayButton: true,
|
76
|
+
button: {
|
77
|
+
url: "/#",
|
78
|
+
text: "Button",
|
79
|
+
},
|
80
|
+
text:
|
81
|
+
"Uncompromising performance, range, accuracy and speed.",
|
82
|
+
}
|
83
|
+
],
|
84
|
+
cardAlignment: true,
|
85
|
+
};
|
86
|
+
|
87
|
+
return (
|
88
|
+
<ListFeat content={content} motion />
|
89
|
+
)
|
90
|
+
```
|
@@ -1,123 +1,123 @@
|
|
1
|
-
@import "../../../global-styles/terra.scss";
|
2
|
-
|
3
|
-
.ter-jump-nav {
|
4
|
-
background-color: $trimble-dark-gray;
|
5
|
-
opacity: 0.9;
|
6
|
-
color: $white;
|
7
|
-
overflow: hidden;
|
8
|
-
display: none;
|
9
|
-
font-size: $body-font-size;
|
10
|
-
width: 100%;
|
11
|
-
max-width: 36px;
|
12
|
-
padding: 8px;
|
13
|
-
pointer-events: auto;
|
14
|
-
@media screen and (min-width: $breakpoint-sm) {
|
15
|
-
margin-right: 22px;
|
16
|
-
display: flex;
|
17
|
-
}
|
18
|
-
@media screen and (min-width: $breakpoint-md){
|
19
|
-
margin-right: 0;
|
20
|
-
}
|
21
|
-
@media screen and (min-width: 1400px) {
|
22
|
-
margin-right: -58px;
|
23
|
-
}
|
24
|
-
&:not(.ter-jump-nav--expanded){
|
25
|
-
font-size: 0;
|
26
|
-
cursor: pointer;
|
27
|
-
.ter-jump-nav__nav-link {
|
28
|
-
pointer-events: none;
|
29
|
-
}
|
30
|
-
}
|
31
|
-
&--expanded {
|
32
|
-
max-width: 210px;
|
33
|
-
padding: 16px 20px;
|
34
|
-
.ter-jump-nav__nav-item {
|
35
|
-
padding: 10px 0;
|
36
|
-
}
|
37
|
-
.ter-jump-nav__nav-link {
|
38
|
-
pointer-events: auto;
|
39
|
-
cursor: pointer;
|
40
|
-
color: $white;
|
41
|
-
text-decoration: none;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
&-holder {
|
45
|
-
position: fixed;
|
46
|
-
z-index: 50;
|
47
|
-
display: flex;
|
48
|
-
justify-content: flex-end;
|
49
|
-
pointer-events: none;
|
50
|
-
top: 40vh;
|
51
|
-
right: 0;
|
52
|
-
width: 100%;
|
53
|
-
}
|
54
|
-
* {
|
55
|
-
opacity: 1;
|
56
|
-
}
|
57
|
-
&__heading {
|
58
|
-
font-size: $body-font-size;
|
59
|
-
cursor: pointer;
|
60
|
-
display: grid;
|
61
|
-
grid-template-columns: 20px auto;
|
62
|
-
font-weight: 700;
|
63
|
-
}
|
64
|
-
&__heading-text {
|
65
|
-
padding-left: 10px;
|
66
|
-
display: flex;
|
67
|
-
align-items: center;
|
68
|
-
}
|
69
|
-
&__heading-icon {
|
70
|
-
width: 20px;
|
71
|
-
margin-right: 10px;
|
72
|
-
}
|
73
|
-
&__nav {
|
74
|
-
padding: 0;
|
75
|
-
margin: 0;
|
76
|
-
}
|
77
|
-
&__nav-item {
|
78
|
-
line-height: 1;
|
79
|
-
list-style-type: none;
|
80
|
-
position: relative;
|
81
|
-
padding: 5px 0;
|
82
|
-
}
|
83
|
-
&__link-dot {
|
84
|
-
display: flex;
|
85
|
-
align-items: top;
|
86
|
-
padding-top: 4px;
|
87
|
-
&:before {
|
88
|
-
content: "";
|
89
|
-
display: inline-block;
|
90
|
-
background-color: white;
|
91
|
-
border-radius: 50%;
|
92
|
-
height: 4px;
|
93
|
-
width: 4px;
|
94
|
-
position: relative;
|
95
|
-
margin: 0 auto;
|
96
|
-
left: 0;
|
97
|
-
}
|
98
|
-
}
|
99
|
-
&__link-text {
|
100
|
-
padding-left: 10px;
|
101
|
-
}
|
102
|
-
&__nav-link {
|
103
|
-
text-decoration: none;
|
104
|
-
color: $white;
|
105
|
-
opacity: 0.8;
|
106
|
-
display: grid;
|
107
|
-
grid-template-columns: 20px auto;
|
108
|
-
font-weight: inherit;
|
109
|
-
}
|
110
|
-
&__nav-item--active > .ter-jump-nav__nav-link {
|
111
|
-
opacity: 1;
|
112
|
-
color: $white;
|
113
|
-
text-decoration: none;
|
114
|
-
font-weight: bold;
|
115
|
-
.ter-jump-nav__link-dot:before {
|
116
|
-
transform: scale(1.5);
|
117
|
-
}
|
118
|
-
}
|
119
|
-
.ter-jump-nav__nav-item:not(.ter-jump-nav__heading) > .ter-jump-nav__nav-link:hover,
|
120
|
-
.ter-jump-nav__nav-item:not(.ter-jump-nav__heading) > .ter-jump-nav__nav-link:active {
|
121
|
-
text-decoration: underline;
|
122
|
-
}
|
1
|
+
@import "../../../global-styles/terra.scss";
|
2
|
+
|
3
|
+
.ter-jump-nav {
|
4
|
+
background-color: $trimble-dark-gray;
|
5
|
+
opacity: 0.9;
|
6
|
+
color: $white;
|
7
|
+
overflow: hidden;
|
8
|
+
display: none;
|
9
|
+
font-size: $body-font-size;
|
10
|
+
width: 100%;
|
11
|
+
max-width: 36px;
|
12
|
+
padding: 8px;
|
13
|
+
pointer-events: auto;
|
14
|
+
@media screen and (min-width: $breakpoint-sm) {
|
15
|
+
margin-right: 22px;
|
16
|
+
display: flex;
|
17
|
+
}
|
18
|
+
@media screen and (min-width: $breakpoint-md){
|
19
|
+
margin-right: 0;
|
20
|
+
}
|
21
|
+
@media screen and (min-width: 1400px) {
|
22
|
+
margin-right: -58px;
|
23
|
+
}
|
24
|
+
&:not(.ter-jump-nav--expanded){
|
25
|
+
font-size: 0;
|
26
|
+
cursor: pointer;
|
27
|
+
.ter-jump-nav__nav-link {
|
28
|
+
pointer-events: none;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
&--expanded {
|
32
|
+
max-width: 210px;
|
33
|
+
padding: 16px 20px;
|
34
|
+
.ter-jump-nav__nav-item {
|
35
|
+
padding: 10px 0;
|
36
|
+
}
|
37
|
+
.ter-jump-nav__nav-link {
|
38
|
+
pointer-events: auto;
|
39
|
+
cursor: pointer;
|
40
|
+
color: $white;
|
41
|
+
text-decoration: none;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
&-holder {
|
45
|
+
position: fixed;
|
46
|
+
z-index: 50;
|
47
|
+
display: flex;
|
48
|
+
justify-content: flex-end;
|
49
|
+
pointer-events: none;
|
50
|
+
top: 40vh;
|
51
|
+
right: 0;
|
52
|
+
width: 100%;
|
53
|
+
}
|
54
|
+
* {
|
55
|
+
opacity: 1;
|
56
|
+
}
|
57
|
+
&__heading {
|
58
|
+
font-size: $body-font-size;
|
59
|
+
cursor: pointer;
|
60
|
+
display: grid;
|
61
|
+
grid-template-columns: 20px auto;
|
62
|
+
font-weight: 700;
|
63
|
+
}
|
64
|
+
&__heading-text {
|
65
|
+
padding-left: 10px;
|
66
|
+
display: flex;
|
67
|
+
align-items: center;
|
68
|
+
}
|
69
|
+
&__heading-icon {
|
70
|
+
width: 20px;
|
71
|
+
margin-right: 10px;
|
72
|
+
}
|
73
|
+
&__nav {
|
74
|
+
padding: 0;
|
75
|
+
margin: 0;
|
76
|
+
}
|
77
|
+
&__nav-item {
|
78
|
+
line-height: 1;
|
79
|
+
list-style-type: none;
|
80
|
+
position: relative;
|
81
|
+
padding: 5px 0;
|
82
|
+
}
|
83
|
+
&__link-dot {
|
84
|
+
display: flex;
|
85
|
+
align-items: top;
|
86
|
+
padding-top: 4px;
|
87
|
+
&:before {
|
88
|
+
content: "";
|
89
|
+
display: inline-block;
|
90
|
+
background-color: white;
|
91
|
+
border-radius: 50%;
|
92
|
+
height: 4px;
|
93
|
+
width: 4px;
|
94
|
+
position: relative;
|
95
|
+
margin: 0 auto;
|
96
|
+
left: 0;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
&__link-text {
|
100
|
+
padding-left: 10px;
|
101
|
+
}
|
102
|
+
&__nav-link {
|
103
|
+
text-decoration: none;
|
104
|
+
color: $white;
|
105
|
+
opacity: 0.8;
|
106
|
+
display: grid;
|
107
|
+
grid-template-columns: 20px auto;
|
108
|
+
font-weight: inherit;
|
109
|
+
}
|
110
|
+
&__nav-item--active > .ter-jump-nav__nav-link {
|
111
|
+
opacity: 1;
|
112
|
+
color: $white;
|
113
|
+
text-decoration: none;
|
114
|
+
font-weight: bold;
|
115
|
+
.ter-jump-nav__link-dot:before {
|
116
|
+
transform: scale(1.5);
|
117
|
+
}
|
118
|
+
}
|
119
|
+
.ter-jump-nav__nav-item:not(.ter-jump-nav__heading) > .ter-jump-nav__nav-link:hover,
|
120
|
+
.ter-jump-nav__nav-item:not(.ter-jump-nav__heading) > .ter-jump-nav__nav-link:active {
|
121
|
+
text-decoration: underline;
|
122
|
+
}
|
123
123
|
}
|
@@ -1,23 +1,23 @@
|
|
1
|
-
#### In-Page Jump Nav
|
2
|
-
|
3
|
-
###### Props -
|
4
|
-
|
5
|
-
- `pageSections` - array of objects, each with `title` & `link` as strings to represent the sections on a page.
|
6
|
-
|
7
|
-
###### Example -
|
8
|
-
|
9
|
-
```
|
10
|
-
|
11
|
-
const pageSections = [
|
12
|
-
{ title: "Overview", link: "#overview" },
|
13
|
-
{ title: "Uses by Industry", link: "#uses" },
|
14
|
-
{ title: "Features & Benefits", link: "#features" },
|
15
|
-
{ title: "Complete Solutions and Lorem Ipsum", link: "#solutions" },
|
16
|
-
{ title: "Articles", link: "#articles" },
|
17
|
-
];
|
18
|
-
|
19
|
-
|
20
|
-
return (
|
21
|
-
<InPageJumpNav pageSections={pageSections} />
|
22
|
-
);
|
1
|
+
#### In-Page Jump Nav
|
2
|
+
|
3
|
+
###### Props -
|
4
|
+
|
5
|
+
- `pageSections` - array of objects, each with `title` & `link` as strings to represent the sections on a page.
|
6
|
+
|
7
|
+
###### Example -
|
8
|
+
|
9
|
+
```
|
10
|
+
|
11
|
+
const pageSections = [
|
12
|
+
{ title: "Overview", link: "#overview" },
|
13
|
+
{ title: "Uses by Industry", link: "#uses" },
|
14
|
+
{ title: "Features & Benefits", link: "#features" },
|
15
|
+
{ title: "Complete Solutions and Lorem Ipsum", link: "#solutions" },
|
16
|
+
{ title: "Articles", link: "#articles" },
|
17
|
+
];
|
18
|
+
|
19
|
+
|
20
|
+
return (
|
21
|
+
<InPageJumpNav pageSections={pageSections} />
|
22
|
+
);
|
23
23
|
```
|