From 95f69d9febc2b38e01b2f447bed6b3311e043a04 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Sun, 5 Jun 2016 23:44:58 -0700 Subject: [PATCH] Fixed edit view loader --- src/components/Layout/Layout.js | 2 +- src/components/Layout/Layout.scss | 22 +++++++++++++--------- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/src/components/Layout/Layout.js b/src/components/Layout/Layout.js index f8715d63b..0b4cae209 100644 --- a/src/components/Layout/Layout.js +++ b/src/components/Layout/Layout.js @@ -51,7 +51,7 @@ class Layout extends React.Component { -
+
{ this.props.children }
diff --git a/src/components/Layout/Layout.scss b/src/components/Layout/Layout.scss index 4e53425a3..355fd275b 100644 --- a/src/components/Layout/Layout.scss +++ b/src/components/Layout/Layout.scss @@ -8,15 +8,6 @@ width: 100%; } -.fixed { - position: fixed; - top: 0; - left: 0; - right: 0; - z-index: 900; - background: #fff; -} - .header { display: flex; justify-content: space-between; @@ -28,6 +19,15 @@ font-size: 14px; line-height: 1; + + &.fixed { + position: fixed; + top: 0; + left: 0; + right: 0; + z-index: 900; + background: #fff; + } } .teamName a { @@ -41,5 +41,9 @@ .content { display: flex; justify-content: center; + + &.fixed { + padding-top: $headerHeight; + } }