summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2014-01-14 14:44:27 +0100
committerFabien Meghazi <fme@openerp.com>2014-01-14 14:44:27 +0100
commitcedc2bd2773e9bc9fc688ede49c942bb4b6f342a (patch)
tree2c7ea62c695f8513cc5474884e9c232168d72cfc /addons/web/static/src
parentdec6f2569e59675e3d9f11e7768b26a9905c5101 (diff)
[IMP] Better look for login and db selector forms
bzr revid: fme@openerp.com-20140114134427-fu1zu5xxce9j8vrl
Diffstat (limited to 'addons/web/static/src')
-rw-r--r--addons/web/static/src/css/base.css38
-rw-r--r--addons/web/static/src/css/base.sass32
2 files changed, 70 insertions, 0 deletions
diff --git a/addons/web/static/src/css/base.css b/addons/web/static/src/css/base.css
index 29e91ed79b4..52a84f9a0ff 100644
--- a/addons/web/static/src/css/base.css
+++ b/addons/web/static/src/css/base.css
@@ -3114,6 +3114,44 @@ div.ui-widget-overlay {
padding-bottom: 10px !important;
}
+.oe_single_form {
+ background: #eeeeee url(/web/static/src/img/form_sheetbg.png);
+ height: 100%;
+}
+
+.oe_single_form_logo {
+ padding: 10px;
+ text-align: center;
+ margin-bottom: 10px;
+}
+
+.oe_single_form_footer {
+ position: absolute;
+ bottom: -30px;
+}
+
+.oe_login_form {
+ padding: 10px;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ width: 400px;
+ /* Set margins to offset 50% of the w/h */
+ margin-top: -200px;
+ margin-left: -200px;
+}
+
+.oe_dbselector_form {
+ padding: 10px;
+ position: absolute;
+ left: 50%;
+ top: 50%;
+ width: 300px;
+ /* Set margins to offset 50% of the w/h */
+ margin-top: -150px;
+ margin-left: -150px;
+}
+
.openerp_ie .placeholder {
color: #afafb6 !important;
font-style: italic !important;
diff --git a/addons/web/static/src/css/base.sass b/addons/web/static/src/css/base.sass
index a9ef3b643a3..4e49c8e3c94 100644
--- a/addons/web/static/src/css/base.sass
+++ b/addons/web/static/src/css/base.sass
@@ -2491,6 +2491,38 @@ div.ui-widget-overlay
td
padding-bottom: 10px !important
+// Server side single forms {{{
+@mixin single-form($width: 400px)
+ padding: 10px
+ position: absolute
+ left: 50%
+ top: 50%
+ width: $width
+ /* Set margins to offset 50% of the w/h */
+ margin-top: -($width / 2)
+ margin-left: -($width / 2)
+
+.oe_single_form
+ background: #eee url(/web/static/src/img/form_sheetbg.png)
+ height: 100%
+
+.oe_single_form_logo
+ padding: 10px
+ text-align: center
+ margin-bottom: 10px
+
+.oe_single_form_footer
+ position: absolute
+ bottom: -30px
+
+.oe_login_form
+ @include single-form(400px)
+
+.oe_dbselector_form
+ @include single-form(300px)
+
+// }}}
+
// Internet Explorer 9+ specifics {{{
.openerp_ie
.placeholder