summaryrefslogtreecommitdiffstats
path: root/asset/css/primary-submit-btn-duplicate.less
diff options
context:
space:
mode:
Diffstat (limited to 'asset/css/primary-submit-btn-duplicate.less')
-rw-r--r--asset/css/primary-submit-btn-duplicate.less16
1 files changed, 16 insertions, 0 deletions
diff --git a/asset/css/primary-submit-btn-duplicate.less b/asset/css/primary-submit-btn-duplicate.less
new file mode 100644
index 0000000..aae545f
--- /dev/null
+++ b/asset/css/primary-submit-btn-duplicate.less
@@ -0,0 +1,16 @@
+/**
+ Automatically set CSS class for duplicated submit buttons
+ used for implicit form submission that should be invisible
+ and not take up any space. `display: none` is not an option,
+ because at least Safari will then ignore the element completely
+ when submitting a form.
+ */
+.primary-submit-btn-duplicate {
+ border: 0;
+ height: 0;
+ margin: 0;
+ padding: 0;
+ visibility: hidden;
+ width: 0;
+ position: absolute;
+}