From: Sven Hoehn Date: Sat, 4 Nov 2017 11:27:51 +0000 (+0100) Subject: basic style Download page X-Git-Url: http://git.ipfire.org/?p=people%2Fshoehn%2Fipfire.org.git;a=commitdiff_plain;h=9581b35dbd17e400d7cb70d2a5a0bca6fe08545e basic style Download page --- diff --git a/static/css/style.css b/static/css/style.css index 9d491dd..b54e37a 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -4376,9 +4376,15 @@ a.text-gray-dark:focus, a.text-gray-dark:hover { .hidden-print { display: none !important; } } +body { + min-height: 100vh; + display: flex; + flex-direction: column; } + .container { width: 100%; - max-width: 1200px; } + max-width: 1200px; + flex: 1; } body { -webkit-font-smoothing: antialiased; @@ -4695,9 +4701,11 @@ h5.fireinfo { transform: scaleX(1); } } @media (min-width: 992px) { - body.About li.nav-item a.about { + body.About li.nav-item a.about, + body.Download li.nav-item a.download { color: #b71c1c; } - body.About li.nav-item a.about:after { + body.About li.nav-item a.about:after, + body.Download li.nav-item a.download:after { content: ""; border-bottom: 2px solid #b71c1c; position: absolute; @@ -4880,6 +4888,11 @@ button.navbar-toggler div { .btn-outline-secondary:hover { transition: background-color .25s ease-in-out; } +.btn-xlg { + height: 72px; + margin: 0 36px; + padding-top: 16px; } + .btn-lg, .btn-group-lg > .btn { height: 48px; margin: 0 24px; } @@ -4922,14 +4935,6 @@ button:focus { vertical-align: -7px; margin-right: 5px; } -.amber-800 { - color: #ff8f00; } - -img.img-fluid { - width: 100%; - max-width: 100%; - height: auto; } - .icon { width: 1.5rem; height: 1.5rem; @@ -4958,10 +4963,21 @@ img.img-fluid { transform: translateY(-0.35rem); fill: #b71c1c; } +.i_white { + fill: white; } + .i_sm { vertical-align: top; transform: translateY(-0.1rem); } +.amber-800 { + color: #ff8f00; } + +img.img-fluid { + width: 100%; + max-width: 100%; + height: auto; } + footer .btn-toolbar .icon { height: 2.25rem; width: 2.25rem; diff --git a/static/scss/style.scss b/static/scss/style.scss index a97b14b..5f061c2 100644 --- a/static/scss/style.scss +++ b/static/scss/style.scss @@ -53,15 +53,24 @@ // Utility classes @import "bootstrap-4.0.0-alpha.6/scss/utilities"; + +body { + min-height: 100vh; + display: flex; + flex-direction: column; +} + .container { width: 100%; max-width: 1200px; + flex: 1; } // Custom stuff @import '_fonts'; @import '_nav'; @import '_buttons'; +@import '_icons'; @@ -79,42 +88,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 1.5s ease-in-out infinite; - @include media-breakpoint-down(xs) { - width: 1.75rem !important; - height: 1.75rem !important; - left: .25rem; - top: -.5rem; - } -} - -.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 { diff --git a/templates/download.html b/templates/download.html index 98bf3b9..e336458 100644 --- a/templates/download.html +++ b/templates/download.html @@ -3,17 +3,15 @@ {% block title %}{{ _("Download IPFire") }}{% end block %} {% block container %} -