thingsboard/ui/src/app/widget/lib/rpc/led-indicator.scss

74 lines
1.7 KiB
SCSS
Raw Normal View History

2017-07-26 01:38:07 +03:00
/**
2018-03-05 17:34:13 +02:00
* Copyright © 2016-2018 The Thingsboard Authors
2017-07-26 01:38:07 +03:00
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@import "~compass-sass-mixins/lib/compass";
2018-09-06 21:11:44 +02:00
$error-height: 14px !default;
2017-07-26 01:38:07 +03:00
2018-09-06 21:11:44 +02:00
$background-color: #e6e7e8 !default;
2017-07-26 01:38:07 +03:00
.tb-led-indicator {
2018-09-06 21:11:44 +02:00
width: 100%;
height: 100%;
2017-07-26 01:38:07 +03:00
background: $background-color;
.title-container {
.led-title {
font-weight: 500;
2018-09-06 21:11:44 +02:00
color: #757575;
2017-07-26 01:38:07 +03:00
white-space: nowrap;
}
}
.error-container {
2018-09-06 21:11:44 +02:00
position: absolute;
2017-07-26 01:38:07 +03:00
top: 1%;
right: 0;
2018-09-06 21:11:44 +02:00
left: 0;
z-index: 4;
2017-07-26 01:38:07 +03:00
height: $error-height;
2018-09-06 21:11:44 +02:00
2017-07-26 01:38:07 +03:00
.led-error {
color: #ff3315;
white-space: nowrap;
}
}
2018-09-06 21:11:44 +02:00
2017-07-26 01:38:07 +03:00
#text-measure {
position: absolute;
width: auto;
2018-09-06 21:11:44 +02:00
height: auto;
2017-07-26 01:38:07 +03:00
white-space: nowrap;
2018-09-06 21:11:44 +02:00
visibility: hidden;
2017-07-26 01:38:07 +03:00
}
#led-container {
padding: 10px;
2018-09-06 21:11:44 +02:00
2017-07-26 01:38:07 +03:00
.led {
position: relative;
2018-09-06 21:11:44 +02:00
cursor: pointer;
background-image: radial-gradient(50% 50%, circle closest-corner, transparent, rgba(0, 0, 0, .25));
2017-07-26 01:38:07 +03:00
border-radius: 50%;
2018-09-06 21:11:44 +02:00
transition: background-color .5s, box-shadow .5s;
2017-07-26 01:38:07 +03:00
&.disabled {
2018-09-06 21:11:44 +02:00
background-image: radial-gradient(50% 50%, circle closest-corner, rgba(255, 255, 255, .5), rgba(0, 0, 0, .1));
2017-07-26 01:38:07 +03:00
}
}
}
}