Commit d8ad8a5 1 parent a053f4c commit d8ad8a5 Copy full SHA for d8ad8a5
File tree 1 file changed +19
-21
lines changed
1 file changed +19
-21
lines changed Original file line number Diff line number Diff line change 4
4
padding : 20px 20px 20px 64px ;
5
5
border-radius : 10px ;
6
6
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
-
21
7
.yfm-note-title {
22
8
font-weight : 700 ;
23
- margin : 0 0 10px ;
24
9
}
25
10
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
+ }
29
26
30
- .yfm-note-content > p :last-child {
31
- margin-bottom : 0 ;
27
+ & :last-child {
28
+ margin-bottom : 0 ;
29
+ }
32
30
}
33
31
34
32
// @todo replace with variables
41
39
);
42
40
43
41
@each $type , $color in $colors {
44
- & .#{$type } > p :first-child ::before {
42
+ & .#{$type } > :first-child ::before {
45
43
$r : red ($color );
46
44
$g : green ($color );
47
45
$b : blue ($color );
You can’t perform that action at this time.
0 commit comments