Przeglądaj źródła

[fix] [style] listview

version-14
Rushabh Mehta 9 lat temu
rodzic
commit
ad10a4bb99
3 zmienionych plików z 53 dodań i 11 usunięć
  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 Wyświetl plik

@@ -189,20 +189,16 @@
width: 37px;
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;
@@ -212,28 +208,25 @@ table.field-info {
position: absolute;
padding-bottom: 0px !important;
}

.zoom-view {
top: 10px !important;
right: 10px !important;
width: 36px;
height: 36px;
opacity: 0;
font-size: 20px;
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;
}
}

+ 1
- 1
frappe/public/js/frappe/ui/listing.js Wyświetl plik

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


+ 49
- 0
frappe/public/less/list.less Wyświetl plik

@@ -244,3 +244,52 @@
width: 37px;
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;
}

Ładowanie…
Anuluj
Zapisz