From 15b2160babc5c35ede960b7d0e133acbec8c6c51 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 2 Oct 2015 15:51:15 +0200 Subject: improve the web build system, introduce gulp and browserify --- .../sonar-web/src/main/less/components/page.less | 39 +++++++++------------- 1 file changed, 15 insertions(+), 24 deletions(-) (limited to 'server/sonar-web/src/main/less') diff --git a/server/sonar-web/src/main/less/components/page.less b/server/sonar-web/src/main/less/components/page.less index fd6f2f7f756..0e69b19f819 100644 --- a/server/sonar-web/src/main/less/components/page.less +++ b/server/sonar-web/src/main/less/components/page.less @@ -2,6 +2,11 @@ @import (reference) "../mixins"; @import (reference) "../init/links"; +body { + min-height: 100vh; + display: flex; + flex-direction: column; +} .page { .clearfix; @@ -14,8 +19,14 @@ } .page-wrapper { - min-height: ~"calc(100vh - @{pageFooterHeight})"; - .box-sizing(border-box); + box-sizing: border-box; + flex: 1; +} + +.page-wrapper-simple { + display: flex; + justify-content: center; + align-items: center; } .page-wrapper-global { @@ -27,12 +38,10 @@ } .page-simple { - max-width: 400px; - margin: 10vh auto; + width: 400px; padding: 40px; border: 1px solid @barBorderColor; background-color: #fff; - text-align: left; } .page-header { @@ -76,22 +85,4 @@ a { .link-base-color; } -} - -@supports (display: flex) { - body { - min-height: 100vh; - display: flex; - flex-flow: column nowrap; - justify-content: space-between; - } - - .page-wrapper { - flex: 1; - min-height: 0 !important; - } - - .page-simple { - margin-bottom: 0; - } -} +} \ No newline at end of file -- cgit v1.2.3