From 53a4bfab89143ca617ca90db6e33f118d867d56f Mon Sep 17 00:00:00 2001 From: Louis Knapp Date: Wed, 16 Aug 2017 11:49:24 -0500 Subject: [PATCH] lk | improves (hopefully) styling of bike sale labels --- app/assets/stylesheets/print_select.css.scss | 19 ++++++++++++++++++- app/views/bikes/print_labels.html.haml | 8 ++++---- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/app/assets/stylesheets/print_select.css.scss b/app/assets/stylesheets/print_select.css.scss index 1f0b1a1..656c738 100644 --- a/app/assets/stylesheets/print_select.css.scss +++ b/app/assets/stylesheets/print_select.css.scss @@ -6,7 +6,7 @@ page-break-inside: avoid; margin: 10px; border: 5px solid black; - height: 400px; + height: 425px; text-align: center; .horizontal-line{ width: 100%; @@ -19,7 +19,24 @@ margin: 10px; height: 200px; border: 2px dotted black; + > p { + padding-left: 5px; + font-size: 0.75rem; + text-align: left; + } + } + .work-done { + padding-right: 0; + } + .new-parts { + padding-left: 0; } } } + +.container.print-labels { + margin-top: -50px; + width: 100%; + padding: 0; +} diff --git a/app/views/bikes/print_labels.html.haml b/app/views/bikes/print_labels.html.haml index 6d7e1a2..7f4c42d 100644 --- a/app/views/bikes/print_labels.html.haml +++ b/app/views/bikes/print_labels.html.haml @@ -12,13 +12,13 @@ %br = "Seat Tube Size: " + bike.seat_tube_size.to_s .row - .col-xs-6 + .col-xs-6.work-done .desc - .strong Work Done: + %strong Work Done: =simple_format(bike.work_done) - .col-xs-6 + .col-xs-6.new-parts .desc - .strong New Parts: + %strong New Parts: =simple_format(bike.new_parts) .row .col-xs-12= "Log #: " + bike.log_number.to_s + ", Serial #: " + bike.serial_number