Commit 20a0fe57 authored by Romain Courteaud's avatar Romain Courteaud

[erp5_web_renderjs_ui] Style readonly select

parent 2df6275d
...@@ -346,8 +346,15 @@ select { ...@@ -346,8 +346,15 @@ select {
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2); box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
outline-offset: 0; outline-offset: 0;
} }
select:hover, select[readonly="readonly"] {
select:active { border: none;
background: none;
box-shadow: none;
padding: 0;
line-height: 1em;
}
select:not([readonly="readonly"]):hover,
select:not([readonly="readonly"]):active {
background-color: #e0e0e0; background-color: #e0e0e0;
} }
select:-moz-focusring { select:-moz-focusring {
......
...@@ -236,7 +236,7 @@ ...@@ -236,7 +236,7 @@
</item> </item>
<item> <item>
<key> <string>serial</string> </key> <key> <string>serial</string> </key>
<value> <string>952.52941.50188.56166</string> </value> <value> <string>952.52952.2866.39065</string> </value>
</item> </item>
<item> <item>
<key> <string>state</string> </key> <key> <string>state</string> </key>
...@@ -254,7 +254,7 @@ ...@@ -254,7 +254,7 @@
</tuple> </tuple>
<state> <state>
<tuple> <tuple>
<float>1469520994.41</float> <float>1469522486.34</float>
<string>UTC</string> <string>UTC</string>
</tuple> </tuple>
</state> </state>
......
...@@ -347,6 +347,8 @@ input:not([type=submit]):not([type=file]):not([type=checkbox]):not([type=radio]) ...@@ -347,6 +347,8 @@ input:not([type=submit]):not([type=file]):not([type=checkbox]):not([type=radio])
outline-offset: 0; outline-offset: 0;
&[readonly="readonly"] { &[readonly="readonly"] {
// XXX Should be dropped when gadget field do not use input
// in read only
border: none; border: none;
box-shadow: none; box-shadow: none;
padding: 0; padding: 0;
...@@ -395,13 +397,25 @@ select { ...@@ -395,13 +397,25 @@ select {
outline-offset: 0; outline-offset: 0;
&:hover, &:active { &[readonly="readonly"] {
background-color: @colorblocklinkbackground; // XXX Should be dropped when gadget field do not use input
} // in read only
border: none;
background: none;
box-shadow: none;
padding: 0;
line-height: 1em;
}
&:-moz-focusring { &:not([readonly="readonly"]) {
color: transparent &:hover, &:active {
} background-color: @colorblocklinkbackground;
}
}
&:-moz-focusring {
color: transparent
}
} }
textarea { textarea {
......
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