fmt/doc/fmt.scss
Victor Zverovich ecd1559732 Improve styles
2024-05-27 07:05:53 -07:00

105 lines
2.0 KiB
SCSS

$header-bg: #094d75;
.fmt-banner {
background-image:
linear-gradient(to bottom, $header-bg 50%, darken($header-bg, 2%) 50%);
background-size: 100% 4px;
background-color: $header-bg;
background-repeat: repeat-y;
color: white;
text-align: center;
}
// Keep content not too wide for better readability.
.content, .fmt-navbar-content {
@extend .col-md-10;
@extend .offset-md-1;
@extend .col-lg-8;
@extend .offset-lg-2;
}
@import 'bootstrap/scss/bootstrap';
$bd-gutter-x: 3rem;
// Based on _component-examples.scss in https://github.com/twbs/bootstrap.
.highlight {
position: relative;
padding: .75rem ($bd-gutter-x * .5);
background-color: #f5f5f5; // var(--bd-pre-bg);
@include media-breakpoint-up(md) {
padding: .75rem 1.25rem;
@include border-radius(calc(var(--bs-border-radius) - 1px));
}
@include media-breakpoint-up(lg) {
pre {
margin-right: 1.875rem;
}
}
pre {
padding: .25rem 0 .25rem;
margin-top: .8125rem;
margin-bottom: 0;
overflow: overlay;
white-space: pre;
background-color: transparent;
border: 0;
}
pre code {
@include font-size(inherit);
color: var(--bs-body-color); // Effectively the base text color
word-wrap: normal;
}
}
/*$icon-font-path: "fonts/";
html {
overflow-y: scroll;
}
.navbar {
border-radius: 0;
margin-bottom: 0;
background-color: darken($header-bg, 10%);
}
div.sphinxsidebar {
margin-left: 0;
}
.footer {
padding-top: 20px;
padding-bottom: 20px;
//border-top: 1px solid $gray-lighter;
text-align: center;
}
// Indent descriptions of classes, functions and macros.
.class dd, .function dd, .macro dd {
margin-left: 20px;
}
// Remove Bootstrap padding for Sphinx containers.
.breathe-sectiondef.container {
padding: 0;
}
// Remove Bootstrap padding for Sphinx code elements in API signatures.
.descclassname, .descname {
padding: 0;
}
// Override center alignment in tables.
td {
text-align: left;
}
p.rubric {
margin-top: 10px;
}
*/