dvla_internal_frontend_toolkit 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/coat-of-arms-logo.svg +71 -0
- data/app/assets/images/separator.png +0 -0
- data/app/assets/images/triangle-caret-down.svg +12 -0
- data/app/assets/javascripts/styleguide/prism-line-numbers.js +114 -0
- data/app/assets/javascripts/styleguide/prism.js +6 -0
- data/app/assets/stylesheets/_dvla-internal-elements.scss +13 -0
- data/app/assets/stylesheets/constants/_colours.scss +80 -0
- data/app/assets/stylesheets/constants/_fonts.scss +31 -0
- data/app/assets/stylesheets/constants/_measurements.scss +1 -0
- data/app/assets/stylesheets/dvla-internal-elements-styles.min.css +1 -0
- data/app/assets/stylesheets/dvla-internal-elements-styles.scss +2 -0
- data/app/assets/stylesheets/elements/_buttons.scss +148 -0
- data/app/assets/stylesheets/elements/_forms.scss +50 -0
- data/app/assets/stylesheets/elements/_layout.scss +236 -0
- data/app/assets/stylesheets/elements/_lists.scss +56 -0
- data/app/assets/stylesheets/elements/_navigation.scss +113 -0
- data/app/assets/stylesheets/elements/_tables.scss +155 -0
- data/app/assets/stylesheets/elements/_tabs.scss +105 -0
- data/app/assets/stylesheets/elements/_typography.scss +120 -0
- data/app/assets/stylesheets/elements/_validation.scss +59 -0
- data/app/assets/stylesheets/styleguide/_prism-line-numbers.scss +41 -0
- data/app/assets/stylesheets/styleguide/_prism.scss +138 -0
- data/app/assets/stylesheets/styleguide/_styleguide.scss +239 -0
- data/lib/dvla_internal_frontend_toolkit/version.rb +1 -1
- metadata +24 -1
@@ -0,0 +1,50 @@
|
|
1
|
+
.form-control {
|
2
|
+
width: 100%;
|
3
|
+
border-radius: 0;
|
4
|
+
-webkit-appearance: none;
|
5
|
+
-moz-appearance: none;
|
6
|
+
appearance: none;
|
7
|
+
|
8
|
+
&::-ms-expand{
|
9
|
+
display: none;
|
10
|
+
}
|
11
|
+
|
12
|
+
&.form-control-1-2 {
|
13
|
+
width: 50%;
|
14
|
+
}
|
15
|
+
}
|
16
|
+
|
17
|
+
|
18
|
+
select {
|
19
|
+
height: 40px;
|
20
|
+
border: 2px solid $grey-2;
|
21
|
+
font-size: inherit;
|
22
|
+
border-radius: 0px;
|
23
|
+
background-image: url('/images/triangle-caret-down.svg');
|
24
|
+
background-repeat: no-repeat;
|
25
|
+
background-size: 28px 12px;
|
26
|
+
background-position: right center;
|
27
|
+
padding-left: 16px;
|
28
|
+
}
|
29
|
+
|
30
|
+
textarea{
|
31
|
+
resize: none;
|
32
|
+
height: 144px;
|
33
|
+
border: 2px solid $grey-2;
|
34
|
+
margin-bottom: 24px;
|
35
|
+
}
|
36
|
+
|
37
|
+
.textarea-title{
|
38
|
+
font-weight: bold;
|
39
|
+
margin-bottom: 8px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.textarea-playback-date{
|
43
|
+
text-align: right;
|
44
|
+
}
|
45
|
+
|
46
|
+
.textarea-playback{
|
47
|
+
background-color: #f7f7f7;
|
48
|
+
height: 120px;
|
49
|
+
padding: 24px 24px;
|
50
|
+
}
|
@@ -0,0 +1,236 @@
|
|
1
|
+
html {
|
2
|
+
font-family: $primary-font;
|
3
|
+
}
|
4
|
+
|
5
|
+
body {
|
6
|
+
width: 100%;
|
7
|
+
margin: 0 auto;
|
8
|
+
background: $grey-4;
|
9
|
+
height:100%;
|
10
|
+
}
|
11
|
+
|
12
|
+
|
13
|
+
#global-header {
|
14
|
+
display: block;
|
15
|
+
position: fixed;
|
16
|
+
position: sticky;
|
17
|
+
left: 0;
|
18
|
+
top: 0;
|
19
|
+
width: 100%;
|
20
|
+
z-index: 10;
|
21
|
+
background: white;
|
22
|
+
// margin-bottom: -16px;
|
23
|
+
|
24
|
+
#global-header-bar {
|
25
|
+
width: 944px;
|
26
|
+
max-width: calc(100% - 32px);
|
27
|
+
height: 8px;
|
28
|
+
margin: 0 auto;
|
29
|
+
background: $primary-lighter;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
#header-wrapper {
|
34
|
+
padding: 0.5em 0 0.5em 0;
|
35
|
+
display: block;
|
36
|
+
width: 100%;
|
37
|
+
background: $primary;
|
38
|
+
color: white;
|
39
|
+
height: 2em;
|
40
|
+
box-sizing: content-box;
|
41
|
+
|
42
|
+
#header-contents {
|
43
|
+
clear: both;
|
44
|
+
margin: 0 auto;
|
45
|
+
width: 944px;
|
46
|
+
max-width: calc(100% - 32px);
|
47
|
+
|
48
|
+
// @media screen and (max-width: 1023px) {
|
49
|
+
// width: 960px;
|
50
|
+
// // max-width: calc(100% - 32px);
|
51
|
+
// }
|
52
|
+
|
53
|
+
@media screen and (min-width: 1024px) {
|
54
|
+
width: 100%;
|
55
|
+
padding: 0 40px;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
#header-float-left {
|
61
|
+
// position: absolute;
|
62
|
+
// left: 2.5em;
|
63
|
+
float: left;
|
64
|
+
}
|
65
|
+
|
66
|
+
#header-float-right {
|
67
|
+
// position: absolute;
|
68
|
+
// right: 2.5em;
|
69
|
+
float: right;
|
70
|
+
}
|
71
|
+
|
72
|
+
#header-logo {
|
73
|
+
|
74
|
+
#coat-of-arms {
|
75
|
+
float: left;
|
76
|
+
margin-right: 1.5em;
|
77
|
+
background-image: url('/images/coat-of-arms-logo.svg');
|
78
|
+
background-repeat: no-repeat;
|
79
|
+
width: 36px;
|
80
|
+
height: 32px;
|
81
|
+
float: left;
|
82
|
+
}
|
83
|
+
|
84
|
+
a {
|
85
|
+
text-decoration: none;
|
86
|
+
|
87
|
+
.name {
|
88
|
+
float: left;
|
89
|
+
font-size: 28px;
|
90
|
+
line-height: 32px;
|
91
|
+
letter-spacing: 0.8;
|
92
|
+
color: white;
|
93
|
+
font-weight: bold;
|
94
|
+
|
95
|
+
&:hover {
|
96
|
+
text-decoration: underline;
|
97
|
+
}
|
98
|
+
|
99
|
+
&:visited {
|
100
|
+
color: white;
|
101
|
+
}
|
102
|
+
}
|
103
|
+
.service-name {
|
104
|
+
display: inline-block;
|
105
|
+
color: white;
|
106
|
+
letter-spacing: 2px;
|
107
|
+
border-left: 2px solid $primary-lighter;
|
108
|
+
vertical-align: bottom;
|
109
|
+
margin-left: 8px;
|
110
|
+
margin-top: 14px;
|
111
|
+
padding: 0 8px;
|
112
|
+
line-height: 12px;
|
113
|
+
font-size: 16px;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
#user-account {
|
119
|
+
#user-account-email {
|
120
|
+
line-height: 32px;
|
121
|
+
font-size: 16px;
|
122
|
+
float: right;
|
123
|
+
|
124
|
+
&:after {
|
125
|
+
content: ':';
|
126
|
+
}
|
127
|
+
}
|
128
|
+
|
129
|
+
#logout {
|
130
|
+
margin-left: 24px;
|
131
|
+
line-height: 32px;
|
132
|
+
font-size: 16px;
|
133
|
+
float: right;
|
134
|
+
|
135
|
+
a {
|
136
|
+
color: white;
|
137
|
+
|
138
|
+
&:hover {
|
139
|
+
text-decoration: none;
|
140
|
+
}
|
141
|
+
|
142
|
+
&:visited {
|
143
|
+
color: white;
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
*, *::before, *::after {
|
150
|
+
box-sizing: inherit;
|
151
|
+
}
|
152
|
+
|
153
|
+
div {
|
154
|
+
margin: 0;
|
155
|
+
padding: 0;
|
156
|
+
border: 0;
|
157
|
+
font-size: 100%;
|
158
|
+
font: inherit;
|
159
|
+
vertical-align: baseline;
|
160
|
+
}
|
161
|
+
|
162
|
+
#content {
|
163
|
+
margin: 0 auto;
|
164
|
+
// margin-bottom: 2em;
|
165
|
+
// margin-top: 3em;
|
166
|
+
background: white;
|
167
|
+
}
|
168
|
+
|
169
|
+
@mixin container() {
|
170
|
+
box-sizing: border-box;
|
171
|
+
max-width: calc(100% - 16px);
|
172
|
+
margin: 0 auto;
|
173
|
+
// padding: 0 8px;
|
174
|
+
width: 960px;
|
175
|
+
min-height: 1px;
|
176
|
+
padding-bottom: 2em;
|
177
|
+
}
|
178
|
+
|
179
|
+
.container {
|
180
|
+
@include container();
|
181
|
+
}
|
182
|
+
|
183
|
+
.container-fluid {
|
184
|
+
@include container();
|
185
|
+
|
186
|
+
@media screen and (min-width: 1024px) {
|
187
|
+
width: 100%;
|
188
|
+
padding: 0 32px;
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
.container-dialog{
|
193
|
+
box-sizing: border-box;
|
194
|
+
background: $grey-4;
|
195
|
+
min-height: calc(100% - 3.5em);
|
196
|
+
width: 100%;
|
197
|
+
padding-top: 3.5em;
|
198
|
+
padding-bottom: 3.5em;
|
199
|
+
|
200
|
+
@media screen and (max-width: 672px) {
|
201
|
+
padding-top: 0.5em;
|
202
|
+
}
|
203
|
+
|
204
|
+
.dialog{
|
205
|
+
padding: 32px;
|
206
|
+
width: calc(100% - 32px);
|
207
|
+
max-width: 640px;
|
208
|
+
margin: 0 auto;
|
209
|
+
background: white;
|
210
|
+
border-radius: 4px;
|
211
|
+
box-shadow: 0px 1px 3px 2px $grey-3;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
.row {
|
216
|
+
// margin: 0 -8px;
|
217
|
+
//clear: both;
|
218
|
+
box-sizing: border-box;
|
219
|
+
font-size: 0;
|
220
|
+
}
|
221
|
+
|
222
|
+
@mixin col($ratio) {
|
223
|
+
width: percentage($ratio);
|
224
|
+
position: relative;
|
225
|
+
min-height: 1px;
|
226
|
+
padding: 0 8px;
|
227
|
+
display: inline-block;
|
228
|
+
vertical-align: top;
|
229
|
+
font-size: $normal-font-size;
|
230
|
+
}
|
231
|
+
|
232
|
+
@for $i from 1 through 12 {
|
233
|
+
.col-#{$i} {
|
234
|
+
@include col($i / 12);
|
235
|
+
}
|
236
|
+
}
|
@@ -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
|
+
}
|