mirror of
https://github.com/CaptaiNiveau/FirefoxSidebar.git
synced 2024-11-22 14:52:49 +00:00
188 lines
10 KiB
Markdown
188 lines
10 KiB
Markdown
# Tree Style Tabs
|
|
|
|
This is a recreation (and better) version of my pseudo-popular Vivaldi vertical tab integration, for tree style tabs in firefox.
|
|
|
|
```/* Hide .twisty and adjust margins so favicons have 7px on left. */
|
|
.tab .twisty {
|
|
visibility: hidden;
|
|
margin-left: -8px;
|
|
display: none;
|
|
}
|
|
|
|
tab-item:hover {
|
|
background: var(--in-content-box-background-hover) !important;
|
|
opacity: 1;
|
|
}
|
|
|
|
|
|
/* Push tab labels slightly to the right so they're completely hidden in collapsed state */
|
|
.tab .label {
|
|
font-size: 16px;
|
|
padding-left: 5px
|
|
}
|
|
|
|
.tab:not(:hover) > .closebox {
|
|
display: none;
|
|
}
|
|
|
|
.closebox:hover {
|
|
font-weight: 900;
|
|
}
|
|
|
|
.tab, .tabs, body, #background {
|
|
/* #F5F6F7; */
|
|
background: transparent;
|
|
}
|
|
|
|
|
|
.favicon {
|
|
--favicon-size: 17px !important;
|
|
margin: 0;
|
|
padding: 0 !important;
|
|
--svg-small-icon-size: var(--favicon-size);
|
|
/*! text-align: center; */
|
|
margin-left: .5px;
|
|
}
|
|
tab-item {
|
|
border: 1px solid transparent !important;
|
|
height: auto !important;
|
|
position: relative !important;
|
|
font-size: 13px;
|
|
background: none !important;
|
|
overflow: hidden !important;
|
|
text-align: center;
|
|
box-shadow: none !important;
|
|
border-radius: 5px;
|
|
padding: 5px !important;
|
|
margin: 7.5px 11px !Important;
|
|
text-align: center;
|
|
}
|
|
.tab .label {
|
|
font-size: 13px !important;
|
|
}
|
|
#tabbar-container:not(:hover) {
|
|
width: 50px;
|
|
/*! margin: 2px; */
|
|
}
|
|
#all-tabs {
|
|
}
|
|
#tabbar {
|
|
}
|
|
#tabbar:hover {
|
|
max-width: 100%;
|
|
}
|
|
#tabbar:not(:hover) tab-item {
|
|
overflow: hidden !important;
|
|
width: 100%;
|
|
width: 30px;
|
|
text-align: center;
|
|
}
|
|
tab-item:not(:hover) {
|
|
}
|
|
tab-item .label, tab-item .highlighter, tab-item .contextual-identity-marker, tab-item .extra-items-container, tab-item .counter {
|
|
/*! display: none; */
|
|
/*! margin: 0px !Important; */
|
|
}
|
|
tab-item.active {
|
|
background-color: var(--in-content-box-background) !important;
|
|
box-shadow: 0px 5px 10px var(--in-content-box-background-active) !important;
|
|
}
|
|
|
|
:root .tab .highlighter::before {
|
|
display: none;
|
|
}
|
|
|
|
.after-tabs button {
|
|
border: none;
|
|
box-shadow: none;
|
|
padding: 5px;
|
|
margin: 11px;
|
|
text-align: left;
|
|
background: none;
|
|
}
|
|
|
|
.after-tabs button:hover {
|
|
background: var(--in-content-box-background-hover) !important;
|
|
opacity: 1;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
#tabbar:hover [data-level="1"] {
|
|
margin-left: 22px !important;
|
|
}
|
|
|
|
#tabbar:hover [data-level="2"] {
|
|
margin-left: 32px !important;
|
|
}
|
|
|
|
#tabbar:hover [data-level="3"] {
|
|
margin-left: 42px !important;
|
|
}
|
|
|
|
#tabbar:hover [data-level="4"] {
|
|
margin-left: 52px !important;
|
|
}
|
|
|
|
#tabbar:hover [data-level="5"] {
|
|
margin-left: 62px !important;
|
|
}
|
|
|
|
#tabbar:hover [data-level="6"] {
|
|
margin-left: 72px !important;
|
|
}
|
|
|
|
#tabbar:hover [data-level="7"] {
|
|
margin-left: 82px !important;
|
|
}
|
|
|
|
#tabbar:hover [data-level="8"] {
|
|
margin-left: 82px !important;
|
|
}
|
|
|
|
#tabbar::before {
|
|
content: " ";
|
|
height: 21px;
|
|
width: 100%;
|
|
background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAQAAAD2e2DtAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAAmJLR0QAAKqNIzIAAAAHdElNRQfiBgs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YAAAAAElFTkSuQmCC');
|
|
background-size: contain;
|
|
background-repeat: no-repeat;
|
|
margin-top: 16px;
|
|
margin-bottom: 3px;
|
|
text-align: right;
|
|
margin-right: -15px !important;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
|
|
.newtab-button {
|
|
/*! text-align: left; */
|
|
/*! margin: 8px !important; */
|
|
}
|
|
|
|
.newtab-button::after {
|
|
content: "New Tab";
|
|
font-size: 13px;
|
|
padding-left: 10px;
|
|
margin-top: 0px;
|
|
position: absolute;
|
|
opacity: 0.85;
|
|
display: none;
|
|
}
|
|
|
|
.after-tabs {
|
|
border-top: 1px solid var(--in-content-border-color);
|
|
}
|
|
|
|
#tabbar-container:hover .newtab-button::after {
|
|
display: inline-block;
|
|
}
|
|
|
|
|
|
#tabbar-container {
|
|
background: var(--theme-colors-toolbar);
|
|
}
|
|
|
|
.newtab-button::before {
|
|
padding-left: 1.5px;
|
|
}
|
|
```
|