dotnet / docfx

Static site generator for .NET API documentation.
https://dotnet.github.io/docfx/
MIT License
4.09k stars 867 forks source link

[Bug] Template modern #10411

Open JM2K69 opened 1 day ago

JM2K69 commented 1 day ago

Describe the bug The disposition change in the web page.

Build with 2.77.0 docfx Image

Same site with 2.78.1 Image

filzrev commented 1 day ago

I'm also confirmed. It can reproduce problems with project that is created by docfx init --yes command.

It seems docfx.scss override setting is not applied on v2.78.1. And bootstrap default styles are used.

1.Excerpt of docfx.min.css(docfx 2.77.0) max-width value is overridden to 1768px

@media (min-width: 1400px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1768px
    }
}

2.Excerpt of docfx.min.css(docfx 2.78.1) Bootstrap 5.3.3 default setting is used.

@media (min-width: 576px) {
    .container-sm, .container {
        max-width: 540px
    }
}

@media (min-width: 768px) {
    .container-md, .container-sm, .container {
        max-width: 720px
    }
}

@media (min-width: 992px) {
    .container-lg, .container-md, .container-sm, .container {
        max-width: 960px
    }
}

@media (min-width: 1200px) {
    .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1140px
    }
}

@media (min-width: 1400px) {
    .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
        max-width: 1320px
    }
}