@ptcwebops/ptcw-design 6.3.48-beta → 6.3.50-beta
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/dist/cjs/ptc-card_2.cjs.entry.js +4 -1
- package/dist/cjs/ptc-sticky-icons.cjs.entry.js +9 -0
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +109 -0
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +3 -0
- package/dist/collection/components/ptc-sticky-icons/ptc-sticky-icons.js +9 -0
- package/dist/custom-elements/index.js +13 -1
- package/dist/esm/ptc-card_2.entry.js +4 -1
- package/dist/esm/ptc-sticky-icons.entry.js +9 -0
- package/dist/ptcw-design/p-e3867512.entry.js +1 -0
- package/dist/ptcw-design/p-e9c5e74e.entry.js +1 -0
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/ptcw-design/p-0e5932f0.entry.js +0 -1
- package/dist/ptcw-design/p-0ef61b44.entry.js +0 -1
|
@@ -17,6 +17,7 @@ const PtcStickyIcons = class {
|
|
|
17
17
|
}
|
|
18
18
|
setHostLocation() {
|
|
19
19
|
let width = (window.innerWidth > 0) ? window.innerWidth : screen.width;
|
|
20
|
+
const detailSection = document.querySelector(".cs-detail-section");
|
|
20
21
|
let currEle = this.el;
|
|
21
22
|
// get the element
|
|
22
23
|
const element = document.querySelector("ptc-sticky-icons");
|
|
@@ -25,6 +26,14 @@ const PtcStickyIcons = class {
|
|
|
25
26
|
if (width < 992) {
|
|
26
27
|
currEle.parentElement.appendChild(currEle);
|
|
27
28
|
currEle.parentElement.style.paddingRight = "0px";
|
|
29
|
+
// Code for case study page only
|
|
30
|
+
// Moving sticky icon in the last ptc-section div
|
|
31
|
+
if (detailSection) {
|
|
32
|
+
const lastSection = detailSection.querySelectorAll('.content-section section.ptc-section').length ? detailSection.querySelectorAll('section.ptc-section')[detailSection.querySelectorAll('section.ptc-section').length - 1] : null;
|
|
33
|
+
if (lastSection && !lastSection.contains(element)) {
|
|
34
|
+
lastSection.appendChild(currEle);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
28
37
|
}
|
|
29
38
|
else {
|
|
30
39
|
currEle.parentElement.prepend(currEle);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as e,H as i,g as n}from"./p-ac75c7ad.js";const a=class{constructor(e){t(this,e)}handleResize(){this.setHostLocation()}componentWillLoad(){this.setHostLocation()}render(){return e(i,null,e("div",{class:"icon-container"},e("slot",null)))}setHostLocation(){let t=window.innerWidth>0?window.innerWidth:screen.width;const e=document.querySelector(".cs-detail-section");let i=this.el;const n=document.querySelector("ptc-sticky-icons");if(n)if(i.parentElement.style.position="relative",t<992){if(i.parentElement.appendChild(i),i.parentElement.style.paddingRight="0px",e){const t=e.querySelectorAll(".content-section section.ptc-section").length?e.querySelectorAll("section.ptc-section")[e.querySelectorAll("section.ptc-section").length-1]:null;t&&!t.contains(n)&&t.appendChild(i)}}else i.parentElement.prepend(i),i.parentElement.style.paddingRight="40px"}get el(){return n(this)}};a.style="h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}@media only screen and (min-width: 992px){:host{z-index:105;margin:auto;position:sticky;top:10%;right:0;float:right;margin-right:-40px}}:host .icon-container{padding:var(--ptc-element-spacing-03) 0}@media only screen and (min-width: 992px){:host .icon-container{padding:0 0 0 var(--ptc-element-spacing-03);display:flex;flex-direction:column}}:host ::slotted(ptc-social-share){margin:0 var(--ptc-element-spacing-03) 0 0}@media only screen and (min-width: 992px){:host ::slotted(ptc-social-share){margin:0 0 var(--ptc-element-spacing-03) 0;display:flex;align-items:center;justify-content:center}}";export{a as ptc_sticky_icons}
|