frontend/smart-hut/src/components/dashboard/devices/LightStyle.js

70 lines
1.2 KiB
JavaScript
Raw Normal View History

export const valueStyle = {
2020-05-12 13:18:33 +00:00
fill: '#3e99ff',
fontSize: '2.5rem',
fontFamily: 'Lato',
textShadow: '1px 1px 0.5px rgba(0, 0, 0, .2)',
};
export const intensityLightStyle = {
2020-05-12 13:18:33 +00:00
fill: '#ffd31d',
fontSize: '1.2rem',
fontFamily: 'Lato',
textShadow: '1px 1px 0.5px rgba(0, 0, 0, .2)',
};
2020-03-17 16:38:03 +00:00
export const textStyle = {
2020-05-12 13:18:33 +00:00
position: 'absolute',
fill: '#ffd31d',
fontSize: '1.5rem',
fontFamily: 'Lato',
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
userSelect: 'none',
};
2020-03-17 16:38:03 +00:00
export const nameStyle = {
2020-05-12 13:18:33 +00:00
fontSize: '1rem',
position: 'absolute',
top: '30%',
left: '50%',
transform: 'translateX(-50%)',
color: 'white',
userSelect: 'none',
2020-03-17 16:38:03 +00:00
};
export const LightDimmerStyle = {
2020-05-12 13:18:33 +00:00
cursor: 'pointer',
marginTop: '1rem',
width: '9rem',
height: '9rem',
fill: '#ffd31d',
2020-03-25 16:20:53 +00:00
};
export const LightDimmerContainer = {
2020-05-12 13:18:33 +00:00
position: 'relative',
width: '9rem',
height: '9rem',
2020-03-25 16:20:53 +00:00
};
export const CircularThumbStyle = {
2020-05-12 13:18:33 +00:00
fill: 'white',
stroke: '#ffd31d',
strokeWidth: '.2rem',
r: '1.4rem',
};
export const KnobProgress = {
2020-05-12 13:18:33 +00:00
stroke: '#ffd31d',
strokeWidth: '3rem',
};
export const knobIcon = {
2020-05-12 13:18:33 +00:00
position: 'absolute',
left: '50%',
top: '30%',
transform: 'translateX(-50%)',
width: '2rem',
height: '2rem',
};