Commit 7c51de57 authored by Boris Kocherov's avatar Boris Kocherov

erp5css.less update from upstream

parent 0c9057b2
...@@ -1380,6 +1380,11 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -1380,6 +1380,11 @@ div[data-gadget-scope='header'] .ui-header {
iframe { iframe {
height: 80vh; height: 80vh;
} }
div[data-gadget-url$="gadget_erp5_field_listbox.html"] {
iframe {
height: 30vh;
}
}
} }
/* /*
...@@ -1694,8 +1699,8 @@ div[data-gadget-scope='erp5_searchfield'] { ...@@ -1694,8 +1699,8 @@ div[data-gadget-scope='erp5_searchfield'] {
display: inline-block; display: inline-block;
width: 100%; width: 100%;
a { a, label {
// stretch first link to full width (positioned relative to <tr>) // stretch first link/label to full width (positioned relative to <tr>)
position: absolute; position: absolute;
width: 100%; width: 100%;
top: 0; top: 0;
...@@ -1705,24 +1710,24 @@ div[data-gadget-scope='erp5_searchfield'] { ...@@ -1705,24 +1710,24 @@ div[data-gadget-scope='erp5_searchfield'] {
text-overflow: ellipsis; text-overflow: ellipsis;
// Reduce the gap between the first and second visible lines // Reduce the gap between the first and second visible lines
padding-top: @margin-size; padding-top: @margin-size;
}
&:after { // In link mode, lines will display a icon on the right
// XXX copy/pasted // So that user knows he can goes to the document line
font-family: FontAwesome; a:after {
content: "\f0da"; // XXX copy/pasted
font-size: 1.25em; font-family: FontAwesome;
position: absolute; content: "\f0da";
right: @margin-size; font-size: 1.25em;
top: 50%; position: absolute;
margin-top: -0.75em; right: @margin-size;
top: 50%;
background-color: @colorbackground; margin-top: -0.75em;
border-radius: 0.5em;
width: 1em; border-radius: 0.5em;
text-align: center; width: 1em;
line-height: 1em; text-align: center;
} line-height: 1em;
} }
~ th, ~ td { ~ th, ~ td {
...@@ -1733,15 +1738,19 @@ div[data-gadget-scope='erp5_searchfield'] { ...@@ -1733,15 +1738,19 @@ div[data-gadget-scope='erp5_searchfield'] {
display: inline; display: inline;
word-break: break-word; word-break: break-word;
a { a, label {
pointer-events: none; pointer-events: none;
// Add contrast with the first column content // Add contrast with the first column content
color: @grey; color: @grey;
} }
&:not(:last-child) a:not(:empty):after { &:not(:last-child) {
// add tide a, label {
content: " ~ "; &:not(:empty):after {
// add tide
content: " ~ ";
}
}
} }
} }
} }
...@@ -1787,6 +1796,43 @@ div[data-gadget-scope='erp5_searchfield'] { ...@@ -1787,6 +1796,43 @@ div[data-gadget-scope='erp5_searchfield'] {
} }
} }
} }
tbody {
tr {
td {
// In select mode, hide the listbox line checkbox.
// Instead, display an icon before the first label
// (it is only to make the checkbox rendering nicer)
&:first-child {
input.hide_element[type="checkbox"] {
display: none;
& + label::before {
width: 1em;
display: inline-block;
font-weight: bold;
content: '☐';
color: @border-color;
margin-right: @margin-size;
}
&:checked + label {
// font-weight: bold;
&::before {
color: @colortextboxforeground;
content: '☒';
}
}
}
}
label {
// Show a pointer on top of label so that user knows he can click
// to change the checkbox
cursor: pointer;
}
}
}
}
} }
/********************************************** /**********************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment