Skip to content

Commit

Permalink
fix order & paddings
Browse files Browse the repository at this point in the history
  • Loading branch information
ildar170975 authored Feb 26, 2025
1 parent 3e733f5 commit bb17179
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const style = css`
ha-card {
flex-direction: column;
flex: 1;
padding: 16px 0;
padding: 16px 0 0 0;
position: relative;
overflow: hidden;
}
Expand All @@ -18,6 +18,9 @@ const style = css`
ha-card > div:last-child {
padding-bottom: 0;
}
ha-card .graph {
padding: 0;
}
ha-card[points] .line--points,
ha-card[labels] .graph__labels.--primary {
opacity: 0;
Expand All @@ -34,28 +37,36 @@ const style = css`
ha-card:hover .graph__labels.--secondary {
opacity: 1;
}
/*
ha-card[fill] {
padding-bottom: 0;
}
*/
ha-card[fill] .graph {
/*
padding: 0;
order: 10;
*/
}
ha-card[fill] path {
stroke-linecap: initial;
stroke-linejoin: initial;
}
ha-card[fill] .graph__legend {
/*
order: -1;
padding: 0 16px 8px 16px;
*/
}
ha-card[fill] .info {
/*
padding-bottom: 16px;
*/
}
ha-card[group] {
box-shadow: none;
padding: 0;
border: none;
padding: 0;
}
ha-card[group] > div {
padding-left: 0;
Expand Down

0 comments on commit bb17179

Please sign in to comment.