form-jekyll 0.4.3 → 0.4.4.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d4eedf7d115d897a02d59f493e7119a4f67af9f789986fd8960399e97dc87c7
4
- data.tar.gz: c4608e50096dc277fa83b97bb80bd077e89c32c6bf48a518455bbb07af0a2fbf
3
+ metadata.gz: 51b1c4c64d3526f2b930303ce0f905a71a1eaf785405be789aa33f24cd524df2
4
+ data.tar.gz: d82ff2acb17556b2a1600c359bf488c7019011797912395d369719ee4af5d907
5
5
  SHA512:
6
- metadata.gz: 52ee297c15aae4ac4a3e1ed27c924daf55ecf7e79ea7b95eb34c2821e36618999bbc6d39ca9aa039c0231b5d752e156eceb1430f2e1c5cb0794c83e1aadea695
7
- data.tar.gz: 19b70cc8bd8f7ae572935aca6cce0fa3ada77b8c06b2acdba860816ac4617cccae0a152c1f1c76dce7f1227ecb53730c4033cddb69fd170a61a178a45ed84ee1
6
+ metadata.gz: 242a59783ddc9ae5ce052bf72d7b5723b3f1908c6a9c7bd2c19a986dbff7ab4c8d584c17b5bed4d8f04494baa07f08e3711cd34797d3acaf44235783a78748bf
7
+ data.tar.gz: ff5f7c4361f98709ba7c0f25dd51e5de356018e5b7e5b0a56f0979c10f4465872e30ff2a32b2c30f02200ebf914d3c277943a46adda899861c8f5b626d459100
@@ -13,13 +13,13 @@
13
13
  {% if option.shows %} data-shows="{{ option.shows }}"{% endif %}
14
14
  {% if option.hides %} data-hides="{{ option.hides }}"{% endif %}
15
15
  >
16
- <span>{{ option.label | markdownify | remove: '<p>' | remove: '</p>' | improve}}</span>
16
+ <span class="inline-label">{{ option.label | markdownify | remove: '<p>' | remove: '</p>' | improve}}</span>
17
17
  </label>
18
18
  {% endfor %}
19
19
  {% else %}
20
20
  <label class="checkbox">
21
21
  <input type="checkbox" value="{{ label }}" name="{{ name }}" {% if checked %}checked="checked"{% endif %}>
22
- <span>{{ label | markdownify | remove: '<p>' | remove: '</p>' | improve}}</span>
22
+ <span class="inline-label">{{ label | markdownify | remove: '<p>' | remove: '</p>' | improve}}</span>
23
23
  </label>
24
24
  {% endif %}
25
25
 
@@ -16,13 +16,13 @@
16
16
  {% else %}
17
17
  data-error="You must select an option."
18
18
  {% endif %}>
19
- <span>{{ option.label | markdownify | remove: '<p>' | remove: '</p>' | improve }}</span>
19
+ <span class="inline-label">{{ option.label | markdownify | remove: '<p>' | remove: '</p>' | improve }}</span>
20
20
  </label>
21
21
  {% endfor %}
22
22
  {% if other %}
23
23
  <label class="other-label radio">
24
24
  <input type="radio" value="Other" name="{{ name }}">
25
- <span>Other</span>
25
+ <span class="inline-label">Other</span>
26
26
  </label>
27
27
  <div class="other-input">
28
28
  <label for="{{ name }}-other">Write more information here</label>
@@ -1,35 +1,19 @@
1
1
  {% capture currentform %}{{ include.form }}{% endcapture %}
2
2
 
3
- {% for currentpage in site.data[currentform] %}
3
+ {% for page in site.data[currentform] %}
4
4
 
5
- {% assign fields = currentpage.fields %}
6
- {% assign label = currentpage.title %}
5
+ {% assign fields = page.fields %}
6
+ {% assign label = page.title %}
7
7
 
8
- {% assign length = forloop.length %}
8
+ <div class="form-section"{% if page.group %} data-group="{{ page.group }}"{% endif %}>
9
9
 
10
- {% assign percentdone = forloop.index | times: '100' | divided_by: forloop.length %}
11
-
12
- <div class="form-section"{% if currentpage.group %} data-group="{{ currentpage.group }}"{% endif %}>
13
-
14
- <header class="hero-banner default" id="page-{{ forloop.index }}">
15
- <div class="form-header-meta">
16
- {% comment %} Form title {% endcomment %}
17
- <h2>{{ page.title }}</h2>
18
-
19
- <div class="form-progress">
20
- {% if length < 6 %}
21
- <div class="form-progress-bubble">Page {{ forloop.index }} of {{ length }}</div>
22
- {% else %}
23
- {% comment %} Progress bar {% endcomment %}
24
- <div class="form-progress-bar form-progress-bar-{{ percentdone }}">{{ percentdone }}% done</div>
25
- {% endif %}
26
- </div>
27
- </div>
10
+ {% comment %} Page headers {% endcomment %}
11
+ <header class="hero-banner default">
28
12
  <h1>
29
13
  {{ label | markdownify | remove: '<p>' | remove: '</p>' }}
30
14
  </h1>
31
- {% if currentpage.description %}
32
- {{ currentpage.description | markdownify | improve }}
15
+ {% if page.description %}
16
+ {{ page.description | markdownify | improve }}
33
17
  {% endif %}
34
18
  </header>
35
19
 
@@ -39,7 +23,7 @@
39
23
  <div class="nav-on-top">
40
24
  {% include pagination.html %}
41
25
  </div>
42
- {% comment %} Render fields in the currentpage {% endcomment %}
26
+ {% comment %} Render fields in the page {% endcomment %}
43
27
  {% include render_field.html %}
44
28
 
45
29
  {% include pagination.html %}
@@ -1,4 +1,4 @@
1
- <header role="banner" id="sfgov-header">
1
+ <header role="banner">
2
2
  <div class="sfgov-nav-container">
3
3
  <div class="sfgov-nav-container__content">
4
4
  <div class="sfgov-logo__container">
@@ -29,26 +29,26 @@ layout: base
29
29
 
30
30
  <label class="checkbox">
31
31
  <input type="checkbox" id="settings-all-pages">
32
- <span>Every page</span>
32
+ <span class="inline-label">Every page</span>
33
33
  </label>
34
34
 
35
35
  <label class="checkbox">
36
36
  <input type="checkbox" id="settings-all-conditionals">
37
- <span>All conditionals</span>
37
+ <span class="inline-label">All conditionals</span>
38
38
  </label>
39
39
 
40
40
  <label class="checkbox">
41
41
  <input type="checkbox" id="settings-all-annotations">
42
- <span>Annotations</span>
42
+ <span class="inline-label">Annotations</span>
43
43
  </label>
44
44
 
45
45
  <label class="checkbox">
46
46
  <input type="checkbox" id="settings-show-hidden">
47
- <span>Hidden fields</span>
47
+ <span class="inline-label">Hidden fields</span>
48
48
  </label>
49
49
 
50
50
  <label class="checkbox">
51
51
  <input type="checkbox" id="settings-top-nav">
52
- <span>Page navigation on top</span>
52
+ <span class="inline-label">Page navigation on top</span>
53
53
  </label>
54
54
  </div>
@@ -385,7 +385,7 @@ $rc-size: 3rem;
385
385
  min-height: $rc-size;
386
386
 
387
387
  input,
388
- span::before {
388
+ .inline-label::before {
389
389
  position: absolute;
390
390
  top: 0;
391
391
  left: 0;
@@ -399,12 +399,12 @@ $rc-size: 3rem;
399
399
  opacity: 0;
400
400
  padding: 0;
401
401
  margin: 0;
402
- &:focus + span:before {
402
+ &:focus + .inline-label:before {
403
403
  @include input-border-focus;
404
404
  }
405
405
  }
406
406
 
407
- span {
407
+ .inline-label {
408
408
  display: block;
409
409
  font-size: initial;
410
410
  padding-top: 0.75rem;
@@ -416,12 +416,12 @@ $rc-size: 3rem;
416
416
  }
417
417
 
418
418
  .radio {
419
- span::before,
420
- span::after {
419
+ .inline-label::before,
420
+ .inline-label::after {
421
421
  border-radius: 50%;
422
422
  }
423
423
 
424
- span::after {
424
+ .inline-label::after {
425
425
  content: '';
426
426
  width: $rc-size * 0.625;
427
427
  height: $rc-size * 0.625;
@@ -432,30 +432,30 @@ $rc-size: 3rem;
432
432
  }
433
433
 
434
434
  input:checked {
435
- + span::after {
435
+ + .inline-label::after {
436
436
  background: $slate-blue;
437
437
  }
438
438
 
439
- &:focus + span:after {
439
+ &:focus + .inline-label:after {
440
440
  background: $bright-blue;
441
441
  }
442
442
  }
443
443
 
444
- input:focus + span:before {
444
+ input:focus + .inline-label:before {
445
445
  background: $white;
446
446
  }
447
447
  }
448
448
 
449
449
 
450
450
  .checkbox input:checked {
451
- + span::before {
451
+ + .inline-label::before {
452
452
  background-size: 50% 40%;
453
453
  background-repeat: no-repeat;
454
454
  background-position: center;
455
455
  background-image: url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNNS43NTAwOSAxNi43NTVDNS41ODU3OSAxNi43NTU2IDUuNDIzIDE2LjcyMzYgNS4yNzExMSAxNi42NjFDNS4xMTkyMSAxNi41OTg0IDQuOTgxMjIgMTYuNTA2MyA0Ljg2NTA5IDE2LjM5TDAuMzY1MDkgMTEuODlDMC4yNDU4NzYgMT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DMTkuOTg5NiAyLjgzOTAzIDE5Ljg2MzEgMy4xNTQ2MSAxOS42MzUxIDMuMzkwMDRMNi42MzUwOSAxNi4zOUM2LjUxODk2IDE2LjUwNjMgNi4zODA5NyAxNi41OTg0IDYuMjI5MDcgMTYuNjYxQzYuMDc3MTggMTYuNzIzNiA1LjkxNDM5IDE2Ljc1NTYgNS43NTAwOSAxNi43NTVaIiBmaWxsPSIjZmZmIi8+Cjwvc3ZnPg==');
461
461
  }
@@ -587,34 +587,23 @@ option:not(:checked) {
587
587
  @include line-height-to-rem(27);
588
588
  }
589
589
 
590
- @mixin display-2 {
591
- font-weight: $t-light;
592
- @include font-size-to-rem(50);
593
- @include line-height-to-rem(59);
594
- letter-spacing: -1px;
595
- }
596
-
597
- .t-display-2 {
598
- @include display-2;
599
- }
600
-
601
- h1, .h1 {
590
+ h1 {
602
591
  @include h1;
603
592
  }
604
593
 
605
- h2, .h2 {
594
+ h2 {
606
595
  @include h2;
607
596
  }
608
597
 
609
- h3, .h3 {
598
+ h3 {
610
599
  @include h3;
611
600
  }
612
601
 
613
- h4, .h4 {
602
+ h4 {
614
603
  @include h4;
615
604
  }
616
605
 
617
- h5, .h5 {
606
+ h5 {
618
607
  @include h5;
619
608
  }
620
609
 
@@ -638,13 +627,6 @@ h5, .h5 {
638
627
  @include contain-1090;
639
628
  }
640
629
 
641
- .form-header-meta {
642
- position: relative;
643
- margin-bottom: 1.5rem;
644
- }
645
-
646
- .form-header-meta,
647
- .form-section h1,
648
630
  .form-content-inner {
649
631
  max-width: 38rem;
650
632
  }
@@ -920,66 +902,9 @@ div[data-hidden] {
920
902
  }
921
903
  }
922
904
 
923
- // Progress
924
-
925
- .form-progress {
926
- position: absolute;
927
- top: 0;
928
- right: 0;
929
- }
930
-
931
- .form-progress-bubble {
932
- background: $purple-1;
933
- padding: 0.25rem 1rem;
934
- border-radius: 1.5rem;
935
- position: relative;
936
- top: -0.25rem;
937
- font-size: 1rem;
938
- }
939
-
940
- .form-progress-bar {
941
- font-size: 0;
942
- color: transparent;
943
- background: $purple-1;
944
- height: 0.75rem;
945
- display: inline-block;
946
- width: 10rem;
947
- position: relative;
948
- top: -0.125rem;
949
- border-radius: 0.375rem;
950
- &::before {
951
- content: '';
952
- background: #6b8292;
953
- height: 0.75rem;
954
- border-radius: 0.375rem 0 0 0.375rem;
955
- position: absolute;
956
- top: 0;
957
- left: 0;
958
- }
959
- }
960
-
961
- @for $i from 1 to 90 {
962
- .form-progress-bar-#{$i}::before {
963
- width: $i * 1%;
964
- }
965
- }
966
-
967
- @for $i from 91 to 99 {
968
- .form-progress-bar-#{$i} {
969
- background: #6b8292;
970
- &::before {
971
- background: $purple-1;
972
- left: auto;
973
- right: 0;
974
- border-radius: 0 0.375rem 0.375rem 0;
975
- width: (100% - ($i * 1%));
976
- }
977
- }
978
- }
979
-
980
-
981
905
  // Field length
982
906
 
907
+
983
908
  @for $i from 1 to 16 {
984
909
  .length-#{$i} {
985
910
  width: 2.5rem + (0.65rem * $i);
@@ -987,12 +912,4 @@ div[data-hidden] {
987
912
  }
988
913
  }
989
914
 
990
- // Header
991
-
992
- .hero-banner h2 {
993
- font-size: 1rem;
994
- font-weight: $t-normal;
995
- margin-bottom: 0.25rem;
996
- }
997
-
998
915
  @import 'sfgov';
@@ -76,9 +76,6 @@ $(document).ready(function(){
76
76
  } else {
77
77
  // If the page is visible, show it
78
78
  activePage.addClass('active');
79
-
80
- // Scroll to the top of the page
81
- document.getElementById("sfgov-header").scrollIntoView();
82
79
  }
83
80
  }
84
81
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: form-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Rubenoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-09 00:00:00.000000000 Z
11
+ date: 2019-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll