diff --git a/core/css/header.scss b/core/css/header.scss index 886c2489a6..a4e568244a 100644 --- a/core/css/header.scss +++ b/core/css/header.scss @@ -38,6 +38,7 @@ #body-user #header, #body-settings #header, #body-public #header { + display: inline-flex; position: fixed; top: 0; left: 0; @@ -47,13 +48,11 @@ line-height: 2.5em; background-color: #0082c9; box-sizing: border-box; + justify-content: space-between; } /* LOGO and APP NAME -------------------------------------------------------- */ #nextcloud { - position: absolute; - top: 0; - left: 0; padding: 5px; padding-bottom: 0; height: 45px; @@ -92,8 +91,6 @@ } .header-appname-container { display: inline-block; - position: absolute; - left: 70px; height: 27px; padding-top: 18px; padding-right: 10px; @@ -108,6 +105,19 @@ padding: 0; vertical-align: middle; } + + #header-left #header-right { + display: flex; + } + + div.header-left { + flex: 0 0 50%; + } + + #header-right { + display: flex; + justify-content: flex-end; + } } /* hover effect for app switcher label */ @@ -306,7 +316,7 @@ } #settings { - float: right; + display: inline-block; color: #ddd; cursor: pointer; .icon-loading-small-dark { @@ -315,6 +325,7 @@ margin-right: 6px; background-size: 16px 16px; } + flex: 0 0 auto; } /* User menu on the right */ diff --git a/core/css/styles.scss b/core/css/styles.scss index 27ce681391..e7aeb06314 100644 --- a/core/css/styles.scss +++ b/core/css/styles.scss @@ -169,7 +169,6 @@ body { border: 0; border-radius: 3px; margin-top: 9px; - float: right; width: 0; cursor: pointer; -webkit-transition: all 100ms; @@ -179,7 +178,6 @@ body { &:focus, &:active, &:valid { color: #fff; width: 155px; - max-width: 50%; cursor: text; background-color: #0082c9; border: 1px solid rgba(255, 255, 255, 0.5); diff --git a/core/templates/layout.user.php b/core/templates/layout.user.php index c53e016c1c..05f71e4b68 100644 --- a/core/templates/layout.user.php +++ b/core/templates/layout.user.php @@ -42,67 +42,70 @@