Skip to content

Commit

Permalink
Add local overwrites to test
Browse files Browse the repository at this point in the history
  • Loading branch information
huong-li-nguyen committed Jul 10, 2024
1 parent 0d3f64c commit 3d43142
Show file tree
Hide file tree
Showing 7 changed files with 12,979 additions and 5 deletions.
6 changes: 1 addition & 5 deletions vizro-core/examples/_dev/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,12 @@
# Add single CSS file figures.css or
vizro_bootstrap = "https://raw.githubusercontent.com/mckinsey/vizro/main/vizro-core/src/vizro/static/css/vizro-bootstrap.min.css"
vizro_css = "https://raw.githubusercontent.com/mckinsey/vizro/main/vizro-core/src/vizro/static/css/figures.css"
vizro_tokens = "https://raw.githubusercontent.com/mckinsey/vizro/main/vizro-core/src/vizro/static/css/token_names.css"
vizro_variables = "https://raw.githubusercontent.com/mckinsey/vizro/main/vizro-core/src/vizro/static/css/variables.css"

# Add entire assets folder from Vizro
app = Dash(
external_stylesheets=[
# dbc.themes.BOOTSTRAP,
"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined",
vizro_tokens,
vizro_variables,
vizro_bootstrap,
vizro_css,
],
Expand All @@ -43,7 +39,7 @@
title="KPI Card II",
),
],
className="vizro_dark"
className="vizro_light"
),
]

Expand Down
60 changes: 60 additions & 0 deletions vizro-core/examples/_dev/assets/css/custom.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,63 @@
#page-header {
padding-left: 8px;
}

.card-kpi {
border-left: 4px solid var(--text-secondary);
}

.card-kpi .card-header {
display: flex;
flex-direction: row;
gap: 8px;

}

.card-kpi .card-header .material-symbols-outlined {
line-height: 30px;
}

.card-kpi .card-body {
align-items: center;
color: var(--text-secondary);
display: flex;
flex-grow: 1;
font-size: 3.6vh;
font-weight: 600;
}

.card-kpi .card-footer {
color: var(--text-secondary);
display: flex;
font-weight: 600;
gap: 4px;
}

.card-kpi .card-footer .material-symbols-outlined {
font-size: 20px;
line-height: 20px;
}

.color-pos.card-footer {
color: #1a85ff;
}

.color-neg.card-footer {
color: #d41159;
}

.card-kpi:has(.color-pos) {
border-left: 4px solid #1a85ff;
}

.card-kpi:has(.color-neg) {
border-left: 4px solid #d41159;
}


.card-kpi .card-header, .card-kpi .card-body, .card-kpi .card-footer {
background: inherit;
border: none;
margin: 0;
padding: 0;
}
Binary file not shown.
Binary file not shown.
18 changes: 18 additions & 0 deletions vizro-core/examples/_dev/assets/css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
@font-face {
font-family: Inter;
src: url("./fonts/inter-variable-font.ttf") format("truetype");
}

@font-face {
font-family: RobotoMono;
src: url("./fonts/roboto-mono-variable-font.ttf") format("truetype");
}

* {
border: 0;
box-sizing: border-box;
font-family: Inter, sans-serif, Arial, serif;
letter-spacing: 0;
margin: 0;
text-decoration: none;
}
Loading

0 comments on commit 3d43142

Please sign in to comment.