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,138 @@
|
|
1
|
+
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript */
|
2
|
+
/**
|
3
|
+
* prism.js default theme for JavaScript, CSS and HTML
|
4
|
+
* Based on dabblet (http://dabblet.com)
|
5
|
+
* @author Lea Verou
|
6
|
+
*/
|
7
|
+
|
8
|
+
code[class*="language-"],
|
9
|
+
pre[class*="language-"] {
|
10
|
+
color: black;
|
11
|
+
background: none;
|
12
|
+
text-shadow: 0 1px white;
|
13
|
+
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
14
|
+
text-align: left;
|
15
|
+
white-space: pre;
|
16
|
+
word-spacing: normal;
|
17
|
+
word-break: normal;
|
18
|
+
word-wrap: normal;
|
19
|
+
line-height: 1.5;
|
20
|
+
|
21
|
+
-moz-tab-size: 4;
|
22
|
+
-o-tab-size: 4;
|
23
|
+
tab-size: 4;
|
24
|
+
|
25
|
+
-webkit-hyphens: none;
|
26
|
+
-moz-hyphens: none;
|
27
|
+
-ms-hyphens: none;
|
28
|
+
hyphens: none;
|
29
|
+
}
|
30
|
+
|
31
|
+
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
|
32
|
+
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
|
33
|
+
text-shadow: none;
|
34
|
+
background: #b3d4fc;
|
35
|
+
}
|
36
|
+
|
37
|
+
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
38
|
+
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
39
|
+
text-shadow: none;
|
40
|
+
background: #b3d4fc;
|
41
|
+
}
|
42
|
+
|
43
|
+
@media print {
|
44
|
+
code[class*="language-"],
|
45
|
+
pre[class*="language-"] {
|
46
|
+
text-shadow: none;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
/* Code blocks */
|
51
|
+
pre[class*="language-"] {
|
52
|
+
padding: 1em;
|
53
|
+
margin: .5em 0;
|
54
|
+
overflow: auto;
|
55
|
+
}
|
56
|
+
|
57
|
+
:not(pre) > code[class*="language-"],
|
58
|
+
pre[class*="language-"] {
|
59
|
+
background: #f5f2f0;
|
60
|
+
}
|
61
|
+
|
62
|
+
/* Inline code */
|
63
|
+
:not(pre) > code[class*="language-"] {
|
64
|
+
padding: .1em;
|
65
|
+
border-radius: .3em;
|
66
|
+
white-space: normal;
|
67
|
+
}
|
68
|
+
|
69
|
+
.token.comment,
|
70
|
+
.token.prolog,
|
71
|
+
.token.doctype,
|
72
|
+
.token.cdata {
|
73
|
+
color: slategray;
|
74
|
+
}
|
75
|
+
|
76
|
+
.token.punctuation {
|
77
|
+
color: #999;
|
78
|
+
}
|
79
|
+
|
80
|
+
.namespace {
|
81
|
+
opacity: .7;
|
82
|
+
}
|
83
|
+
|
84
|
+
.token.property,
|
85
|
+
.token.tag,
|
86
|
+
.token.boolean,
|
87
|
+
.token.number,
|
88
|
+
.token.constant,
|
89
|
+
.token.symbol,
|
90
|
+
.token.deleted {
|
91
|
+
color: #905;
|
92
|
+
}
|
93
|
+
|
94
|
+
.token.selector,
|
95
|
+
.token.attr-name,
|
96
|
+
.token.string,
|
97
|
+
.token.char,
|
98
|
+
.token.builtin,
|
99
|
+
.token.inserted {
|
100
|
+
color: #690;
|
101
|
+
}
|
102
|
+
|
103
|
+
.token.operator,
|
104
|
+
.token.entity,
|
105
|
+
.token.url,
|
106
|
+
.language-css .token.string,
|
107
|
+
.style .token.string {
|
108
|
+
color: #a67f59;
|
109
|
+
background: hsla(0, 0%, 100%, .5);
|
110
|
+
}
|
111
|
+
|
112
|
+
.token.atrule,
|
113
|
+
.token.attr-value,
|
114
|
+
.token.keyword {
|
115
|
+
color: #07a;
|
116
|
+
}
|
117
|
+
|
118
|
+
.token.function {
|
119
|
+
color: #DD4A68;
|
120
|
+
}
|
121
|
+
|
122
|
+
.token.regex,
|
123
|
+
.token.important,
|
124
|
+
.token.variable {
|
125
|
+
color: #e90;
|
126
|
+
}
|
127
|
+
|
128
|
+
.token.important,
|
129
|
+
.token.bold {
|
130
|
+
font-weight: bold;
|
131
|
+
}
|
132
|
+
.token.italic {
|
133
|
+
font-style: italic;
|
134
|
+
}
|
135
|
+
|
136
|
+
.token.entity {
|
137
|
+
cursor: help;
|
138
|
+
}
|
@@ -0,0 +1,239 @@
|
|
1
|
+
@import "prism";
|
2
|
+
@import "prism-line-numbers";
|
3
|
+
|
4
|
+
// EXAMPLES
|
5
|
+
p.grid-example {
|
6
|
+
background-color: $secondary;
|
7
|
+
min-height: 30px;
|
8
|
+
border-radius: 3px;
|
9
|
+
}
|
10
|
+
|
11
|
+
|
12
|
+
.example-demo{
|
13
|
+
position: relative;
|
14
|
+
border: 2px solid $grey-2;
|
15
|
+
padding: 80px 46px 46px 46px;
|
16
|
+
margin-bottom: 8px;
|
17
|
+
&::before{
|
18
|
+
content: 'Example';
|
19
|
+
position: absolute;
|
20
|
+
left: -1;
|
21
|
+
top: -1;
|
22
|
+
background-color: $primary;
|
23
|
+
color: white;
|
24
|
+
padding: 8px;
|
25
|
+
margin-bottom: 16px;
|
26
|
+
}
|
27
|
+
|
28
|
+
.side-bar, #global-header{
|
29
|
+
position: static;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
pre.language-markup{
|
34
|
+
border: 2px solid $grey-2;
|
35
|
+
// background-color: white !important;
|
36
|
+
}
|
37
|
+
|
38
|
+
.swatch-wrapper{
|
39
|
+
margin: 24px 16px;
|
40
|
+
display: inline-block;
|
41
|
+
width: 20%;
|
42
|
+
text-align: center;
|
43
|
+
span{
|
44
|
+
display: block;
|
45
|
+
&.variable{
|
46
|
+
font-style: italic;
|
47
|
+
}
|
48
|
+
&.hex{
|
49
|
+
|
50
|
+
}
|
51
|
+
}
|
52
|
+
.swatch{
|
53
|
+
margin: 8px;
|
54
|
+
margin-left: 33%;
|
55
|
+
width: 60px;
|
56
|
+
height: 60px;
|
57
|
+
border-radius: 100%;
|
58
|
+
|
59
|
+
&.swatch-primary{
|
60
|
+
background-color: $primary;
|
61
|
+
}
|
62
|
+
|
63
|
+
&.swatch-primary-dark{
|
64
|
+
background-color: $primary-dark;
|
65
|
+
}
|
66
|
+
&.swatch-primary-darker{
|
67
|
+
background-color: $primary-darker;
|
68
|
+
}
|
69
|
+
&.swatch-primary-darkest{
|
70
|
+
background-color: $primary-darkest;
|
71
|
+
}
|
72
|
+
&.swatch-primary-light{
|
73
|
+
background-color: $primary-light;
|
74
|
+
}
|
75
|
+
&.swatch-primary-lighter{
|
76
|
+
background-color: $primary-lighter;
|
77
|
+
}
|
78
|
+
&.swatch-primary-lightest{
|
79
|
+
background-color: $primary-lightest;
|
80
|
+
}
|
81
|
+
|
82
|
+
|
83
|
+
&.swatch-secondary{
|
84
|
+
background-color: $secondary;
|
85
|
+
}
|
86
|
+
&.swatch-secondary-dark{
|
87
|
+
background-color: $secondary-dark;
|
88
|
+
}
|
89
|
+
&.swatch-secondary-darker{
|
90
|
+
background-color: $secondary-darker;
|
91
|
+
}
|
92
|
+
&.swatch-secondary-darkest{
|
93
|
+
background-color: $secondary-darkest;
|
94
|
+
}
|
95
|
+
&.swatch-secondary-light{
|
96
|
+
background-color: $secondary-light;
|
97
|
+
}
|
98
|
+
&.swatch-secondary-lighter{
|
99
|
+
background-color: $secondary-lighter;
|
100
|
+
}
|
101
|
+
&.swatch-secondary-lightest{
|
102
|
+
background-color: $secondary-lightest;
|
103
|
+
}
|
104
|
+
&.swatch-success{
|
105
|
+
background-color: $success;
|
106
|
+
}
|
107
|
+
&.swatch-success-dark{
|
108
|
+
background-color: $success-dark;
|
109
|
+
}
|
110
|
+
&.swatch-success-darker{
|
111
|
+
background-color: $success-darker;
|
112
|
+
}
|
113
|
+
&.swatch-success-darkest{
|
114
|
+
background-color: $success-darkest;
|
115
|
+
}
|
116
|
+
&.swatch-success-light{
|
117
|
+
background-color: $success-light;
|
118
|
+
}
|
119
|
+
&.swatch-success-lighter{
|
120
|
+
background-color: $success-lighter;
|
121
|
+
}
|
122
|
+
&.swatch-success-lightest{
|
123
|
+
background-color: $success-lightest;
|
124
|
+
}
|
125
|
+
|
126
|
+
&.swatch-error{
|
127
|
+
background-color: $error;
|
128
|
+
}
|
129
|
+
&.swatch-error-dark{
|
130
|
+
background-color: $error-dark;
|
131
|
+
}
|
132
|
+
&.swatch-error-darker{
|
133
|
+
background-color: $error-darker;
|
134
|
+
}
|
135
|
+
&.swatch-error-darkest{
|
136
|
+
background-color: $error-darkest;
|
137
|
+
}
|
138
|
+
&.swatch-error-light{
|
139
|
+
background-color: $error-light;
|
140
|
+
}
|
141
|
+
&.swatch-error-lighter{
|
142
|
+
background-color: $error-lighter;
|
143
|
+
}
|
144
|
+
&.swatch-error-lightest{
|
145
|
+
background-color: $error-lightest;
|
146
|
+
}
|
147
|
+
|
148
|
+
&.swatch-warning{
|
149
|
+
background-color: $warning;
|
150
|
+
}
|
151
|
+
&.swatch-warning-dark{
|
152
|
+
background-color: $warning-dark;
|
153
|
+
}
|
154
|
+
&.swatch-warning-darker{
|
155
|
+
background-color: $warning-darker;
|
156
|
+
}
|
157
|
+
&.swatch-warning-darkest{
|
158
|
+
background-color: $warning-darkest;
|
159
|
+
}
|
160
|
+
&.swatch-warning-light{
|
161
|
+
background-color: $warning-light;
|
162
|
+
}
|
163
|
+
&.swatch-warning-lighter{
|
164
|
+
background-color: $warning-lighter;
|
165
|
+
}
|
166
|
+
&.swatch-warning-lightest{
|
167
|
+
background-color: $warning-lightest;
|
168
|
+
}
|
169
|
+
|
170
|
+
|
171
|
+
&.swatch-text-primary{
|
172
|
+
background-color: $text-primary-colour;
|
173
|
+
}
|
174
|
+
|
175
|
+
&.swatch-text-secondary{
|
176
|
+
background-color: $text-secondary-colour;
|
177
|
+
}
|
178
|
+
&.swatch-link{
|
179
|
+
background-color: $link-colour;
|
180
|
+
}
|
181
|
+
&.swatch-link-hover{
|
182
|
+
background-color: $link-hover-colour;
|
183
|
+
}
|
184
|
+
&.swatch-focus{
|
185
|
+
background-color: $focus-colour;
|
186
|
+
}
|
187
|
+
&.swatch-visited{
|
188
|
+
background-color: $visited-colour;
|
189
|
+
}
|
190
|
+
&.swatch-black{
|
191
|
+
background-color: $black;
|
192
|
+
}
|
193
|
+
&.swatch-grey-1{
|
194
|
+
background-color: $grey-1;
|
195
|
+
}
|
196
|
+
&.swatch-grey-2{
|
197
|
+
background-color: $grey-2;
|
198
|
+
}
|
199
|
+
&.swatch-grey-3{
|
200
|
+
background-color: $grey-3;
|
201
|
+
}
|
202
|
+
&.swatch-grey-4{
|
203
|
+
background-color: $grey-4;
|
204
|
+
}
|
205
|
+
&.swatch-alpha{
|
206
|
+
background-color: $alpha;
|
207
|
+
}
|
208
|
+
&.swatch-beta{
|
209
|
+
background-color: $beta;
|
210
|
+
}
|
211
|
+
&.swatch-discovery{
|
212
|
+
background-color: $discovery;
|
213
|
+
}
|
214
|
+
&.swatch-live{
|
215
|
+
background-color: $live;
|
216
|
+
}
|
217
|
+
&.swatch-gov-uk-blue{
|
218
|
+
background-color: $gov-uk-blue;
|
219
|
+
}
|
220
|
+
&.swatch-mellow-red{
|
221
|
+
background-color: $mellow-red;
|
222
|
+
}
|
223
|
+
&.swatch-mauve{
|
224
|
+
background-color: $mauve;
|
225
|
+
}
|
226
|
+
&.swatch-baby-pink{
|
227
|
+
background-color: $baby-pink;
|
228
|
+
}
|
229
|
+
&.swatch-green{
|
230
|
+
background-color: $green;
|
231
|
+
}
|
232
|
+
&.swatch-light-blue{
|
233
|
+
background-color: $light-blue;
|
234
|
+
}
|
235
|
+
&.swatch-brown{
|
236
|
+
background-color: $brown;
|
237
|
+
}
|
238
|
+
}
|
239
|
+
}
|
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: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Liam Betsworth
|
@@ -67,6 +67,29 @@ files:
|
|
67
67
|
- app/assets/fonts/Inter-UI-Medium.woff
|
68
68
|
- app/assets/fonts/Inter-UI-Regular.woff
|
69
69
|
- app/assets/fonts/dvla-icons.woff
|
70
|
+
- app/assets/images/coat-of-arms-logo.svg
|
71
|
+
- app/assets/images/separator.png
|
72
|
+
- app/assets/images/triangle-caret-down.svg
|
73
|
+
- app/assets/javascripts/styleguide/prism-line-numbers.js
|
74
|
+
- app/assets/javascripts/styleguide/prism.js
|
75
|
+
- app/assets/stylesheets/_dvla-internal-elements.scss
|
76
|
+
- app/assets/stylesheets/constants/_colours.scss
|
77
|
+
- app/assets/stylesheets/constants/_fonts.scss
|
78
|
+
- app/assets/stylesheets/constants/_measurements.scss
|
79
|
+
- app/assets/stylesheets/dvla-internal-elements-styles.min.css
|
80
|
+
- app/assets/stylesheets/dvla-internal-elements-styles.scss
|
81
|
+
- app/assets/stylesheets/elements/_buttons.scss
|
82
|
+
- app/assets/stylesheets/elements/_forms.scss
|
83
|
+
- app/assets/stylesheets/elements/_layout.scss
|
84
|
+
- app/assets/stylesheets/elements/_lists.scss
|
85
|
+
- app/assets/stylesheets/elements/_navigation.scss
|
86
|
+
- app/assets/stylesheets/elements/_tables.scss
|
87
|
+
- app/assets/stylesheets/elements/_tabs.scss
|
88
|
+
- app/assets/stylesheets/elements/_typography.scss
|
89
|
+
- app/assets/stylesheets/elements/_validation.scss
|
90
|
+
- app/assets/stylesheets/styleguide/_prism-line-numbers.scss
|
91
|
+
- app/assets/stylesheets/styleguide/_prism.scss
|
92
|
+
- app/assets/stylesheets/styleguide/_styleguide.scss
|
70
93
|
- app/views/layouts/erb/layout-dialog.html.erb
|
71
94
|
- app/views/layouts/erb/layout-fixed.html.erb
|
72
95
|
- app/views/layouts/erb/layout-fluid-tabs-left.html.erb
|