add support for CSS
This commit is contained in:
15
door-status.css
Normal file
15
door-status.css
Normal file
@@ -0,0 +1,15 @@
|
||||
/* door-status.css */
|
||||
.door-status-indicator { display:inline-flex; align-items:center; font-size:1.1em; line-height:1; }
|
||||
.door-status-indicator.open { color:#28a745; } /* green */
|
||||
.door-status-indicator.closed { color:#dc3545; } /* red */
|
||||
|
||||
/* optional embellishments */
|
||||
.door-status-indicator.open::before,
|
||||
.door-status-indicator.closed::before {
|
||||
content:"";
|
||||
display:inline-block;
|
||||
width:.6em; height:.6em;
|
||||
border-radius:50%;
|
||||
margin-right:.35em;
|
||||
background:currentColor;
|
||||
}
|
||||
Reference in New Issue
Block a user