]> git.ipfire.org Git - ipfire.org.git/blobdiff - src/scss/style.scss
CSS: Add CSS for file listings
[ipfire.org.git] / src / scss / style.scss
index bcf0277f7a4f75f7a99a341133c94ee06708cc04..6dd9334000e4ffdbeefe5d472e3446b91fc56271 100644 (file)
@@ -17,6 +17,7 @@
 @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";
@@ -35,7 +36,7 @@
 @import "fonts";
 
 // Custom stuff
-@import '_icons';
+@import "icons";
 
 // Makes everything white with dark text on it
 .inverse {
 }
 
 body {
-       // For scrollspy
-       position: relative;
-
-       padding-top: 6rem;
+       display: flex;
+       min-height: 100vh;
+       flex-flow: column;
 }
 
 // Buttons
@@ -55,40 +55,25 @@ body {
        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;
-}
-
-h5 {
-       line-height: 2rem;
-}
-
-h6 {
-       line-height: 1.75rem;
+@each $color, $value in $theme-colors {
+       .btn-glow-#{$color} {
+               color: white;
+               background-color: rgba($value, .15);
+       }
 }
 
 .card {
        @extend .inverse;
 
-       .card-body {
-               h1, h2, h3, h4, h5, h6 {
-                       color: inherit;
-               }
+       // Reset padding for sections
+       section {
+               padding: 0;
+       }
+}
+
+.list-group {
+       .list-group-item {
+               color: $body-bg;
        }
 }
 
@@ -104,13 +89,11 @@ h6 {
 }
 
 .navbar {
-       &.scrolled {
-               @extend .inverse;
-
-               transition: background-color 200ms linear;
+       background-color: rgba($gray-400, .06);
 
-               border-bottom: 4px solid $body-bg;
-       }
+       // Webkit is being stupid and cannot figure out the height
+       // of the navbar by itself
+       min-height: $navbar-height;
 
        .navbar-brand {
                color: inherit;
@@ -127,74 +110,87 @@ h6 {
        }
 }
 
-footer {
-       .btn-toolbar .icon {
-               height: 2.25rem;
-               width: 2.25rem;
-               fill: rgba($gray-400, .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 {
-       .intro {
-               min-height: 100%;
-               min-height: 100vh;
+       .footer {
+               margin-top: $spacer * 3;
 
-               margin-top: -6rem;
+               .footer-info {
+                       padding: 2rem 0 0 0;
 
-               @include media-breakpoint-down(sm) {
-                       padding-top: 6rem;
-               }
+                       color: $white;
+                       background-color: rgba($gray-400, .04);
 
-               display: flex;
-               align-items: center;
+                       @include media-breakpoint-down(md) {
+                               padding-top: 31px;
+                       }
 
-               h1 {
-                       @include media-breakpoint-up(lg) {
-                               font-size: 4rem;
-                               line-height: 5rem;
+                       a, .btn-link {
+                               color: inherit;
+
+                               &:hover {
+                                       color: inherit;
+                               }
+                       }
+
+                       ul {
+                               li {
+                                       margin-bottom: $spacer / 4;
+                               }
                        }
                }
-       }
 
-       section {
-               padding: 3rem 0;
+               .copyright {
+                       background-color: rgba($gray-400, .06);
+                       padding: $spacer 0;
 
-               @include media-breakpoint-up(sm) {
-                       padding: 72px 0;
-               }
+                       font-size: $small-font-size;
 
-               h1 {
-                       margin-bottom: 64px;
+                       a {
+                               color: $text-muted;
+                       }
                }
        }
+}
 
-       section#news, section#support, footer {
-               background-color: $body-color;
-               color: $body-bg;
+// Sections
 
-               h1 {
-                       color: inherit;
-               }
+section {
+       padding: 3rem 1rem;
+
+       @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 {
        .blog-header {
-               h5 {
+               h4 {
+                       margin-bottom: 0;
+
                        a {
                                color: $dark;
                        }
@@ -203,11 +199,9 @@ footer {
 
        .blog-content {
                h1, h2, h3, h4, h5, h6 {
-                       font-size: 20px;
+                       font-size: 1.375rem;
                        font-weight: $headings-font-weight;
-
-                       line-height: 28px;
-
+                       line-height: $headings-line-height;
                        margin-bottom: 0.25rem;
                }
 
@@ -237,48 +231,10 @@ footer {
        }
 }
 
-// Donations
-
-.faq {
-       a {
-               color: $body-color;
-       }
-}
-
-.donation-explanation {
-       margin-bottom: 2rem;
-
-       p {
-               color: $text-muted;
-       }
-
-       @include media-breakpoint-down(sm) {
-               background-color: $dark;
-               color: $white;
-
-               padding: 1.5rem;
-
-               h5, p {
-                       color: inherit;
-               }
-       }
-}
-
-// Sidebar navigation
-
-#sidebar .nav {
-       position: fixed;
-}
-
-.feature_icons {
-       width: 40px;
-       height: 100%;
-       float: left;
-       margin-right: .75rem;
-}
-
-.progress {
-       background-color: rgba(255, 255, 255, .2);
+hr.divider {
+       border-color: rgba($dark, .15);
+       margin-top: 2rem;
+       margin-bottom: 3rem;
 }
 
 .circle {
@@ -290,79 +246,3 @@ footer {
                width: 100%;
        }
 }
-
-.fixed-top + .blog-content {
-       padding-top: 88px;
-       margin-bottom: 40px;
-       @include media-breakpoint-up(lg) {
-               padding-top: 161px;
-       }
-       .content {
-               background: white;
-               border-radius: 4px;
-               padding: 40px 24px;
-               position: relative;
-       }
-}
-
-.blog-content {
-       margin-bottom: 80px;
-}
-
-.divider {
-       width: 128px;
-       height: 4px;
-       border-radius: 2px;
-       background-image: linear-gradient(to right, $red, $gray-400);
-       margin: 40px auto 24px auto;
-       @include media-breakpoint-up(sm) {
-               margin: 56px auto 40px auto;
-       }
-}
-
-footer {
-       padding: 3rem 0 0 0;
-       @include media-breakpoint-down(md) {
-               padding-top: 31px;
-       }
-       h4 {
-               margin-bottom: 1.25rem;
-               color: rgba($gray-400, .6);
-               font-size: 20px;
-               line-height: 28px;
-       }
-       ul {
-               li {
-                       font-size: 14px;
-                       margin-bottom: .75rem;
-                       a {
-                               color: rgba($gray-400, .6);
-                               text-decoration: none;
-                               &:hover {
-                                       color: $gray-400;
-                                       text-decoration: underline;
-                               }
-                       }
-               }
-       }
-       .btn-lg {
-               margin-bottom: 2.75rem;
-       }
-
-       .copyright {
-               background-color: rgba($gray-400, .06);
-               padding: $spacer 0;
-
-               font-size: $small-font-size;
-
-               a {
-                       color: $text-muted;
-               }
-       }
-}
-
-// Animation
-@keyframes scroll {
-  0%, 100%   { transform: translateY(30%); }
-  50% { transform: translateY(50%); }
-}