Skip to content

Commit 1e23626

Browse files
authored
Merge pull request #280 from srobo/improve-styling-of-info-boxes
Override paragraph styling inside message boxes
2 parents a9a24b3 + 304c303 commit 1e23626

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

_sass/messages.scss

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,27 @@ $error: #BF433A;
1212
background: transparentize($info, 0.8);
1313
border-color: $info;
1414
color: $info;
15+
16+
p {
17+
// Prevent our custom styles being overwritten if a div
18+
// has markdownenabled="1"
19+
color: $info;
20+
margin: 0;
21+
font-size: 1rem;
22+
}
1523
}
1624

1725
.warning {
1826
@extend %message;
1927
background: transparentize($error, 0.8);
2028
border-color: $error;
2129
color: $error;
30+
31+
p {
32+
// Prevent our custom styles being overwritten if a div
33+
// has markdownenabled="1"
34+
color: $error;
35+
margin: 0;
36+
font-size: 1rem;
37+
}
2238
}

0 commit comments

Comments
 (0)