Skip to content

Commit

Permalink
extra fixes to --song-player-margin
Browse files Browse the repository at this point in the history
  • Loading branch information
choptop84 committed Apr 21, 2024
1 parent dc2d6c8 commit cdd156b
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 18 deletions.
2 changes: 1 addition & 1 deletion editor/ColorConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6881,6 +6881,7 @@ export class ColorConfig {
"canyon 2": `
:root {
--page-margin: #0a0000;
--song-player-margin: var(--page-margin);
--editor-background: #5a1616;
--hover-preview: white;
--playhead: rgba(247, 172, 196, 0.9);
Expand Down Expand Up @@ -6992,7 +6993,6 @@ export class ColorConfig {
--mod-primary-note-lum-scale: 0;
--disabled-note-primary: #515164;
--disabled-note-secondary: #2a2a3a;
--song-player-margin: var(--page-margin);
}

* {
Expand Down
6 changes: 0 additions & 6 deletions player/style.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,6 @@ document.head.appendChild(HTML.style({type: "text/css"}, `
</svg>');
}
@property --song-player-margin {
syntax: "<color>";
inherits: false;
initial-value: ${ColorConfig.editorBackground};
}
body {
color: ${ColorConfig.primaryText};
background: ${ColorConfig.songPlayerMargin};
Expand Down
2 changes: 1 addition & 1 deletion website/beepbox_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -9228,6 +9228,7 @@ var beepbox = (function (exports) {
"canyon 2": `
:root {
--page-margin: #0a0000;
--song-player-margin: var(--page-margin);
--editor-background: #5a1616;
--hover-preview: white;
--playhead: rgba(247, 172, 196, 0.9);
Expand Down Expand Up @@ -9339,7 +9340,6 @@ var beepbox = (function (exports) {
--mod-primary-note-lum-scale: 0;
--disabled-note-primary: #515164;
--disabled-note-secondary: #2a2a3a;
--song-player-margin: var(--page-margin);
}

* {
Expand Down
2 changes: 1 addition & 1 deletion website/beepbox_editor.min.js

Large diffs are not rendered by default.

8 changes: 1 addition & 7 deletions website/player/beepbox_player.js
Original file line number Diff line number Diff line change
Expand Up @@ -8877,6 +8877,7 @@ var beepbox = (function (exports) {
"canyon 2": `
:root {
--page-margin: #0a0000;
--song-player-margin: var(--page-margin);
--editor-background: #5a1616;
--hover-preview: white;
--playhead: rgba(247, 172, 196, 0.9);
Expand Down Expand Up @@ -8988,7 +8989,6 @@ var beepbox = (function (exports) {
--mod-primary-note-lum-scale: 0;
--disabled-note-primary: #515164;
--disabled-note-secondary: #2a2a3a;
--song-player-margin: var(--page-margin);
}

* {
Expand Down Expand Up @@ -29122,12 +29122,6 @@ var beepbox = (function (exports) {
</svg>');
}

@property --song-player-margin {
syntax: "<color>";
inherits: false;
initial-value: ${ColorConfig.editorBackground};
}

body {
color: ${ColorConfig.primaryText};
background: ${ColorConfig.songPlayerMargin};
Expand Down
2 changes: 1 addition & 1 deletion website/player/beepbox_player.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion website/player/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
display: flex;
margin: 0;
padding: 0;
background: var(--page-margin, black);
background: var(--editor-background, --page-margin, black);

}
body {
width: 100vw;
Expand Down

0 comments on commit cdd156b

Please sign in to comment.