@import "variables"; // Use all Bootstrap modules that we want @import "../bootstrap/scss/functions"; @import "../bootstrap/scss/variables"; @import "../bootstrap/scss/mixins"; @import "../bootstrap/scss/root"; @import "../bootstrap/scss/reboot"; @import "../bootstrap/scss/type"; @import "../bootstrap/scss/images"; @import "../bootstrap/scss/code"; @import "../bootstrap/scss/grid"; @import "../bootstrap/scss/tables"; @import "../bootstrap/scss/forms"; @import "../bootstrap/scss/buttons"; @import "../bootstrap/scss/transitions"; @import "../bootstrap/scss/dropdown"; @import "../bootstrap/scss/button-group"; @import "../bootstrap/scss/input-group"; @import "../bootstrap/scss/custom-forms"; @import "../bootstrap/scss/nav"; @import "../bootstrap/scss/navbar"; @import "../bootstrap/scss/card"; @import "../bootstrap/scss/pagination"; @import "../bootstrap/scss/breadcrumb"; @import "../bootstrap/scss/badge"; @import "../bootstrap/scss/alert"; @import "../bootstrap/scss/progress"; @import "../bootstrap/scss/media"; @import "../bootstrap/scss/list-group"; @import "../bootstrap/scss/close"; @import "../bootstrap/scss/modal"; @import "../bootstrap/scss/spinners"; @import "../bootstrap/scss/utilities"; @import "../bootstrap/scss/print"; // Include fonts @import "_fonts.scss"; // Custom stuff @import "icons"; @import "code-highlighting"; // Makes everything white with dark text on it .inverse { background-color: $body-color; color: $body-bg; } body { display: flex; min-height: 100vh; flex-flow: column; } // Buttons .btn { text-transform: uppercase; } @each $color, $value in $theme-colors { .glow-#{$color} { color: white; background-color: rgba($value, .15); } } code { background-color: $dark; border-radius: $border-radius; padding: 0.1rem 0.2rem; } pre { background-color: $dark; border-radius: $border-radius; padding: 0.5rem; code { background-color: inherit; padding: 0; } &.pre-light { background-color: $white; color: $body-bg; } } .card { @extend .inverse; // Reset padding for sections section { padding: 0; } } .list-group { .list-group-item { color: $body-bg; } } .nav { .nav-link { color: $white; &.active { color: $link-color; border-left: 2px solid $link-color; } } } .navbar { background-color: rgba($gray-400, .06); // Webkit is being stupid and cannot figure out the height // of the navbar by itself min-height: $navbar-height; .navbar-brand { color: inherit; } .navbar-nav { .nav-link { color: inherit; &.active { border-bottom: 2px solid $link-color; } } } } header { &.cover { position: relative; width: 100%; height: auto; min-height: 42rem; @include media-breakpoint-up(lg) { height: calc(100vh - #{$navbar-height}); } } } .icon-large { font-size: 8em; @include media-breakpoint-up(md) { font-size: 6em; } @include media-breakpoint-up(lg) { font-size: 8em; } @include media-breakpoint-up(xl) { font-size: 10em; } } footer { margin-top: auto; .footer { margin-top: $spacer * 3; .footer-info { padding: 2rem 0 0 0; color: $white; background-color: rgba($gray-400, .04); @include media-breakpoint-down(md) { padding-top: 31px; } a, .btn-link { color: inherit; &:hover { color: inherit; } } ul { li { margin-bottom: $spacer / 4; } } } .copyright { background-color: rgba($gray-400, .06); padding: $spacer 0; font-size: $small-font-size; a { color: $text-muted; } } } } // Sections section { padding: 3rem 1rem; @include media-breakpoint-up(md) { padding: 5rem 0; } @include media-breakpoint-up(md) { // Reset large headlines to normal size on mobile devices h1 { font-size: $display1-size; font-weight: $display1-weight; line-height: $display-line-height; } } } .blog-post { .blog-header { h4 { margin-bottom: 0; a { color: $dark; } } } .blog-content { h1, h2, h3, h4, h5, h6 { font-size: 1.375rem; font-weight: $headings-font-weight; line-height: $headings-line-height; margin-bottom: 0.25rem; } img { @include img-fluid; // Center all images display: block; margin-left: auto; margin-right: auto; // Add some extra margin to the top & bottom padding: ($spacer * 2) 0 ($spacer * 2) 0; } } &.lightning-wire-labs { .blog-header { h5 { a { color: $lwl; } } a { color: $lwl; } } .blog-content { a { color: $lwl; } } } } .wiki-content { h1, h2, h3, h4, h5, h6 { font-weight: $headings-font-weight; line-height: $headings-line-height; margin-bottom: 0.5rem; } h1 { font-size: $h4-font-size; } h2 { font-size: $h5-font-size; } h3, h4, h5, h6 { font-size: $h6-font-size; } figure { // Center images display: table; margin-right: auto; margin-left: auto; // Add some extra margin to the top & bottom padding: ($spacer * 2) 0 ($spacer * 2) 0; } blockquote { @extend .blockquote; } table { @extend .table; @extend .table-sm; @extend .table-striped; // Apply CSS classes for alignment thead { th[align="left"], td[align="left"] { @extend .text-left; } th[align="center"], td[align="center"] { @extend .text-center; } th[align="right"], td[align="right"] { @extend .text-right; } } } } #preview { // Hide the spinner by default #spinner { display: none; } #preview-content { @include transition(opacity .5s linear); } &.updating { // Show the spinner during updates #spinner { display: block; } // While updating, we face out the content #preview-content { opacity: 0.5; } } } hr.divider { border-color: rgba($dark, .15); margin-top: 2rem; margin-bottom: 3rem; } .circle { position: relative; p.fireinfo_per { color: $gray-800; position: absolute; top: calc(50% - 18px); width: 100%; } } .pdf-viewer { width: 100%; min-height: 32rem; }