hof 20.3.10-beta-gtm → 20.4.0-beta-session-timeout
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.
- package/.nyc_output/9651d42a-59d8-48e6-949c-655d9fa6db21.json +1 -0
- package/.nyc_output/processinfo/9651d42a-59d8-48e6-949c-655d9fa6db21.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/frontend/template-partials/translations/src/en/buttons.json +1 -0
- package/frontend/template-partials/views/layout.html +1 -0
- package/frontend/template-partials/views/partials/session-timeout-warning.html +26 -0
- package/frontend/themes/gov-uk/client-js/dialog/index.js +358 -0
- package/frontend/themes/gov-uk/client-js/dialog/utils.js +114 -0
- package/frontend/themes/gov-uk/client-js/index.js +1 -0
- package/frontend/themes/gov-uk/styles/govuk.scss +1 -0
- package/frontend/themes/gov-uk/styles/session_timeout.scss +138 -0
- package/package.json +1 -1
- package/sandbox/public/js/bundle.js +965 -1130
- package/.nyc_output/58a3bdf1-3c46-407a-9415-b0d0de4ee3d1.json +0 -1
- package/.nyc_output/processinfo/58a3bdf1-3c46-407a-9415-b0d0de4ee3d1.json +0 -1
@@ -0,0 +1,138 @@
|
|
1
|
+
//autocomplete styling
|
2
|
+
.tt-menu {
|
3
|
+
background-color: #fff;
|
4
|
+
border: 1px solid #ccc;
|
5
|
+
width: 65%;
|
6
|
+
}
|
7
|
+
|
8
|
+
.tt-suggestion {
|
9
|
+
padding: 0.5em;
|
10
|
+
|
11
|
+
&:hover,
|
12
|
+
&.tt-cursor {
|
13
|
+
color: #fff;
|
14
|
+
background-color: #0097cf;
|
15
|
+
}
|
16
|
+
|
17
|
+
&:hover {
|
18
|
+
cursor: pointer;
|
19
|
+
}
|
20
|
+
}
|
21
|
+
|
22
|
+
.twitter-typeahead {
|
23
|
+
width: 100%;
|
24
|
+
}
|
25
|
+
|
26
|
+
.hidden {
|
27
|
+
display: none;
|
28
|
+
}
|
29
|
+
|
30
|
+
[role="dialog"] {
|
31
|
+
box-sizing: border-box;
|
32
|
+
padding: 15px;
|
33
|
+
border: 1px solid #000;
|
34
|
+
background-color: #fff;
|
35
|
+
min-height: 100vh;
|
36
|
+
}
|
37
|
+
|
38
|
+
@media screen and (min-width: 640px) {
|
39
|
+
[role="dialog"] {
|
40
|
+
position: absolute;
|
41
|
+
top: 25vh;
|
42
|
+
left: 50vw; /* move to the middle of the screen (assumes relative parent is the body/viewport) */
|
43
|
+
transform: translateX(
|
44
|
+
-50%
|
45
|
+
); /* move backwards 50% of this element's width */
|
46
|
+
min-width: calc(640px - (15px * 2)); /* == breakpoint - left+right margin */
|
47
|
+
min-height: auto;
|
48
|
+
box-shadow: 0 19px 38px rgb(0 0 0 / 12%), 0 15px 12px rgb(0 0 0 / 22%);
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
.dialog_form {
|
53
|
+
margin: 15px;
|
54
|
+
}
|
55
|
+
|
56
|
+
.dialog_form .label_text {
|
57
|
+
box-sizing: border-box;
|
58
|
+
padding-right: 0.5em;
|
59
|
+
display: inline-block;
|
60
|
+
font-size: 16px;
|
61
|
+
font-weight: bold;
|
62
|
+
width: 30%;
|
63
|
+
text-align: right;
|
64
|
+
}
|
65
|
+
|
66
|
+
.dialog_form .label_info {
|
67
|
+
box-sizing: border-box;
|
68
|
+
padding-right: 0.5em;
|
69
|
+
font-size: 12px;
|
70
|
+
width: 30%;
|
71
|
+
text-align: right;
|
72
|
+
display: inline-block;
|
73
|
+
}
|
74
|
+
|
75
|
+
.dialog_form_item {
|
76
|
+
margin: 10px 0;
|
77
|
+
font-size: 0;
|
78
|
+
}
|
79
|
+
|
80
|
+
.dialog_form_item .wide_input {
|
81
|
+
box-sizing: border-box;
|
82
|
+
max-width: 70%;
|
83
|
+
width: 27em;
|
84
|
+
}
|
85
|
+
|
86
|
+
.dialog_form_actions {
|
87
|
+
text-align: right;
|
88
|
+
padding: 0 20px 20px;
|
89
|
+
}
|
90
|
+
|
91
|
+
.dialog_close_button {
|
92
|
+
float: right;
|
93
|
+
position: absolute;
|
94
|
+
top: 10px;
|
95
|
+
left: 92%;
|
96
|
+
height: 25px;
|
97
|
+
}
|
98
|
+
|
99
|
+
.dialog_close_button img {
|
100
|
+
border: 0;
|
101
|
+
}
|
102
|
+
|
103
|
+
.dialog_desc {
|
104
|
+
padding: 10px 20px;
|
105
|
+
}
|
106
|
+
|
107
|
+
/* native <dialog> element uses the ::backdrop pseudo-element */
|
108
|
+
|
109
|
+
/* dialog::backdrop, */
|
110
|
+
.dialog-backdrop {
|
111
|
+
display: none;
|
112
|
+
position: fixed;
|
113
|
+
overflow-y: auto;
|
114
|
+
top: 0;
|
115
|
+
right: 0;
|
116
|
+
bottom: 0;
|
117
|
+
left: 0;
|
118
|
+
z-index: 1;
|
119
|
+
}
|
120
|
+
|
121
|
+
@media screen and (min-width: 640px) {
|
122
|
+
.dialog-backdrop {
|
123
|
+
background: rgb(0 0 0 / 30%);
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
.dialog-backdrop.active {
|
128
|
+
display: block;
|
129
|
+
}
|
130
|
+
|
131
|
+
.no-scroll {
|
132
|
+
overflow-y: auto !important;
|
133
|
+
}
|
134
|
+
|
135
|
+
/* this is added to the body when a dialog is open */
|
136
|
+
.has-dialog {
|
137
|
+
overflow: hidden;
|
138
|
+
}
|