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

Add theme: Simple Centred Address #781

Open
wants to merge 1 commit 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
41 changes: 41 additions & 0 deletions themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/chrome.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@

/* ----- Search Bar Idle ----- */

/* Centre text */
#urlbar-input {
text-align: center !important;
}

/* Hide icons */

#page-action-buttons,
#tracking-protection-icon-container,
#identity-box {
opacity: 0;
transition: opacity 0.3s ease;
}

/* ----- Search Bar Hover ----- */

/* Reveal icons*/
#urlbar:hover #page-action-buttons,
#urlbar:hover #tracking-protection-icon-container,
#urlbar:hover #identity-box {
opacity: 1;
}

/* ----- Search Bar Focus ----- */

/* Revert text */
#urlbar[focused=""] #urlbar-input {
text-align: left !important;
}

/* ----- Button Menu Opened ----- */

/* Keep buttons/menu visible */
#page-action-buttons:has(#star-button-box[open="true"])
#tracking-protection-icon-container[open="true"],
#identity-box:has(#identity-icon-box[open="true"]) {
opacity: 1;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

chrome.css notates what each block does. The text-align: center is only applied when the urlbar is unfocused to keep the modification simple.
14 changes: 14 additions & 0 deletions themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/theme.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"id": "279a260a-03e2-4c40-a9bf-6fb87c078fd9",
"name": "Simple Centred Address",
"description": "Centres the URL bar text and hides buttons when unfocused.",
"homepage": "",
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/chrome.css",
"readme": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/readme.md",
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/image.png",
"author": "Lisiowen",
"version": "1.0.0",
"tags": [],
"createdAt": "2024-11-16",
"updatedAt": "2024-11-16"
}
Loading