slow-steps 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/_config.yml +3 -3
- data/_includes/contact-form.html +1 -1
- data/_includes/cookie-consent.html +21 -0
- data/_includes/footer/footer.html +64 -7
- data/_includes/footer/footer_redesign.html +139 -0
- data/_includes/forms/mc-register.html +124 -110
- data/_includes/functions/calc-svg-coord.html +2 -0
- data/_includes/functions/reposition-svg-labels.html +44 -0
- data/_includes/head/descriptors/og-meta.html +0 -1
- data/_includes/head/descriptors/structured-data.html +3 -3
- data/_includes/head/descriptors/twitter-meta.html +1 -1
- data/_includes/{google-analytics.html → head/google-analytics.html} +9 -2
- data/_includes/head/head.html +6 -4
- data/_includes/head/stylesheets.html +3 -0
- data/_includes/image-post.html +1 -1
- data/_includes/navigation/global.html +57 -44
- data/_includes/scripts.html +3 -1
- data/_layouts/default.html +1 -1
- data/_layouts/env/clinician.html +6 -6
- data/_layouts/env/landing.html +8 -8
- data/_layouts/env/pwp.html +3 -3
- data/_layouts/faq.html +3 -0
- data/_layouts/feed.html +1 -1
- data/_layouts/post.html +1 -1
- data/_sass/_colors/_variables.sass +2 -0
- data/_sass/_functions.sass +9 -0
- data/_sass/_mixins.sass +6 -3
- data/_sass/about.sass +3 -1
- data/_sass/breakpoints/about.sass +11 -2
- data/_sass/collage.sass +2 -1
- data/_sass/contact.sass +2 -2
- data/_sass/env/breakpoints/768.sass +16 -11
- data/_sass/env/clinician.sass +12 -7
- data/_sass/env/landing.sass +18 -3
- data/_sass/env/pwp.sass +11 -2
- data/_sass/faq.sass +9 -1
- data/_sass/feed.sass +2 -2
- data/_sass/footer.sass +174 -14
- data/_sass/footer_redesign.sass +353 -0
- data/_sass/forms/mc-forms.sass +9 -0
- data/_sass/global.sass +79 -8
- data/_sass/navigation/_variables.sass +3 -3
- data/_sass/navigation/base.sass +14 -4
- data/_sass/navigation/breakpoints/1024.sass +33 -8
- data/_sass/navigation/burger.sass +1 -1
- data/_sass/typography/_variables.sass +1 -1
- data/_sass/typography/resets.sass +2 -2
- data/assets/css/env/gaitq_clinician.sass +1 -1
- data/assets/css/env/gaitq_landing.sass +1 -1
- data/assets/css/env/gaitq_pwp.sass +1 -1
- data/assets/css/gaitq_errors.sass +13 -1
- data/assets/js/mobile-nav-slider.js +1 -1
- data/assets/js/svg_text_width.js +4 -4
- metadata +7 -6
- data/_includes/footer/footer_full.html +0 -79
- data/_includes/functions/pull_page_args.html +0 -31
- data/_sass/footer_full.sass +0 -183
@@ -6,15 +6,15 @@
|
|
6
6
|
|
7
7
|
$navbar-height: 5vh
|
8
8
|
|
9
|
-
$mobile-navbar-height: 10vh
|
10
|
-
|
11
9
|
$secondary-navbar-height: 10vh
|
12
10
|
|
13
11
|
$brand-height: 55%
|
14
12
|
|
15
13
|
// change .nav-list.height manually in _sass/navbar/mobile.sass, can't figure out how to use calc --vh whith sass var
|
16
14
|
|
17
|
-
$
|
15
|
+
$mobile-navbar-height: 10vh
|
16
|
+
|
17
|
+
$mobile-nav-list-height: 90vh
|
18
18
|
|
19
19
|
// ************* Colours *************
|
20
20
|
|
data/_sass/navigation/base.sass
CHANGED
@@ -28,20 +28,23 @@
|
|
28
28
|
width: 30vw
|
29
29
|
padding-left: 3vw
|
30
30
|
z-index: 1
|
31
|
+
margin-top: .7rem
|
32
|
+
// fudge fix for G making logo apear off-centre
|
31
33
|
|
32
34
|
.site__logo *
|
33
35
|
@include default-trans
|
34
36
|
|
37
|
+
|
35
38
|
.nav-list
|
36
39
|
border-bottom-left-radius: 80px
|
37
40
|
font-size: 1.3rem
|
38
|
-
height: $nav-list-height
|
39
|
-
height: calc( var(--vh, 1vh) *
|
41
|
+
height: $mobile-nav-list-height
|
42
|
+
height: calc( var(--vh, 1vh) * #{ strip-unit($mobile-nav-list-height)} )
|
40
43
|
list-style: none
|
41
44
|
margin: 0
|
42
|
-
margin-block-start:
|
45
|
+
margin-block-start: calc( var(--vh, 1vh) * #{ strip-unit($mobile-navbar-height)} )
|
43
46
|
padding: 0
|
44
|
-
padding-top:
|
47
|
+
padding-top: 0
|
45
48
|
position: absolute
|
46
49
|
right: 0
|
47
50
|
top: 0
|
@@ -50,6 +53,12 @@
|
|
50
53
|
width: 100vw
|
51
54
|
box-sizing: content-box
|
52
55
|
background-color: $env-primary
|
56
|
+
overflow: scroll
|
57
|
+
|
58
|
+
.nav-group-content
|
59
|
+
//text-indent: 2rem
|
60
|
+
.nav-link
|
61
|
+
margin: 3vh 20vw
|
53
62
|
|
54
63
|
.nav-link
|
55
64
|
margin: 6vh 15vw
|
@@ -68,6 +77,7 @@
|
|
68
77
|
.nav-active
|
69
78
|
// we toggle this class in mobile-nav-slider.js on burger click
|
70
79
|
transform: translateX(0%)
|
80
|
+
box-shadow: -.2px .2px 0 rgba($pure-black, .3)
|
71
81
|
|
72
82
|
|
73
83
|
.site__logo-active
|
@@ -21,7 +21,8 @@
|
|
21
21
|
.nav-brand
|
22
22
|
@include default-trans
|
23
23
|
height: 8vh
|
24
|
-
max-height: 100px
|
24
|
+
//max-height: 100px
|
25
|
+
// max-height breaks vertical centering
|
25
26
|
|
26
27
|
.nav-scrolled
|
27
28
|
background-color: $env-primary
|
@@ -31,9 +32,11 @@
|
|
31
32
|
@include default-trans
|
32
33
|
display: flex
|
33
34
|
position: absolute
|
34
|
-
max-
|
35
|
+
//max-height: 100px
|
36
|
+
// max-height breaks vertical centering
|
35
37
|
height: 10vh
|
36
38
|
top: 7.5vh
|
39
|
+
margin-top: 0
|
37
40
|
|
38
41
|
.site__logo
|
39
42
|
position: absolute
|
@@ -50,10 +53,21 @@
|
|
50
53
|
height: 5vh
|
51
54
|
padding: 0
|
52
55
|
background-color: inherit
|
56
|
+
box-shadow: none
|
57
|
+
margin-block-start: 0
|
58
|
+
padding: 0
|
59
|
+
overflow: visible
|
53
60
|
|
54
61
|
.nav-group
|
55
62
|
padding: 0 2rem
|
56
63
|
|
64
|
+
.nav-group-content
|
65
|
+
//text-indent: 2rem
|
66
|
+
&:last-child
|
67
|
+
margin-right: 10rem
|
68
|
+
.nav-link
|
69
|
+
margin: 0
|
70
|
+
|
57
71
|
.nav-link
|
58
72
|
align-items: center
|
59
73
|
padding: 0
|
@@ -67,6 +81,19 @@
|
|
67
81
|
.subsub-link
|
68
82
|
color: $env-primary
|
69
83
|
|
84
|
+
.nav-cta
|
85
|
+
@include default-trans
|
86
|
+
color: $pure-white
|
87
|
+
background-color: $env-primary
|
88
|
+
padding: 2rem 2rem!important
|
89
|
+
margin-right: 8rem!important
|
90
|
+
border-radius: 6px
|
91
|
+
|
92
|
+
&:before, &:after
|
93
|
+
display: none!important
|
94
|
+
|
95
|
+
&:hover
|
96
|
+
background-color: darken($env-primary,10)
|
70
97
|
|
71
98
|
// Surround current link with ticks
|
72
99
|
.current--url
|
@@ -76,15 +103,13 @@
|
|
76
103
|
height: 2px
|
77
104
|
position: relative
|
78
105
|
vertical-align: middle
|
79
|
-
width:
|
106
|
+
width: 6px
|
80
107
|
|
81
108
|
&:before
|
82
|
-
right:
|
83
|
-
margin-left: -10%
|
109
|
+
right: 3px
|
84
110
|
|
85
111
|
&:after
|
86
|
-
left:
|
87
|
-
margin-right: -10%
|
112
|
+
left: 3px
|
88
113
|
|
89
114
|
.nav-group-content
|
90
115
|
@include default-trans
|
@@ -139,7 +164,7 @@
|
|
139
164
|
|
140
165
|
.nav-group-container
|
141
166
|
.nav-link
|
142
|
-
font-weight:
|
167
|
+
font-weight: $heavy-font
|
143
168
|
text-transform: uppercase
|
144
169
|
padding: 1rem 3rem
|
145
170
|
&:not(.current--url)
|
@@ -7,8 +7,20 @@
|
|
7
7
|
|
8
8
|
@import 'typography/_variables'
|
9
9
|
|
10
|
-
@import '
|
10
|
+
@import 'typography/resets'
|
11
|
+
|
12
|
+
@import 'typography/branding'
|
13
|
+
|
14
|
+
@import '_colors/collection'
|
11
15
|
|
12
16
|
@import 'error-page'
|
13
17
|
|
14
18
|
@import 'navigation/no-nav'
|
19
|
+
|
20
|
+
// Footer
|
21
|
+
|
22
|
+
@import 'footer_redesign'
|
23
|
+
|
24
|
+
@import 'aos-overrides'
|
25
|
+
|
26
|
+
@import 'global'
|
@@ -6,7 +6,7 @@ const navSlide = ()=>{
|
|
6
6
|
const navBar = document.querySelector('.navbar');
|
7
7
|
|
8
8
|
// watch for touch clicks on the burger
|
9
|
-
burger.addEventListener('
|
9
|
+
burger.addEventListener('click', () => {
|
10
10
|
// animate accordinaly
|
11
11
|
navSlider.classList.toggle('nav-active');
|
12
12
|
brand.classList.toggle('site__logo-active');
|
data/assets/js/svg_text_width.js
CHANGED
@@ -22,21 +22,21 @@ function svg_text_width() {
|
|
22
22
|
if(view_width > 768 ){
|
23
23
|
var lineLength = 100 ; // length in pixels of the drawn line
|
24
24
|
var x_offset = 10 + width ; // offset the text label s.t. last character sits 10 px from end of line
|
25
|
-
var y_offset =
|
25
|
+
var y_offset = 5 ;
|
26
26
|
} else {
|
27
27
|
var lineLength = 70 ;
|
28
28
|
var x_offset = 0 ; // offset the text label s.t. first character sits inline with end of line
|
29
|
-
var y_offset = -
|
29
|
+
var y_offset = -8 ;}
|
30
30
|
lines[i].setAttribute("stroke-dashoffset", lineLength + 'px')
|
31
31
|
lines[i].setAttribute("stroke-dasharray", lineLength + 'px')
|
32
32
|
if( text[i].classList.contains('trans-left')){
|
33
33
|
lines[i].setAttribute("x2", -lineLength + 'px')
|
34
34
|
text[i].setAttribute("x", - lineLength - x_offset + 'px');
|
35
|
-
text[i].setAttribute("y", y_offset + '
|
35
|
+
text[i].setAttribute("y", y_offset + 'px');
|
36
36
|
} else {
|
37
37
|
lines[i].setAttribute("x2", lineLength + 'px')
|
38
38
|
text[i].setAttribute("x", lineLength + x_offset - width + 'px');
|
39
|
-
text[i].setAttribute("y", y_offset + '
|
39
|
+
text[i].setAttribute("y", y_offset + 'px');
|
40
40
|
};
|
41
41
|
};
|
42
42
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: slow-steps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Made Slowly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jekyll
|
@@ -184,21 +184,22 @@ files:
|
|
184
184
|
- _includes/build-version.html
|
185
185
|
- _includes/contact-details.html
|
186
186
|
- _includes/contact-form.html
|
187
|
+
- _includes/cookie-consent.html
|
187
188
|
- _includes/env_filter.html
|
188
189
|
- _includes/errors/robot-403.svg
|
189
190
|
- _includes/errors/robot-404.svg
|
190
191
|
- _includes/errors/robot-405.svg
|
191
192
|
- _includes/footer/footer.html
|
192
|
-
- _includes/footer/
|
193
|
+
- _includes/footer/footer_redesign.html
|
193
194
|
- _includes/forms/mc-register.html
|
194
195
|
- _includes/functions/calc-svg-coord.html
|
195
|
-
- _includes/functions/
|
196
|
+
- _includes/functions/reposition-svg-labels.html
|
196
197
|
- _includes/gmap.html
|
197
|
-
- _includes/google-analytics.html
|
198
198
|
- _includes/head/README.md
|
199
199
|
- _includes/head/descriptors/og-meta.html
|
200
200
|
- _includes/head/descriptors/structured-data.html
|
201
201
|
- _includes/head/descriptors/twitter-meta.html
|
202
|
+
- _includes/head/google-analytics.html
|
202
203
|
- _includes/head/head.html
|
203
204
|
- _includes/head/stylesheets.html
|
204
205
|
- _includes/image-post.html
|
@@ -243,7 +244,7 @@ files:
|
|
243
244
|
- _sass/faq.sass
|
244
245
|
- _sass/feed.sass
|
245
246
|
- _sass/footer.sass
|
246
|
-
- _sass/
|
247
|
+
- _sass/footer_redesign.sass
|
247
248
|
- _sass/forms/mc-forms.sass
|
248
249
|
- _sass/global.sass
|
249
250
|
- _sass/navigation/README.md
|
@@ -1,79 +0,0 @@
|
|
1
|
-
<!-- footer -->
|
2
|
-
<footer class="ft__wrapper">
|
3
|
-
|
4
|
-
<div class="ft__head">
|
5
|
-
|
6
|
-
</div>
|
7
|
-
<div class="ft__body">
|
8
|
-
|
9
|
-
<div class="ft__contact ft__col">
|
10
|
-
|
11
|
-
<a href="{{ site.baseurl }}/">
|
12
|
-
{% include /branding/site-logo.svg %}
|
13
|
-
</a>
|
14
|
-
<div class="ft__contact__add">
|
15
|
-
<ul class="ft__contact--list">
|
16
|
-
{% for item in site.postal_add %}
|
17
|
-
<li class="address">{{ item[1] }}</li>
|
18
|
-
{% endfor %}
|
19
|
-
<li><a class="ft--link" href="mailto:{{ site.email }}">{{ site.email }}</a></li>
|
20
|
-
<li>{{ site.phone }}</li>
|
21
|
-
|
22
|
-
<ul class="social-media">
|
23
|
-
|
24
|
-
{% for social in site.socials %}
|
25
|
-
<li class="social-media-item">
|
26
|
-
<a href="{{ social.url }}">
|
27
|
-
<i class="fab fa-{{ social.icon }} social--{{ social.name }} social-media-link"></i></a>
|
28
|
-
</li>
|
29
|
-
{% endfor %}
|
30
|
-
|
31
|
-
</ul>
|
32
|
-
|
33
|
-
</ul>
|
34
|
-
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
|
38
|
-
<div class="ft__sitemap ft__col">
|
39
|
-
<div class="ft__sitemap--menu">
|
40
|
-
<h3 class="ft__sitemap--header">INFORMATION FOR</h3>
|
41
|
-
|
42
|
-
<div class="ft__sitemap--env-wrap">
|
43
|
-
{% for item in site.data.menu.navigation %}
|
44
|
-
|
45
|
-
<div class="ft__sitemap--env">
|
46
|
-
|
47
|
-
<h4 class="ft__sitemap--env-header">{{ item.name }}</h4>
|
48
|
-
<ul class="ft__sitemap--submenu">
|
49
|
-
{% for sub in item.submenu %}
|
50
|
-
<li><a class="ft--link" href="{{ sub.url }}">{{ sub.alt }}</a></li>
|
51
|
-
{% endfor %}
|
52
|
-
</ul>
|
53
|
-
</div>
|
54
|
-
|
55
|
-
{% endfor %}
|
56
|
-
|
57
|
-
</div>
|
58
|
-
</div>
|
59
|
-
</div>
|
60
|
-
|
61
|
-
</div>
|
62
|
-
<!-- footer base and copyright -->
|
63
|
-
|
64
|
-
<div class="ft__base">
|
65
|
-
|
66
|
-
<p class="copyright">© <script>
|
67
|
-
document.write(new Date().getFullYear())
|
68
|
-
</script> {{ site.title }}</p>
|
69
|
-
|
70
|
-
|
71
|
-
<div class="legal-links">
|
72
|
-
{% for item in site.data.menu.legals %}
|
73
|
-
<a href="{{ item.url }}">{{ item.name }}</a>
|
74
|
-
{% endfor %}
|
75
|
-
</div>
|
76
|
-
<a href="{{ site.author.url }}" class="slogan">Jekyll theme Slow Steps</a>
|
77
|
-
</div>
|
78
|
-
|
79
|
-
</footer>
|
@@ -1,31 +0,0 @@
|
|
1
|
-
|
2
|
-
<script type="text/javascript">
|
3
|
-
|
4
|
-
function svg_aug_contained_image(){
|
5
|
-
|
6
|
-
var x_i = document.getElementsByClassName("image--guarantee")[0].offsetWidth ;
|
7
|
-
var y_i = document.getElementsByClassName("image--guarantee")[0].offsetHeight ;
|
8
|
-
/* get svg labels */
|
9
|
-
var svg = document.querySelectorAll('.svg__augment > .augment--guarantee');
|
10
|
-
|
11
|
-
/* origanal image width in pixels */
|
12
|
-
var x_0 = {{ page.images.guarantee.size | split: ', ' | first }} ;
|
13
|
-
var y_0 = {{ page.images.guarantee.size | split: ', ' | last }} ;
|
14
|
-
|
15
|
-
for (let i = 0; i < svg.length; i++) {
|
16
|
-
/* origanal x position in pixels */
|
17
|
-
var dx_0 = parseInt( svg[i].getAttribute('x'), 10 ) / 100 ;
|
18
|
-
var dy_0 = parseInt( svg[i].getAttribute('y'), 10 ) / 100 ;
|
19
|
-
|
20
|
-
var dx_0Pixel = dx_0 * x_0 ;
|
21
|
-
var dy_0Pixel = dy_0 * y_0 ;
|
22
|
-
|
23
|
-
svg[i].setAttribute("x", (dx_0Pixel - ( x_0 / 2) + (x_i / 2) ) / x_i * 100 + '%');
|
24
|
-
svg[i].setAttribute("y", (dy_0Pixel - ( y_0 / 2) + (y_i / 2) ) / y_i * 100 + '%');
|
25
|
-
};
|
26
|
-
|
27
|
-
}
|
28
|
-
|
29
|
-
//window.setInterval(svg_aug_contained_image, 200 )
|
30
|
-
|
31
|
-
</script>
|