Skip to content

Commit

Permalink
Remove style from post card
Browse files Browse the repository at this point in the history
  • Loading branch information
vasqued2 committed Aug 18, 2024
1 parent a174e6f commit 836e355
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
2 changes: 1 addition & 1 deletion dist/const.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export let VERSION = "v0.14.2.1";
export let VERSION = "v0.14.2-beta1";

export let GOLF_HEADSHOT_URL = "https://a.espncdn.com/i/headshots/golf/players/full/";
export let MMA_HEADSHOT_URL = "https://a.espncdn.com/i/headshots/mma/players/full/";
Expand Down
22 changes: 0 additions & 22 deletions dist/render_post.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,6 @@ import { html, styleMap } from "https://cdn.jsdelivr.net/gh/lit/dist@3/all/lit-a
export function renderPost(c) {
// Render the HTML template using the provided object `c`
const htmlTemplate = html`
<style>
.card { position: relative; overflow: hidden; padding: 16px 16px 20px; font-weight: 400; border-radius: var(--ha-card-border-radius, 10px); }
.title { text-align: center; font-size: 1.2em; font-weight: 500; }
.team-bg { opacity: 0.08; position: absolute; top: -20%; left: -20%; width: 58%; z-index: 0; }
.opponent-bg { opacity: 0.08; position: absolute; top: -20%; right: -20%; width: 58%; z-index: 0; }
.card-content { display: flex; justify-content: space-evenly; align-items: center; text-align: center; position: relative; z-index: 1; }
.team { text-align: center; width: 35%; }
.logo { max-height: 6.5em; }
.team img { max-width: 90px; }
.score { font-size: ${c.scoreSize}; text-align: center; line-height: 1; }
.score1op { opacity: ${c.scoreOp[1]}; }
.score2op { opacity: ${c.scoreOp[2]}; }
.divider { font-size: 2.5em; text-align: center; opacity: 0; }
.name { font-size: 1.4em; margin-bottom: 4px; }
.rank { font-size:0.8em; display: ${c.rankDisplay}; }
.post-series-info { display:${c.seriesSummaryDisplay}; font-size: 1.2em; text-align: center; margin: 4px; }
.post-row1 { font-size: 1.2em; text-align: center; }
.left-clickable { text-decoration: none; color: inherit; }
.right-clickable { text-decoration: none; color: inherit; }
.bottom-clickable { text-decoration: none; color: inherit; }
.disabled { pointer-events: none; cursor: default; }
</style>
<ha-card>
<div class="card">
<div class="title">${c.title}</div>
Expand Down

0 comments on commit 836e355

Please sign in to comment.