Skip to content

Commit d8ad8a5

Browse files
obenjiro3y3
authored andcommitted
fix(code): Fix Display Issues with Untitled Notes
1 parent a053f4c commit d8ad8a5

File tree

1 file changed

+19
-21
lines changed

1 file changed

+19
-21
lines changed

src/scss/_note.scss

+19-21
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,29 @@
44
padding: 20px 20px 20px 64px;
55
border-radius: 10px;
66

7-
// First paragraph should show the icon regardless of title presence
8-
> p:first-child {
9-
&::before {
10-
box-sizing: content-box;
11-
display: block;
12-
width: 24px;
13-
height: 24px;
14-
margin-top: -2px;
15-
margin-left: -44px;
16-
padding-right: 20px;
17-
float: left;
18-
}
19-
}
20-
217
.yfm-note-title {
228
font-weight: 700;
23-
margin: 0 0 10px;
249
}
2510

26-
.yfm-note-content > p:first-child {
27-
margin-top: 0;
28-
}
11+
& > * {
12+
margin: 0 0 10px;
13+
14+
&:first-child {
15+
&::before {
16+
box-sizing: content-box;
17+
display: block;
18+
width: 24px;
19+
height: 24px;
20+
margin-top: -2px;
21+
margin-left: -44px;
22+
padding-right: 20px;
23+
float: left;
24+
}
25+
}
2926

30-
.yfm-note-content > p:last-child {
31-
margin-bottom: 0;
27+
&:last-child {
28+
margin-bottom: 0;
29+
}
3230
}
3331

3432
// @todo replace with variables
@@ -41,7 +39,7 @@
4139
);
4240

4341
@each $type, $color in $colors {
44-
&.#{$type} > p:first-child::before {
42+
&.#{$type} > :first-child::before {
4543
$r: red($color);
4644
$g: green($color);
4745
$b: blue($color);

0 commit comments

Comments
 (0)