Skip to content

Commit

Permalink
I wish I knew what I was doing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Simyon264 committed Feb 18, 2024
1 parent 2ffc95f commit 51193bf
Show file tree
Hide file tree
Showing 5 changed files with 86 additions and 80 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ bin/
obj/
/packages/
riderModule.iml
/_ReSharper.Caches/
/_ReSharper.Caches/
*/appsettings.json
79 changes: 0 additions & 79 deletions SU.LorePage/Layout/Screen.razor.css

This file was deleted.

2 changes: 2 additions & 0 deletions SU.LorePage/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri(builder.HostEnvironment.BaseAddress) });

builder.Configuration.AddJsonFile("appsettings.json");

var app = builder.Build();

await app.RunAsync();
2 changes: 2 additions & 0 deletions SU.LorePage/SU.LorePage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<GenerateRuntimeConfigurationFiles>true</GenerateRuntimeConfigurationFiles>
<OutputType>Exe</OutputType>
</PropertyGroup>

<ItemGroup>
Expand Down
80 changes: 80 additions & 0 deletions SU.LorePage/wwwroot/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,84 @@ a::before {
width: 0.5ch;
background: var(--fg-block);
box-shadow: var(--glow-block);
}

.screen {
display: flex;
box-sizing: border-box;
flex-direction: column;
position: relative;
width: 100%;
height: 100%;
padding: 0.5rem 1ch;
max-width: 82ch;
max-height: 37.45rem;
overflow: hidden;
background-color: var(--bg);
color: var(--fg);
box-shadow: var(--glow);
transition-property: border-radius, filter, transform, opcaity;
transition-duration: 130ms, 130ms, 130ms, 75ms;
transition-timing-function: ease-out;
}

.header {
display: flex;
flex: none;
gap: 1ch;
}

.logo {
flex: 0 0 auto;
}

.nt-logo {
font-weight: 600;
text-align: center;
width: 3ch;
}

.nt-logo::before,
.nt-logo::after {
content: "";
display: inline-block;
width: 1ch;
height: 0.75rem;
vertical-align: 0;
background-color: currentColor;
}

.nt-logo::before {
clip-path: polygon(10% 0, 90% 0, 90% 60%);
}

.nt-logo::after {
clip-path: polygon(10% 100%, 90% 100%, 10% 40%);
}

.content {
overflow: auto;
scrollbar-gutter: stable;
scrollbar-width: thin;
scrollbar-color: var(--fg-sys) var(--bg);
white-space-collapse: preserve;
}

.header-title::before {
content: "- ";
}

.backlink::before {
content: "← ";
display: inline-block;
text-decoration: none;
}

.backlink {
white-space-collapse: preserve;
user-select: none;
}

.backlink:hover {
cursor: pointer;
}

0 comments on commit 51193bf

Please sign in to comment.