Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Add ability to toggle glass frame scroll motion #102

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/components/window/frame.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,24 @@
</div>
</div>
`) %>

<p>
To make the aero effect move when scrolling, or changing the viewport size, change the <code>background-attachment</code> property of the <code>.title-bar</code> to <code>fixed</code> or <code>scroll</code>, depending on your requirements.
</p>
<%- example(`
<div class="background">
<div class="window glass active" style="max-width: 100%">
<div class="title-bar" style="background-attachment: fixed;">
<div class="title-bar-text">A glass window frame with fixed background-attachment</div>
<div class="title-bar-controls">
<button aria-label="Minimize"></button>
<button aria-label="Close"></button>
</div>
</div>
<div class="window-body has-space">
<p>The aero effect is now changing with the scroll position.</p>
</div>
</div>
</div>
`) %>
</section>
1 change: 1 addition & 0 deletions gui/_window.scss
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@

> .title-bar {
background: var(--window-background-glass-stripes);
background-attachment: local;
}
}

Expand Down