Simplify CSS boder/background styles for listing elements with focus indicator

pull/195/head
Thomas Bruederli 10 years ago
parent 4984078a56
commit e75d5e813a

@ -139,32 +139,20 @@
}
#contacts-table .contact td.name {
background-position: 6px -1603px;
}
#contacts-table.focus .contact.focused td.name {
background-position: 4px -1603px;
}
#contacts-table .contact.selected td.name {
background-position: 6px -1627px;
font-weight: bold;
}
#contacts-table.focus .contact.selected.focused td.name {
background-position: 4px -1627px;
font-weight: bold;
}
#contacts-table .group td.name {
background-position: 6px -1555px;
}
#contacts-table.focus .group.focused td.name {
background-position: 4px -1555px;
}
#contacts-table .group.selected td.name {
background-position: 6px -1579px;
background-position: 4px -1579px;
font-weight: bold;
}

@ -1166,6 +1166,7 @@ a.iconlink.upload {
}
.listbox .listitem a,
.listbox .listitem span,
.listbox .tablink a,
.listing tbody td,
.listing li a {
@ -1200,33 +1201,24 @@ a.iconlink.upload {
/* This padding-left minus the focused padding left should be half of the focused border-left */
.listing thead tr td:first-child,
.listing tbody tr td:first-child {
border-left: 0;
border-left: 2px solid transparent;
padding-left: 6px;
}
.listing.iconized thead tr td:first-child,
.listing.iconized tbody tr td:first-child {
padding-left: 36px;
padding-left: 34px;
}
/* because of border-collapse, we make the left border twice what we want it to be - half will be hidden to the left */
.listing.focus tbody tr.focused > td:first-child {
border-left: 2px solid #b0ccd7;
padding-left: 4px;
}
.listing.iconized.focus tbody tr.focused > td:first-child {
padding-left: 34px;
}
.listing.focus tbody tr.selected.focused > td:first-child {
border-left-color: #9ec2d0;
}
.listing.inconized.focus tr.focused td:first-child {
padding-left: 34px;
}
.listbox .listitem.selected,
.listbox .tablink.selected,
.listbox .listitem.selected > a,
@ -1297,7 +1289,10 @@ ul.treelist li a {
text-overflow: ellipsis;
}
ul.treelist li a:focus {
ul.treelist li a:focus,
ul.listing .listitem a:focus,
ul.listing .listitem span:focus,
ul.listing.focus .listitem.focused span {
color: #fff !important;
background-color: rgba(73,180,210,0.6);
text-shadow: 0px 1px 1px #666;
@ -1568,14 +1563,13 @@ table.records-table {
/* This padding-left minus the focused padding left should be half of the focused border-left */
.records-table thead tr td:first-child,
.records-table tbody tr td:first-child {
border-left: 0;
padding-left: 6px;
border-left: 2px solid transparent;
padding-left: 4px;
}
/* because of border-collapse, we make the left border twice what we want it to be - half will be hidden to the left */
.records-table.focus tbody tr.focused > td:first-child {
border-left: 2px solid #b0ccd7;
padding-left: 4px;
}
.records-table.focus tbody tr.selected.focused > td:first-child {
@ -2770,6 +2764,10 @@ ul.toolbarmenu li span.copy {
background: none;
}
.boxcontent.tabbed.ui-tabs {
padding: 10px;
}
.ui-tabs .tabsbar.ui-tabs-nav {
margin-bottom: 10px;
}

Loading…
Cancel
Save