Browse Source

[fix] [style] listview

version-14
Rushabh Mehta 9 years ago
parent
commit
ad10a4bb99
3 changed files with 53 additions and 11 deletions
  1. +3
    -10
      frappe/public/css/list.css
  2. +1
    -1
      frappe/public/js/frappe/ui/listing.js
  3. +49
    -0
      frappe/public/less/list.less

+ 3
- 10
frappe/public/css/list.css View File

@@ -189,20 +189,16 @@
width: 37px; width: 37px;
text-align: left; text-align: left;
} }

.image-view { .image-view {
float: left; float: left;
} }

.image-view-subject { .image-view-subject {
padding: inherit; padding: inherit;
} }

.image-view-col { .image-view-col {
padding-bottom: 5px; padding-bottom: 5px;
padding-top: 5px; padding-top: 5px;
} }

table.field-info { table.field-info {
opacity: 0; opacity: 0;
bottom: -20px; bottom: -20px;
@@ -212,28 +208,25 @@ table.field-info {
position: absolute; position: absolute;
padding-bottom: 0px !important; padding-bottom: 0px !important;
} }

.zoom-view { .zoom-view {
top: 10px !important; top: 10px !important;
right: 10px !important; right: 10px !important;
width: 36px; width: 36px;
height: 36px; height: 36px;
opacity: 0; opacity: 0;
font-size: 20px;
font-size: 16px;
color: black; color: black;
position: absolute; position: absolute;
padding: 0px !important; padding: 0px !important;
border-radius: 20px; border-radius: 20px;
border: 0px;
} }

.image-field { .image-field {
position: relative; position: relative;
} }

.image-field:hover .field-info { .image-field:hover .field-info {
opacity: 0.9; opacity: 0.9;
} }

.image-field:hover .zoom-view { .image-field:hover .zoom-view {
opacity: 1; opacity: 1;
}
}

+ 1
- 1
frappe/public/js/frappe/ui/listing.js View File

@@ -348,7 +348,7 @@ frappe.ui.Listing = Class.extend({
event.preventDefault(); event.preventDefault();
opts = { opts = {
doctype: me.doctype, doctype: me.doctype,
docname: $(event.target).attr('data-name'),
docname: $(this).parent().attr('data-name'),
container: me.$w container: me.$w
}; };
new frappe.views.ImageView(opts); new frappe.views.ImageView(opts);


+ 49
- 0
frappe/public/less/list.less View File

@@ -244,3 +244,52 @@
width: 37px; width: 37px;
text-align: left; text-align: left;
} }

.image-view {
float: left;
}

.image-view-subject {
padding: inherit;
}

.image-view-col {
padding-bottom: 5px;
padding-top: 5px;
}

table.field-info {
opacity: 0;
bottom: -20px;
font-size: 8pt;
color: white;
background-color: #000000;
position: absolute;
padding-bottom: 0px !important;
}

.zoom-view {
top: 10px !important;
right: 10px !important;
width: 36px;
height: 36px;
opacity: 0;
font-size: 16px;
color: black;
position: absolute;
padding: 0px !important;
border-radius: 20px;
border: 0px;
}

.image-field {
position: relative;
}

.image-field:hover .field-info {
opacity: 0.9;
}

.image-field:hover .zoom-view {
opacity: 1;
}

Loading…
Cancel
Save