X-Git-Url: http://git.ipfire.org/?p=people%2Fshoehn%2Fipfire.org.git;a=blobdiff_plain;f=static%2Fscss%2Fstyle.scss;h=34a68875021bd745b0bf1ca22336243509dda837;hp=854cb54e44e27e0cfc9d6ae94303b696e85c8b4e;hb=e9131ad613a40860150be7d1a168f296a0f27256;hpb=b6eb516242dbdf6cf9b8b92c7e593e1fda470ea8 diff --git a/static/scss/style.scss b/static/scss/style.scss index 854cb54..34a6887 100644 --- a/static/scss/style.scss +++ b/static/scss/style.scss @@ -17,11 +17,11 @@ // Core CSS @import "bootstrap-4.0.0-alpha.6/scss/reboot"; @import "bootstrap-4.0.0-alpha.6/scss/type"; -@import "bootstrap-4.0.0-alpha.6/scss/images"; +//@import "bootstrap-4.0.0-alpha.6/scss/images"; // @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"; @@ -53,126 +53,93 @@ // Utility classes @import "bootstrap-4.0.0-alpha.6/scss/utilities"; -h4 { - font-weight: 600; -} +// Lightbox +@import "photoswipe/main"; +@import "photoswipe/default-skin/default-skin"; -button.navbar-toggler div { - font-family: 'Ubuntu', sans-serif; - font-size: 1rem; - display: inline-block; - margin-left: 12px; -} +// Donation Box +@import "_donation"; -.btn { - 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; - } - svg { - margin-right: .75rem; - height: 17px; - width: auto; - transform: translateY(2px); - } +body { + min-height: 100vh; + display: flex; + flex-direction: column; } -.btn-outline-primary, -.btn-outline-secondary { - transition: background-color .25s ease-in-out; - &:hover { - transition: background-color .25s ease-in-out; - } +.container { + width: 100%; + max-width: 1200px; + flex: 1; } -.btn-lg { - margin: 0 24px; - @include media-breakpoint-down(md) { - margin: 0 8px; - font-size: 14px; - } -} +// Custom stuff +@import '_fonts'; +@import '_nav'; +@import '_buttons'; +@import '_icons'; + + -.btn-sm small { - display: inline-block; - transform: translateY(-2px); +// Colors +.amber-800 { + color: $amber-800; + border-color: $amber-800; } -.btn-block { - margin: 0 0 1.5rem 0; - @include media-breakpoint-up(md) { - margin: 0 0 2rem 0; - } +.green-600 { + color: $green-600; + border-color: $green-600; } -.fixed-top { - transition: background-color 700ms linear; - .navbar { - width: 100%; - } - .navbar-brand { - opacity: 0; - transition: opacity 700ms linear; - @include media-breakpoint-up(lg) { - opacity: 1; - } - } +.red-900 { + color: $red_900; + border-color: $red_900; } -.scrolled { - background-color: rgba(255, 255, 255, .96); - .navbar-brand { - opacity: 1; - transition: opacity 700ms linear; - } +.blue-700{ + color: $blue-700; + border-color: $blue-700; } -.menu-text.hidden { - display: none; - visibility: hidden; +.blue_grey_300 { + color: $blue_grey_300; } -.navbar { - a { - color: $blue-grey-900; - } - .btn { - margin-top: .15rem; - } +.bg-blue-grey-900 { + background-color: $blue-grey-900; } -.navbar-brand { - font-size: 1.25rem; - @include media-breakpoint-up(sm) { - font-size: 2rem; - } - font-weight: 300; - img { - margin-right: 1rem; - transform: translateY(-5px); - } +.bg-blue-grey-50 { + background-color: $blue-grey-50; } -.display-2 { - margin-bottom: 4rem; - @include media-breakpoint-down(md) { - font-size: 32px; +// Images +img { + &.img-fluid { + width: 100%; + max-width: 100%; + height: auto; } } -.display-4 { - @include media-breakpoint-down(md) { - font-size: 14px; + +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); + } } } -.bg-progress { - background-image: linear-gradient(to right, $yellow-700, $amber-800); -} +// Sections section.intro { min-height: 100vh; background-image: url('../img/header-background.jpg'); @@ -182,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; @@ -191,8 +158,10 @@ section.intro { h1 { font-weight: 300 !important; color: $blue-grey-900; - @include media-breakpoint-down(md) { - font-size: 4.5rem; + @include media-breakpoint-down(xs) { + font-size: 72px; + line-height: 88px; + margin-bottom: 0; } strong { font-weight: 700 !important; @@ -209,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; @@ -217,53 +186,54 @@ 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 { - fill: white; - } - svg { - width: 12px; - height: auto; - position: absolute; - top: 50%; - transform: translate(-50%, -60%); - animation: scroll 3s infinite; - @include media-breakpoint-up(md) { - width: 24px; - } - } +} + +.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) { - padding: 96px 0; + padding: 3rem 0; + @include media-breakpoint-up(sm) { + padding: 72px 0; } } -section#features, -section#appliances, -section#fireinfo { - background-color: $blue-grey-50; +.feature_icons { + width: 40px; + height: 100%; + float: left; + margin-right: .75rem; } section#news, +section#support, footer { - background-color: rgba($blue-grey-900, .2); + background-color: rgba($blue-grey-900, .06); +} + +section#news { + color: rgba($blue-grey-900, .6); + h2 { + color: $blue-grey-900; + } } section#wishlist { @@ -272,29 +242,78 @@ 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); +} + section#fireinfo { border-bottom: 1px solid rgba($blue-grey-900, .2); } -#copyright { - background-color: rgba($blue-grey-900, .3); - padding: 1rem 0; +.circle { + position: relative; + p.fireinfo_per { + color: $blue-grey-600; + position: absolute; + 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: $blue-grey-900; + color: rgba($blue-grey-900, .6); text-decoration: none; &:hover { - color: $blue-grey-600; + color: $blue-grey-900; text-decoration: underline; } } @@ -302,73 +321,26 @@ footer { } .btn-lg { margin-bottom: 2.75rem; - svg { - width: 20px; - height: auto; - margin-right: 1.125rem; - transform: translateY(2px); - } } .btn-sm { box-shadow: none; &:hover { box-shadow: none; } - svg { - width: auto; - height: 28px; - } } } -.feature_icons { - width: 40px; - height: 100%; - float: left; - margin-right: .5rem; - svg { - width: 32px; - height: auto; - transform: translateY(-4px); - fill: $red_900; +#copyright { + background-color: rgba($blue-grey-900, .06); + padding: 1rem 0; + p { + font-size: 12px; + line-height: 16px; } } +// Animation @keyframes scroll { - 0% { transform: translate(-50%, -60%); } - 50% { transform: translate(-50%, -30%); } - 100% { transform: translate(-50%, -60%); } -} - -.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); -} - -p.lead { - @include media-breakpoint-down(md) { - font-size: 1rem; - } -} - -.circle { - position: relative; - p.lead { - color: $blue-grey-600; - position: absolute; - top: calc(50% - 1.25rem); - width: 100%; - } -} - -.truncate { - width: 100%; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + 0%, 100% { transform: translateY(30%); } + 50% { transform: translateY(50%); } } \ No newline at end of file