mini-media-player
mini-media-player copied to clipboard
Hide shortcut button borders
I've made the background for the buttons transparent as i'm using pictures for my buttons but the borders of the buttons is still visible. Is it possible to hide the border of the shortcut buttons?
Just as well I searched before adding my feature request:
Would it be possible to add a theme option to disable the shortcut buttons box shadow to match with flat themes?
The "border" you are referring to is actually the CSS box-shadow
.
To achieve the look you want, you could use card_mod to remove background and box-shadow:
type: custom:mini-media-player
// ...
shortcuts:
buttons:
// ...
card_mod:
style:
mmp-shortcuts$: >
.mmp-shortcuts__button {
background: none; /* removes background */
box-shadow: none; /* removes shadow */
}
Which will look like this:
To add to this, I don't think that a change to mini-media-player
is necessary since every user will want different looks which can already be achieved by using card-mod as shown above.