ustyle 1.16.2 → 1.19.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/.drone.yml +17 -0
  3. data/Gruntfile.js +14 -8
  4. data/README.md +19 -1
  5. data/config/autoprefixer.yml +3 -3
  6. data/config/scss-lint.yml +1 -0
  7. data/dist/icons.svg +1 -1
  8. data/dist/ustyle-content.css +1 -1
  9. data/dist/ustyle-latest.css +1 -1
  10. data/dist/ustyle.js +1 -7
  11. data/dist/ustyle.json +1 -1
  12. data/dist/ustyle.min.js +1 -1
  13. data/index.js +7 -1
  14. data/lib/ustyle/version.rb +1 -1
  15. data/package-lock.json +56 -14
  16. data/package.json +14 -1
  17. data/styleguide/assets/images/icons.svg +1 -1
  18. data/styleguide/assets/sass/main.scss +1 -1
  19. data/styleguide/content/pattern-library/index.tpl +2 -6
  20. data/tasks/publish.rake +6 -4
  21. data/vendor/assets/images/icons.svg +1 -1
  22. data/vendor/assets/images/icons/alarm.svg +1 -1
  23. data/vendor/assets/images/icons/clock.svg +1 -1
  24. data/vendor/assets/images/icons/cog.svg +1 -1
  25. data/vendor/assets/images/icons/dual-fuel.svg +1 -1
  26. data/vendor/assets/images/icons/envelope.svg +1 -1
  27. data/vendor/assets/images/icons/facebook-brand.svg +1 -1
  28. data/vendor/assets/images/icons/fixed-variable.svg +1 -1
  29. data/vendor/assets/images/icons/gas.svg +1 -1
  30. data/vendor/assets/images/icons/google-brand.svg +1 -1
  31. data/vendor/assets/images/icons/pdf.svg +1 -1
  32. data/vendor/assets/images/icons/piggy-bank.svg +1 -1
  33. data/vendor/assets/images/icons/pound-note.svg +1 -1
  34. data/vendor/assets/images/icons/present.svg +1 -1
  35. data/vendor/assets/images/icons/renewable.svg +1 -1
  36. data/vendor/assets/images/icons/shield.svg +1 -0
  37. data/vendor/assets/images/icons/smiley.svg +1 -1
  38. data/vendor/assets/images/icons/sort.svg +1 -1
  39. data/vendor/assets/images/icons/twitter-brand.svg +1 -1
  40. data/vendor/assets/images/icons/twitter.svg +1 -1
  41. data/vendor/assets/images/icons/uswitch.svg +1 -1
  42. data/vendor/assets/images/icons/wiki.svg +1 -1
  43. data/vendor/assets/javascripts/ustyle/tabs.js +1 -1
  44. data/vendor/assets/stylesheets/ustyle/_all.scss +7 -0
  45. data/vendor/assets/stylesheets/ustyle/articles/_related.scss +5 -3
  46. data/vendor/assets/stylesheets/ustyle/components/_button.scss +0 -1
  47. data/vendor/assets/stylesheets/ustyle/components/_calculator.scss +36 -0
  48. data/vendor/assets/stylesheets/ustyle/components/_comp-table-row.scss +325 -0
  49. data/vendor/assets/stylesheets/ustyle/components/_compliance-banner.scss +33 -0
  50. data/vendor/assets/stylesheets/ustyle/components/_content-group.scss +1 -1
  51. data/vendor/assets/stylesheets/ustyle/components/_grid-classes.scss +1 -1
  52. data/vendor/assets/stylesheets/ustyle/components/_hero.scss +78 -5
  53. data/vendor/assets/stylesheets/ustyle/components/_lists.scss +5 -1
  54. data/vendor/assets/stylesheets/ustyle/components/_promo-banner.scss +127 -0
  55. data/vendor/assets/stylesheets/ustyle/components/_reminder.scss +49 -0
  56. data/vendor/assets/stylesheets/ustyle/components/_tab-navigation.scss +112 -0
  57. data/vendor/assets/stylesheets/ustyle/components/_table-toolbar.scss +91 -0
  58. data/vendor/assets/stylesheets/ustyle/icons/_base.scss +1 -0
  59. data/vendor/assets/stylesheets/ustyle/mixins/_media-query.scss +3 -13
  60. data/vendor/assets/stylesheets/ustyle/tables/_tables-sortable.scss +1 -1
  61. data/vendor/assets/stylesheets/ustyle/tables/_tables-with-key-cells.scss +1 -1
  62. data/vendor/assets/stylesheets/ustyle/utilities/_grid.scss +1 -1
  63. metadata +11 -3
  64. data/vendor/assets/javascripts/ustyle/radioToggle.js +0 -5
@@ -0,0 +1,91 @@
1
+ // @page Pattern Library/Components
2
+ // @name Table toolbar
3
+ //
4
+ // @description
5
+ // The table toolbar sits above comparison tables and holds search refinement and filtering tools.
6
+ //
7
+ // @markup
8
+ // <div class="us-table-toolbar">
9
+ // <div class="us-table-toolbar__wrapper">
10
+ // <form class='us-calculator'>
11
+ // <h2 class='us-table-toolbar__heading'>How much would you like to transfer?</h2>
12
+ // <div class='us-input-group us-calculator__input'>
13
+ // <div class='us-input-group__box'>£</div>
14
+ // <input type='text' class='us-form-input' pattern='[0-9]*' name='amount' id='amount' value='3000' />
15
+ // </div>
16
+ // <button class='us-btn us-btn--primary'>Update results</button>
17
+ // <div class='us-tooltip us-tooltip--right'>
18
+ // <div class='us-tooltip__wrapper'>
19
+ // <div class='us-tooltip__icon'></div>
20
+ // <div class='us-tooltip__note'>
21
+ // <div class='us-tooltip__arrow'></div>
22
+ // Note that this is illustrative and this figure does not reflect the credit limit you will be offered.
23
+ // </div>
24
+ // </div>
25
+ // </div>
26
+ // </form>
27
+ // </div>
28
+ // <div class="us-table-toolbar__wrapper us-table-toolbar__wrapper--right">
29
+ // <div class="us-table-toolbar__sort">
30
+ // <h3 class="us-table-toolbar__heading">Sort by:</h3>
31
+ // <select class="us-form-select name="sort"">
32
+ // <option value="popularity">Popularity</option>
33
+ // <option value="apr">Lowest APR</option>
34
+ // <option value="min-credit-limit">Minimum credit limit</option>
35
+ // <option value="max-credit-limit">Maximum credit limit</option>
36
+ // </select>
37
+ // </div>
38
+ // </div>
39
+ // </div>
40
+
41
+ .us-table-toolbar {
42
+ background: $c-bggrey;
43
+ padding: $gutter-width / 2;
44
+ border-bottom: 1px solid $c-keylinegrey;
45
+ margin: 0 auto $gutter-width / 2;
46
+
47
+ @include respond-to(tablet) {
48
+ display: flex;
49
+ background-color: transparent;
50
+ border-bottom: 0;
51
+ padding: $gutter-width $gutter-width / 2;
52
+ flex-direction: row;
53
+ }
54
+
55
+ &__wrapper {
56
+ display: flex;
57
+ flex: 1 1;
58
+
59
+ &:first-child {
60
+ margin-bottom: $gutter-width / 2;
61
+
62
+ @include respond-to(tablet) {
63
+ margin-bottom: 0;
64
+ }
65
+ }
66
+ }
67
+
68
+ &__sort {
69
+ width: 100%;
70
+
71
+ @include respond-to(tablet) {
72
+ width: auto;
73
+ }
74
+
75
+ select {
76
+ width: 100%;
77
+
78
+ @include respond-to(tablet) {
79
+ width: auto;
80
+ }
81
+ }
82
+ }
83
+
84
+ &__wrapper--right {
85
+ justify-content: flex-end;
86
+ }
87
+
88
+ &__heading {
89
+ font-size: 18px;
90
+ }
91
+ }
@@ -81,6 +81,7 @@
81
81
  // @state results
82
82
  // @state save
83
83
  // @state share
84
+ // @state shield
84
85
  // @state sim
85
86
  // @state smiley
86
87
  // @state sort
@@ -12,7 +12,7 @@
12
12
  // ----------
13
13
 
14
14
  /// IE8 is no longer supported, but on an opt-in basis for applications.
15
- /// Set this to `true` if you do want .ie8 classes to be spat out for media queries
15
+ /// DEPRECATED: Set this to `true` if you do want .ie8 classes to be spat out for media queries
16
16
  ///
17
17
  /// @type Bool
18
18
 
@@ -104,10 +104,10 @@ $devices: ();
104
104
  /// or `$max-breakpoints` (`mobile`, `to-small-tablet`, `to-tablet`)
105
105
  ///
106
106
  /// @param {Bool} $ie-fallback [false]
107
- /// If set to `true` will return a `.ie8` {content} fallback to ensure IE8 gets the supporting styling
107
+ /// DEPRECATED: If set to `true` will return a `.ie8` {content} fallback to ensure IE8 gets the supporting styling
108
108
  ///
109
109
  /// @param {Bool} $ie-fallback-noherit [false]
110
- /// If attaching the mixin onto the root, then set this to `true` to ensure Sass builds the correct styles
110
+ /// DEPRECCATED: If attaching the mixin onto the root, then set this to `true` to ensure Sass builds the correct styles
111
111
  ///
112
112
 
113
113
  @mixin respond-to($device, $ie-fallback: false, $ie-fallback-noherit: false) {
@@ -116,16 +116,6 @@ $devices: ();
116
116
  @media screen and (#{unquote("#{nth($listed-device, 2)}-width:") nth($listed-device, 3)}) {
117
117
  @content;
118
118
  }
119
- @if $ie-fallback and $media-query-legacy-support {
120
- .ie8 & {
121
- @content;
122
- }
123
- }
124
- @if $ie-fallback and $media-query-legacy-support {
125
- .ie8 {
126
- @content;
127
- }
128
- }
129
119
  }
130
120
  }
131
121
  }
@@ -59,7 +59,7 @@
59
59
  }
60
60
  }
61
61
  }
62
-
62
+
63
63
  .us-table-head-sorted {
64
64
  .us-table-sort-button,
65
65
  .us-table-head-text {
@@ -9,7 +9,7 @@
9
9
  padding-right: em($table-key-sidepadding);
10
10
  padding-left: em($table-key-sidepadding);
11
11
  }
12
-
12
+
13
13
  .key-value,
14
14
  .key-sideunit {
15
15
  color: $table-c-key;
@@ -4,7 +4,7 @@
4
4
  padding-left: col-width($i);
5
5
  }
6
6
  }
7
-
7
+
8
8
  .us-grid-lg--push-#{$i} {
9
9
  @include respond-to(desktop, true) {
10
10
  padding-left: col-width($i);
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ustyle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.16.2
4
+ version: 1.19.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - uSwitch Limited
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2018-01-10 00:00:00.000000000 Z
16
+ date: 2019-03-18 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: sass
@@ -135,6 +135,7 @@ executables: []
135
135
  extensions: []
136
136
  extra_rdoc_files: []
137
137
  files:
138
+ - ".drone.yml"
138
139
  - ".gitignore"
139
140
  - ".nvmrc"
140
141
  - ".rbenv-gemsets"
@@ -379,6 +380,7 @@ files:
379
380
  - vendor/assets/images/icons/results.svg
380
381
  - vendor/assets/images/icons/save.svg
381
382
  - vendor/assets/images/icons/share.svg
383
+ - vendor/assets/images/icons/shield.svg
382
384
  - vendor/assets/images/icons/sim.svg
383
385
  - vendor/assets/images/icons/smiley.svg
384
386
  - vendor/assets/images/icons/sort.svg
@@ -407,7 +409,6 @@ files:
407
409
  - vendor/assets/javascripts/ustyle/backdrop.js
408
410
  - vendor/assets/javascripts/ustyle/classtoggler.js
409
411
  - vendor/assets/javascripts/ustyle/overlay.js
410
- - vendor/assets/javascripts/ustyle/radioToggle.js
411
412
  - vendor/assets/javascripts/ustyle/tabs.js
412
413
  - vendor/assets/javascripts/ustyle/utils.js
413
414
  - vendor/assets/stylesheets/ustyle-content.scss
@@ -432,6 +433,9 @@ files:
432
433
  - vendor/assets/stylesheets/ustyle/components/_backdrop.scss
433
434
  - vendor/assets/stylesheets/ustyle/components/_breadcrumbs.scss
434
435
  - vendor/assets/stylesheets/ustyle/components/_button.scss
436
+ - vendor/assets/stylesheets/ustyle/components/_calculator.scss
437
+ - vendor/assets/stylesheets/ustyle/components/_comp-table-row.scss
438
+ - vendor/assets/stylesheets/ustyle/components/_compliance-banner.scss
435
439
  - vendor/assets/stylesheets/ustyle/components/_content-group.scss
436
440
  - vendor/assets/stylesheets/ustyle/components/_cta.scss
437
441
  - vendor/assets/stylesheets/ustyle/components/_grid-classes.scss
@@ -442,6 +446,10 @@ files:
442
446
  - vendor/assets/stylesheets/ustyle/components/_loader.scss
443
447
  - vendor/assets/stylesheets/ustyle/components/_overlay.scss
444
448
  - vendor/assets/stylesheets/ustyle/components/_progress.scss
449
+ - vendor/assets/stylesheets/ustyle/components/_promo-banner.scss
450
+ - vendor/assets/stylesheets/ustyle/components/_reminder.scss
451
+ - vendor/assets/stylesheets/ustyle/components/_tab-navigation.scss
452
+ - vendor/assets/stylesheets/ustyle/components/_table-toolbar.scss
445
453
  - vendor/assets/stylesheets/ustyle/components/_tabs.scss
446
454
  - vendor/assets/stylesheets/ustyle/components/_tooltip.scss
447
455
  - vendor/assets/stylesheets/ustyle/components/_usp.scss
@@ -1,5 +0,0 @@
1
- window.RadioToggle = function() {
2
- var message = "RadioToggle is now deprecated";
3
- if (window.Raven) window.Raven.captureMessage(message);
4
- console.warn(message);
5
- };