File tree Expand file tree Collapse file tree 2 files changed +13
-4
lines changed
lib/renderer/fretboard/css Expand file tree Collapse file tree 2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -502,6 +502,7 @@ export function finishView (view) {
502
502
try {
503
503
const $ele = $ ( value ) . parent ( ) . parent ( )
504
504
$ele . html ( renderFretBoard ( $value . text ( ) , params ) )
505
+ $ele . addClass ( 'fretboard' )
505
506
} catch ( err ) {
506
507
$value . unwrap ( )
507
508
$value . parent ( ) . append ( `<div class="alert alert-warning">${ escapeHTML ( err ) } </div>` )
Original file line number Diff line number Diff line change 1
1
/* -- GENERAL TYPOGRAPHY -- */
2
2
.fretTitle {
3
3
color : # 555 ;
4
+ text-align : center;
4
5
font-family : "Helvetica Neue" , sans-serif;
5
- background : # eee ;
6
6
line-height : 1.4 ;
7
7
font-size : 1.6em ;
8
8
margin : 10px 0 10px 0 ;
@@ -20,14 +20,19 @@ section {
20
20
}
21
21
22
22
/* Fretboard Container/Wrapper */
23
+
24
+ .fretContainer , .fretContainer_h {
25
+ outline : solid 1px # eeee ;
26
+ margin : 0 auto;
27
+ padding : 15px 0 ;
28
+ }
29
+
23
30
.fretContainer {
24
31
width : 320px ;
25
- margin : 0 auto;
26
32
}
27
33
28
34
.fretContainer_h {
29
35
max-width : 400px ;
30
- margin : 0 auto;
31
36
}
32
37
33
38
@media all and (max-width : 400px ) {
@@ -59,7 +64,6 @@ section {
59
64
position : absolute;
60
65
top : 0 ;
61
66
left : 0 ;
62
- z-index : 10 ;
63
67
}
64
68
65
69
.svg_wrapper .v4 {
@@ -181,3 +185,7 @@ section {
181
185
}
182
186
183
187
/*# sourceMappingURL=i.css.map */
188
+
189
+ .markdown-body pre .fretboard {
190
+ background-color : transparent;
191
+ }
You can’t perform that action at this time.
0 commit comments