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,8 +1710,11 @@ div[data-gadget-scope='erp5_searchfield'] { ...@@ -1705,8 +1710,11 @@ 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
// So that user knows he can goes to the document line
a:after {
// XXX copy/pasted // XXX copy/pasted
font-family: FontAwesome; font-family: FontAwesome;
content: "\f0da"; content: "\f0da";
...@@ -1716,15 +1724,12 @@ div[data-gadget-scope='erp5_searchfield'] { ...@@ -1716,15 +1724,12 @@ div[data-gadget-scope='erp5_searchfield'] {
top: 50%; top: 50%;
margin-top: -0.75em; margin-top: -0.75em;
background-color: @colorbackground;
border-radius: 0.5em; border-radius: 0.5em;
width: 1em; width: 1em;
text-align: center; text-align: center;
line-height: 1em; line-height: 1em;
} }
}
~ th, ~ td { ~ th, ~ td {
// set line height on cells after first row // set line height on cells after first row
// First column must be more visible // First column must be more visible
...@@ -1733,13 +1738,15 @@ div[data-gadget-scope='erp5_searchfield'] { ...@@ -1733,13 +1738,15 @@ 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) {
a, label {
&:not(:empty):after {
// add tide // add tide
content: " ~ "; content: " ~ ";
} }
...@@ -1750,6 +1757,8 @@ div[data-gadget-scope='erp5_searchfield'] { ...@@ -1750,6 +1757,8 @@ div[data-gadget-scope='erp5_searchfield'] {
} }
} }
} }
}
}
nav { nav {
display: flex; display: flex;
...@@ -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