mirror of
https://github.com/zen-browser/theme-store.git
synced 2025-07-07 17:05:31 +02:00
Merge pull request #1441 from Fury7425/main
This commit is contained in:
commit
0caefec68b
3 changed files with 47 additions and 43 deletions
|
@ -1,24 +1,26 @@
|
||||||
:root {
|
:root {
|
||||||
--mod-browser-scale: var(--user-browser-scale, 0.98);
|
--mod-browser-scale: var(--user-browser-scale, 0.98);
|
||||||
--mod-browser-ease-swipe: var(--user-browser-ease-swipe, 0.3, 1.2, 0.5, 1);
|
--mod-browser-ease-swipe: var(--user-browser-ease-swipe, 0.3, 1.2, 0.5, 1);
|
||||||
--mod-browser-ease-reset: var(--user-browser-ease-reset, 0.2, 1.4, 0.3, 1);
|
--mod-browser-ease-reset: var(--user-browser-ease-reset, 0.2, 1.4, 0.3, 1);
|
||||||
}
|
--mod-browser-radius-default: var(--user-tab-radius, 8px);
|
||||||
|
}
|
||||||
|
|
||||||
.browserStack browser {
|
.browserStack browser {
|
||||||
transition: transform 0.22s cubic-bezier(var(--mod-browser-ease-swipe)) !important;
|
transition: all 0.22s cubic-bezier(var(--mod-browser-ease-reset)) !important;
|
||||||
}
|
transform: translateX(0) !important;
|
||||||
|
border-radius: var(--mod-browser-radius-default) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.browserStack:has(#historySwipeAnimationPreviousArrow:not([style="translate: none;"])) browser {
|
.browserStack:has(#historySwipeAnimationPreviousArrow:not([style="translate: none;"]), #historySwipeAnimationNextArrow:not([style="translate: none;"])) browser {
|
||||||
scale: var(--mod-browser-scale) !important;
|
transition: all 0.22s cubic-bezier(var(--mod-browser-ease-swipe)) !important;
|
||||||
transform: translateX(4%) !important;
|
scale: var(--mod-browser-scale) !important;
|
||||||
}
|
border-radius: calc(var(--mod-browser-radius-default) * 2) !important;
|
||||||
|
}
|
||||||
|
|
||||||
.browserStack:has(#historySwipeAnimationNextArrow:not([style="translate: none;"])) browser {
|
.browserStack:has(#historySwipeAnimationPreviousArrow:not([style="translate: none;"])) browser {
|
||||||
scale: var(--mod-browser-scale) !important;
|
transform: translateX(3%) !important;
|
||||||
transform: translateX(-4%) !important;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
.browserStack browser:not(:has(#historySwipeAnimationPreviousArrow, #historySwipeAnimationNextArrow)) {
|
.browserStack:has(#historySwipeAnimationNextArrow:not([style="translate: none;"])) browser {
|
||||||
transition: transform 0.25s cubic-bezier(var(--mod-browser-ease-reset)) !important;
|
transform: translateX(-3%) !important;
|
||||||
transform: translateX(0) !important;
|
}
|
||||||
}
|
|
||||||
|
|
|
@ -1,29 +1,31 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"property": "mod.browser.scale_enabled",
|
"property": "user-browser-scale",
|
||||||
"label": "Enable swipe scale animation",
|
"label": "Swipe scale (e.g. 0.98 for 2%)",
|
||||||
"type": "checkbox",
|
"type": "string",
|
||||||
"defaultValue": true
|
"defaultValue": "0.98",
|
||||||
|
"placeholder": "0.97–1.00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "user-browser-scale",
|
"property": "user-browser-ease-swipe",
|
||||||
"label": "Swipe scale (e.g. 0.98 for 2%)",
|
"label": "Swipe easing curve (4 numbers)",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"defaultValue": "0.98",
|
"defaultValue": "0.3, 1.2, 0.5, 1",
|
||||||
"placeholder": "0.97\u20131.00"
|
"placeholder": "e.g. 0.25, 0.1, 0.25, 1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "user-browser-ease-swipe",
|
"property": "user-browser-ease-reset",
|
||||||
"label": "Swipe easing curve (4 numbers)",
|
"label": "Reset easing curve (4 numbers)",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"defaultValue": "0.3, 1.2, 0.5, 1",
|
"defaultValue": "0.2, 1.4, 0.3, 1",
|
||||||
"placeholder": "e.g. 0.25, 0.1, 0.25, 1"
|
"placeholder": "e.g. 0.2, 0.8, 0.2, 1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"property": "user-browser-ease-reset",
|
"property": "user-tab-radius",
|
||||||
"label": "Reset easing curve (4 numbers)",
|
"label": "Tab border radius (e.g. 8px)",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"defaultValue": "0.2, 1.4, 0.3, 1",
|
"defaultValue": "8px",
|
||||||
"placeholder": "e.g. 0.2, 0.8, 0.2, 1"
|
"placeholder": "e.g. 10px"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"id": "8039de3b-72e1-41ea-83b3-5077cf0f98d1",
|
"id": "8039de3b-72e1-41ea-83b3-5077cf0f98d1",
|
||||||
"name": "trackpad animation",
|
"name": "Trackpad Animation",
|
||||||
"description": "adds backward and forward animation for trackpad gesture",
|
"description": "adds backward and forward animation for trackpad gesture",
|
||||||
"homepage": "https://github.com/Fury7425/zen-trackpad-gesture-animation",
|
"homepage": "https://github.com/Fury7425/zen-trackpad-gesture-animation",
|
||||||
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/8039de3b-72e1-41ea-83b3-5077cf0f98d1/chrome.css",
|
"style": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/8039de3b-72e1-41ea-83b3-5077cf0f98d1/chrome.css",
|
||||||
|
@ -8,8 +8,8 @@
|
||||||
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/8039de3b-72e1-41ea-83b3-5077cf0f98d1/image.png",
|
"image": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/8039de3b-72e1-41ea-83b3-5077cf0f98d1/image.png",
|
||||||
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/8039de3b-72e1-41ea-83b3-5077cf0f98d1/preferences.json",
|
"preferences": "https://raw.githubusercontent.com/zen-browser/theme-store/main/themes/8039de3b-72e1-41ea-83b3-5077cf0f98d1/preferences.json",
|
||||||
"author": "Fury7425",
|
"author": "Fury7425",
|
||||||
"version": "1.1.1",
|
"version": "1.2.0",
|
||||||
"tags": [],
|
"tags": [],
|
||||||
"createdAt": "2025-04-08",
|
"createdAt": "2025-04-08",
|
||||||
"updatedAt": "2025-04-17"
|
"updatedAt": "2025-04-24"
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue