dvla_internal_frontend_toolkit 1.0.6 → 1.0.7

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: 4b04d6d642e6d1ac4c1d8a4daca4398648088e93
4
- data.tar.gz: 96fcbfd9412c2f5c991fc7bfcf97eb9d70c81f29
3
+ metadata.gz: c1d83751be62b2db16c1d7f24dcc61c1aa74d189
4
+ data.tar.gz: 4fecc6e38aec4eeb358db72fa945a8b61f65cdee
5
5
  SHA512:
6
- metadata.gz: 4c9661c5043eb07111b846101731f256a836d02c3f0283f142af9865c6f284b83e45b4e3a5d1a20a9def420b53eb77c2d24a2f2f618f0dfb165aaecf2eac35c3
7
- data.tar.gz: 4c41b357bb2d2368438aa2163a811c3a9c09528616d7a2029a45a04a4ca466d28b87a84789808a104d94b0a02b29cf39cfdc9e3d24ef18860ee4b67c86059da0
6
+ metadata.gz: cf1c32bdc6aa1d47f7f97fbb3d6f7173f3615d7813f7929e3eb7f0a942bbb6775b5a711a0266022f660d0aea16f7665b3868edf59f6b65c8b7f74d2c574fe63a
7
+ data.tar.gz: 351e054fb5d085c0362a5ebf2ecb47d973a685e473fa85fe3df1ae7fa88f8bffe1784b535f60d98d70d067cf8c9856184fefcb4ed4b21dbe24ca264cc982ec33
@@ -7,6 +7,7 @@
7
7
  @import "elements/filters";
8
8
  @import "elements/layout";
9
9
  @import "elements/lists";
10
+ @import "elements/modals";
10
11
  @import "elements/navigation";
11
12
  @import "elements/tables";
12
13
  @import "elements/tabs";
@@ -28,6 +28,10 @@
28
28
  &.btn-link {
29
29
  padding: 8px 0;
30
30
  }
31
+
32
+ & + & {
33
+ margin-left: 8px;
34
+ }
31
35
  }
32
36
 
33
37
  .btn-sml {
@@ -38,6 +42,10 @@
38
42
  &.btn-link {
39
43
  padding: 6.5px 0;
40
44
  }
45
+
46
+ & + & {
47
+ margin-left: 6.5px;
48
+ }
41
49
  }
42
50
 
43
51
  .btn-lrg {
@@ -48,6 +56,10 @@
48
56
  &.btn-link {
49
57
  padding: 10px 0;
50
58
  }
59
+
60
+ & + & {
61
+ margin-left: 10px;
62
+ }
51
63
  }
52
64
 
53
65
  .btn-primary {
@@ -106,6 +106,11 @@
106
106
  color: $black;
107
107
  font-size: 18px;
108
108
  font-family: "Interface", "Helvetica Neue", Arial, sans-serif;
109
+ margin-bottom: 16px;
110
+
111
+ &:last-child {
112
+ margin-bottom: 0;
113
+ }
109
114
 
110
115
  &:focus {
111
116
  outline-offset: 0;
@@ -216,7 +221,7 @@ fieldset {
216
221
  legend {
217
222
  padding: 0;
218
223
  margin-bottom: 10px;
219
- font-weight: bold;
224
+ font-weight: 500;
220
225
  font-size: 18px;
221
226
  color: $black;
222
227
 
@@ -0,0 +1,88 @@
1
+ @mixin modal() {
2
+ position: relative;
3
+ top: 50%;
4
+ -webkit-transform: perspective(1px) translateY(-50%);
5
+ -ms-transform: perspective(1px) translateY(-50%);
6
+ transform: perspective(1px) translateY(-50%);
7
+ box-sizing: border-box;
8
+ background: white;
9
+ margin: 0 auto;
10
+ border-radius: 4px;
11
+ box-shadow: 2px 3px 12px 0px rgba(83, 86, 88, 0.50);
12
+ max-width: calc(100% - 32px);
13
+ max-height: calc(100% - 23px);
14
+ display: flex;
15
+ flex-direction: column;
16
+ }
17
+
18
+ .modal-container {
19
+ position: fixed;
20
+ z-index: 1000;
21
+ top: 0;
22
+ bottom: 0;
23
+ left: 0;
24
+ right: 0;
25
+ background: rgba(13, 30, 48, 0.4);
26
+ -webkit-transform-style: preserve-3d;
27
+ -moz-transform-style: preserve-3d;
28
+ transform-style: preserve-3d;
29
+ display: none;
30
+
31
+ .modal-dialog {
32
+ @include modal();
33
+ width: 420px;
34
+ min-height: 200px;
35
+ text-align: center;
36
+ }
37
+
38
+ .modal-small {
39
+ @include modal();
40
+ width: 620px;
41
+ height: 480px;
42
+ }
43
+
44
+ .modal-medium {
45
+ @include modal();
46
+ width: 820px;
47
+ height: 640px;
48
+ }
49
+
50
+ .modal-large {
51
+ @include modal();
52
+ width: 1020px;
53
+ height: 640px;
54
+ }
55
+
56
+ .modal-header {
57
+ height: 56px;
58
+ line-height: 56px;
59
+ font-size: 18px;
60
+ font-weight: 500;
61
+ text-align: center;
62
+ border-bottom: 1px solid $grey-3;
63
+ width: 100%;
64
+ display: block;
65
+ flex: 0 0 auto;
66
+ color: $black;
67
+ }
68
+
69
+ .modal-content {
70
+ padding: 40px;
71
+ overflow-y: scroll;
72
+ flex: 1 1 auto;
73
+ }
74
+
75
+ .modal-footer {
76
+ bottom: 0;
77
+ left: 0;
78
+ right: 0;
79
+ height: 64px;
80
+ line-height: 64px;
81
+ text-align: center;
82
+ border-top: 1px solid $grey-3;
83
+ width: 100%;
84
+ display: block;
85
+ flex: 0 0 auto;
86
+ padding: 0 40px;
87
+ }
88
+ }
@@ -61,6 +61,18 @@ h5, .heading-extra-small {
61
61
  font-weight: normal;
62
62
  }
63
63
 
64
+ .text-left {
65
+ text-align: left !important;
66
+ }
67
+
68
+ .text-right {
69
+ text-align: right !important;
70
+ }
71
+
72
+ .text-center {
73
+ text-align: center !important;
74
+ }
75
+
64
76
  .lede {
65
77
  font-size: 24px;
66
78
  line-height: 36px;
@@ -1,3 +1,3 @@
1
1
  module DvlaInternalFrontendToolkit
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  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: 1.0.6
4
+ version: 1.0.7
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-11-17 00:00:00.000000000 Z
13
+ date: 2017-11-20 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
@@ -88,6 +88,7 @@ files:
88
88
  - app/assets/stylesheets/elements/_forms.scss
89
89
  - app/assets/stylesheets/elements/_layout.scss
90
90
  - app/assets/stylesheets/elements/_lists.scss
91
+ - app/assets/stylesheets/elements/_modals.scss
91
92
  - app/assets/stylesheets/elements/_navigation.scss
92
93
  - app/assets/stylesheets/elements/_tables.scss
93
94
  - app/assets/stylesheets/elements/_tabs.scss