-
Notifications
You must be signed in to change notification settings - Fork 334
/
Copy path_index.scss
53 lines (40 loc) · 1.21 KB
/
_index.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
@include govuk-exports("govuk/component/warning-text") {
.govuk-warning-text {
position: relative;
@include govuk-responsive-margin(6, "bottom");
padding: govuk-spacing(2) 0;
}
.govuk-warning-text__assistive {
@include govuk-visually-hidden;
}
.govuk-warning-text__icon {
@include govuk-font($size: false, $weight: bold);
display: inline-block;
position: absolute;
left: 0;
min-width: 29px;
min-height: 29px;
margin-top: -7px;
@include govuk-media-query($from: tablet) {
margin-top: -5px;
}
// When a user customises their colours the background colour will often be removed.
// Adding a border to the component keeps it's shape as a circle.
border: 3px solid govuk-colour("black");
border-radius: 50%;
color: govuk-colour("white");
background: govuk-colour("black");
font-size: 30px;
line-height: 29px;
text-align: center;
// Prevent the exclamation mark from being included when the warning text
// is copied, for example.
user-select: none;
}
.govuk-warning-text__text {
@include govuk-font($size: 19, $weight: bold);
@include govuk-text-colour;
display: block;
padding-left: 45px;
}
}