mirror of
https://github.com/GiriNeko/YesPlayMusic.git
synced 2025-12-18 06:07:48 +00:00
feat: apply new layout for some special playlists
This commit is contained in:
parent
6a47e0cb40
commit
379ff6ac64
4 changed files with 334 additions and 8 deletions
|
|
@ -29,6 +29,14 @@ export default {
|
|||
type: String,
|
||||
default: "blue",
|
||||
},
|
||||
backgroundColor: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
textColor: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
shape: {
|
||||
type: String,
|
||||
default: "square",
|
||||
|
|
@ -36,12 +44,16 @@ export default {
|
|||
},
|
||||
computed: {
|
||||
buttonStyle() {
|
||||
return {
|
||||
let styles = {
|
||||
borderRadius: this.shape === "round" ? "50%" : "8px",
|
||||
padding: `8px ${this.horizontalPadding}px`,
|
||||
// height: "38px",
|
||||
width: this.shape === "round" ? "38px" : "auto",
|
||||
};
|
||||
if (this.backgroundColor !== "")
|
||||
styles.backgroundColor = this.backgroundColor;
|
||||
if (this.textColor !== "") styles.color = this.textColor;
|
||||
return styles;
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
@ -74,7 +86,8 @@ button {
|
|||
}
|
||||
button.grey {
|
||||
background-color: var(--color-secondary-bg);
|
||||
color: var(--color-secondary);
|
||||
color: var(--color-text);
|
||||
opacity: 0.78;
|
||||
}
|
||||
button.transparent {
|
||||
background-color: transparent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue