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

update: Thin Toolbar #775

Open
MigueloAtla opened this issue Nov 14, 2024 · 0 comments
Open

update: Thin Toolbar #775

MigueloAtla opened this issue Nov 14, 2024 · 0 comments

Comments

@MigueloAtla
Copy link

I revised the code to enhance reliability, resolved alignment issues, and added a preference option to support additional sizes.

This is the updated code:
css:

:root {
  /* thin */
  --urlbar-height: 28px !important;
  --urlbar-container-height: 28px !important;
  --zen-toolbar-height: 35px !important;
  --urlbar-min-height: 28px !important;
  /* thinner */
  @media (-moz-bool-pref: "theme.thin_toolbar.thinner") {
    --urlbar-height: 26px !important;
    --urlbar-container-height: 26px !important;
    --zen-toolbar-height: 32px !important;
    --urlbar-min-height: 26px !important;
  }
}
#urlbar {
  /* thin */
  --urlbar-height: 28px !important;
  /* thinner */
  @media (-moz-bool-pref: "theme.thin_toolbar.thinner") {
    --urlbar-height: 26px !important;
  }
}
#urlbar-container {
  /* thin */
  --urlbar-container-height: 28px !important;
  /* thinner */
  @media (-moz-bool-pref: "theme.thin_toolbar.thinner") {
    --urlbar-container-height: 26px !important;
  }
}
.urlbar-input-container {
  align-items: center;
}
#identity-icon-label {
  padding-inline-start: 2px !important;
  font-size: 0.95em;
}
#identity-box > * {
  padding: 2px 8px;
}

preferences.json

[
  {
    "property": "theme.thin_toolbar.thinner",
    "label": "Make toolbar thinner",
    "type": "checkbox",
    "defaultValue": false
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant