-
Notifications
You must be signed in to change notification settings - Fork 13
/
_notification-banners.scss
125 lines (101 loc) · 2.01 KB
/
_notification-banners.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
@import "_colours.scss";
@import "_digital-marketplace-colours.scss";
@import "_grid_layout.scss";
@import "_typography.scss";
@import "_measurements.scss";
@import "shared_scss/_lists.scss";
// The following placeholders must be present in your main stylesheet:
// - shared_placeholders/_temporary-messages.scss
%banner {
@include core-24;
padding: 20px;
margin-top: 15px;
border-width: 5px;
border-style: solid;
.banner-content {
@include core-19;
color: $text-colour;
margin-top: 15px;
margin-bottom: 15px;
ul {
@include list-bullet
}
}
}
%banner-destructive {
@extend %banner;
color: $red;
}
.banner-destructive-without-action {
@extend %banner-destructive;
}
.banner-destructive-with-action {
@extend %banner-destructive;
}
%banner-warning {
@extend %banner;
color: $accessible-orange;
}
.banner-warning-with-action {
@extend %banner-warning;
}
.banner-warning-without-action {
@extend %banner-warning;
}
%banner-success {
@extend %banner;
color: $button-colour;
}
.banner-success-with-action {
@extend %banner-success;
}
.banner-success-without-action {
@extend %banner-success;
}
.banner-action {
margin-top: 10px;
margin-bottom: 5px;
}
.banner-message {
@include core-24;
font-weight: bold;
margin: 0;
}
%banner-information {
@extend %banner;
color: $govuk-blue;
}
.banner-information-with-action {
@extend %banner-information;
}
.banner-information-without-action {
@extend %banner-information;
}
.banner-temporary-message-without-action {
@extend %banner;
@extend %temporary-message;
border: none;
margin-bottom: $gutter;
@include media(tablet) {
margin-bottom: 10px;
}
h2 {
@include bold-36;
margin-bottom: $gutter-half;
@include media(tablet) {
margin-bottom: $gutter-two-thirds;
}
}
.banner-message,
.banner-content {
@include core-19;
@include grid-column( 2/3 );
padding: 0;
@include media(tablet) {
float: none;
}
}
.banner-content {
color: inherit;
}
}