Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
0a8d079
1
Parent(s):
b8d64ca
feat: new icon image for title
Browse filesSigned-off-by: Graham White <[email protected]>
- src/app.css +8 -1
- src/app.py +1 -1
src/app.css
CHANGED
|
@@ -11,7 +11,14 @@ footer {
|
|
| 11 |
align-items: center;
|
| 12 |
}
|
| 13 |
.gr_title img {
|
| 14 |
-
|
|
|
|
| 15 |
margin-right: 1rem;
|
| 16 |
margin-bottom: -10px;
|
|
|
|
| 17 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
align-items: center;
|
| 12 |
}
|
| 13 |
.gr_title img {
|
| 14 |
+
height: 40px;
|
| 15 |
+
width: 40px;
|
| 16 |
margin-right: 1rem;
|
| 17 |
margin-bottom: -10px;
|
| 18 |
+
filter: invert(0%) sepia(0%) saturate(7459%) hue-rotate(154deg) brightness(96%) contrast(100%);
|
| 19 |
}
|
| 20 |
+
@media (prefers-color-scheme: dark) {
|
| 21 |
+
.gr_title img {
|
| 22 |
+
filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(162deg) brightness(101%) contrast(104%);
|
| 23 |
+
}
|
| 24 |
+
}
|
src/app.py
CHANGED
|
@@ -94,7 +94,7 @@ with gr.Blocks(
|
|
| 94 |
fill_height=True, css_paths=css_file_path, head_paths=head_file_path, theme=carbon_theme, title=TITLE
|
| 95 |
) as demo:
|
| 96 |
gr.HTML(
|
| 97 |
-
f"<img src='https://www.ibm.com/granite/docs/images/granite-
|
| 98 |
elem_classes=["gr_title"],
|
| 99 |
)
|
| 100 |
gr.HTML(DESCRIPTION)
|
|
|
|
| 94 |
fill_height=True, css_paths=css_file_path, head_paths=head_file_path, theme=carbon_theme, title=TITLE
|
| 95 |
) as demo:
|
| 96 |
gr.HTML(
|
| 97 |
+
f"<img src='https://www.ibm.com/granite/docs/images/granite-pictogram.svg'/><h1>{TITLE}</h1>",
|
| 98 |
elem_classes=["gr_title"],
|
| 99 |
)
|
| 100 |
gr.HTML(DESCRIPTION)
|