Commit 444fadf1 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Display the active tab with the same background color than the page

parent ebc123fe
...@@ -526,9 +526,13 @@ div[data-gadget-scope='panel'] ul li a { ...@@ -526,9 +526,13 @@ div[data-gadget-scope='panel'] ul li a {
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
} }
div[data-gadget-scope='panel'] ul li a:hover,
div[data-gadget-scope='panel'] ul li a:active,
div[data-gadget-scope='panel'] ul li a.active { div[data-gadget-scope='panel'] ul li a.active {
color: #1F1F1F;
background-color: #FFFFFF;
}
div[data-gadget-scope='panel'] ul li a:hover,
div[data-gadget-scope='panel'] ul li a:active {
color: #FFFFFF;
background-color: #2b2b2b; background-color: #2b2b2b;
} }
div[data-gadget-scope='panel'] ul li a::before { div[data-gadget-scope='panel'] ul li a::before {
...@@ -564,9 +568,13 @@ div[data-gadget-scope='panel'] dl dd a { ...@@ -564,9 +568,13 @@ div[data-gadget-scope='panel'] dl dd a {
white-space: nowrap; white-space: nowrap;
padding-left: 36pt; padding-left: 36pt;
} }
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 { div[data-gadget-scope='panel'] dl dd a.active {
color: #1F1F1F;
background-color: #FFFFFF;
}
div[data-gadget-scope='panel'] dl dd a:hover,
div[data-gadget-scope='panel'] dl dd a:active {
color: #FFFFFF;
background-color: #2b2b2b; background-color: #2b2b2b;
} }
div[data-gadget-scope='panel'] dl dd a::before { div[data-gadget-scope='panel'] dl dd a::before {
......
...@@ -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.9320.8079.11059</string> </value> <value> <string>965.10742.13164.48827</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>1517244311.54</float> <float>1517329600.93</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -655,7 +655,14 @@ div[data-gadget-scope='panel'] { ...@@ -655,7 +655,14 @@ div[data-gadget-scope='panel'] {
.linkpanel() { .linkpanel() {
color: @white; color: @white;
display: block; display: block;
&:hover, &:active, &.active { // Define .active before :hover to ensure it hover is displayed
// for the .active entry
&.active {
color: @colorforeground;
background-color: @colorbackground;
}
&:hover, &:active {
color: @white;
background-color: darken(@panelbackgroundcolor, 10%); background-color: darken(@panelbackgroundcolor, 10%);
} }
} }
......
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