Commit eaf307c5 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Improve relation field warning rendering

parent 5cacbd7c
...@@ -823,6 +823,10 @@ div[data-gadget-scope='header'] .ui-header > .ui-btn-left a { ...@@ -823,6 +823,10 @@ div[data-gadget-scope='header'] .ui-header > .ui-btn-left a {
min-width: 5em; min-width: 5em;
} }
} }
div[data-gadget-scope='header'] .ui-header > .ui-btn-right button.ui-icon-warning,
div[data-gadget-scope='header'] .ui-header > .ui-btn-right a.ui-icon-warning {
background-color: #FF6600;
}
div[data-gadget-scope='header'] .ui-header h1 { div[data-gadget-scope='header'] .ui-header h1 {
text-align: left; text-align: left;
line-height: 30pt; line-height: 30pt;
...@@ -1274,6 +1278,10 @@ div[data-gadget-scope='header'] .ui-header ul { ...@@ -1274,6 +1278,10 @@ div[data-gadget-scope='header'] .ui-header ul {
.relation-input ul li:active { .relation-input ul li:active {
background-color: #1F1F1F; background-color: #1F1F1F;
} }
.relation-input .ui-icon-warning {
color: #FF6600;
opacity: 1;
}
/********************************************** /**********************************************
* Gadget: datetime field * Gadget: datetime field
**********************************************/ **********************************************/
...@@ -1655,6 +1663,10 @@ div[data-gadget-scope='notification'] button.error { ...@@ -1655,6 +1663,10 @@ div[data-gadget-scope='notification'] button.error {
background-color: #085078; background-color: #085078;
width: 8em; width: 8em;
} }
.desktop-panel-hidden div[data-gadget-scope="header"] .ui-header .ui-controlgroup-controls button.ui-icon-warning,
.desktop-panel-hidden div[data-gadget-scope="header"] .ui-header .ui-controlgroup-controls a.ui-icon-warning {
background-color: #FF6600;
}
.desktop-panel-hidden div[data-gadget-scope="header"] .ui-header .ui-subheader { .desktop-panel-hidden div[data-gadget-scope="header"] .ui-header .ui-subheader {
flex: 1 100%; flex: 1 100%;
text-align: center; text-align: center;
...@@ -1728,12 +1740,6 @@ div[data-gadget-scope='maximize'] button:active { ...@@ -1728,12 +1740,6 @@ div[data-gadget-scope='maximize'] button:active {
display: inline-block; display: inline-block;
content: ""; content: "";
} }
.ui-icon-warning {
background-color: #FF6600 !important;
}
.ui-icon-warning::before {
content: "\f071";
}
.ui-icon-spinner { .ui-icon-spinner {
opacity: 1; opacity: 1;
} }
...@@ -2073,6 +2079,9 @@ div[data-gadget-scope='maximize'] button:active { ...@@ -2073,6 +2079,9 @@ div[data-gadget-scope='maximize'] button:active {
.ui-icon-eye-slash::before { .ui-icon-eye-slash::before {
content: "\f070"; content: "\f070";
} }
.ui-icon-warning::before {
content: "\f071";
}
.ui-icon-low-vision::before { .ui-icon-low-vision::before {
content: "\f2a8"; content: "\f2a8";
} }
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>965.42456.41629.30583</string> </value> <value> <string>966.58726.49878.9454</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -260,7 +260,7 @@ ...@@ -260,7 +260,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1519232300.75</float> <float>1523881593.56</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -997,6 +997,9 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -997,6 +997,9 @@ div[data-gadget-scope='header'] .ui-header {
@media @desktop { @media @desktop {
.renderDesktopSubLink(); .renderDesktopSubLink();
} }
&.ui-icon-warning {
background-color: @coloraccent;
}
} }
} }
...@@ -1489,6 +1492,11 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -1489,6 +1492,11 @@ div[data-gadget-scope='header'] .ui-header {
} }
} }
.ui-icon-warning {
color: @coloraccent;
// Link is disabled in this case
opacity: 1;
}
} }
/********************************************** /**********************************************
...@@ -1896,6 +1904,9 @@ div[data-gadget-scope='notification'] { ...@@ -1896,6 +1904,9 @@ div[data-gadget-scope='notification'] {
.ui-controlgroup-controls { .ui-controlgroup-controls {
button, a { button, a {
.renderTabletHeaderButton(); .renderTabletHeaderButton();
&.ui-icon-warning {
background-color: @coloraccent;
}
} }
} }
...@@ -1953,13 +1964,6 @@ div[data-gadget-scope='maximize'] button { ...@@ -1953,13 +1964,6 @@ div[data-gadget-scope='maximize'] button {
} }
} }
.ui-icon-warning {
background-color: @coloraccent !important;
&::before {
content: "\f071";
}
}
.ui-icon-spinner { .ui-icon-spinner {
// Don't fade spinner // Don't fade spinner
opacity: 1; opacity: 1;
...@@ -2302,6 +2306,9 @@ div[data-gadget-scope='maximize'] button { ...@@ -2302,6 +2306,9 @@ div[data-gadget-scope='maximize'] button {
.ui-icon-eye-slash::before { .ui-icon-eye-slash::before {
content: "\f070"; content: "\f070";
} }
.ui-icon-warning::before {
content: "\f071";
}
.ui-icon-low-vision::before { .ui-icon-low-vision::before {
content: "\f2a8"; content: "\f2a8";
} }
......
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