From 76c8c86ada69f8bcd6bffaf358d9fd5ddc4dfa9a Mon Sep 17 00:00:00 2001 From: John O'Nolan Date: Mon, 28 Jul 2014 23:21:02 +0200 Subject: [PATCH] Clean up --- .../assets/sass/components/navigation.scss | 60 +++- core/client/assets/sass/patterns/global.scss | 1 + core/client/docs/_includes/nav/global.html | 268 ++---------------- core/client/docs/dist/css/ghost-ui.css | 68 +++-- core/client/docs/dist/css/ghost-ui.min.css | 2 +- 5 files changed, 131 insertions(+), 268 deletions(-) diff --git a/core/client/assets/sass/components/navigation.scss b/core/client/assets/sass/components/navigation.scss index 0d5d879209..67ed0604b7 100644 --- a/core/client/assets/sass/components/navigation.scss +++ b/core/client/assets/sass/components/navigation.scss @@ -3,7 +3,7 @@ // -------------------------------------------------- // The main wrapper, sets position and bg colour. -.globalnav { +.global-nav { height: 60px; @include position(fixed, 0px 0px auto 0px); z-index: 9999; @@ -11,45 +11,63 @@ box-shadow: 0 0 2px rgba(6,8,8,0.15) } +// Wrapper for each item .nav-item { position: relative; display: block; float: left; - color: #fff; + padding-left: 10px; + color: rgba(255,255,255,0.8); + font-size: 1.5rem; + line-height: 1; } +// Pill shaped background .nav-label { height: 34px; - line-height: 34px; margin-top: 13px; - padding: 0 10px; + padding: 8px 10px; border-radius: 4px; - @include transition(background 0.4s); + @include transition(background 0.5s); +} +.nav-item.active .nav-label { + background: darken($darkgrey, 5%); } - .nav-item:hover .nav-label { - background: darken($darkgrey, 2%); + background: darken($darkgrey, 10%); + @include transition(background 0.1s); } +// Ghost branding .ghost-logo { - @include icon($i-ghost, 16px) { line-height: 0; } + @include icon($i-ghost, 14px) { line-height: 0; } display: inline-block; float: left; height: 60px; width: 60px; - padding: 22px; + padding: 23px; color: lighten($grey, 20%); + font-size: 1.5rem; + @include transition(color 0.5s); } .ghost-logo:hover, .ghost-logo:focus { color: $lightgrey; + @include transition(color 0.1s); } -.user-item { - float: right; +// Right hand dropdown +.user-menu { + position: absolute; + top: 0; + right: 0; + padding: 0; + margin: 0; + // Profile picture .image { - display: inline-block; + float: left; + margin: 0 7px 0 0; img { display: block; @@ -58,4 +76,22 @@ border-radius: 100%; } } + + // Descriptive label for mobile menu + .name { + display: none; // Hide until mobile + float: left; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + line-height: 19px; + padding-bottom: 5px; + + small { + font-size: 12px; + color: #cacaca; + margin-top: 0; + line-height: 19px; + } + } } \ No newline at end of file diff --git a/core/client/assets/sass/patterns/global.scss b/core/client/assets/sass/patterns/global.scss index 2ed4b6fb02..751fa4f2e8 100644 --- a/core/client/assets/sass/patterns/global.scss +++ b/core/client/assets/sass/patterns/global.scss @@ -7,6 +7,7 @@ } html { + font: 62.5%/1.65 "Open Sans", sans-serif; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } diff --git a/core/client/docs/_includes/nav/global.html b/core/client/docs/_includes/nav/global.html index 6692dfaded..e56a2bfc8a 100644 --- a/core/client/docs/_includes/nav/global.html +++ b/core/client/docs/_includes/nav/global.html @@ -1,244 +1,36 @@ -