Skip to content

Commit

Permalink
Docs styling for smaller screens
Browse files Browse the repository at this point in the history
  • Loading branch information
z4kn4fein committed Feb 19, 2021
1 parent 7495f1b commit 0757364
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions docs/assets/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,13 @@ section.cover .mask {

@media (max-width: 768px) {
:root {
--code-font-size: calc(var(--font-size-m) * 0.8);
--code-font-size: calc(var(--font-size-m) * 0.82);
--base-font-size: 13px;
--code-block-padding: 1.4em 1.5em 0.8em 1.0em;
}

.docsify-tabs__tab {
font-size: 10px;
font-size: 11px;
}

.markdown-section {
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/advanced-registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ ILogger logger = container.Resolve<ILogger>(); // ConsoleLogger
DbBackup backup = container.Resolve<DbBackup>(); // error, not found
```

#### **Via containing type**
#### **Containing type**
```cs
container.RegisterAssemblyContaining<DbBackup>(
// service filter, register to interfaces only
Expand Down
6 changes: 3 additions & 3 deletions docs/usage/lifetimes.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ You can also let a service [define](usage/scopes?id=service-as-scope) its own na

<!-- tabs:start -->

#### **Named scope**
#### **Named**
```cs
container.Register<IJob, DbBackup>(options => options
.InNamedScope("DbScope"));
Expand All @@ -146,7 +146,7 @@ using var scope = container.BeginScope("DbScope");
IJob job = scope.Resolve<IJob>();
```

#### **Defined scope**
#### **Defined**
```cs
container.Register<DbJobExecutor>(options => options
.DefinesScope());
Expand All @@ -161,7 +161,7 @@ using var scope = container.BeginScope();
DbJobExecutor executor = scope.Resolve<DbJobExecutor>();
```

#### **Defined scope with name**
#### **Defined with name**
```cs
container.Register<DbJobExecutor>(options => options
.DefinesScope("DbScope"));
Expand Down
2 changes: 1 addition & 1 deletion docs/usage/service-resolution.md
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ container.Register<IJob, DbBackup>();
IJob job = container.Resolve<IJob>();
```

#### **Parent type**
#### **Parent**
```cs
class DbBackup : IJob
{
Expand Down

0 comments on commit 0757364

Please sign in to comment.