From 25de4a542679893066feb978dd4d8e731cbe495f Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Mon, 30 Jul 2018 11:25:21 +0200 Subject: [PATCH] [FIX] l10n_ch: adapt ISR report CSS to SCSS In the CSS of the ISR report, we had things like: 2 + 3/12in This was valid in less, but in SCSS there would be no CSS with error: Error: 2.4/in isn't a valid CSS value. on line 3350 of stdin >> width: 2 + 4/10in; ---------------^ These expressions were just used so it is more apparent that the number is corresponding to the standard template. We could keep them using: #{2 + 3/12}in But this commit change it to directly use float number since with margin/fonts/padding/... the expressions anyway didn't match that much the standard template. --- .../l10n_ch/static/src/scss/report_isr.scss | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/addons/l10n_ch/static/src/scss/report_isr.scss b/addons/l10n_ch/static/src/scss/report_isr.scss index 83de6851409..9f651c8abd6 100644 --- a/addons/l10n_ch/static/src/scss/report_isr.scss +++ b/addons/l10n_ch/static/src/scss/report_isr.scss @@ -53,19 +53,19 @@ body.l10n_ch_isr #isr { #voucher { height: 4in; - width: 2 + 4/10in; + width: 2.4in; position: absolute; /* header title of BVR section */ - top: 1/6in; + top: 0.167in; /* right of voucher corresponds to left of slip */ - right: 5 + 9/10in; + right: 5.9in; } #voucher > * { position: absolute; /* default left margin for fields content */ - left: 3/20in; + left: 0.15in; &#voucher-for-contact { top: 0.25in; @@ -81,19 +81,19 @@ body.l10n_ch_isr #isr { &#voucher-bank { top: 1.51in; - left: 11/10in; + left: 1.1in; } /* TODO: remove in master */ &#voucher-currency { - top: 9/6 + 3/20in; + top: 1.65in; font-size: 12px; font-weight: 600; } &#voucher-amount_units { - width: 15/10in; + width: 1.5in; top: 1.84in; text-align: right; @@ -101,9 +101,9 @@ body.l10n_ch_isr #isr { } &#voucher-amount_cents { - width: 4/10in; + width: 0.4in; top: 1.84in; - left: 20/10in; + left: 2in; font-size: 14px; } @@ -115,11 +115,11 @@ body.l10n_ch_isr #isr { #slip { height: 4in; - width: 5 + 9/10in; + width: 5.9in; position: absolute; /* header title of BVR section */ - top: 1/6in; + top: 0.167in; /* right of slip corresponds to right of slip */ right: 0; } @@ -127,7 +127,7 @@ body.l10n_ch_isr #isr { #slip > * { position: absolute; /* default left margin for fields content */ - left: 3/20in; + left: 0.15in; &#slip-for-contact { top: 0.25in; @@ -143,19 +143,19 @@ body.l10n_ch_isr #isr { &#slip-bank { top: 1.51in; - left: 11/10in; + left: 1.1in; } /* TODO: remove in master */ &#slip-currency { - top: 9/6 + 3/20in; + top: 1.65in; font-size: 12px; font-weight: 600; } &#slip-amount_units { - width: 15/10in; + width: 1.5in; top: 1.84in; text-align: right; @@ -163,9 +163,9 @@ body.l10n_ch_isr #isr { } &#slip-amount_cents { - width: 4/10in; + width: 0.4in; top: 1.84in; - left: 20/10in; + left: 2in; font-size: 14px; } @@ -183,8 +183,8 @@ body.l10n_ch_isr #isr { } &#slip-optical-line { - right: 3/10in; - bottom: 4/6in; + right: 0.3in; + bottom: 0.667in; /* Positioning is set for OCRB of Tsukurimashou Font Family */ font-family: OCRB, Courier, monospace; @@ -203,8 +203,8 @@ body.l10n_ch_isr #isr { /* TODO: remove in master */ &#slip-optical { - right: 3/10in; - bottom: 4/6in; + right: 0.3in; + bottom: 0.667in; text-align: right;