Skip to content

Commit 6d26c78

Browse files
authored
Merge pull request #5 from kdw2060/patch-1
styling: centering gauge + added background to card
2 parents eea2abb + 09681f5 commit 6d26c78

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

canvas-gauge-card.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,18 @@ class CanvasGaugeCard extends HTMLElement {
6262
// The styles
6363
const style = `
6464
<style>
65+
:host {
66+
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
67+
display: block !important;
68+
border-radius: 2px !important;
69+
transition: all 0.30s ease-out !important;
70+
background-color: white !important;
71+
}
6572
#cardroot {
6673
width: ${elemContainer.width}px;
6774
height: calc(${elemContainer.height}px + ${this.config.shadow_bottom ? this.config.shadow_bottom : 0}px);
6875
position: relative;
76+
margin: auto;
6977
}
7078
#container {
7179
width: ${elemContainer.width}px;

0 commit comments

Comments
 (0)