-
Notifications
You must be signed in to change notification settings - Fork 361
Expand file tree
/
Copy path_index.scss
More file actions
65 lines (51 loc) · 1.68 KB
/
_index.scss
File metadata and controls
65 lines (51 loc) · 1.68 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
@import "../../base";
@include govuk-exports("govuk/component/warning-text") {
.govuk-warning-text {
@include govuk-font($size: 19);
@include govuk-responsive-margin(6, "bottom");
@include govuk-typography-weight-bold;
position: relative;
padding: govuk-spacing(2) 0;
}
.govuk-warning-text__icon {
box-sizing: border-box;
display: inline-block;
position: absolute;
left: 0;
min-width: 35px;
min-height: 35px;
margin-top: -7px;
@media #{govuk-from-breakpoint(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;
border-radius: 50%;
border-color: govuk-functional-colour(text);
color: govuk-functional-colour(body-background);
background: govuk-functional-colour(text);
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;
// Improve rendering in Windows High Contrast Mode (Edge), where a
// readability backplate behind the exclamation mark obscures the circle
forced-color-adjust: none;
@media screen and (forced-colors: active) {
border-color: windowText;
color: windowText;
background: transparent;
}
}
.govuk-warning-text__text {
display: block;
padding-left: 45px;
color: govuk-functional-colour(text);
// While `<strong>` is styled `bold` or `bolder` by user-agents
// this can be reset by the app's stylesheet
font-weight: inherit;
}
}