Skip to content

Commit

Permalink
Styling (#33)
Browse files Browse the repository at this point in the history
* Update main.ts

* Update favorite.ts

Center brands

* Update main.ts

Not sure what it's used for

* Update favorite-buttons.ts

This size is reachable, "VW" make this icon big on larger screens but very small on mobile.

* Update favorite.ts
  • Loading branch information
giuliandenicola1 committed Mar 4, 2022
1 parent ea4e486 commit a0d8f32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion src/components/favorite-buttons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ class FavoriteButtons extends LitElement {
flex-direction: column;
}
.browse {
--mdc-icon-size: 2vw;
--mdc-icon-size: 1.5rem;
text-align: right;
padding-right: .5rem;
margin-left: -.5rem;
}
.browse:focus,
.browse:hover {
Expand Down
8 changes: 4 additions & 4 deletions src/components/favorite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ class Favorite extends LitElement {
box-shadow: var(--sonos-int-box-shadow);
}
.image {
background-position-x: center;
background-position-y: bottom;
background-position: center center;
background-repeat: no-repeat;
background-size: contain;
position: relative;
Expand All @@ -50,8 +49,9 @@ class Favorite extends LitElement {
padding-bottom: 100%;
}
.title {
width: calc(100% - 0.2rem);
font-size: 0.6rem;
width: calc(100% - 1.2rem);
font-size: 1rem;
padding: 0px 0.5rem;
}
.title-with-image {
text-overflow: ellipsis;
Expand Down

0 comments on commit a0d8f32

Please sign in to comment.