diff --git a/core/client/app/components/gh-navitem.js b/core/client/app/components/gh-navitem.js index 70a72bab41..f5bdc1a4c8 100644 --- a/core/client/app/components/gh-navitem.js +++ b/core/client/app/components/gh-navitem.js @@ -1,6 +1,6 @@ import Ember from 'ember'; var NavItemComponent = Ember.Component.extend({ - classNames: 'navigation-item', + classNames: 'gh-blognav-item', attributeBindings: ['order:data-order'], order: Ember.computed.readOnly('navItem.order'), diff --git a/core/client/app/styles/layouts/editor.css b/core/client/app/styles/layouts/editor.css index 7b66645f50..a2a1399908 100644 --- a/core/client/app/styles/layouts/editor.css +++ b/core/client/app/styles/layouts/editor.css @@ -18,6 +18,7 @@ height: 60px; border: 0; background: transparent; + color: var(--darkgrey); text-indent: 20px; letter-spacing: -1px; font-size: 3.2rem; diff --git a/core/client/app/styles/layouts/settings.css b/core/client/app/styles/layouts/settings.css index adaddfddc7..10204b79cd 100644 --- a/core/client/app/styles/layouts/settings.css +++ b/core/client/app/styles/layouts/settings.css @@ -5,119 +5,103 @@ /* Navigation /* ---------------------------------------------------------- */ -.navigation-item { +.gh-blognav { + margin: 20px 0; +} + +.gh-blognav-item { display: flex; + align-items: center; + margin-bottom: 10px; + padding: 0 20px; } -@media (max-width: 600px) { - .navigation-item { - position: relative; - margin-bottom: 20px; - } -} - -@media (min-width: 601px) { - .navigation-item { - margin-bottom: 10px; - } -} - -.navigation-item:last-child { - padding-left: 17px; - /* simulate .navigation-item-drag-handle width + horizontal padding */ -} - -.navigation-item:last-child .navigation-item-drag-handle { - display: none; -} - -.navigation-item-drag-handle { - padding: 6px 17px 0 0; - width: 17px; +.gh-blognav-grab { + padding: 0 16px 0 0; + width: 16px; + color: #d1d1d1; + text-indent: -4px; + font-size: 16px; cursor: move; } -@media (max-width: 600px) { - .navigation-item-drag-handle:before { - position: absolute; - top: 50%; - left: 0; - z-index: 20; - margin-top: -9px; - } +.gh-blognav-url .fake-placeholder { + color: #c1c1c1; } -.navigation-inputs { +.gh-blognav-line { + display: flex; width: 100%; } -.navigation-item-url .fake-placeholder { - color: lightgrey; +.gh-blognav-label { + flex-grow: 1; + margin-right: 10px; } -@media (max-width: 600px) { - .navigation-item-label { - margin-bottom: 5px; - } - .navigation-item-label, - .navigation-item-url { - display: block; - width: 100%; - } +.gh-blognav-url { + flex-grow: 3; } -@media (min-width: 601px) { - .navigation-inputs { - display: flex; - } - .navigation-item-label { - flex-grow: 1; - margin-right: 10px; - } - .navigation-item-url { - flex-grow: 3; - } -} - -.navigation-item-action { - position: relative; - z-index: 10; - padding-left: 10px; - width: 40px; -} - -.navigation-item-action button { - position: absolute; - top: 50%; - margin-top: -2px; - width: 30px; - height: 30px; - transform: translateY(-50%); -} - -.navigation-item-action .icon-trash:before { - color: var(--midbrown); - font-size: 16px; +.gh-blognav-delete { + padding: 8px 0 8px 10px; + color: #c1c1c1; + font-size: 14px; transition: color 0.1s linear; } -.navigation-item-action .icon-trash:hover:before { +.gh-blognav-delete:hover, +.gh-blognav-delete:focus { color: var(--red); } -.navigation-item-action .icon-add:before { - padding: 3px; +.gh-blognav-add { + margin-right: -2px; + margin-left: 10px; + width: 16px; + height: 16px; background: var(--green); border-radius: 2px; color: #fff; - font-size: 12px; + text-align: center; + font-size: 10px; + line-height: 8px; transition: background 0.1s linear; } -.navigation-item-action .icon-add:hover:before { +.gh-blognav-add:hover, +.gh-blognav-add:focus { background: color(var(--green) lightness(-10%)); } +.gh-blognav-item:last-child { + padding-left: calc(16px + 20px); + /* icon-grab + nav-item padding) */ +} + +.gh-blognav-item:last-child .gh-blognav-grab { + display: none; +} + +/* Remove space between inputs on smaller screens */ +@media (max-width: 800px) { + .gh-blognav-label { + margin-right: -1px; + } + .gh-blognav-label input { + border-right-color: #eaeaea; + border-radius: 4px 0 0 4px; + } + .gh-blognav-url input { + border-left-color: #eaeaea; + border-radius: 0 4px 4px 0; + } + .gh-blognav-item input:focus { + position: relative; + z-index: 100; + } +} + /* Code Injection /* ---------------------------------------------------------- */ diff --git a/core/client/app/styles/patterns/forms.css b/core/client/app/styles/patterns/forms.css index ad38ca8bfa..5a95aaf32d 100644 --- a/core/client/app/styles/patterns/forms.css +++ b/core/client/app/styles/patterns/forms.css @@ -28,7 +28,7 @@ legend { margin: 2em 0; width: 100%; border-bottom: #e1e1e1 1px solid; - color: var(--brown); + color: #b1b1b1; font-size: 1.2em; line-height: 2.0em; } @@ -50,7 +50,7 @@ input { .form-group p { margin: 4px 0 0 0; - color: #b3b2a8; + color: #b1b1b1; font-size: 1.3rem; } @@ -107,9 +107,9 @@ select { display: block; padding: 8px 10px; width: 100%; - border: 1px solid #e0dfd7; + border: 1px solid #e1e1e1; border-radius: var(--border-radius); - color: var(--darkgrey); + color: #666; font-size: 1.4rem; font-weight: normal; user-select: text; @@ -128,7 +128,7 @@ select.error { .gh-select:focus, select:focus { outline: 0; - border-color: var(--brown); + border-color: #b1b1b1; } textarea { @@ -160,7 +160,7 @@ textarea { .for-radio label:hover input:not(:checked) + .input-toggle-component, .for-checkbox label:hover input:not(:checked) + .input-toggle-component { - border-color: var(--midbrown); + border-color: #e1e1e1; } .for-radio input, @@ -321,6 +321,6 @@ textarea { padding: 7px 10px 7px 8px; } .gh-select:focus { - border-color: var(--brown); + border-color: #b1b1b1; } } diff --git a/core/client/app/styles/patterns/icons.css b/core/client/app/styles/patterns/icons.css index 315716e2b8..76a55a47bf 100755 --- a/core/client/app/styles/patterns/icons.css +++ b/core/client/app/styles/patterns/icons.css @@ -247,3 +247,9 @@ .icon-check:before { content: "\e043"; } +.icon-grab:before { + content: "\e044"; +} +.icon-add2:before { + content: "\e045"; +} diff --git a/core/client/app/templates/components/gh-navitem.hbs b/core/client/app/templates/components/gh-navitem.hbs index 4ecdc17bf3..d43821db11 100644 --- a/core/client/app/templates/components/gh-navitem.hbs +++ b/core/client/app/templates/components/gh-navitem.hbs @@ -1,24 +1,24 @@ {{#unless navItem.last}} - + Reorder + {{/unless}} -
+