zen-browser / theme-store

🎨 Theme repository for @zen-browser!
https://zen-browser.github.io/theme-store/themes.json
MIT License
129 stars 38 forks source link

[create-theme]: Floating findbar #425

Closed anaarkei closed 1 month ago

anaarkei commented 1 month ago

Name

Floating findbar

Description

Mod for Zen Browser that detaches findbar from edge of browser window so that it appears to float.

Homepage

https://github.com/anaarkei/zen-floating-findbar

Image

https://beta.jarick.works/zen-floating-findbar.png

Type

Theme Styles

.browserContainer > findbar {
  position: fixed;
  bottom: 0px;
  margin-bottom: var(--zen-element-separation);
  margin-left: var(--zen-element-separation);
  margin-right: var(--zen-element-separation);
  background: var(--zen-colors-tertiary) !important;
  border-radius: var(--zen-border-radius);
  width: calc( 100% - var(--zen-element-separation) * 2);
}

.browserContainer > findbar,
.findbar-textbox {
  border: 1px solid var(--zen-colors-border) !important;
}

/* Enable compact findbar, similar to Smaller Compact Mode by n7itro */
@media (-moz-bool-pref: "uc.floatingfindbar.compact.enabled") {
  .browserContainer > findbar {
    width: 75vw !important;
    margin-left: calc( 12.5vw - var(--zen-element-separation) ) !important;
  }
}

Readme

# zen-floating-findbar
Mod for Zen Browser that detaches findbar from edge of browser window so that it appears to float. 

## Options
- Enable compact toolbar, similar to Smaller Compact Mode by n7itro.

Preferences

{
    "uc.floatingfindbar.compact.enabled": "Enable compact findbar, similar to Smaller Compact Mode by n7itro"
}
github-actions[bot] commented 1 month ago

Thank you for your contribution! :tada:

Your theme has been successfully submitted. The maintainers will review it and get back to you soon.

Here are some details about your submission:

If you have any questions or need help, feel free to ask in the comments below or in the PR.