Improve styles

This commit is contained in:
Victor Zverovich 2024-05-26 20:08:42 -07:00
parent 4a368625e8
commit 7e4fac3f4f
2 changed files with 15 additions and 8 deletions

View File

@ -78,7 +78,7 @@
</nav> </nav>
{% if pagename == "index" %} {% if pagename == "index" %}
{% set download_url = 'https://github.com/fmtlib/fmt/releases/download' %} {% set download_url = 'https://github.com/fmtlib/fmt/releases/download' %}
<div class="tb-container jumbotron p-5"> <div class="tb-container fmt-banner p-5">
<h1>{fmt}</h1> <h1>{fmt}</h1>
<p class="lead">A modern formatting library</p> <p class="lead">A modern formatting library</p>
<div class="btn-group"> <div class="btn-group">

View File

@ -1,6 +1,6 @@
$header-bg: #094d75; $header-bg: #094d75;
.jumbotron { .fmt-banner {
background-image: background-image:
linear-gradient(to bottom, $header-bg 50%, darken($header-bg, 2%) 50%); linear-gradient(to bottom, $header-bg 50%, darken($header-bg, 2%) 50%);
background-size: 100% 4px; background-size: 100% 4px;
@ -10,6 +10,13 @@ $header-bg: #094d75;
text-align: center; text-align: center;
} }
.content, .fmt-navbar-content {
@extend .col-md-10;
@extend .offset-md-1;
@extend .col-lg-8;
@extend .offset-lg-2;
}
@import 'bootstrap/scss/bootstrap'; @import 'bootstrap/scss/bootstrap';
/*$icon-font-path: "fonts/"; /*$icon-font-path: "fonts/";
@ -29,12 +36,12 @@ div.sphinxsidebar {
} }
// Keep content not too wide for better readability. // Keep content not too wide for better readability.
//.navbar-content, .content { .navbar-content, .content {
// @include make-md-column-offset(1); @include make-md-column-offset(1);
// @include make-md-column(10); @include make-md-column(10);
// @include make-lg-column-offset(2); @include make-lg-column-offset(2);
// @include make-lg-column(8); @include make-lg-column(8);
//} }
.footer { .footer {
padding-top: 20px; padding-top: 20px;