Skip to content

Commit bbd8e41

Browse files
committed
apply nested styles in report (#725)
1 parent b9d692d commit bbd8e41

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

supervised/base_automl.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2290,10 +2290,10 @@ def from_json(self, json_data):
22902290
color: white;
22912291
}}
22922292
2293-
body {{
2293+
.mljar-automl-report {{
22942294
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
22952295
background-color: rgba(236, 243, 249, 0.15);
2296-
}}
2296+
22972297
22982298
h1 {{
22992299
color: #004666;
@@ -2327,7 +2327,7 @@ def from_json(self, json_data):
23272327
cursor: pointer;
23282328
color: #0099CC;
23292329
}}
2330-
2330+
}}
23312331
23322332
"""
23332333

@@ -2459,7 +2459,9 @@ def _report(self, width=900, height=1200):
24592459
</style>
24602460
</head>
24612461
<body>
2462+
<div class="mljar-automl-report">
24622463
{body}
2464+
<div>
24632465
</body>
24642466
</html>
24652467
"""

0 commit comments

Comments
 (0)