Commit 609bbfdb authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_web_renderjs_ui: apply submit button style to buttons

This is useful for erp5_web_renderjs_ui_minimal_theme, as it reuses rjs_gadget_erp5_nojqm_css, but the form rendering is done by xhtml_style templates which render the submit button as a button and not an input.
parent 8f3a7a5d
......@@ -1013,7 +1013,8 @@ div[data-gadget-scope='header'] .ui-header ul {
.gadget-content div[data-gadget-scope='m'] {
animation: fadein 0.2s ease-out;
}
.gadget-content input[type='submit'] {
.gadget-content input[type='submit'],
.gadget-content button[type='submit'] {
padding: 6pt;
margin-top: 30pt;
margin-right: 12pt;
......@@ -1028,10 +1029,13 @@ div[data-gadget-scope='header'] .ui-header ul {
text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.gadget-content input[type='submit']:hover,
.gadget-content input[type='submit']:focus {
.gadget-content button[type='submit']:hover,
.gadget-content input[type='submit']:focus,
.gadget-content button[type='submit']:focus {
background-color: #ff8533;
}
.gadget-content input[type='submit']:active {
.gadget-content input[type='submit']:active,
.gadget-content button[type='submit']:active {
background-color: #ffa366;
}
.gadget-content button[name='action_update'] {
......
......@@ -75,9 +75,7 @@
</item>
<item>
<key> <string>content_type</string> </key>
<value>
<none/>
</value>
<value> <string>text/css</string> </value>
</item>
<item>
<key> <string>default_reference</string> </key>
......@@ -232,7 +230,7 @@
</item>
<item>
<key> <string>actor</string> </key>
<value> <string>zope</string> </value>
<value> <string>nicolas</string> </value>
</item>
<item>
<key> <string>comment</string> </key>
......@@ -246,7 +244,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>989.18940.32400.648</string> </value>
<value> <string>989.29946.58493.54408</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -264,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>1610465136.37</float>
<float>1611196713.78</float>
<string>UTC</string>
</tuple>
</state>
......
......@@ -1194,7 +1194,8 @@ div[data-gadget-scope='header'] .ui-header {
}
// Dialog page template main submit button
input[type='submit'] {
input[type='submit'],
button[type='submit'] {
.renderPageSubmitButton(@coloraccent);
text-shadow: @foreground-text-shadow;
}
......
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