Skip to content

Commit

Permalink
mod_admin: change positioning of images in connection lists. Fixes #1570
Browse files Browse the repository at this point in the history
  • Loading branch information
mworrell committed Jan 24, 2017
1 parent 5382930 commit 1dd35cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 15 deletions.
12 changes: 5 additions & 7 deletions modules/mod_admin/lib/css/zotonic-admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -1274,6 +1274,7 @@ ul.tree-list li.menu-item > div {
position: relative;
margin: -1px 0 0 0;
padding: 0;
overflow: hidden;
background-image: -moz-linear-gradient(top, #ffffff 0%, #f5f5f5 100%);
background-image: -webkit-linear-gradient(top, #ffffff 0%, #f5f5f5 100%);
background-image: linear-gradient(to bottom, #ffffff 0%, #f5f5f5 100%);
Expand Down Expand Up @@ -1327,15 +1328,9 @@ ul.tree-list li.menu-item > div .label {
color: #999;
}
ul.tree-list li.menu-item img.admin-list-dashboard {
position: absolute;
width: 21.33333333px;
height: 16px;
left: 40px;
top: 50%;
margin-top: -8px;
}
ul.tree-list li.menu-item img + span {
padding-left: 31.33333333px;
margin-bottom: 2px;
}
ul.tree-list li.menu-item.has-submenu > div a.menu-toggle {
display: block;
Expand Down Expand Up @@ -1373,6 +1368,9 @@ ul.tree-list.categories li.menu-item span.category,
ul.tree-list.tree-list-menu li.menu-item span.category {
display: none;
}
ul.tree-list.connections-list {
min-height: 12px;
}
.widget {
margin-bottom: 15px;
border-bottom: none;
Expand Down
15 changes: 7 additions & 8 deletions modules/mod_admin/lib/less/tree-list.less
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ ul.tree-list {

line-height: @_line_height;
border: none;

// nested:
li.menu-item:last-child {
margin: 0;
Expand Down Expand Up @@ -48,6 +48,7 @@ ul.tree-list {
position: relative;
margin: -1px 0 0 0;
padding: 0;
overflow: hidden;
#3L > .gradient(#ffffff, @backgroundColorLightest);

&:hover {
Expand Down Expand Up @@ -106,15 +107,9 @@ ul.tree-list {
@_img_height: 24px / 3 * 2;

img.admin-list-dashboard {
position: absolute;
width: @_img_width;
height: @_img_height;
left: @_left_spacing;
top: 50%;
margin-top: -@_img_height / 2;
}
img + span {
padding-left: @_img_width + 10px;
margin-bottom: 2px;
}
&.has-submenu {
> div {
Expand Down Expand Up @@ -173,3 +168,7 @@ ul.tree-list {
}

}

ul.tree-list.connections-list {
min-height: 12px;
}

0 comments on commit 1dd35cb

Please sign in to comment.