mirror of
https://github.com/zen-browser/theme-store.git
synced 2025-07-08 01:10:01 +02:00
Major ui revamp
Respects accent colour of workspace New design implementation Glance working
This commit is contained in:
parent
2e27bdad86
commit
3a95ef2b26
1 changed files with 50 additions and 49 deletions
|
@ -1,54 +1,55 @@
|
|||
@media (-moz-bool-pref: "zen.view.use-single-toolbar") {
|
||||
#zen-appcontent-wrapper {
|
||||
position: relative !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
#zen-appcontent-wrapper::before {
|
||||
.browserSidebarContainer.deck-selected::before {
|
||||
content: "" !important;
|
||||
position: absolute !important;
|
||||
top: 2px !important;
|
||||
left: 6px !important;
|
||||
height: 4px !important;
|
||||
max-width: calc(100% - 16px) !important;
|
||||
width: var(--bar-pcent) !important;
|
||||
background-color: var(--bar-colour) !important;
|
||||
border-radius: 4px;
|
||||
pointer-events: none !important;
|
||||
transition:
|
||||
background-color 0.2s ease-in-out,
|
||||
width 0.5s ease-in-out !important;
|
||||
top: 0px !important;
|
||||
left: 0px !important;
|
||||
height: 4px !important; /* Height of the top background */
|
||||
max-width: 100% !important;
|
||||
width: var(--bar-pcent) !important; /* Ensure full width or customizable width */
|
||||
background-color: var(--bar-colour) !important; /* Solid color for the bar */
|
||||
border-radius: 0 2px 2px 0; /* Adjust this value to control the roundness of the ends */
|
||||
z-index: 1 !important;
|
||||
transition: width 0.5s ease-in-out, background 0.2s ease !important; /* Apply smooth transition on width and background */
|
||||
} /* Current tab loading progress and muted status */
|
||||
|
||||
|
||||
.browserSidebarContainer.deck-selected:has([zen-glance-selected])::before,
|
||||
.browserSidebarContainer.deck-selected.zen-glance-overlay::before {
|
||||
max-width: calc(85%) !important;
|
||||
left: calc(15%/2) !important;
|
||||
border-radius: 6px !important;
|
||||
}
|
||||
|
||||
#main-window {
|
||||
.browserSidebarContainer.deck-selected.zen-glance-background::before {
|
||||
background: transparent !important;
|
||||
height: 0px !important;
|
||||
}
|
||||
|
||||
:root {
|
||||
&:has(.tabbrowser-tab[selected][busy]) {
|
||||
--bar-colour: white;
|
||||
--bar-pcent: 10%;
|
||||
--bar-colour: var(--zen-primary-color);
|
||||
--bar-pcent: 15%;
|
||||
}
|
||||
|
||||
&:has(.tabbrowser-tab[selected][busy][pendingicon]) {
|
||||
--bar-colour: white;
|
||||
--bar-pcent: 50%;
|
||||
--bar-colour: var(--zen-primary-color);
|
||||
--bar-pcent: 45%;
|
||||
}
|
||||
|
||||
&:has(.tabbrowser-tab[selected][busy][pendingicon][progress]) {
|
||||
--bar-colour: white;
|
||||
--bar-pcent: 80%;
|
||||
--bar-colour: var(--zen-primary-color);
|
||||
--bar-pcent: 85%;
|
||||
}
|
||||
|
||||
&:has(.tabbrowser-tab[selected][busy][progress]) {
|
||||
--bar-colour: white;
|
||||
--bar-pcent: 100%;
|
||||
--bar-colour: var(--zen-primary-color);
|
||||
--bar-pcent: 95%;
|
||||
}
|
||||
|
||||
&:has(.tabbrowser-tab[selected][muted]:not([busy])) {
|
||||
--bar-colour: orangered;
|
||||
--bar-pcent: 100%;
|
||||
}
|
||||
|
||||
&:has(.tabbrowser-tab[selected]:not([muted]):not([busy])) {
|
||||
--bar-colour: transparent;
|
||||
--bar-pcent: 0%;
|
||||
.browserSidebarContainer.deck-selected::before {
|
||||
border-radius: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue