-
Notifications
You must be signed in to change notification settings - Fork 281
Metal theme
YUKI "Piro" Hiroshi edited this page Jul 6, 2021
·
4 revisions
The "Metal" theme was removed at TST 3.5.16. You can use it as a user style. Please see the description how to use this also.
/*
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/* tabs */
:root {
--tab-dropmarker: white;
--throbber-color: white;
--throbber-color-active: white;
--throbber-shadow-color: rgba(0, 0, 0, 0.45);
--tab-like-surface: #9d9d9d;
--tab-surface-regular: var(--tab-like-surface);
--tab-surface-active: #b3b2b3;
--tab-surface-active-pale: #939293;
--tab-text-regular: black;
--tab-text-inverted: white;
--tab-text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
--tab-highlighted-highlight: white;
--tab-highlighted-glow: var(--tab-surface-active);
--tab-highlighted-base: var(--tab-surface);
--bg-color: #797979;
}
tab-item-substance,
tab-item-substance *,
tab-item-substance:hover,
.after-tabs button,
.after-tabs [role="button"] {
color: val(--tab-text);
}
:root.left tab-item:not(.faviconized) tab-item-substance,
:root.left .after-tabs button,
:root.left .after-tabs [role="button"] {
border-image: var(--image-tab-l) 10 5 10 10 fill / 10px 5px 10px 10px;
padding: 2px 5px 2px 10px;
}
:root.left tab-item:not(.faviconized).active tab-item-substance,
:root.left .after-tabs button:hover,
:root.left .after-tabs [role="button"]:hover {
border-image: var(--image-tab-active-l) 10 5 10 10 fill / 10px 5px 10px 10px;
}
:root.left tab-item:not(.faviconized).bundled-active tab-item-substance {
border-image: var(--image-tab-half-active-l) 10 5 10 10 fill / 10px 5px 10px 10px;
}
:root.right tab-item:not(.faviconized) tab-item-substance,
:root.right .after-tabs button,
:root.right .after-tabs [role="button"] {
border-image: var(--image-tab-r) 10 10 10 5 fill / 10px 10px 10px 5px;
padding: 2px 10px 2px 5px;
}
:root.right tab-item:not(.faviconized).active tab-item-substance,
:root.right .after-tabs button:hover,
:root.right .after-tabs [role="button"]:hover {
border-image: var(--image-tab-active-r) 10 10 10 5 fill / 10px 10px 10px 5px;
}
:root.right tab-item:not(.faviconized).bundled-active tab-item-substance {
border-image: var(--image-tab-half-active-r) 10 10 10 5 fill / 10px 10px 10px 5px;
}
/* macOS workaround */
:root.platform-mac #tabbar:dir(rtl).overflow tab-item:not(.pinned) tab-item-substance {
padding-left: var(--scrollbar-placeholder-size); /* it will be enough larger than the default padding */
}
:root.platform-mac #tabbar:dir(ltr).overflow tab-item:not(.pinned) tab-item-substance {
padding-right: var(--scrollbar-placeholder-size); /* it will be enough larger than the default padding */
}
tab-favicon {
background: var(--image-icon-bg) no-repeat bottom;
background-size: 100%;
padding: 0 3px 3px;
position: relative;
left: -3px;
}
tab-item tab-label,
tab-item .counter {
text-shadow: var(--tab-text-shadow);
}
tab-item tab-label {
margin-left: 0.25em;
}
tab-closebox {
background: none transparent;
border: 0 none;
padding: 5px 3px 7px;
}
/* pinned tabs */
tab-item.faviconized tab-item-substance {
border: 1px solid #666666;
border-radius: 4px;
margin: 1px 0 0 1px;
padding: 2px 4px 2px 3px;
}
tab-item.faviconized.unread tab-favicon::before,
tab-item.attention tab-favicon::before {
left: calc(var(--attention-marker-x-offset) + 3px);
}
tab-item.faviconized.active tab-item-substance {
background: var(--tab-surface-active);
}
tab-item.faviconized.bundled-active tab-item-substance {
background: var(--tab-surface-active-pale);
}
/* tab bar */
:root,
#background {
background: var(--bg-color);
}
:root.left #background {
border-right: 2px solid #444444;
}
:root.left:not(.overflow) #tabbar {
background-image: var(--image-shadow-active-l);
background-repeat: repeat-y;
background-position: top right;
}
:root.right #background {
border-left: 2px solid #444444;
}
:root.right:not(.overflow) #tabbar {
background-image: var(--image-shadow-active-r);
background-repeat: repeat-y;
background-position: top left;
}
/* anchor buttons on the new tab button */
:root.left:not(.contextual-identity-selectable)
.after-tabs
.newtab-action-selector-anchor,
:root.left
.after-tabs .contextual-identities-selector-anchor {
border-image: var(--image-tab-r) 10 10 10 5 fill / 10px 0 10px 5px;
padding-left: 5px;
}
:root.left:not(.contextual-identity-selectable)
.after-tabs
.newtab-action-selector-anchor:hover,
:root.left
.after-tabs .contextual-identities-selector-anchor:hover {
border-image: var(--image-tab-active-r) 10 10 10 5 fill / 10px 0 10px 5px;
}
:root.left.contextual-identity-selectable
.after-tabs
.newtab-action-selector-anchor {
padding-right: 15px;
}
:root.right:not(.contextual-identity-selectable)
.after-tabs
.newtab-action-selector-anchor,
:root.right
.after-tabs .contextual-identities-selector-anchor {
padding-right: 20px;
}
:root.right.contextual-identity-selectable
.after-tabs
.newtab-action-selector-anchor {
border-image: var(--image-tab-l) 10 5 10 10 fill / 10px 5px 10px 0;
padding-right: 10px;
}
:root.right.contextual-identity-selectable
.after-tabs
.newtab-action-selector-anchor:hover {
border-image: var(--image-tab-active-l) 10 5 10 10 fill / 10px 5px 10px 0;
}
.mutiple-highlighted tab-item:not(.highlighted) tab-item-substance {
opacity: 0.5;
}
/* hide regular active tab marker */
.highlighter::before {
display: none !important;
}
/* image data definitions */
:root {
--image-icon-bg: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAACGFjVEwAAAAEAAAAAQvKVkYAAADaSURBVEiJ7dRNSwJRGAXgp2hGUcIMoUUSIRmzayME4sqFkPT/f0+bM3AbzCLKIObA2bz3fHAv7ww9evTo0eN/4azg+ScstV8Ob80XYYW64CAsZ1WhL8uPllQJGuESE1xhiusOpzmbRDuKt/qorC2pMU7ADea4xwIPWOIxXGa2iGYezzQZ9aGy9iZjzHCHBk9Y4RlrbDpc52wVbRPvLFntzd4VDfIEtzGsErbFDi/Y4zXcZ7aLZhNPk4xJMv+u6CRPd7JlKMsqDH1/vYeOrHe37Fc/2EOlP/YLegNqoxaPR2dk1wAAABpmY1RMAAAAAAAAABoAAAAaAAAAAAAAAAAAAQPoAQGvkwOwAAAAHmZkQVQAAAABSIntwTEBAAAAwqD1T20ND6AAAODRAAqqAAHckMdJAAAAGmZjVEwAAAACAAAA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SUhEUgAAAAUAAAAHCAYAAADAp4fuAAAAIElEQVQImWNgYGBgZmBg4GNgYJBnYGAwYWBgiGIYUEEAX4IFM/LDwR0AAAAASUVORK5CYII=");
--image-shadow-r: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAHCAYAAADAp4fuAAAAIElEQVQImWNgYGCIYmBgMGFgYJBnYGDgY2BgYGYYUEEAjeIFM/R6p3QAAAAASUVORK5CYII=");
--image-tab-active-l: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAaCAYAAADSbo4CAAABSElEQVRIie3XsUrDUBTG8X8SqkZBxYJapEIQh2QRHMSCUyE4xcUiqO2apasW7DM4aFc72MUuBsFiLabN5EM46zs4KFgHU4iJi0NyO+TAt/843Hs4B6IlAQqgAvPAErAC5GNOBDEJLADrwA6wBxwCZaASYyKIHFDQNK1aP6s/O47z0bnvDONOEKL4nSjUTmt37Zv2exKAMEQCpoA1XderSQL+gswCW7Zt34qEyEAW2G1eNV9FQhT/kZZ6j71PkZAMP7PiyBt4iSPCkDxQHhdIJYWkkBTyD8hYzBEFWAb2RUNkfwUoNi4bLyIhEjADbJimedF96AqDAEwAq6qqHvTdvlCIDMwBm5ZlnbtP7leSnQlCJL8ri8C2YRgnrevWmzfwhkmEUI0W6CygA0WgBBwT7wb/a4sPYjLAtP+Tcgi4a4KY0aGl+LBY8w0u5p6RGIHpcwAAAABJRU5ErkJggg==");
--image-tab-active-r: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAaCAYAAADSbo4CAAABUUlEQVRIie2XsUrDUBSGPw1Vo6BSQS2iEMQhWQQHUXAqBKe4KILarFm6asE+g4N2tYNd7GIQLI3FtJl8CGd9BwcF49DbiiSLQ3IdcuHfP8459z//AVhOWEvAAjALqIACjBDz7ARVAo6APWAHWAPywHgEpvXQCpOW67of1fPqs6ZpZWAbKERg0gAZqHnbfK+cVe4FTF60KX2QgXRdLwOrwMSwKjJAHMe5AzaBaakg9ev6K7ALzAGj0kA6j51P4EAMrSINJOgFIXAsPCYnG6QkDE86iJ2BZCAZyB9B/o2P7AOLUp21dlV7AYoiCsjZNV7bC03TvATWgSlp27frd0NVVQ+BFWAs9WDktb3Qf/K/LMu6ADaAmWFbAIJeEKahxk3jzTCMU2ALmBfV+BWgk0zxNnBCP3sUAZ1+GIqmeNK5awrih0wK34i9a3IpSOHnsIqF+AZhDJ6R+/g3FQAAAABJRU5ErkJggg==");
--image-tab-half-active-l: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAaCAYAAADSbo4CAAACF0lEQVRIicXXX2vTUBzG8afd1G5zYi2iIoyBOGzfRvFVCFvfRi+87m57KW0yzL/mnN9Juq5J272NvQIvBV/Ack4qeJEGa1PLhB574EsCycWH5ORwAqwfJQD7AJ4AOATwFMCx5gpjD0AFQBXAWwDvAHwAUAfQ0FgBcQSg2ul0Ti87l3ecczkMh+k2C4MwJU5z5rO567hz0zB/rr6OCoBq70uv69jO/bYBD4XsA3jebrcbugAPhTwG8LrX633eJaQE4ADAqWmYP3YNOQJwNr4Zb31y/gukjGytqN/ObtMwDNMwCLNjfr7apmur9yzfuzgSUeoP/NR13PmVeTVfhhwDqM+mMxWIQHvEM4jjOGshjf8BESR+Q+wdQzjjagFJ10Kmk6kSQuiNhGKMKc/z1GYICa0RkWI+U567ATKJJ1KQ0BpxkjnEtmxlmmYREkexJCK9cZKccem5nrIsSxl9Iy2sI3EUS+KkPcZYBvn6JyRfWd9HUaQdwTmXzGfScz25DlIBcNLtdr8JEonOiFPyNwgAPALw8vzT+UUYhAkR6SuDJJ7rSduypdE31DJkD8CzWq1WH9+ME+KktU2QErLN8qtWq9UaXY/ugyDQguCcJ77vJ67rSsuyCpD8qRwCeNNsNj/2+/3vcRQnOhqNRnIYDiVxUgNvkK5CcswBgBcATgCcQf8OvrCLz0d5MXkryD7rnfzXLI/SorLufgGQ3k0BdvjnWwAAAABJRU5ErkJggg==");
--image-tab-half-active-r: url("data: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