Skip to content

Commit b60a803

Browse files
authored
Update fullscreen-card.js
1 parent e6ace2c commit b60a803

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

dist/fullscreen-card.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@ class FullscreenCard extends HTMLElement {
22
set hass(hass) {
33
if (!this.content) {
44
this.content = document.createElement("ha-card");
5-
this.content.header = "Go fullscreen";
6-
this.content.style.padding = "1.5em";
5+
this.content.style.padding = "15px";
76
this.atag = document.createElement("a");
8-
this.atag.innerHTML = "Go";
9-
this.atag.style.border = "2px solid grey";
7+
this.atag.innerHTML = "Go fullscreen";
8+
this.atag.style.border = "2px solid var(--primary-color)";
109
this.atag.style.fontSize = "2em";
1110
this.atag.style.padding = "0.5em";
1211
this.atag.style.display = "block";
13-
this.atag.style.margin = "15px 15px 30px 15px";
14-
this.atag.style.background = "#8888";
12+
this.atag.style.background = "var(--primary-color)";
13+
this.atag.style.color = "white";
1514
this.atag.style.textAlign = "center";
16-
this.atag.style.borderRadius = "5px";
15+
this.atag.style.borderRadius = "var(--ha-card-border-radius, 4px)";
16+
this.atag.style.cursor = "pointer";
1717
this.atag.onclick = function() {
1818
document.body.requestFullscreen();
1919
};

0 commit comments

Comments
 (0)