Plus panel
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- 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/. -->
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<filter id="fill">
|
||||
<feComposite in="FillPaint" in2="SourceGraphic" operator="in"/>
|
||||
</filter>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 400 B |
@@ -1,13 +1,3 @@
|
||||
/* containers experiment */
|
||||
.tabbrowser-tab[usercontextid] {
|
||||
background-image: linear-gradient(to right, var(--identity-tab-color) 0%, var(--identity-tab-color) 100%) !important;
|
||||
background-size: var(--identity-stroke-background-size) !important;
|
||||
background-repeat: no-repeat !important;
|
||||
background-position: 0 29px !important;
|
||||
--identity-stroke-background-size: auto 2px;
|
||||
}
|
||||
|
||||
/* set defaults for ids as currently we don't set identity color */
|
||||
[usercontextid="1"],
|
||||
[data-identity-color="blue"] {
|
||||
--identity-tab-color: #37adff;
|
||||
@@ -52,6 +42,73 @@
|
||||
--identity-icon-color: #af51f5;
|
||||
}
|
||||
|
||||
[data-identity-icon="fingerprint"] {
|
||||
/*--identity-icon: url("chrome://browser/content/usercontext.svg#fingerprint"); */
|
||||
--identity-icon: url("resource://testpilot-containers/data/usercontext.svg#fingerprint");
|
||||
}
|
||||
|
||||
[data-identity-icon="briefcase"] {
|
||||
/* --identity-icon: url("chrome://browser/content/usercontext.svg#briefcase"); */
|
||||
--identity-icon: url("resource://testpilot-containers/data/usercontext.svg#briefcase");
|
||||
}
|
||||
|
||||
[data-identity-icon="dollar"] {
|
||||
/* --identity-icon: url("chrome://browser/content/usercontext.svg#dollar"); */
|
||||
--identity-icon: url("resource://testpilot-containers/data/usercontext.svg#dollar");
|
||||
}
|
||||
|
||||
[data-identity-icon="cart"] {
|
||||
/* --identity-icon: url("chrome://browser/content/usercontext.svg#cart"); */
|
||||
--identity-icon: url("resource://testpilot-containers/data/usercontext.svg#cart");
|
||||
}
|
||||
|
||||
[data-identity-icon="circle"] {
|
||||
/* --identity-icon: url("chrome://browser/content/usercontext.svg#circle"); */
|
||||
--identity-icon: url("resource://testpilot-containers/data/usercontext.svg#circle");
|
||||
}
|
||||
|
||||
#userContext-indicator {
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
#userContext-label {
|
||||
margin-inline-end: 3px;
|
||||
color: var(--identity-tab-color);
|
||||
}
|
||||
|
||||
#userContext-icons {
|
||||
-moz-box-align: center;
|
||||
}
|
||||
|
||||
.tabbrowser-tab[usercontextid] {
|
||||
background-image: linear-gradient(to right, transparent 20%, var(--identity-tab-color) 30%, var(--identity-tab-color) 70%, transparent 80%);
|
||||
background-size: auto 2px;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
|
||||
.userContext-icon,
|
||||
.menuitem-iconic[data-usercontextid] > .menu-iconic-left > .menu-iconic-icon,
|
||||
.subviewbutton[usercontextid] > .toolbarbutton-icon,
|
||||
#userContext-indicator {
|
||||
background-image: var(--identity-icon);
|
||||
filter: url(/img/filters.svg#fill);
|
||||
filter: url(resource://testpilot-containers/data/filters.svg#fill);
|
||||
fill: var(--identity-icon-color);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
background-position: center center;
|
||||
}
|
||||
|
||||
/* containers experiment */
|
||||
.tabbrowser-tab[usercontextid] {
|
||||
background-image: linear-gradient(to right, var(--identity-tab-color) 0%, var(--identity-tab-color) 100%) !important;
|
||||
background-size: var(--identity-stroke-background-size) !important;
|
||||
background-repeat: no-repeat !important;
|
||||
background-position: 0 29px !important;
|
||||
--identity-stroke-background-size: auto 2px;
|
||||
}
|
||||
|
||||
.tabbrowser-tab[usercontextid] .tab-background-start:not([selected="true"]) {
|
||||
background-image: linear-gradient(to left, var(--identity-tab-color) 0%, var(--identity-tab-color) 50%, transparent 50%, transparent 100%);
|
||||
background-position: 0 28px;
|
||||
@@ -114,3 +171,48 @@
|
||||
background-repeat: repeat-x;
|
||||
}
|
||||
/* end containers experiment */
|
||||
|
||||
.tabs-newtab-button .toolbarbutton-icon[type="menu"] {
|
||||
margin-inline-end: 0;
|
||||
}
|
||||
|
||||
.tabs-newtab-button .toolbarbutton-menu-dropmarker {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#new-tab-overlay {
|
||||
visibility: visible;
|
||||
block-size: 200px;
|
||||
inline-size: auto;
|
||||
display: block;
|
||||
background: transparent;
|
||||
position: absolute;
|
||||
-moz-appearance: none;
|
||||
offset-block-start: 29px;
|
||||
}
|
||||
#new-tab-overlay[hidden=true] {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#new-tab-overlay menuitem {
|
||||
background: white;
|
||||
margin-block-end: 12px;
|
||||
border-radius: 20px;
|
||||
-moz-appearance: none;
|
||||
color: #4b4b4b;
|
||||
padding: 6px;
|
||||
font-size: 1.2rem;
|
||||
box-shadow: 3px 7px 7px #0006;
|
||||
--icon-size: 26px;
|
||||
/* Limited width to 8chars roughly */
|
||||
inline-size: calc(calc(8*0.68em) + var(--icon-size) + 3px);
|
||||
}
|
||||
|
||||
#new-tab-overlay .menuitem-iconic[data-usercontextid] > .menu-iconic-left > .menu-iconic-icon {
|
||||
block-height: var(--icon-size);
|
||||
block-width: var(--icon-size);
|
||||
}
|
||||
|
||||
.menuitem-iconic[data-usercontextid] > .menu-iconic-left {
|
||||
visibility: visible;
|
||||
}
|
||||
Reference in New Issue
Block a user