diff --git a/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/chrome.css b/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/chrome.css new file mode 100644 index 00000000..ff112277 --- /dev/null +++ b/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/chrome.css @@ -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; +} diff --git a/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/image.png b/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/image.png new file mode 100644 index 00000000..a872f1d7 Binary files /dev/null and b/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/image.png differ diff --git a/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/readme.md b/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/readme.md new file mode 100644 index 00000000..82ca93e5 --- /dev/null +++ b/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/readme.md @@ -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. diff --git a/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/theme.json b/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/theme.json new file mode 100644 index 00000000..c4082f86 --- /dev/null +++ b/themes/279a260a-03e2-4c40-a9bf-6fb87c078fd9/theme.json @@ -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" +} \ No newline at end of file