snappymail/dev/Styles/Contacts.less
2013-12-23 04:06:48 +04:00

383 lines
5.9 KiB
Plaintext

@contacts-popup-left-width: 270px;
.b-contacts-content {
.control-group {
.control-label.fix-width {
width: 90px;
}
.controls.fix-width {
margin-left: 110px;
}
}
&.modal {
position: absolute;
right: 0;
top: 0;
bottom: 0;
left: 0;
width: 900px;
min-height: 300px;
max-height: 700px;
margin: auto;
.modal-body {
overflow: auto;
height: 100%;
background-color: #f5f5f5;
padding: 0;
}
.b-header-toolbar {
height: 40px;
background-color: @rlMainDarkColor;
color: #fff;
background-color: #333;
background-color: rgba(0,0,0,0.8) !important;
.close {
color: #fff;
.opacity(100);
}
.btn {
margin-top: 4px;
}
.button-new-message {
margin-left: 8px;
}
.button-delete {
margin-left: 8px;
}
}
.b-list-toopbar {
padding: 0;
height: 45px;
text-align: center;
width: @contacts-popup-left-width;
.box-shadow(inset 0 -1px 0 #ccc);
.e-search {
margin-top: 7px;
width: @contacts-popup-left-width - 25;
}
}
.b-list-footer-toopbar {
position: absolute;
left: 0;
bottom: 0;
height: 105px;
width: @contacts-popup-left-width;
background-color: #eee;
.box-shadow(inset 0 1px 0 #ccc);
.footer-pager {
padding: 8px 10px 0 0;
}
}
.b-list-content {
position: absolute;
top: 45px;
bottom: 105px;
left: 0;
width: @contacts-popup-left-width;
overflow: hidden;
overflow-y: auto;
.content {
-webkit-overflow-scrolling: touch;
}
.listClear {
color: #333;
text-align: center;
padding: 10px;
font-size: 14px;
line-height: 13px;
background-color: #fff;
.box-shadow(inset 0 -1px 0 #ccc);
}
.listEmptyList, .listEmptyListLoading, .listEmptySearchList {
color: #999;
text-align: center;
padding: 60px 10px;
font-size: 24px;
line-height: 30px;
}
&.hideContactListCheckbox {
.checkedParent, .checkboxCkeckAll {
display: none !important;
}
.sidebarParent {
margin-right: 10px !important;
}
}
.e-contact-foreach {
border-bottom: 1px solid #ddd;
}
.e-contact-item {
position: relative;
height: 45px;
max-height: 45px;
line-height: 45px;
overflow: hidden;
cursor: pointer;
margin: 0px;
border: 0px solid transparent;
z-index: 100;
.delimiter {
position: relative;
display: block;
height: 1px;
background-color: #999;
.opacity(20);
}
.wrapper {
padding: 0;
}
.sidebarParent {
display: inline-block;
width: 6px;
background-color: #eee;
float: left;
height: 100%;
}
&.deleted {
max-height: 0px;
border-color: transparent !important;
}
.checkedParent {
display: inline-block;
float: left;
padding: 0 8px 0 6px;
}
.shareParent {
display: none;
float: right;
position: relative;
margin: 2px 8px 0 5px;
}
.nameParent {
display: block;
overflow: hidden;
text-overflow: ellipsis;
color: #333;
font-size: 16px;
}
.nameParent, .emailParent {
white-space: nowrap;
}
.displayName, .displayEmail {
overflow: hidden;
text-overflow: ellipsis;
}
.displayImg {
display: inline-block;
float: right;
position: relative;
margin: 0 5px;
}
&.shared .shareParent {
display: inline-block;
}
&.checked {
z-index: 101;
.sidebarParent {
background-color: #69A8F5;
}
}
&.selected {
background-color: #fff;
z-index: 102;
.sidebarParent {
background-color: #398CF2;
}
}
}
}
.b-view-content {
position: absolute;
top: 0;
bottom: 60px;
left: @contacts-popup-left-width;
right: 0;
overflow: hidden;
overflow-y: auto;
background-color: #fff;
border-left: 1px solid #ddd;
.content {
-webkit-overflow-scrolling: touch;
}
.contactValueStatic {
height: 20px;
line-height: 20px;
font-size: 18px;
display: inline-block;
padding: 5px 7px;
color: #555;
display: none;
}
&.read-only {
.contactValueStatic {
display: inline-block;
}
.contactValueInput {
display: none;
}
}
.b-contact-view-desc {
text-align: center;
font-size: 24px;
line-height: 30px;
padding-top: 120px;
color: #999;
}
.top-part {
padding-top: 20px;
}
.property-line {
margin-bottom: 5px;
}
.top-row {
padding: 10px 0;
height: 30px;
}
.add-link {
margin-left: 2px;
padding: 5px;
font-size: 12px;
color: #aaa;
}
.contactValueStatic {
font-size: 18px;
display: none;
}
.contactValueInput {
.box-shadow(none);
border-color: #fff;
font-size: 18px;
width: 250px;
&:hover {
.box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075));
border-color: #ccc;
}
&:focus {
.box-shadow(inset 0 1px 1px rgba(0, 0, 0, 0.075));
border-color: #999;
}
}
.hasError {
.contactValueInput {
color: #ee5f5b;
border-color: #ee5f5b;
}
}
.e-save-trigger {
position: absolute;
top: 25px;
left: 10px;
}
.e-read-only-sign {
display: none;
position: absolute;
top: 20px;
right: 40px;
}
.e-share-sign {
position: absolute;
top: 60px;
right: 20px;
cursor: pointer;
}
.button-save-contact {
position: absolute;
top: 20px;
right: 20px;
&.dirty {
color: #51a351;
}
}
&.read-only {
.e-read-only-sign {
display: inline-block;
}
.e-share-sign {
display: none;
}
.button-save-contact {
display: none;
}
}
}
}
.e-contact-item {
position: relative;
height: 55px;
max-height: 60px;
line-height: 22px;
overflow: hidden;
cursor: pointer;
margin: 0px;
border: 0px solid transparent;
z-index: 100;
}
}