]> git.ipfire.org Git - people/shoehn/ipfire.org.git/blobdiff - static/scss/style.scss
Bootstap 4 migration: imprint
[people/shoehn/ipfire.org.git] / static / scss / style.scss
index 2ad8afd246848bf72e1b7afd1bbacbc401c92375..34a68875021bd745b0bf1ca22336243509dda837 100644 (file)
@@ -21,7 +21,7 @@
 // @import "bootstrap-4.0.0-alpha.6/scss/code";
 @import "bootstrap-4.0.0-alpha.6/scss/grid";
 // @import "bootstrap-4.0.0-alpha.6/scss/tables";
-// @import "bootstrap-4.0.0-alpha.6/scss/forms";
+@import "bootstrap-4.0.0-alpha.6/scss/forms";
 @import "bootstrap-4.0.0-alpha.6/scss/buttons";
 
 // Components
@@ -35,9 +35,9 @@
 //@import "bootstrap-4.0.0-alpha.6/scss/card";
 // @import "bootstrap-4.0.0-alpha.6/scss/breadcrumb";
 // @import "bootstrap-4.0.0-alpha.6/scss/pagination";
-// @import "bootstrap-4.0.0-alpha.6/scss/badge";
+@import "bootstrap-4.0.0-alpha.6/scss/badge";
 // @import "bootstrap-4.0.0-alpha.6/scss/jumbotron";
-// @import "bootstrap-4.0.0-alpha.6/scss/alert";
+@import "bootstrap-4.0.0-alpha.6/scss/alert";
 @import "bootstrap-4.0.0-alpha.6/scss/progress";
 @import "bootstrap-4.0.0-alpha.6/scss/media";
 @import "bootstrap-4.0.0-alpha.6/scss/list-group";
 // Utility classes
 @import "bootstrap-4.0.0-alpha.6/scss/utilities";
 
+// Lightbox
+@import "photoswipe/main";
+@import "photoswipe/default-skin/default-skin";
 
-// Colors
+// Donation Box
+@import "_donation";
 
-.amber-800 {
-       color: $amber-800;
+body {
+       min-height: 100vh;
+       display: flex;
+       flex-direction: column;
 }
 
-// Fonts
-
-h1 {
-       line-height: 3rem;
+.container {
+       width: 100%;
+       max-width: 1200px;
+       flex: 1;
 }
 
-h2 {
-       line-height: 2.75rem;
-}
+// Custom stuff
+@import '_fonts';
+@import '_nav';
+@import '_buttons';
+@import '_icons';
 
-h3 {
-       line-height: 2rem;
-}
 
-h4 {
-       font-weight: 600;
-       line-height: 1.75rem;
+
+// Colors
+.amber-800 {
+       color: $amber-800;
+       border-color: $amber-800;
 }
 
-h5 {
-       line-height: 1.5rem;
+.green-600 {
+       color: $green-600;
+       border-color: $green-600;
 }
 
-p {
-       line-height: 1.5rem;
-       &.lead {
-               line-height: 2rem;
-               @include media-breakpoint-down(md) {
-                       font-size: 1.5rem;
-                       line-height: 2rem;
-               }
-               @include media-breakpoint-down(sm) {
-                       font-size: 1rem;
-                       line-height: 1.5rem;
-               }
-       }
+.red-900 {
+       color: $red_900;
+       border-color: $red_900;
 }
 
-.display-2 {
-       margin-bottom: 4rem;
-       @include media-breakpoint-down(md) {
-               font-size: 2.5rem;
-               line-height: 3.5rem;
-               margin-bottom: 3rem;
-       }
-       @include media-breakpoint-down(sm) {
-               font-size: 2rem;
-               line-height: 2.75rem;
-       }
+.blue-700{
+       color: $blue-700;
+       border-color: $blue-700;
 }
 
-.display-4 {
-       @include media-breakpoint-down(sm) {
-               font-size: .875rem;
-               line-height: 1.25rem;
-       }
+.blue_grey_300 {
+       color: $blue_grey_300;
 }
 
-small {
-       line-height: 1rem;
+.bg-blue-grey-900 {
+       background-color: $blue-grey-900;
 }
 
-.truncate {
-  width: 100%;
-  white-space: nowrap;
-  overflow: hidden;
-  text-overflow: ellipsis;
+.bg-blue-grey-50 {
+       background-color: $blue-grey-50;
 }
 
 // Images
@@ -138,43 +122,6 @@ img {
        }
 }
 
-// Icons
-
-.icon {
-       width: 1.5rem;
-       height: 1.5rem;
-       fill: currentColor;
-       vertical-align: -.15rem;
-       overflow: hidden;
-       margin-right: .5rem;
-}
-
-.i_arrow_down {
-       margin: 0;
-       position: absolute;
-       left: .75rem;
-       top: -.25rem;
-       animation: scroll 3s infinite;
-       @include media-breakpoint-down(sm) {
-               width: 2rem !important;
-               height: 2rem !important;
-               left: .15rem;
-               top: -.75rem;
-       }
-}
-
-.i_lg {
-       width: 2.5rem;
-       height: 2.5rem;
-       margin: 0;
-       transform: translateY(-.35rem);
-       fill: $red_900;
-}
-
-.i_sm {
-       vertical-align: top;
-       transform: translateY(-.10rem);
-}
 
 footer {
        .btn-toolbar .icon {
@@ -191,138 +138,8 @@ footer {
        }
 }
 
-// Buttons
-
-.btn-red900 {
-  @include button-variant($btn-red900-color, $btn-red900-bg, $btn-red900-border);
-}
-.btn-white {
-  @include button-variant($btn-white-color, $btn-white-bg, $btn-white-border);
-}
-.btn-bluegrey900 {
-  @include button-variant($btn-bluegrey900-color, $btn-bluegrey900-bg, $btn-bluegrey900-border);
-}
-
-button.navbar-toggler div {
-       font-family: 'Ubuntu', sans-serif;
-       font-size: 1rem;
-       display: inline-block;
-       position: relative;
-       top: -4px;
-}
-
-.btn {
-       height: 36px;
-       text-transform: uppercase;
-       box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .15), 0 1px 2px 0 rgba(0, 0, 0, .25);
-       transition: box-shadow .25s ease-in-out;
-       &:hover {
-               box-shadow: 0 3px 6px 0 rgba(0, 0, 0, .15), 0 3px 6px 0 rgba(0, 0, 0, .25);
-               transition: box-shadow .25s ease-in-out;
-       }
-       @include media-breakpoint-down(sm) {
-               font-size: .875rem;
-       }
-}
-
-.btn-outline-primary,
-.btn-outline-secondary {
-       transition: background-color .25s ease-in-out;
-       &:hover {
-               transition: background-color .25s ease-in-out;
-       }
-}
-
-.btn-lg {
-       height: 48px;
-       margin: 0 24px;
-       @include media-breakpoint-down(sm) {
-               height: 36px;
-               margin: 0 8px;
-               padding: 1rem;
-               font-size: .875rem;
-               line-height: 0;
-       }
-}
-
-.btn-md {
-       font-size: 0.875rem;
-       line-height: 1.25rem;
-       padding: .4rem 1rem .5rem 1rem;
-}
-
-.btn-block {
-       margin: 0 0 1.5rem 0;
-       @include media-breakpoint-up(md) {
-               margin: 0 0 2rem 0;     
-       }
-       @include media-breakpoint-down(sm) {
-               font-size: .875rem;
-               line-height: 0;
-       }
-}
-
-// Top Navigation
-
-.fixed-top {
-       transition: background-color 700ms linear;
-       .navbar {
-               width: 100%;
-               @include media-breakpoint-down(md) {
-                       padding: .5rem 0;
-               }
-               .navbar-toggler-left {
-                       left: -1rem;
-               }
-       }
-       .navbar-brand {
-               opacity: 0;
-               transition: opacity 700ms linear;
-               @include media-breakpoint-up(lg) {
-                       opacity: 1;
-               }
-       }
-}
-
-.scrolled {
-       background-color: rgba(255, 255, 255, .96);
-       .navbar-brand {
-               opacity: 1;
-               transition: opacity 700ms linear;
-       }
-}
-
-.menu-text.hidden {
-       display: none;
-       visibility: hidden;
-}
-
-.navbar {
-       a {
-               color: $blue-grey-900;
-       }
-       .btn {
-               margin-top: .15rem;
-       }
-}
-
-.navbar-brand {
-       font-size: 1.25rem;
-       @include media-breakpoint-up(sm) {
-               font-size: 2rem;
-       }
-       font-weight: 300;
-       strong {
-               font-weight: 900;
-       }
-       img {
-               margin-right: 1rem;
-               transform: translateY(-5px);
-       }
-}
 
 // Sections
-
 section.intro {
        min-height: 100vh;
        background-image: url('../img/header-background.jpg');
@@ -332,7 +149,7 @@ section.intro {
        position: relative;
        .branding {
                padding-top: 6rem;
-               @include media-breakpoint-up(md) {
+               @include media-breakpoint-up(sm) {
                        padding-top: 192px;
                }
                margin-bottom: 64px;
@@ -341,8 +158,10 @@ section.intro {
                h1 {
                        font-weight: 300 !important;
                        color: $blue-grey-900;
-                       @include media-breakpoint-down(sm) {
-                               font-size: 4.5rem;
+                       @include media-breakpoint-down(xs) {
+                               font-size: 72px;
+                               line-height: 88px;
+                               margin-bottom: 0;
                        }
                        strong {
                                font-weight: 700 !important;
@@ -359,7 +178,7 @@ section.intro {
                        display: inline-block;
                        position: relative;
                        top: 4px;
-                       @include media-breakpoint-up(md) {
+                       @include media-breakpoint-up(sm) {
                                height: 120px;
                                width: 93px;
                                margin-right: 32px;
@@ -367,29 +186,32 @@ section.intro {
                        }
                }
        }
-       .page-scroll {
-               position: absolute;
-               bottom: 48px;
-               left: 50%;
-               transform: translateX(-50%);
-               .btn {
-                       width: 32px;
-                       height: 32px;
-                       fill: $red_900;
-                       @include media-breakpoint-up(md) {
-                               width: 64px;
-                               height: 64px;
-                       }
-                       &:hover .i_arrow_down {
-                               fill: white;
-                       }
+}
+
+.page-scroll {
+       display: block;
+       visibility: visible;
+       position: absolute;
+       bottom: 48px;
+       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;
                }
        }
 }
 
 section.content-section {
        padding: 3rem 0;
-       @include media-breakpoint-up(md) {
+       @include media-breakpoint-up(sm) {
                padding: 72px 0;
        }
 }
@@ -402,6 +224,7 @@ section.content-section {
 }
 
 section#news,
+section#support,
 footer {
        background-color: rgba($blue-grey-900, .06);
 }
@@ -419,6 +242,10 @@ section#wishlist {
        background-position: center center;
 }
 
+.progress {
+       background-color: rgba(255, 255, 255, .2);
+}
+
 .bg-progress {
        background-image: linear-gradient(to right, $yellow-700, $amber-800);
 }
@@ -429,23 +256,58 @@ section#fireinfo {
 
 .circle {
        position: relative;
-       p.lead {
+       p.fireinfo_per {
                color: $blue-grey-600;
                position: absolute;
-               top: calc(50% - 1.25rem);
+               top: calc(50% - 18px);
                width: 100%;
        }
 }
 
+section#appliances {
+       padding-bottom: 48px;
+}
+
+.features-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;
+       }
+}
+
+.divider {
+       width: 128px;
+       height: 4px;
+       border-radius: 2px;
+       background-image: linear-gradient(to right, $red_900, $deep_orange_a400);
+       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($blue-grey-900, .6);
+               font-size: 20px;
+               line-height: 28px;
        }
        ul {
                li {
-                       font-size: $small-font-size;
+                       font-size: 14px;
                        margin-bottom: .75rem;
                        a {
                                color: rgba($blue-grey-900, .6);
@@ -471,12 +333,14 @@ footer {
 #copyright {
        background-color: rgba($blue-grey-900, .06);
        padding: 1rem 0;
+       p {
+               font-size: 12px;
+               line-height: 16px;
+       }
 }
 
 // Animation
-
 @keyframes scroll {
-  0%   { transform: translateY(30%); }
+  0%, 100%   { transform: translateY(30%); }
   50% { transform: translateY(50%); }
-  100% { transform: translateY(30%); }
 }
\ No newline at end of file