From 19daac4173e4902b6be28dcea853db40afe6b1a5 Mon Sep 17 00:00:00 2001 From: Bohung Date: Wed, 9 Feb 2022 15:37:00 +0800 Subject: [PATCH] Fix css. --- app/assets/stylesheets/cancer_predict.scss | 12 +++++++----- app/assets/stylesheets/cancer_predict_print.scss | 12 +++++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/app/assets/stylesheets/cancer_predict.scss b/app/assets/stylesheets/cancer_predict.scss index 730868b..0447a61 100644 --- a/app/assets/stylesheets/cancer_predict.scss +++ b/app/assets/stylesheets/cancer_predict.scss @@ -22,8 +22,9 @@ th.cancer_th.Treatment { div.num_group{ position: relative; float: left; - width: 4.125em; + width: 5.125em; height: 2.25em; + margin-left: 1.125em; } @media screen and (min-width: 93.75em){ .navbar-brand>img.head_logo{ @@ -104,14 +105,15 @@ form.for_num{ } select.select_num{ position: absolute; - width: 5.125em; + width: 4.3em; height: 1.75em; - left: 1em; - clip: rect(0.25em,4.8em,1.5em,3.875em); + left: 0em; + clip: rect(0.25em, 4.3em, 1.5em,3.3em); border:none; padding: 0.5em; } input.num_only{ + margin-left: 0; color: black; border-top: 0.125em solid rgb(221, 221, 221); width: 5.125em; @@ -122,7 +124,7 @@ input.num_only{ background-color: rgb(255, 255, 255); height: 2.25em; position: absolute; - left:0.625em; + left: 0; } input.float_num{ position: relative; diff --git a/app/assets/stylesheets/cancer_predict_print.scss b/app/assets/stylesheets/cancer_predict_print.scss index e5be59f..b715c78 100644 --- a/app/assets/stylesheets/cancer_predict_print.scss +++ b/app/assets/stylesheets/cancer_predict_print.scss @@ -43,8 +43,9 @@ th.cancer_th.Treatment { div.num_group{ position: relative; float: left; - width: 4.125em; + width: 5.125em; height: 2.25em; + margin-left: 1.125em; } .navbar-brand>img.head_logo{ width: 70%; @@ -114,14 +115,15 @@ form.for_num{ } select.select_num{ position: absolute; - width: 5.125em; + width: 4.3em; height: 1.75em; - left: 1em; - clip: rect(0.25em,4.8em,1.5em,3.875em); + left: 0em; + clip: rect(0.25em, 4.3em, 1.5em,3.3em); border:none; padding: 0.5em; } input.num_only{ + margin-left: 0; color: black; border-top: 0.125em solid rgb(221, 221, 221); width: 5.125em; @@ -132,7 +134,7 @@ input.num_only{ background-color: rgb(255, 255, 255) !important; height: 2.25em; position: absolute; - left:0.625em; + left: 0; } input.float_num{ position: relative;