ustyle 1.16.2 → 1.19.2
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 +4 -4
- data/.drone.yml +17 -0
- data/Gruntfile.js +14 -8
- data/README.md +19 -1
- data/config/autoprefixer.yml +3 -3
- data/config/scss-lint.yml +1 -0
- data/dist/icons.svg +1 -1
- data/dist/ustyle-content.css +1 -1
- data/dist/ustyle-latest.css +1 -1
- data/dist/ustyle.js +1 -7
- data/dist/ustyle.json +1 -1
- data/dist/ustyle.min.js +1 -1
- data/index.js +7 -1
- data/lib/ustyle/version.rb +1 -1
- data/package-lock.json +56 -14
- data/package.json +14 -1
- data/styleguide/assets/images/icons.svg +1 -1
- data/styleguide/assets/sass/main.scss +1 -1
- data/styleguide/content/pattern-library/index.tpl +2 -6
- data/tasks/publish.rake +6 -4
- data/vendor/assets/images/icons.svg +1 -1
- data/vendor/assets/images/icons/alarm.svg +1 -1
- data/vendor/assets/images/icons/clock.svg +1 -1
- data/vendor/assets/images/icons/cog.svg +1 -1
- data/vendor/assets/images/icons/dual-fuel.svg +1 -1
- data/vendor/assets/images/icons/envelope.svg +1 -1
- data/vendor/assets/images/icons/facebook-brand.svg +1 -1
- data/vendor/assets/images/icons/fixed-variable.svg +1 -1
- data/vendor/assets/images/icons/gas.svg +1 -1
- data/vendor/assets/images/icons/google-brand.svg +1 -1
- data/vendor/assets/images/icons/pdf.svg +1 -1
- data/vendor/assets/images/icons/piggy-bank.svg +1 -1
- data/vendor/assets/images/icons/pound-note.svg +1 -1
- data/vendor/assets/images/icons/present.svg +1 -1
- data/vendor/assets/images/icons/renewable.svg +1 -1
- data/vendor/assets/images/icons/shield.svg +1 -0
- data/vendor/assets/images/icons/smiley.svg +1 -1
- data/vendor/assets/images/icons/sort.svg +1 -1
- data/vendor/assets/images/icons/twitter-brand.svg +1 -1
- data/vendor/assets/images/icons/twitter.svg +1 -1
- data/vendor/assets/images/icons/uswitch.svg +1 -1
- data/vendor/assets/images/icons/wiki.svg +1 -1
- data/vendor/assets/javascripts/ustyle/tabs.js +1 -1
- data/vendor/assets/stylesheets/ustyle/_all.scss +7 -0
- data/vendor/assets/stylesheets/ustyle/articles/_related.scss +5 -3
- data/vendor/assets/stylesheets/ustyle/components/_button.scss +0 -1
- data/vendor/assets/stylesheets/ustyle/components/_calculator.scss +36 -0
- data/vendor/assets/stylesheets/ustyle/components/_comp-table-row.scss +325 -0
- data/vendor/assets/stylesheets/ustyle/components/_compliance-banner.scss +33 -0
- data/vendor/assets/stylesheets/ustyle/components/_content-group.scss +1 -1
- data/vendor/assets/stylesheets/ustyle/components/_grid-classes.scss +1 -1
- data/vendor/assets/stylesheets/ustyle/components/_hero.scss +78 -5
- data/vendor/assets/stylesheets/ustyle/components/_lists.scss +5 -1
- data/vendor/assets/stylesheets/ustyle/components/_promo-banner.scss +127 -0
- data/vendor/assets/stylesheets/ustyle/components/_reminder.scss +49 -0
- data/vendor/assets/stylesheets/ustyle/components/_tab-navigation.scss +112 -0
- data/vendor/assets/stylesheets/ustyle/components/_table-toolbar.scss +91 -0
- data/vendor/assets/stylesheets/ustyle/icons/_base.scss +1 -0
- data/vendor/assets/stylesheets/ustyle/mixins/_media-query.scss +3 -13
- data/vendor/assets/stylesheets/ustyle/tables/_tables-sortable.scss +1 -1
- data/vendor/assets/stylesheets/ustyle/tables/_tables-with-key-cells.scss +1 -1
- data/vendor/assets/stylesheets/ustyle/utilities/_grid.scss +1 -1
- metadata +11 -3
- 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
|
+
}
|
@@ -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
|
}
|
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.
|
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:
|
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
|