dvla_internal_frontend_toolkit 2.0.9 → 2.1.5

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: acd861d65511ca8312ff891a6dd60ff182a20ec4
4
- data.tar.gz: cc778d8627edb6854047df530bb6856303a434a4
3
+ metadata.gz: 2e3b23fed27e2d7b93bdd0ad4429199e0796f944
4
+ data.tar.gz: 02b7c72fdd01502f3945c2f35ed830a907788bc8
5
5
  SHA512:
6
- metadata.gz: 3e9fadb2c06faaf21e8af28972ab935162165fdccee0d76847cb6ecae070b94e2475be27bf7d5da94696e9e7612d777dfafc584194795b57d35229f3457890ee
7
- data.tar.gz: 1dba72745410ab4b9a8f5ea9a811ffb9f3f658005a13b0fdbef0156b894e94a52b875c5d7b00a030a0c8fe57be3db593e40f5f0546d300a69d0cb9282a3c0dd3
6
+ metadata.gz: 2de81e5407f1f18454b5a0346a8842712b98035809805ce9c85a3eda7a64461a95bc2f224891405043ef5cfa7b97f6edf6c54a28ff204f4618c02036216385bf
7
+ data.tar.gz: d1cdb18a65b5dc8731654538d60b53c9de1332f9bbe3c4a0fdbb88ce92ae0b98a9f253dfba5b61cacc728176eef7bd597ec79e58f31850290ed5a2ea5d3075f2
@@ -2,26 +2,26 @@
2
2
 
3
3
  @font-face {
4
4
  font-family: 'Interface';
5
- src: url('#{$fontPath}Inter-UI-Regular.woff') format('woff');
5
+ @include fontAsset('Inter-UI-Regular.woff');
6
6
  font-weight: normal;
7
7
  font-style: normal;
8
8
  }
9
9
 
10
10
  @font-face {
11
11
  font-family: 'Interface';
12
- src: url('#{$fontPath}Inter-UI-Medium.woff') format('woff');
12
+ @include fontAsset('Inter-UI-Medium.woff');
13
13
  font-weight: 500;
14
14
  }
15
15
 
16
16
  @font-face {
17
17
  font-family: 'Interface';
18
- src: url('#{$fontPath}Inter-UI-Bold.woff') format('woff');
18
+ @include fontAsset('Inter-UI-Bold.woff');
19
19
  font-weight: bold;
20
20
  }
21
21
 
22
22
  @font-face{
23
23
  font-family: 'dvla-icons';
24
- src: url('#{$fontPath}dvla-icons.woff') format('woff');
24
+ @include fontAsset('dvla-icons.woff');
25
25
  }
26
26
 
27
27
  $primary-font: 'Interface', 'Helvetica Neue', Arial, sans-serif;
@@ -1,2 +1,10 @@
1
1
  $imagePath: '/public/images/';
2
- $fontPath: '/public/fonts/';
2
+ $fontPath: '/public/fonts/';
3
+
4
+ @mixin imageAsset($image) {
5
+ background-image: url('#{$imagePath}#{$image}');
6
+ }
7
+
8
+ @mixin fontAsset($font) {
9
+ src: url('#{$fontPath}#{$image}') format('woff');
10
+ }
@@ -1,3 +1,8 @@
1
- $assetPath: '';
2
- $imagePath: $assetPath;
3
- $fontPath: $assetPath;
1
+
2
+ @mixin imageAsset($image) {
3
+ background-image: url(asset-path('#{$image}'));
4
+ }
5
+
6
+ @mixin fontAsset($font) {
7
+ src: font-url('#{$font}') format('woff');
8
+ }
@@ -159,7 +159,7 @@
159
159
 
160
160
  select {
161
161
  background-color: white;
162
- background-image: url('#{$imagePath}triangle-caret-down.svg');
162
+ @include imageAsset('triangle-caret-down.svg');
163
163
  background-repeat: no-repeat;
164
164
  background-size: 28px 12px;
165
165
  background-position: right center;
@@ -86,7 +86,7 @@ body {
86
86
  #coat-of-arms {
87
87
  float: left;
88
88
  margin-right: 1.5em;
89
- background-image: url('#{$imagePath}coat-of-arms-logo.svg');
89
+ @include imageAsset('coat-of-arms-logo.svg');
90
90
  background-repeat: no-repeat;
91
91
  width: 36px;
92
92
  height: 32px;
@@ -15,7 +15,7 @@
15
15
  padding-left: 0;
16
16
  }
17
17
 
18
- background-image: url('#{$imagePath}separator.png');
18
+ @include imageAsset('separator.png');
19
19
  background-position: 0% 50%;
20
20
  background-repeat: no-repeat;
21
21
  margin-left: 1em;
@@ -1,3 +1,3 @@
1
1
  module DvlaInternalFrontendToolkit
2
- VERSION = "2.0.9"
2
+ VERSION = "2.1.5"
3
3
  end
@@ -2,5 +2,17 @@ require "dvla_internal_frontend_toolkit/version"
2
2
 
3
3
  module DvlaInternalFrontendToolkit
4
4
  class Engine < ::Rails::Engine
5
+
6
+ config.to_prepare do
7
+ Rails.application.config.assets.precompile += %w(
8
+ *.png
9
+ *.jpg
10
+ *.jpeg
11
+ *.gif
12
+ *.svg
13
+ *.woff
14
+ )
15
+ end
16
+
5
17
  end
6
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dvla_internal_frontend_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liam Betsworth
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2017-12-07 00:00:00.000000000 Z
13
+ date: 2017-12-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
@@ -94,7 +94,6 @@ files:
94
94
  - app/assets/stylesheets/elements/_lists.scss
95
95
  - app/assets/stylesheets/elements/_modals.scss
96
96
  - app/assets/stylesheets/elements/_navigation.scss
97
- - app/assets/stylesheets/elements/_pagination.scss
98
97
  - app/assets/stylesheets/elements/_tables.scss
99
98
  - app/assets/stylesheets/elements/_tabs.scss
100
99
  - app/assets/stylesheets/elements/_typography.scss
@@ -130,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
129
  version: '0'
131
130
  requirements: []
132
131
  rubyforge_project:
133
- rubygems_version: 2.6.14
132
+ rubygems_version: 2.6.13
134
133
  signing_key:
135
134
  specification_version: 4
136
135
  summary: DVLA Internal Frontend Toolkit
@@ -1,274 +0,0 @@
1
- .lnk {
2
- @include button();
3
- font-size: 15px;
4
- padding: 8px 12px;
5
-
6
- // & + & {
7
- // margin-left: 8px;
8
- // }
9
- }
10
-
11
- .lnk-primary {
12
- color: $primary;
13
- background: white;
14
- border: 1px solid $grey-2;
15
- border-bottom-width: 2px;
16
- cursor: pointer;
17
-
18
- &:hover, &:focus {
19
- background: $grey-4;
20
- color: $primary;
21
-
22
- &:disabled {
23
- background: $grey-4;
24
- }
25
- }
26
-
27
- &:visited {
28
- color: $primary;
29
- }
30
-
31
- &.previous {
32
- margin-right: 4px;
33
- }
34
-
35
- &.next {
36
- margin-left: 4px;
37
- }
38
-
39
- &.previous::before {
40
- font-family: 'dvla-icons';
41
- content: '\e912';
42
- }
43
-
44
- &.next::before {
45
- font-family: 'dvla-icons';
46
- content: '\e910';
47
- }
48
- }
49
-
50
- .lnk-active {
51
- color: white;
52
- background: $secondary;
53
- border: 1.5px solid $secondary;
54
- cursor: pointer;
55
- border-radius: 4px;
56
-
57
- &:hover, &:focus {
58
- background: $secondary-dark;
59
- border: 1.5px solid $secondary-dark;
60
- color: white;
61
-
62
- &:disabled {
63
- background: $secondary;
64
- }
65
- }
66
-
67
- &:visited {
68
- color: white;
69
- }
70
- }
71
-
72
- .page-number {
73
- color: $primary;
74
- margin: 0 16px;
75
- }
76
-
77
- .hellip {
78
- color: $primary;
79
- margin: 0 10px;
80
- }
81
-
82
-
83
-
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
- // .btn-spacer-right{
97
- // margin-right: 32px;
98
- // }
99
-
100
- // .btn-spacer-left{
101
- // margin-left: 32px;
102
- // }
103
- // .btn-spacer-top{
104
- // margin-top: 32px;
105
- // }
106
-
107
- // .btn-spacer-bottom{
108
- // margin-bottom: 32px;
109
- // }
110
-
111
- // .page-link {
112
- // @include button();
113
-
114
- // font-size: 15px;
115
- // padding: 8px 14px;
116
-
117
- // display: inline-block;
118
- // height: 36px;
119
- // padding: 8px 14px;
120
-
121
- // .btn {
122
- // @include button();
123
- // font-size: 15px;
124
- // padding: 8px 14px;
125
-
126
- // &.btn-link {
127
- // padding: 8px 0;
128
- // }
129
-
130
- // & + & {
131
- // margin-left: 8px;
132
- // }
133
- // }
134
-
135
-
136
-
137
- // &.primary {
138
- // width: 34px;
139
-
140
- // &.previous {
141
- // width: 55px;
142
- // }
143
-
144
- // &.next {
145
- // width: 55px;
146
- // }
147
- // }
148
-
149
- // &.previous {
150
- // margin-right: 23px;
151
- // }
152
-
153
- // &.next {
154
- // margin-left: 23px;
155
- // }
156
-
157
- // & + & {
158
- // margin-left: 8px;
159
- // }
160
-
161
- // color: $primary;
162
- // background: white;
163
- // border: 1px solid $grey-2;
164
- // border-bottom-width: 2px;
165
- // cursor: pointer;
166
-
167
- // &:hover, &:focus {
168
- // background: $grey-4;
169
- // color: $primary;
170
-
171
- // &:disabled {
172
- // background: $grey-4;
173
- // }
174
- // }
175
-
176
- // &:visited {
177
- // color: $primary;
178
- // }
179
- // &.btn-link {
180
- // padding: 8px 0;
181
- // }
182
-
183
- // & + & {
184
- // margin-left: 8px;
185
- // }
186
-
187
- // .previous {
188
- // margin-right: 8px;
189
- // }
190
-
191
-
192
-
193
- // .next {
194
- // margin-right: 8px;
195
- // }
196
-
197
- // .page-number {
198
- // margin: 0 10px;
199
- // }
200
-
201
- // .primary {
202
- // color: $primary;
203
- // background: white;
204
- // border: 1px solid $grey-2;
205
- // border-bottom-width: 2px;
206
- // cursor: pointer;
207
-
208
- // &:hover, &:focus {
209
- // background: $grey-4;
210
- // color: $primary;
211
-
212
- // &:disabled {
213
- // background: $grey-4;
214
- // }
215
- // }
216
-
217
- // &:visited {
218
- // color: $primary;
219
- // }
220
- // }
221
-
222
- // .active {
223
- // color: white;
224
- // background: $secondary;
225
- // border-bottom: 2px solid $secondary-darkest;
226
- // cursor: pointer;
227
-
228
- // &:hover, &:focus {
229
- // background: $secondary-dark;
230
- // color: white;
231
-
232
- // &:disabled {
233
- // background: $secondary;
234
- // }
235
- // }
236
-
237
- // &:visited {
238
- // color: white;
239
- // }
240
- // }
241
- // }
242
-
243
- // &:hover, &:focus {
244
- // background: $grey-4;
245
- // color: $primary;
246
-
247
- // &:disabled {
248
- // background: $grey-4;
249
- // }
250
- // }
251
-
252
- // &:visited {
253
- // color: $primary;
254
- // }
255
-
256
- // &.active {
257
- // color: white;
258
- // background: $secondary;
259
- // border-bottom: 2px solid $secondary-darkest;
260
- // cursor: pointer;
261
-
262
- // &:hover, &:focus {
263
- // background: $secondary-dark;
264
- // color: white;
265
-
266
- // &:disabled {
267
- // background: $secondary;
268
- // }
269
- // }
270
-
271
- // &:visited {
272
- // color: white;
273
- // }
274
- // }