dta_rapid 0.3.3 → 0.3.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41e1fb34bcef8e8cf1f7f03f1c8bb62cea6fc28d
4
- data.tar.gz: '0659fa45079eab62568d26c4134b5b4d9561f7b7'
3
+ metadata.gz: 5fe655ba6a9d7469e69e68fafe1a19053c29732c
4
+ data.tar.gz: 34fa1d27a1275f6928f906613fd4a4a93d3bac92
5
5
  SHA512:
6
- metadata.gz: 66b8e6fe9f6abca66b076c86bf6714680802e47979ad8bfd1cbb01dc447c8f9a0b7ad7d572fd2c5b3892e9ed72bae1fd7cf9cb9fc1c4d563018469c081f78ef1
7
- data.tar.gz: 3f7487316c8006a25b8185d8dfd0f182283fb3d118f98497f80fcb4b11dc762221152342e7eb496aef14cc723003dfe15288b5eab40dad3f4e5e6dd19c3f56b5
6
+ metadata.gz: ffd2de9ac603bd1c744f0ea1e4062efa7a409252097bd5aed6d8796b2abce92b41c4b79480f9ed4bd3634e85588c493ad25dcce89404fe908d802afbf9ad0041
7
+ data.tar.gz: 150531cffd03b302e015f62027b103f41b0a28043d734fdd705f884c9d8440b0f6ea9397f43c320c971cba0a56f30d6f5591f9fef710ab392ed676450a371b20
@@ -0,0 +1,5 @@
1
+
2
+ <div class="upload-button">
3
+ <input class="upload-button__input" id="{{ include.id }}" type="file" role="button"/>
4
+ <label class="upload-button__label button" for="{{ include.id }}">{{ include.label }}</label>
5
+ </div>
data/_sass/_colors.scss CHANGED
@@ -66,9 +66,10 @@ $input-focus-color: $focus-color;
66
66
 
67
67
  $border-color: $light-grey;
68
68
  $border-highlight-color: $grey;
69
+
69
70
  $background-color: white;
70
71
  $background-color--inverted: $dark-grey;
71
- $background-secondary-color: $lighter-grey;
72
+ $background-color--secondary: $lighter-grey;
72
73
 
73
74
  // Badge colors - see _sass/components/_badge.scss
74
75
 
@@ -12,7 +12,7 @@
12
12
  position: relative;
13
13
  font-size: 112.5%;
14
14
  font-weight: bold;
15
- background: $background-secondary-color;
15
+ background: $background-color--secondary;
16
16
  padding: $small-spacing $base-spacing;
17
17
  z-index: 0;
18
18
 
@@ -16,6 +16,10 @@
16
16
  .multiple-choice__list {
17
17
  list-style: none;
18
18
  padding-left: 0;
19
+
20
+ @include media($tablet) {
21
+ max-width: $mobile-minwidth;
22
+ }
19
23
  }
20
24
 
21
25
  .multiple-choice__option {
@@ -27,6 +27,11 @@
27
27
  bottom: 0;
28
28
  left: 0;
29
29
  right: 0;
30
+ background: $background-color--secondary;
31
+
32
+ .button {
33
+ margin-bottom: 0;
34
+ }
30
35
  }
31
36
 
32
37
  .scroll-form__text-field,
@@ -0,0 +1,7 @@
1
+ .upload-button {
2
+
3
+ }
4
+
5
+ .upload-button__input {
6
+ display: none;
7
+ }
data/assets/js/main.js CHANGED
@@ -1,4 +1,4 @@
1
- var scrollForm = require('./scroll-form');
1
+ const scrollForm = require('./scroll-form');
2
2
 
3
3
  scrollForm.init();
4
4
 
@@ -8,10 +8,12 @@ const questions = () => {
8
8
 
9
9
  return {
10
10
  getContainer: () => document.getElementById(CONTAINER_ID),
11
- getQuestion: (index) => document.getElementsByClassName(CLASS_NAME)[index],
11
+ getQuestion: index => document.getElementsByClassName(CLASS_NAME)[index],
12
12
  setActiveQuestion: function(index) {
13
13
  const questionList = [].slice.call(document.getElementsByClassName(CLASS_NAME));
14
- questionList.forEach((elm) => elm.classList.remove(ACTIVE_CLASS));
14
+
15
+ questionList.forEach(elm => elm.classList.remove(ACTIVE_CLASS));
16
+
15
17
  this.getQuestion(index).classList.add(ACTIVE_CLASS);
16
18
  }
17
19
  };
@@ -1,4 +1,4 @@
1
- 'use strict';
1
+ 'use strict';
2
2
 
3
3
  const zenscroll = require('zenscroll');
4
4
 
@@ -9,7 +9,7 @@ const scrolling = () => {
9
9
  };
10
10
 
11
11
  let scrollTo = (scroller, element, speed, callback) => {
12
- scroller.center(element, speed, 0, callback)
12
+ scroller.center(element, speed, 0, callback);
13
13
  };
14
14
 
15
15
  return {
data/assets/style.scss CHANGED
@@ -18,6 +18,7 @@
18
18
  @import "components/text-field";
19
19
  @import "components/multiple-choice";
20
20
  @import "components/button";
21
+ @import "components/upload-button";
21
22
  @import "components/badge";
22
23
  @import "components/callout";
23
24
  @import "components/table";
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dta_rapid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gareth Rogers
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-03-20 00:00:00.000000000 Z
13
+ date: 2017-03-21 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: jekyll
@@ -66,6 +66,7 @@ files:
66
66
  - LICENSE.txt
67
67
  - README.md
68
68
  - _includes/buttons/link-button.html
69
+ - _includes/buttons/upload-button.html
69
70
  - _includes/forms/date-field.html
70
71
  - _includes/forms/error-container.html
71
72
  - _includes/forms/multiple-choice.html
@@ -98,6 +99,7 @@ files:
98
99
  - _sass/components/_scroll-form.scss
99
100
  - _sass/components/_table.scss
100
101
  - _sass/components/_text-field.scss
102
+ - _sass/components/_upload-button.scss
101
103
  - _sass/mixins/_clearfix.scss
102
104
  - _sass/mixins/_ellipsis.scss
103
105
  - _sass/mixins/_flex-layout.scss