Skip to content

Commit

Permalink
Update toolbar button sizes and padding in zen-sidebar.css and vertic…
Browse files Browse the repository at this point in the history
…al-tabs.css
  • Loading branch information
mauro-balades committed Sep 17, 2024
1 parent 9c26c5a commit fe88027
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/browser/base/content/zen-styles/zen-animations.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

@keyframes zen-slide-in {
from {
transform: translateX(-10px);
transform: translateX(-30px);
opacity: 0;
}
to {
Expand Down
29 changes: 16 additions & 13 deletions src/browser/base/content/zen-styles/zen-tabs/vertical-tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
--tab-border-radius: var(--border-radius-medium);
--zen-toolbox-min-width: 1px;

--tab-hover-background-color: var(--toolbarbutton-hover-background) !important;

min-width: var(--zen-toolbox-min-width);

padding: var(--zen-toolbox-padding);
Expand Down Expand Up @@ -63,6 +65,8 @@
grid-gap: 0 !important;

& .tabbrowser-tab {
animation: zen-slide-in 0.2s;

max-width: unset !important;
padding: 0 !important;

Expand All @@ -83,18 +87,6 @@
width: 3px !important;
}
}

.tab-throbber,
.tab-icon-pending,
.tab-icon-image,
.tab-sharing-icon-overlay,
.tab-icon-overlay {
&:not([pinned]) {
margin-inline-end: var(--toolbarbutton-inner-padding) !important;
margin-inline-start: calc(var(--toolbarbutton-inner-padding) / 4) !important;
}
}


@media (-moz-bool-pref: 'zen.tabs.dim-pending') {
&[pending='true'] .tab-icon-image {
Expand Down Expand Up @@ -177,7 +169,7 @@

padding-top: calc(var(--zen-toolbox-padding) * 2);

width: calc(100% - var(--zen-toolbox-padding));
width: 100%;
position: relative;

--toolbarbutton-inner-padding: 9px !important;
Expand Down Expand Up @@ -234,6 +226,17 @@
&:not([pinned]):is(:hover, [visuallyselected]) .tab-close-button {
display: block !important;
}

.tab-throbber,
.tab-icon-pending,
.tab-icon-image,
.tab-sharing-icon-overlay,
.tab-icon-overlay {
&:not([pinned]) {
margin-inline-end: var(--toolbarbutton-inner-padding) !important;
margin-inline-start: calc(var(--toolbarbutton-inner-padding) / 4) !important;
}
}
}
}

Expand Down

0 comments on commit fe88027

Please sign in to comment.