From bd520cbfa7b6749131a88441f7db05ac905383df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Thu, 14 Sep 2017 10:03:27 +0200 Subject: [PATCH] Added bullet class and fixed comments MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- core/css/apps.scss | 52 ++++++++++++++++++++++++++++------------------ 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/core/css/apps.scss b/core/css/apps.scss index 0e7dccf7b8..dc66f155c7 100644 --- a/core/css/apps.scss +++ b/core/css/apps.scss @@ -146,11 +146,15 @@ kbd { } } /* Submenu fix for icon */ - > a { - &[class*='icon-'], - &[style*='background-image:'] { - margin-left: -32px; /* 44px padding - 12px padding */ - } + > .app-navigation-entry-bullet + a, + > a[class*='icon-'], + > a[style*='background-image:'], + .app-navigation-entry-bullet { + margin-left: -32px; /* 44px padding - 12px padding */ + } + /* Submenu fix for bullet */ + > .app-navigation-entry-bullet { + left: -32px;/* 44px padding - 12px padding */ } } } @@ -161,6 +165,7 @@ kbd { position: relative; width: 100%; box-sizing: border-box; + /* Main entry link */ > a { background-size: 16px 16px; background-position: 14px center; @@ -177,6 +182,7 @@ kbd { color: $color-main-text; opacity: .57; flex: 1 1 0; + z-index: 100; /* above the bullet */ /* TODO: forbid using img as icon in menu? */ &:first-child img { margin-bottom: -3px; @@ -185,12 +191,6 @@ kbd { margin-left: 2px; } - /* add padding if an icon is set with a class or an inline style */ - &[class*='icon-'], - &[style*='background-image:'] { - padding-left: 44px; - } - /* counter can also be inside the link */ > .app-navigation-entry-utils { display: inline-block; @@ -200,6 +200,24 @@ kbd { } } } + /* Bullet icon */ + > .app-navigation-entry-bullet { + position: absolute; + display: block; + margin: 16px; + width: 12px; + height: 12px; + border: none; + border-radius: 50%; + cursor: pointer; + } + + /* padding in case of icon or bullet */ + > .app-navigation-entry-bullet + a, + > a[class*='icon-'], + > a[style*='background-image:'] { + padding-left: 44px; + } /* popover fix the flex positionning of the li parent */ > .app-navigation-entry-menu { @@ -207,15 +225,9 @@ kbd { } /* show edit/undo field if editing/deleted */ - &.editing { - .app-navigation-entry-edit { - transform: translateX(0); - } - } - &.deleted { - .app-navigation-entry-deleted { - transform: translateX(0); - } + &.editing .app-navigation-entry-edit, + &.deleted .app-navigation-entry-deleted { + transform: translateX(0); } } }