@visitscotland/component-library 4.7.2 → 4.7.4

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.
@@ -20,7 +20,7 @@
20
20
  "index.js"
21
21
  ],
22
22
  "styles": [
23
- "styles/5f0c98d16fb66a56ae8f.css"
23
+ "styles/a84fc60f665c6740f15e.css"
24
24
  ]
25
25
  }
26
26
  }
@@ -10,7 +10,7 @@
10
10
  .vs-article__wrapper{border:1px solid #e9e9e9}.vs-article__wrapper figure{margin-bottom:0}.vs-article__wrapper--no-border{border:0}.vs-article .vs-video-caption__details{display:block}
11
11
  @media(min-width: 768px){.vs-article-section--sidebar-right{margin-right:-14.8%}}@media(min-width: 992px){.vs-article-section--sidebar-right{margin-right:-12.5%}}@media(min-width: 1200px){.vs-article-section--sidebar-right{margin-right:-13.6%}}@media(min-width: 1400px){.vs-article-section--sidebar-right{margin-right:-23.2%}}@media(min-width: 768px){.vs-article-section--sidebar-left{margin-left:-14.8%}}@media(min-width: 992px){.vs-article-section--sidebar-left{margin-left:-12.5%}}@media(min-width: 1200px){.vs-article-section--sidebar-left{margin-left:-13.6%}}@media(min-width: 1400px){.vs-article-section--sidebar-left{margin-left:-23.2%}}
12
12
  .vs-article-sidebar{background:#fff}.vs-article-sidebar__quote-wrapper{background:#fff;margin-left:-1px;padding:2rem 1.5rem}@media(min-width: 768px){.vs-article-sidebar__quote-wrapper{margin-left:0;padding:2rem 0 .25rem}}@media(min-width: 768px){.vs-article-sidebar--right .vs-article-sidebar__quote-wrapper{padding-left:0;padding-right:1.25rem}.vs-article-sidebar--left .vs-article-sidebar__quote-wrapper{padding-left:1.25rem;padding-right:0}}
13
- .vs-back-to-top{display:flex;margin:-2rem 1rem 0 auto;inset-block-end:1rem;position:sticky}.vs-back-to-top .vs-button{margin:-2rem 0 1rem auto}.no-js .vs-back-to-top{display:none !important}
13
+ .vs-back-to-top{display:flex;inset-block-end:1rem;position:sticky}.vs-back-to-top .vs-button{margin:-4rem 1rem 0 auto}.no-js .vs-back-to-top{display:none !important}
14
14
  .vs-badge{border:1px solid #a3a3cc;border-radius:.25rem;color:#606060;display:inline-block;font-size:.875rem;margin-right:.5rem;padding:.25rem .5rem}
15
15
  .vs-banner{background:#e5e5f0;padding:.75rem 0}@media(min-width: 768px){.vs-banner__icon-wrapper{padding-right:0;flex:0 0 6%;max-width:6%}}@media(min-width: 992px){.vs-banner__icon-wrapper{display:inline-flex;align-items:center;flex:0 0 5%;max-width:5%}}@media(min-width: 1200px){.vs-banner__icon-wrapper{flex:0 0 4%;max-width:4%}}.vs-banner__content-wrapper{align-self:center}.vs-banner__icon{display:inline-block}@media(min-width: 576px){.vs-banner__icon{margin-right:.75rem}.vs-banner__icon.vs-icon.vs-icon--size-sm{font-size:24px}}.vs-banner__title.vs-heading{margin-bottom:.5rem}.vs-banner__title.vs-heading .vs-icon{vertical-align:bottom;margin-right:.25rem}.vs-banner__text.vs-rich-text-wrapper--normal{display:inline-block;padding-left:.25rem}@media(min-width: 576px){.vs-banner__text.vs-rich-text-wrapper--normal{padding-left:0}}.vs-banner__text.vs-rich-text-wrapper--normal p{display:inline}.vs-banner__text.vs-rich-text-wrapper--normal p:last-of-type{margin-bottom:.5rem}.vs-banner__text.vs-rich-text-wrapper--normal,.vs-banner__cta-link{font-size:.875rem;line-height:1.3}@media(min-width: 576px){.vs-banner__text.vs-rich-text-wrapper--normal,.vs-banner__cta-link{font-size:1rem}}.vs-banner__close-btn.vs-button.vs-button--icon-only.btn-md{float:right}
16
16
  .vs-blog-details__author{display:block}.vs-blog-details__date{color:#535396}.vs-blog-details__read-time{display:block;margin-bottom:1.5rem;color:#535396}.vs-blog-details__divider{padding:0 .5rem}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visitscotland/component-library",
3
- "version": "4.7.2",
3
+ "version": "4.7.4",
4
4
  "description": "VisitScotland Component Library",
5
5
  "author": "VisitScotland",
6
6
  "homepage": "https://github.com/visitscotland/vs-component-library#readme",
@@ -1 +0,0 @@
1
- !function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.VsBackToTop=n():t.VsBackToTop=n()}(self,(function(){return(self.webpackChunk_visitscotland_component_library=self.webpackChunk_visitscotland_component_library||[]).push([[9853],{36626:function(){},74052:function(t,n,e){"use strict";var o=e(20641),r=e(90033),u=e(50953),c=e(48836),s={class:"vs-back-to-top","data-test":"vs-back-to-top"};n.A={__name:"BackToTop",props:{buttonText:{type:String,required:!0},offset:{type:Number,default:100}},setup:function(t){var n=t,e=(0,u.KR)(!1),i=function(t){window.scroll({top:0,behavior:"smooth"}),t.target.blur()};return window.addEventListener("scroll",(function(){var t=document.documentElement;(window.scrollY||t.scrollTop)-(t.clientTop||0)>n.offset?e.value=!0:e.value=!1})),function(t,u){return(0,o.uX)(),(0,o.CE)("div",s,[e.value?((0,o.uX)(),(0,o.Wv)(c.default,{key:0,icon:"arrow-up","icon-only":"",variant:"secondary",onClick:i},{default:(0,o.k6)((function(){return[(0,o.eW)((0,r.toDisplayString)(n.buttonText),1)]})),_:1})):(0,o.Q3)("",!0)])}}}},55096:function(t,n,e){"use strict";var o=e(85072),r=e.n(o),u=e(97825),c=e.n(u),s=e(77659),i=e.n(s),a=e(55056),l=e.n(a),f=e(10540),p=e.n(f),d=e(41113),v=e.n(d),b=e(36626),m=e.n(b),y={};y.styleTagTransform=v(),y.setAttributes=l(),y.insert=i().bind(null,"head"),y.domAPI=c(),y.insertStyleElement=p(),r()(m(),y),m()&&m().locals&&m().locals},54670:function(t,n,e){"use strict";e.r(n);var o=e(38880);e(69196);const r=o.A;n.default=r},38880:function(t,n,e){"use strict";e.d(n,{A:function(){return o.A}});var o=e(74052)},69196:function(t,n,e){"use strict";e(55096)}},function(t){return t.O(0,[641,6262,7510,3751,4352,4467,7527,8086,810,6422,8745,8836],(function(){return t(t.s=54670)})),t.O()}])}));
@@ -1 +0,0 @@
1
- .vs-back-to-top{display:flex;margin:-2rem 1rem 0 auto;inset-block-end:1rem;position:sticky}.vs-back-to-top .vs-button{margin:-2rem 0 1rem auto}.no-js .vs-back-to-top{display:none !important}