From e03daa5ce5d5dbd7730edb99a0d3d3235f7f0e8a Mon Sep 17 00:00:00 2001 From: Paolo Possanzini Date: Mon, 26 Mar 2018 11:32:34 +0200 Subject: [PATCH] head rotate e selected --- Step/wwwroot/assets/styles/base/head.less | 22 +++++++++++++++++++++- Step/wwwroot/assets/styles/style.css | 19 +++++++++++++++++++ Step/wwwroot/src/modules/heads/head.ts | 6 ++++++ Step/wwwroot/src/modules/heads/head.vue | 3 ++- Step/wwwroot/src/modules/mheads.vue | 2 ++ 5 files changed, 50 insertions(+), 2 deletions(-) diff --git a/Step/wwwroot/assets/styles/base/head.less b/Step/wwwroot/assets/styles/base/head.less index f0e6f4d4..71725977 100644 --- a/Step/wwwroot/assets/styles/base/head.less +++ b/Step/wwwroot/assets/styles/base/head.less @@ -179,6 +179,7 @@ margin-top: 6px; background-color: white; border-radius: 2px; + box-sizing: border-box; box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.4); display: flex; header { @@ -192,6 +193,9 @@ border-bottom: 1px solid #dfdfdf; justify-content: space-between; font-weight: 600; + i{ + line-height: 24px; + } span.process { color: @color-darkish-blue; width: 35px; @@ -324,6 +328,22 @@ } } } + &.selected { + border: 2px solid rgba(23, 145, 255, 0.75); + * { + border-color: rgba(23, 145, 255, 0.75) !important; + } + header{ + background-color: rgba(23, 145, 255, 0.75); + color:#fff; + border-right: none; + + span.process { + border-color: #fff !important; + color: #fff; + } + } + } } .heads-container { @@ -338,4 +358,4 @@ .heads-container-lt4 { right: -12px; -} \ No newline at end of file +} diff --git a/Step/wwwroot/assets/styles/style.css b/Step/wwwroot/assets/styles/style.css index 26d3dedc..173e8160 100644 --- a/Step/wwwroot/assets/styles/style.css +++ b/Step/wwwroot/assets/styles/style.css @@ -2106,6 +2106,7 @@ footer .container button.big:before { margin-top: 6px; background-color: white; border-radius: 2px; + box-sizing: border-box; box-shadow: 0px 1px 2px 0 rgba(0, 0, 0, 0.4); display: flex; } @@ -2124,6 +2125,9 @@ footer .container button.big:before { justify-content: space-between; font-weight: 600; } +.head-std header i { + line-height: 24px; +} .head-std header span.process { color: #002680; width: 35px; @@ -2256,6 +2260,21 @@ footer .container button.big:before { .head-std aside .load.warning span { color: #f5a623 !important; } +.head-std.selected { + border: 2px solid rgba(23, 145, 255, 0.75); +} +.head-std.selected * { + border-color: rgba(23, 145, 255, 0.75) !important; +} +.head-std.selected header { + background-color: rgba(23, 145, 255, 0.75); + color: #fff; + border-right: none; +} +.head-std.selected header span.process { + border-color: #fff !important; + color: #fff; +} .heads-container { position: absolute; top: -6px; diff --git a/Step/wwwroot/src/modules/heads/head.ts b/Step/wwwroot/src/modules/heads/head.ts index c5bf2646..67954480 100644 --- a/Step/wwwroot/src/modules/heads/head.ts +++ b/Step/wwwroot/src/modules/heads/head.ts @@ -50,6 +50,12 @@ export default class head1 extends Vue { @Prop({ default: false }) public overrideDisabled: boolean ; + @Prop({default:false}) + public isActive: boolean ; + + @Prop({default:false}) + public isSelected: boolean ; + public loadStatus(): string { if (this.inAlarm) return "danger"; if (this.inWarning) return "warning"; diff --git a/Step/wwwroot/src/modules/heads/head.vue b/Step/wwwroot/src/modules/heads/head.vue index c66ee5d1..c2231e5b 100644 --- a/Step/wwwroot/src/modules/heads/head.vue +++ b/Step/wwwroot/src/modules/heads/head.vue @@ -1,8 +1,9 @@