dvla_internal_frontend_toolkit 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +19 -0
- data/README.md +7 -0
- data/lib/dvla_internal_frontend_toolkit.rb +6 -0
- data/lib/dvla_internal_frontend_toolkit/version.rb +3 -0
- data/vendor/assets/fonts/Inter-UI-Bold.woff +0 -0
- data/vendor/assets/fonts/Inter-UI-Medium.woff +0 -0
- data/vendor/assets/fonts/Inter-UI-Regular.woff +0 -0
- data/vendor/assets/fonts/dvla-icons.woff +0 -0
- data/vendor/assets/stylesheets/_dvla-internal-elements.scss +13 -0
- data/vendor/assets/stylesheets/constants/_colours.scss +80 -0
- data/vendor/assets/stylesheets/constants/_fonts.scss +31 -0
- data/vendor/assets/stylesheets/constants/_measurements.scss +1 -0
- data/vendor/assets/stylesheets/dvla-internal-elements-styles.min.css +1 -0
- data/vendor/assets/stylesheets/dvla-internal-elements-styles.scss +2 -0
- data/vendor/assets/stylesheets/elements/_buttons.scss +148 -0
- data/vendor/assets/stylesheets/elements/_forms.scss +50 -0
- data/vendor/assets/stylesheets/elements/_layout.scss +236 -0
- data/vendor/assets/stylesheets/elements/_lists.scss +56 -0
- data/vendor/assets/stylesheets/elements/_navigation.scss +113 -0
- data/vendor/assets/stylesheets/elements/_tables.scss +155 -0
- data/vendor/assets/stylesheets/elements/_tabs.scss +105 -0
- data/vendor/assets/stylesheets/elements/_typography.scss +120 -0
- data/vendor/assets/stylesheets/elements/_validation.scss +59 -0
- metadata +24 -1
@@ -0,0 +1,56 @@
|
|
1
|
+
.list {
|
2
|
+
width: 100%;
|
3
|
+
color: $black;
|
4
|
+
margin-bottom: 40px;
|
5
|
+
|
6
|
+
.list-title-row {
|
7
|
+
border-bottom: 2px solid $grey-2;
|
8
|
+
box-sizing: border-box;
|
9
|
+
height: 40px;
|
10
|
+
display: flex;
|
11
|
+
|
12
|
+
.list-title {
|
13
|
+
font-weight: bold;
|
14
|
+
font-size: 20px;
|
15
|
+
flex: 1 1 50%;
|
16
|
+
}
|
17
|
+
|
18
|
+
.list-change {
|
19
|
+
flex: 1 1 50%;
|
20
|
+
text-align: right;
|
21
|
+
font-weight: bold;
|
22
|
+
color: $primary;
|
23
|
+
|
24
|
+
a {
|
25
|
+
&:visited {
|
26
|
+
color: $primary;
|
27
|
+
}
|
28
|
+
|
29
|
+
&:hover {
|
30
|
+
color: $primary-darker;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
|
35
|
+
}
|
36
|
+
|
37
|
+
.list-row {
|
38
|
+
padding: 16px;
|
39
|
+
border-bottom: 1px solid $grey-2;
|
40
|
+
font-size: 16px;
|
41
|
+
display: flex;
|
42
|
+
|
43
|
+
.list-property {
|
44
|
+
min-height: 16px;
|
45
|
+
flex: 1 1 50%;
|
46
|
+
}
|
47
|
+
|
48
|
+
.list-data {
|
49
|
+
font-weight: bold;
|
50
|
+
min-height: 16px;
|
51
|
+
flex: 1 1 50%;
|
52
|
+
}
|
53
|
+
|
54
|
+
}
|
55
|
+
|
56
|
+
}
|
@@ -0,0 +1,113 @@
|
|
1
|
+
.breadcrumbs {
|
2
|
+
|
3
|
+
font-size: 16px;
|
4
|
+
|
5
|
+
ol {
|
6
|
+
list-style-type: none;
|
7
|
+
padding: 8px 8px 0;
|
8
|
+
margin: 0;
|
9
|
+
|
10
|
+
li {
|
11
|
+
display: inline-block;
|
12
|
+
|
13
|
+
&:first-child {
|
14
|
+
background-image: none;
|
15
|
+
margin-left: 0;
|
16
|
+
padding-left: 0;
|
17
|
+
}
|
18
|
+
|
19
|
+
background-image: url('/images/separator.png');
|
20
|
+
background-position: 0% 50%;
|
21
|
+
background-repeat: no-repeat;
|
22
|
+
margin-left: 1em;
|
23
|
+
padding-left: 1.5em;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
a {
|
28
|
+
color: $black;
|
29
|
+
text-decoration: underline;
|
30
|
+
|
31
|
+
&:visited {
|
32
|
+
color: $black;
|
33
|
+
}
|
34
|
+
|
35
|
+
&:hover {
|
36
|
+
color: black;
|
37
|
+
text-decoration: none;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
#global-header {
|
43
|
+
|
44
|
+
ul {
|
45
|
+
display: block;
|
46
|
+
width: 100%;
|
47
|
+
background-color: $grey-4;
|
48
|
+
line-height: 48px;
|
49
|
+
margin: 0 auto;
|
50
|
+
border-bottom: 1px solid $grey-2;
|
51
|
+
box-sizing: border-box;
|
52
|
+
|
53
|
+
li{
|
54
|
+
display: inline-block;
|
55
|
+
padding: 0 32px;
|
56
|
+
list-style: none;
|
57
|
+
font-weight: bold;
|
58
|
+
|
59
|
+
&:hover{
|
60
|
+
cursor: pointer;
|
61
|
+
}
|
62
|
+
|
63
|
+
&:active, &.active{
|
64
|
+
color: $primary;
|
65
|
+
border-bottom: 2px solid $primary;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
#side-bar{
|
72
|
+
position: fixed;
|
73
|
+
left: 0;
|
74
|
+
width: 280px;
|
75
|
+
height: 100%;
|
76
|
+
background-color: $grey-4;
|
77
|
+
border-right: 1px solid $grey-2;
|
78
|
+
box-sizing: border-box;
|
79
|
+
// margin-top: -8px;
|
80
|
+
|
81
|
+
ul {
|
82
|
+
margin-top: 0;
|
83
|
+
padding: 0;
|
84
|
+
padding-top: 40px;
|
85
|
+
|
86
|
+
li{
|
87
|
+
list-style: none;
|
88
|
+
padding-left: 40px;
|
89
|
+
line-height: 40px;
|
90
|
+
font-weight: bold;
|
91
|
+
|
92
|
+
&:hover{
|
93
|
+
cursor: pointer;
|
94
|
+
background-color: $primary-lightest;
|
95
|
+
text-decoration: underline;
|
96
|
+
}
|
97
|
+
|
98
|
+
&:active, &.active{
|
99
|
+
color: $primary;
|
100
|
+
border-left: 8px solid $primary;
|
101
|
+
padding-left: 32px;
|
102
|
+
background-color: $primary-lightest;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
106
|
+
&+.container-fluid {
|
107
|
+
padding-left: 312px;
|
108
|
+
|
109
|
+
@media screen and (max-width: 1023px) {
|
110
|
+
padding-left: 280px;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
@@ -0,0 +1,155 @@
|
|
1
|
+
table {
|
2
|
+
width: 100%;
|
3
|
+
font-size: 16px;
|
4
|
+
text-align: left;
|
5
|
+
border-spacing: 0;
|
6
|
+
border-collapse: collapse;
|
7
|
+
|
8
|
+
thead {
|
9
|
+
th {
|
10
|
+
height: 48px;
|
11
|
+
font-weight: bold;
|
12
|
+
border-color: $grey-2;
|
13
|
+
border-width: 1px 0;
|
14
|
+
border-style: solid;
|
15
|
+
|
16
|
+
&:first-child {
|
17
|
+
padding-left: 16px;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
tbody {
|
23
|
+
tr {
|
24
|
+
td {
|
25
|
+
background: $grey-4;
|
26
|
+
height: 48px;
|
27
|
+
border-color: $grey-2;
|
28
|
+
border-width: 0 0 1px 0;
|
29
|
+
border-style: solid;
|
30
|
+
|
31
|
+
&:first-child {
|
32
|
+
padding-left: 16px;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
table.tachonet-queue {
|
40
|
+
width: 100%;
|
41
|
+
font-size: 16px;
|
42
|
+
border-collapse: separate;
|
43
|
+
border-spacing: 0 0.5em;
|
44
|
+
|
45
|
+
thead {
|
46
|
+
th {
|
47
|
+
min-height: 48px;
|
48
|
+
border: none;
|
49
|
+
vertical-align: bottom;
|
50
|
+
padding-bottom: 0.5em;
|
51
|
+
|
52
|
+
&:last-child {
|
53
|
+
text-align: center;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
tbody {
|
59
|
+
tr {
|
60
|
+
|
61
|
+
&.disabled {
|
62
|
+
td {
|
63
|
+
background: $grey-4;
|
64
|
+
}
|
65
|
+
}
|
66
|
+
|
67
|
+
&.urgent {
|
68
|
+
td:first-child {
|
69
|
+
border-left-color: $mellow-red;
|
70
|
+
}
|
71
|
+
|
72
|
+
.bubble {
|
73
|
+
background: mix($mellow-red, white, 22%);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
&.waiting {
|
78
|
+
td:first-child {
|
79
|
+
border-left-color: $warning;
|
80
|
+
}
|
81
|
+
|
82
|
+
.bubble {
|
83
|
+
background: mix($warning, white, 22%);
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
&.parked {
|
88
|
+
td:first-child {
|
89
|
+
border-left-color: $secondary;
|
90
|
+
}
|
91
|
+
|
92
|
+
.bubble {
|
93
|
+
background: mix($secondary, white, 22%);
|
94
|
+
}
|
95
|
+
}
|
96
|
+
|
97
|
+
&.completed {
|
98
|
+
td:first-child {
|
99
|
+
border-left-color: $success;
|
100
|
+
}
|
101
|
+
|
102
|
+
.bubble {
|
103
|
+
color: white;
|
104
|
+
background: $success;
|
105
|
+
&::before{
|
106
|
+
font-family: $icon-font;
|
107
|
+
content: '\e90a';
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
td {
|
113
|
+
background: white;
|
114
|
+
border-width: 1px 0 2px 0;
|
115
|
+
border-style: solid;
|
116
|
+
border-color: $grey-2;
|
117
|
+
|
118
|
+
&.transaction-type {
|
119
|
+
font-weight: bold;
|
120
|
+
}
|
121
|
+
|
122
|
+
&.tacho-number {
|
123
|
+
font-weight: bold;
|
124
|
+
}
|
125
|
+
|
126
|
+
&.status {
|
127
|
+
text-align: center;
|
128
|
+
font-weight: bold;
|
129
|
+
|
130
|
+
.bubble {
|
131
|
+
width: 32px;
|
132
|
+
height: 32px;
|
133
|
+
line-height: 34px;
|
134
|
+
border-radius: 16px;
|
135
|
+
display: inline-block;
|
136
|
+
padding-left: 1px;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
|
141
|
+
&:first-child {
|
142
|
+
border-left-width: 6px;
|
143
|
+
border-top-left-radius: 4px;
|
144
|
+
border-bottom-left-radius: 4px;
|
145
|
+
}
|
146
|
+
|
147
|
+
&:last-child {
|
148
|
+
border-top-right-radius: 4px;
|
149
|
+
border-bottom-right-radius: 4px;
|
150
|
+
border-right: 1px solid $grey-2;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
@@ -0,0 +1,105 @@
|
|
1
|
+
.tabs {
|
2
|
+
display: block;
|
3
|
+
padding-left: 0px;
|
4
|
+
height: 48px;
|
5
|
+
line-height: 48px;
|
6
|
+
box-sizing: border-box;
|
7
|
+
font-size: 0;
|
8
|
+
font-weight: 500;
|
9
|
+
border-bottom: 1px solid $grey-2;
|
10
|
+
|
11
|
+
.tab {
|
12
|
+
display: inline-block;
|
13
|
+
background: $grey-4;
|
14
|
+
border: 1px solid $grey-2;
|
15
|
+
font-size: 16px;
|
16
|
+
margin-right: -1px;
|
17
|
+
color: $black;
|
18
|
+
|
19
|
+
&:hover {
|
20
|
+
background: $grey-3;
|
21
|
+
}
|
22
|
+
|
23
|
+
&.active {
|
24
|
+
color: $primary;
|
25
|
+
background: white;
|
26
|
+
border-bottom: 1px solid white;
|
27
|
+
|
28
|
+
&:hover {
|
29
|
+
background: white;
|
30
|
+
}
|
31
|
+
|
32
|
+
a {
|
33
|
+
&:visited {
|
34
|
+
color: $primary;
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
a {
|
42
|
+
display: block;
|
43
|
+
height: calc(100% - 1px);
|
44
|
+
text-decoration: none;
|
45
|
+
padding: 0 24px;
|
46
|
+
|
47
|
+
&:visited {
|
48
|
+
color: $black;
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
|
53
|
+
.action{
|
54
|
+
list-style: none;
|
55
|
+
// display: inline-block;
|
56
|
+
float: right;
|
57
|
+
line-height: normal;
|
58
|
+
margin-top: 8px;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
.sub-tabs {
|
63
|
+
margin-top: 32px;
|
64
|
+
display: block;
|
65
|
+
height: 40px;
|
66
|
+
line-height: 40px;
|
67
|
+
box-sizing: border-box;
|
68
|
+
font-size: 0;
|
69
|
+
font-weight: 500;
|
70
|
+
border-bottom: 1px solid $grey-2;
|
71
|
+
|
72
|
+
.sub-tab {
|
73
|
+
display: inline-block;
|
74
|
+
font-size: 16px;
|
75
|
+
margin-right: -1px;
|
76
|
+
color: $black;
|
77
|
+
|
78
|
+
&:hover {
|
79
|
+
border-bottom: 2px solid $grey-2;
|
80
|
+
}
|
81
|
+
|
82
|
+
&.active {
|
83
|
+
color: $primary;
|
84
|
+
border-bottom: 2px solid $primary;
|
85
|
+
|
86
|
+
a {
|
87
|
+
&:visited {
|
88
|
+
color: $primary;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
}
|
93
|
+
|
94
|
+
a {
|
95
|
+
display: block;
|
96
|
+
height: calc(100% - 1px);
|
97
|
+
text-decoration: none;
|
98
|
+
padding: 0 32px;
|
99
|
+
|
100
|
+
&:visited {
|
101
|
+
color: $black;
|
102
|
+
}
|
103
|
+
}
|
104
|
+
}
|
105
|
+
}
|
@@ -0,0 +1,120 @@
|
|
1
|
+
body {
|
2
|
+
font-size: 16px;
|
3
|
+
line-height: 24px;
|
4
|
+
}
|
5
|
+
|
6
|
+
@mixin heading() {
|
7
|
+
font-weight: bold;
|
8
|
+
color: $text-primary-colour;
|
9
|
+
}
|
10
|
+
|
11
|
+
h1 {
|
12
|
+
font-size: 40px;
|
13
|
+
line-height: 48px;
|
14
|
+
color: $primary;
|
15
|
+
}
|
16
|
+
|
17
|
+
h2 {
|
18
|
+
font-size: 32px;
|
19
|
+
line-height: 40px;
|
20
|
+
color: $primary;
|
21
|
+
}
|
22
|
+
|
23
|
+
h3 {
|
24
|
+
font-size: 28px;
|
25
|
+
line-height: 36px;
|
26
|
+
color: $primary;
|
27
|
+
}
|
28
|
+
|
29
|
+
h4 {
|
30
|
+
font-size: 24px;
|
31
|
+
line-height: 32px;
|
32
|
+
color: $primary;
|
33
|
+
}
|
34
|
+
|
35
|
+
h5 {
|
36
|
+
font-size: 20px;
|
37
|
+
line-height: 24px;
|
38
|
+
color: $primary;
|
39
|
+
}
|
40
|
+
|
41
|
+
.text-large {
|
42
|
+
color: $text-primary-colour;
|
43
|
+
line-height: 32px;
|
44
|
+
font-size: 20px;
|
45
|
+
font-weight: normal;
|
46
|
+
}
|
47
|
+
|
48
|
+
.text-small {
|
49
|
+
color: $text-primary-colour;
|
50
|
+
line-height: 24px;
|
51
|
+
font-size: 16px;
|
52
|
+
font-weight: normal;
|
53
|
+
}
|
54
|
+
|
55
|
+
ul, ol {
|
56
|
+
&.list-bulleted {
|
57
|
+
list-style-type: disc;
|
58
|
+
}
|
59
|
+
|
60
|
+
&.list-numbered {
|
61
|
+
list-style-type: decimal;
|
62
|
+
}
|
63
|
+
|
64
|
+
&.list-bulleted, &.list-numbered {
|
65
|
+
color: $text-primary-colour;
|
66
|
+
line-height: 28px;
|
67
|
+
|
68
|
+
&.text-large {
|
69
|
+
line-height: 32px;
|
70
|
+
font-size: 20px;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
.inset {
|
76
|
+
border-left: 6px solid $grey-3;
|
77
|
+
padding-left: 16px;
|
78
|
+
display: block;
|
79
|
+
}
|
80
|
+
|
81
|
+
.important {
|
82
|
+
font-weight: bold;
|
83
|
+
position: relative;
|
84
|
+
display: inline-block;
|
85
|
+
&:before {
|
86
|
+
padding-top: 4px;
|
87
|
+
padding-left: 9px;
|
88
|
+
font-family: $icon-font;
|
89
|
+
content: '\e90c';
|
90
|
+
left: 0;
|
91
|
+
top: 0;
|
92
|
+
background: black;
|
93
|
+
color: white;
|
94
|
+
width: 32px;
|
95
|
+
height: 32px;
|
96
|
+
border-radius: 16px;
|
97
|
+
display: inline-block;
|
98
|
+
}
|
99
|
+
|
100
|
+
p, div, span {
|
101
|
+
margin-top: -32px;
|
102
|
+
padding-left: 48px;
|
103
|
+
line-height: 32px;
|
104
|
+
}
|
105
|
+
}
|
106
|
+
|
107
|
+
a {
|
108
|
+
color: $link-colour;
|
109
|
+
|
110
|
+
&:visited {
|
111
|
+
color: $visited-colour;
|
112
|
+
}
|
113
|
+
&:hover {
|
114
|
+
color: $link-hover-colour;
|
115
|
+
}
|
116
|
+
&:focus {
|
117
|
+
outline: 3px solid $focus-colour;
|
118
|
+
background: $focus-colour;
|
119
|
+
}
|
120
|
+
}
|