summaryrefslogtreecommitdiff
path: root/addons/portal/static/src/scss
diff options
context:
space:
mode:
authorSébastien Theys <seb@odoo.com>2019-01-28 09:48:20 +0000
committerSébastien Theys <seb@odoo.com>2019-01-28 09:48:32 +0000
commit130af96dc155fbb38ca712ca47b7ee8de35dd482 (patch)
tree387e2c9ad45ba285966a98ac764d467bd759a84d /addons/portal/static/src/scss
parenta0e05e2ab9055fa060b1f3b5adf7aa322e2617fd (diff)
[IMP] portal,sale: improve signature widget and move it to portal
Purpose ======= The goal is to avoid duplicate code between portal and sign (enterprise), and also to allow the user to use the signature mode 'auto' and 'load' in portal (before this commit only 'draw' was available in portal). The sales order signature (currently the only portal signature) has been changed to use this new code. This signature widget has been improved: Improved style: - better structure and use of BS classes - removed most of custom CSS - made it more responsive Changed code to follow guidelines, added JSDoc. Technically =========== New widget NameAndSignature common to portal and sign (enterprise). Reworked existing portal signature form to use new widget. Related to enterprise PR https://github.com/odoo/enterprise/pull/3266 task-1894903 closes odoo/odoo#29453
Diffstat (limited to 'addons/portal/static/src/scss')
-rw-r--r--addons/portal/static/src/scss/portal.scss4
-rw-r--r--addons/portal/static/src/scss/portal_name_and_signature.scss23
2 files changed, 23 insertions, 4 deletions
diff --git a/addons/portal/static/src/scss/portal.scss b/addons/portal/static/src/scss/portal.scss
index 190a9c23fa9..73c1c20d421 100644
--- a/addons/portal/static/src/scss/portal.scss
+++ b/addons/portal/static/src/scss/portal.scss
@@ -432,10 +432,6 @@ img.o_we_custom_image {
}
}
-.o_portal_signature_form .o_portal_sign_error_msg {
- color: $danger;
-}
-
form label {
font-weight: $font-weight-bold;
&.label-optional {
diff --git a/addons/portal/static/src/scss/portal_name_and_signature.scss b/addons/portal/static/src/scss/portal_name_and_signature.scss
new file mode 100644
index 00000000000..557731948fb
--- /dev/null
+++ b/addons/portal/static/src/scss/portal_name_and_signature.scss
@@ -0,0 +1,23 @@
+.o_portal_sign_name_and_signature {
+ // for the absolute of the font selection to work
+ position: relative;
+}
+
+/* Signature Dialog */
+// The .card selector is important to make sure the position absolute will take
+// priority over the position relative of the card.
+.card.o_portal_sign_auto_font_selection {
+ @include o-position-absolute(0, 0);
+
+ .o_portal_sign_auto_font_list {
+ overflow: auto;
+
+ > a {
+ height: 100px;
+
+ > img {
+ height: 100%;
+ }
+ }
+ }
+}