Commit 3266b44e authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Change contextual link color on hover

parent a1254a61
...@@ -580,8 +580,8 @@ div[data-gadget-scope='panel'] dl dd a.active { ...@@ -580,8 +580,8 @@ div[data-gadget-scope='panel'] dl dd a.active {
} }
div[data-gadget-scope='panel'] dl dd a:hover, div[data-gadget-scope='panel'] dl dd a:hover,
div[data-gadget-scope='panel'] dl dd a:active { div[data-gadget-scope='panel'] dl dd a:active {
color: #FFFFFF; color: #1F1F1F;
background-color: #2b2b2b; background-color: #FFFFFF;
} }
div[data-gadget-scope='panel'] dl dd a::before { div[data-gadget-scope='panel'] dl dd a::before {
width: 24pt; width: 24pt;
......
...@@ -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.13201.46575.21111</string> </value> <value> <string>965.13224.57873.37870</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>1517477074.88</float> <float>1517478641.81</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -32,6 +32,10 @@ ...@@ -32,6 +32,10 @@
@colorblocklinkbackground: #e0e0e0; @colorblocklinkbackground: #e0e0e0;
@panelbackgroundcolor: #444444; @panelbackgroundcolor: #444444;
@paneldarkerbackgroundcolor: darken(@panelbackgroundcolor, 10%);
@panelcontextuallinkcolor: @colorforeground;
@panelcontextuallinkcolorbackground: @colorbackground;
@listboxbordercolor: rgba(0, 0, 0, 0.14902); @listboxbordercolor: rgba(0, 0, 0, 0.14902);
...@@ -663,18 +667,18 @@ div[data-gadget-scope='panel'] { ...@@ -663,18 +667,18 @@ div[data-gadget-scope='panel'] {
padding-left: @double-margin-size + @quadruple-margin-size; padding-left: @double-margin-size + @quadruple-margin-size;
} }
.linkpanel() { .linkpanel(@linkpanelhovercolor: @white, @linkpanelhoverbackgroundcolor: @paneldarkerbackgroundcolor) {
color: @white; color: @white;
display: block; display: block;
// Define .active before :hover to ensure it hover is displayed // Define .active before :hover to ensure it hover is displayed
// for the .active entry // for the .active entry
&.active { &.active {
color: @colorforeground; color: @panelcontextuallinkcolor;
background-color: @colorbackground; background-color: @panelcontextuallinkcolorbackground;
} }
&:hover, &:active { &:hover, &:active {
color: @white; color: @linkpanelhovercolor;
background-color: darken(@panelbackgroundcolor, 10%); background-color: @linkpanelhoverbackgroundcolor;
} }
} }
...@@ -708,7 +712,7 @@ div[data-gadget-scope='panel'] { ...@@ -708,7 +712,7 @@ div[data-gadget-scope='panel'] {
dd { dd {
a { a {
.linkpanel(); .linkpanel(@panelcontextuallinkcolor, @panelcontextuallinkcolorbackground);
.alignwithouticon(); .alignwithouticon();
} }
} }
...@@ -1457,7 +1461,7 @@ div[data-gadget-scope='header'] .ui-header { ...@@ -1457,7 +1461,7 @@ div[data-gadget-scope='header'] .ui-header {
// No transition, as it doesn't feel right // No transition, as it doesn't feel right
// transition: background-color @transition-timing; // transition: background-color @transition-timing;
&:hover, &:active { &:hover, &:active {
background-color: darken(@panelbackgroundcolor, 10%); background-color: @paneldarkerbackgroundcolor;
} }
} }
......
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