Skip to content

Commit

Permalink
Update fullscreen-card.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KTibow committed Aug 25, 2020
1 parent e6ace2c commit b60a803
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions dist/fullscreen-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ class FullscreenCard extends HTMLElement {
set hass(hass) {
if (!this.content) {
this.content = document.createElement("ha-card");
this.content.header = "Go fullscreen";
this.content.style.padding = "1.5em";
this.content.style.padding = "15px";
this.atag = document.createElement("a");
this.atag.innerHTML = "Go";
this.atag.style.border = "2px solid grey";
this.atag.innerHTML = "Go fullscreen";
this.atag.style.border = "2px solid var(--primary-color)";
this.atag.style.fontSize = "2em";
this.atag.style.padding = "0.5em";
this.atag.style.display = "block";
this.atag.style.margin = "15px 15px 30px 15px";
this.atag.style.background = "#8888";
this.atag.style.background = "var(--primary-color)";
this.atag.style.color = "white";
this.atag.style.textAlign = "center";
this.atag.style.borderRadius = "5px";
this.atag.style.borderRadius = "var(--ha-card-border-radius, 4px)";
this.atag.style.cursor = "pointer";
this.atag.onclick = function() {
document.body.requestFullscreen();
};
Expand Down

0 comments on commit b60a803

Please sign in to comment.