diff --git a/app/assets/stylesheets/fonts/_openproject_icon_font.sass b/app/assets/stylesheets/fonts/_openproject_icon_font.sass index 5fc83ad739..3aadddec12 100644 --- a/app/assets/stylesheets/fonts/_openproject_icon_font.sass +++ b/app/assets/stylesheets/fonts/_openproject_icon_font.sass @@ -67,12 +67,16 @@ font-size: 12px @mixin icon-dropdown-rules - padding: 0 0px 0 3px + padding: 0 0 0 3px font-size: 13px @mixin icon-button-rules - padding: 0 5px 0 0px + padding: 0 5px 0 0 font-size: 13px + +@mixin icon-dropdown-menu-rules + padding: 0 8px 0 0 + font-size: 14px @mixin icon-context-rules padding: 0 4px 0 0 @@ -124,6 +128,11 @@ content: attr(data-icon-dropdown) @include icon-dropdown-rules +[data-icon-dropdown-menu]:before + @include icon-common + content: attr(data-icon-dropdown-menu) + @include icon-dropdown-menu-rules + [data-icon-button]:before @include icon-common content: attr(data-icon-button) @@ -133,7 +142,7 @@ @include icon-common content: attr(data-icon-table) @include icon-table-rules - + [data-icon-action-menu]:before content: attr(data-icon-action-menu) @include icon-action-menu-rules @@ -173,6 +182,10 @@ .icon-dropdown:before @include icon-dropdown-rules +// used for icons dropdown-menus +.icon-dropdown-menu:before + @include icon-dropdown-menu-rules + // used for icons in buttons .icon-buttons:before @include icon-button-rules diff --git a/app/assets/stylesheets/layout/_drop_down.sass b/app/assets/stylesheets/layout/_drop_down.sass index 35595d4903..31f07da0d9 100644 --- a/app/assets/stylesheets/layout/_drop_down.sass +++ b/app/assets/stylesheets/layout/_drop_down.sass @@ -32,6 +32,10 @@ // https://github.com/plapier/jquery-dropdown // (dual MIT/GPL-Licensed) + +#settingsDropdown + margin: 10px 0 0 0 + .dropdown position: absolute z-index: 9999999 @@ -45,7 +49,7 @@ background: #FFF border: solid 1px #DDD border: solid 1px rgba(0, 0, 0, .2) - border-radius: 6px + border-radius: 0px box-shadow: 0 5px 10px rgba(0, 0, 0, .2) overflow: visible padding: 4px 0 @@ -103,21 +107,28 @@ color: #555 text-decoration: none line-height: 18px - padding: 3px 15px + padding: 3px 32px white-space: nowrap - + .dropdown .dropdown-menu LI > A:hover, .dropdown .dropdown-menu LABEL:hover - background-color: #08C - color: #FFF + background-color: #F0F0F0 cursor: pointer +.dropdown LI > A.dropdown-menu-hasicons + display: block + color: #555 + text-decoration: none + line-height: 18px + padding: 3px 10px + white-space: nowrap + .dropdown .dropdown-menu .dropdown-divider font-size: 1px border-top: solid 1px #E5E5E5 padding: 0 - margin: 5px 0 + margin: 4px 0 /* Icon Examples - icons courtesy of http://p.yusukekamiyamane.com/ */ .dropdown.has-icons LI > A diff --git a/app/views/work_packages/index.html.erb b/app/views/work_packages/index.html.erb index 7e859dff1a..896850fcd1 100644 --- a/app/views/work_packages/index.html.erb +++ b/app/views/work_packages/index.html.erb @@ -58,15 +58,15 @@ end