@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/print";
// Include fonts
-@import "fonts";
+@import "_fonts.scss";
// Custom stuff
-@import '_icons';
+@import "icons";
-body {
- // For scrollspy
- position: relative;
-
- min-height: 75rem;
- padding-top: 6rem;
+// Makes everything white with dark text on it
+.inverse {
+ background-color: $body-color;
+ color: $body-bg;
+}
- &.background {
- background-image: url("img/header-background.jpg");
- background-position: center top;
- background-repeat: no-repeat;
- background-size: contain;
- }
+body {
+ display: flex;
+ min-height: 100vh;
+ flex-flow: column;
}
// Buttons
text-transform: uppercase;
}
-// Headings
-
-h1 {
- line-height: 4rem;
- font-weight: 300;
-}
-
-h2 {
- line-height: 3.5rem;
-}
-
-h3 {
- line-height: 3rem;
-}
-
-h4 {
- line-height: 2.75rem;
+@each $color, $value in $theme-colors {
+ .btn-glow-#{$color} {
+ color: white;
+ background-color: rgba($value, .15);
+ }
}
-h5 {
- line-height: 2rem;
-}
+.card {
+ @extend .inverse;
-h6 {
- line-height: 1.75rem;
+ // Reset padding for sections
+ section {
+ padding: 0;
+ }
}
-.card {
- box-shadow: $shadow-1;
+.list-group {
+ .list-group-item {
+ color: $body-bg;
+ }
}
.nav {
.nav-link {
- color: $blue-grey-900;
+ color: $white;
&.active {
color: $link-color;
}
.navbar {
- &.scrolled {
- background-color: white;
- box-shadow: $shadow-2;
+ background-color: rgba($gray-400, .06);
- transition: background-color 200ms linear;
+ // 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: $blue-grey-900;
+ color: inherit;
&.active {
border-bottom: 2px solid $link-color;
}
}
-footer {
- .btn-toolbar .icon {
- height: 2.25rem;
- width: 2.25rem;
- fill: rgba($blue-grey-900, .6);
- }
- .i_heart {
- vertical-align: top;
- transform: translateY(-.15rem);
- @include media-breakpoint-down(sm) {
- transform: translateY(-.75rem);
+header {
+ &.cover {
+ position: relative;
+ width: 100%;
+ height: auto;
+ min-height: 35rem;
+
+ @include media-breakpoint-up(lg) {
+ height: calc(100vh - #{$navbar-height});
}
}
}
-// Sections
+footer {
+ margin-top: auto;
-.main {
- section {
- padding: 3rem 0;
+ .footer {
+ margin-top: $spacer * 3;
- @include media-breakpoint-up(sm) {
- padding: 72px 0;
- }
+ .footer-info {
+ padding: 2rem 0 0 0;
- h1 {
- margin-bottom: 64px;
- }
- }
+ color: $white;
+ background-color: rgba($gray-400, .04);
- section.intro {
- min-height: 100vh;
- position: relative;
-
- .branding {
- margin-top: 7.5rem;
- margin-bottom: 4rem;
-
- @include media-breakpoint-down(xs) {
- margin-top: 2.5rem;
+ @include media-breakpoint-down(md) {
+ padding-top: 31px;
}
- text-align: center;
+ a, .btn-link {
+ color: inherit;
- h1 {
- margin-bottom: 0;
-
- @include media-breakpoint-down(xs) {
- font-size: 72px;
- line-height: 88px;
+ &:hover {
+ color: inherit;
}
}
- h1:before {
- content: "";
- height: 60px;
- width: 76px;
- background-image: url('img/ipfire-tux.png');
- background-repeat: no-repeat;
- background-position: center center;
- background-size: contain;
- display: inline-block;
- position: relative;
- top: 4px;
-
- @include media-breakpoint-up(sm) {
- height: 120px;
- width: 93px;
- margin-right: 32px;
- top: 8px;
+ ul {
+ li {
+ margin-bottom: $spacer / 4;
}
}
+ }
- h5 {
- color: $blue-grey-600;
+ .copyright {
+ background-color: rgba($gray-400, .06);
+ padding: $spacer 0;
- @include media-breakpoint-down(xs) {
- font-size: 14px;
- line-height: 20px;
- }
+ font-size: $small-font-size;
+
+ a {
+ color: $text-muted;
}
}
}
+}
- section#news, section#support, footer {
- background-color: rgba($blue-grey-900, .06);
- }
+// Sections
- section#news {
- color: rgba($blue-grey-900, .6);
- }
+section {
+ padding: 3rem 1rem;
- section#fireinfo {
- border-bottom: 1px solid rgba($blue-grey-900, .2);
+ @include media-breakpoint-up(md) {
+ padding: 5rem 0;
}
- section#appliances {
- padding-bottom: 48px;
+ @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 {
- // Custom CSS for blog posts goes here
+ .blog-header {
+ h4 {
+ margin-bottom: 0;
- &.lightning-wire-labs {
- h5:first-of-type, a {
- color: $lwl;
+ a {
+ color: $dark;
+ }
}
}
-}
-// Sidebar navigation
+ .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;
+ }
-#sidebar .nav {
- position: fixed;
-}
+ img {
+ @include img-fluid;
-.page-scroll {
- display: block;
- visibility: visible;
- position: absolute;
- bottom: 164px;
- left: 50%;
- transform: translateX(-50%);
- .btn {
- width: 36px;
- height: 36px;
- fill: $red_900;
- @include media-breakpoint-up(sm) {
- width: 64px;
- height: 64px;
- }
- &:hover .i_arrow_down {
- fill: white;
+ // 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;
}
}
-}
-.feature_icons {
- width: 40px;
- height: 100%;
- float: left;
- margin-right: .75rem;
-}
+ &.lightning-wire-labs {
+ .blog-header {
+ h5 {
+ a {
+ color: $lwl;
+ }
+ }
-.progress {
- background-color: rgba(255, 255, 255, .2);
-}
+ a {
+ color: $lwl;
+ }
+ }
-.circle {
- position: relative;
- p.fireinfo_per {
- color: $blue-grey-600;
- position: absolute;
- top: calc(50% - 18px);
- width: 100%;
+ .blog-content {
+ a {
+ color: $lwl;
+ }
+ }
}
}
-.fixed-top + .blog-content {
- padding-top: 88px;
- margin-bottom: 40px;
- @include media-breakpoint-up(lg) {
- padding-top: 161px;
- }
- .content {
- background: white;
- border-radius: 4px;
- box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.12), 0 1px 2px 0 rgba(0, 0, 0, 0.2);
- padding: 40px 24px;
- position: relative;
+.wiki-content {
+ h1, h2, h3, h4, h5, h6 {
+ font-weight: $headings-font-weight;
+ line-height: $headings-line-height;
+ margin-bottom: 0.25rem;
}
-}
-
-.blog-content {
- margin-bottom: 80px;
-}
-.divider {
- width: 128px;
- height: 4px;
- border-radius: 2px;
- background-image: linear-gradient(to right, $red-900, $orange-a400);
- margin: 40px auto 24px auto;
- @include media-breakpoint-up(sm) {
- margin: 56px auto 40px auto;
+ h1 {
+ font-size: $h4-font-size;
}
-}
-footer {
- padding: 3rem 0 0 0;
- @include media-breakpoint-down(md) {
- padding-top: 31px;
+ h2 {
+ font-size: $h5-font-size;
}
- h4 {
- margin-bottom: 1.25rem;
- color: rgba($blue-grey-900, .6);
- font-size: 20px;
- line-height: 28px;
+
+ h3, h4, h5, h6 {
+ font-size: $h6-font-size;
}
- ul {
- li {
- font-size: 14px;
- margin-bottom: .75rem;
- a {
- color: rgba($blue-grey-900, .6);
- text-decoration: none;
- &:hover {
- color: $blue-grey-900;
- text-decoration: underline;
- }
- }
- }
+
+ 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;
}
- .btn-lg {
- margin-bottom: 2.75rem;
+
+ blockquote {
+ @extend .blockquote;
}
- .btn-sm {
- box-shadow: none;
- &:hover {
- box-shadow: none;
- }
+
+ table {
+ @extend .table;
+ @extend .table-sm;
}
}
-#copyright {
- background-color: rgba($blue-grey-900, .06);
- padding: 1rem 0;
- p {
- font-size: 12px;
- line-height: 16px;
- }
+hr.divider {
+ border-color: rgba($dark, .15);
+ margin-top: 2rem;
+ margin-bottom: 3rem;
}
-// Animation
-@keyframes scroll {
- 0%, 100% { transform: translateY(30%); }
- 50% { transform: translateY(50%); }
+.circle {
+ position: relative;
+ p.fireinfo_per {
+ color: $gray-800;
+ position: absolute;
+ top: calc(50% - 18px);
+ width: 100%;
+ }
}