From cf596edd161332fcba5ebf80c7724bb1ecbd0468 Mon Sep 17 00:00:00 2001 From: Alessandro Francia Date: Wed, 4 Jul 2018 15:03:06 +0200 Subject: [PATCH] fix layout axes and process aux production --- Step/wwwroot/assets/styles/base/card.less | 26 ++++++++++++++----- Step/wwwroot/assets/styles/style.css | 25 ++++++++++++++---- .../cards/card-axes-production.vue | 4 +-- .../cards/card-job-production.vue | 6 ++--- .../cards/process-selection-maintenance.vue | 2 +- 5 files changed, 46 insertions(+), 17 deletions(-) diff --git a/Step/wwwroot/assets/styles/base/card.less b/Step/wwwroot/assets/styles/base/card.less index 7b636e31..3ee098fc 100644 --- a/Step/wwwroot/assets/styles/base/card.less +++ b/Step/wwwroot/assets/styles/base/card.less @@ -527,8 +527,9 @@ width: 100%; display: flex; flex-flow: column; + overflow: auto; .axes{ - height: 32px; + min-height: 32px; width: 100%; display: flex; flex-flow: row; @@ -546,7 +547,6 @@ width: 136px; height: 32px; border-radius: 2px; - background-color: @color-white4; display: flex; justify-content: flex-end; align-items: center; @@ -555,9 +555,18 @@ padding-right: 8px; } } + .axes:nth-child(odd) .number{ + background-color: @color-white4; + } + .axes:nth-child(even) .number{ + background-color: @color-clear-blue-30; + } .axes:first-child{ margin-top: 16px; } + .axes:last-child{ + margin-bottom: 16px; + } } .second-box-axes{ width: 100%; @@ -885,11 +894,9 @@ color: @color-greyish-brown; line-height: 1.78px; text-align: justify; - cursor: pointer; label{ - cursor: pointer; font-size: 18px; - margin-left: 24px; + margin-left: 36px; } } .row:nth-child(odd){ @@ -920,4 +927,11 @@ } } - } \ No newline at end of file + } +/* larghezza quando gli assi in card axes in production sono maggiori di 5 dopo scrollbar*/ +.first-box-axes.scrollable .axes{ + .number.width-number{ + overflow: visible; + width: 128px; + } +} diff --git a/Step/wwwroot/assets/styles/style.css b/Step/wwwroot/assets/styles/style.css index e212d887..aab28466 100644 --- a/Step/wwwroot/assets/styles/style.css +++ b/Step/wwwroot/assets/styles/style.css @@ -3845,10 +3845,11 @@ footer .container button.big:before { width: 100%; display: flex; flex-flow: column; + overflow: auto; } .card-axes-production .first-box-axes .axes, .card-axes-production .second-box-axes .axes { - height: 32px; + min-height: 32px; width: 100%; display: flex; flex-flow: row; @@ -3869,7 +3870,6 @@ footer .container button.big:before { width: 136px; height: 32px; border-radius: 2px; - background-color: #f3f3f3; display: flex; justify-content: flex-end; align-items: center; @@ -3877,10 +3877,22 @@ footer .container button.big:before { color: #4b4b4b; padding-right: 8px; } +.card-axes-production .first-box-axes .axes:nth-child(odd) .number, +.card-axes-production .second-box-axes .axes:nth-child(odd) .number { + background-color: #f3f3f3; +} +.card-axes-production .first-box-axes .axes:nth-child(even) .number, +.card-axes-production .second-box-axes .axes:nth-child(even) .number { + background-color: rgba(23, 145, 255, 0.3); +} .card-axes-production .first-box-axes .axes:first-child, .card-axes-production .second-box-axes .axes:first-child { margin-top: 16px; } +.card-axes-production .first-box-axes .axes:last-child, +.card-axes-production .second-box-axes .axes:last-child { + margin-bottom: 16px; +} .card-axes-production .second-box-axes { width: 100%; height: 257px; @@ -4204,12 +4216,10 @@ footer .container button.big:before { color: #4b4b4b; line-height: 1.78px; text-align: justify; - cursor: pointer; } .card-job-production .card-job-production-body .card-job-production-body-bottom .content-box .row label { - cursor: pointer; font-size: 18px; - margin-left: 24px; + margin-left: 36px; } .card-job-production .card-job-production-body .card-job-production-body-bottom .content-box .row:nth-child(odd) { background-color: rgba(23, 145, 255, 0.3); @@ -4235,6 +4245,11 @@ footer .container button.big:before { .card-job-production .card-job-production-body .card-job-production-body-bottom .content-box .row.selected label { margin: 12px; } +/* larghezza quando gli assi in card axes in production sono maggiori di 5 dopo scrollbar*/ +.first-box-axes.scrollable .axes .number.width-number { + overflow: visible; + width: 128px; +} @keyframes selectedanimation { 0% { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.4); diff --git a/Step/wwwroot/src/modules/base-components/cards/card-axes-production.vue b/Step/wwwroot/src/modules/base-components/cards/card-axes-production.vue index c46bd456..d0e3ecf4 100644 --- a/Step/wwwroot/src/modules/base-components/cards/card-axes-production.vue +++ b/Step/wwwroot/src/modules/base-components/cards/card-axes-production.vue @@ -1,12 +1,12 @@