Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions JournalApp/Pages/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@
</div>

@code {
static readonly string[] SystemFontFamily =
[
"system-ui",
"-apple-system",
"BlinkMacSystemFont",
"Segoe UI",
"sans-serif",
];

bool _hasInitiallyRendered;

MudTheme _theme = new()
Expand Down Expand Up @@ -64,6 +73,11 @@

Typography = new()
{
Default = new DefaultTypography()
{
FontFamily = SystemFontFamily,
},

Button = new ButtonTypography()
{
TextTransform = "none",
Expand Down
2 changes: 1 addition & 1 deletion JournalApp/wwwroot/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ body {
}

#loading-text {
font-family: "Roboto", system-ui, sans-serif;
font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
font-size: 6vw;
}

Expand Down
1 change: 0 additions & 1 deletion JournalApp/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, viewport-fit=cover" />
<title>Good Diary</title>
<base href="/" />
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap" rel="stylesheet" />
<link href="_content/MudBlazor/MudBlazor.min.css" rel="stylesheet" />
<link href="app.css" rel="stylesheet" />
<link href="JournalApp.styles.css" rel="stylesheet" />
Expand Down
Loading