/
flash.scss
80 lines (69 loc) · 1.23 KB
/
flash.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
// Default flash
// stylelint-disable selector-max-type
.flash {
position: relative;
padding: $spacer-3;
color: $blue-800;
background-color: $blue-100;
border: 1px solid $border-black-fade;
border-radius: 3px;
p:last-child {
margin-bottom: 0;
}
}
// Contain the flash messages
.flash-messages {
margin-bottom: $spacer-4;
}
// Close button
.flash-close {
float: right;
padding: $spacer-3;
margin: -$spacer-3;
color: inherit;
text-align: center;
cursor: pointer;
// Undo `<button>` styles
background: none;
border: 0;
appearance: none;
opacity: 0.6;
&:hover {
opacity: 1;
}
}
// Action button
.flash-action {
float: right;
margin-top: -3px;
margin-left: $spacer-4;
}
//
// Variations
//
.flash-warn {
color: $yellow-900;
background-color: $yellow-100;
border-color: $black-fade-15;
}
.flash-error {
color: $red-900;
background-color: $red-100;
border-color: $black-fade-15;
}
.flash-success {
color: $green-800;
background-color: $green-100;
border-color: $black-fade-15;
}
.flash-full {
margin-top: -1px;
border-width: 1px 0;
border-radius: 0;
}
.warning {
padding: 0.5em;
margin-bottom: 0.8em;
font-weight: $font-weight-bold;
background-color: $yellow-100;
}