usercontext.css (3435B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 .identity-color-blue { 6 --identity-tab-color: #37adff; 7 --identity-icon-color: #37adff; 8 } 9 10 .identity-color-turquoise { 11 --identity-tab-color: #00c79a; 12 --identity-icon-color: #00c79a; 13 } 14 15 .identity-color-green { 16 --identity-tab-color: #51cd00; 17 --identity-icon-color: #51cd00; 18 } 19 20 .identity-color-yellow { 21 --identity-tab-color: #ffcb00; 22 --identity-icon-color: #ffcb00; 23 } 24 25 .identity-color-orange { 26 --identity-tab-color: #ff9f00; 27 --identity-icon-color: #ff9f00; 28 } 29 30 .identity-color-red { 31 --identity-tab-color: #ff613d; 32 --identity-icon-color: #ff613d; 33 } 34 35 .identity-color-pink { 36 --identity-tab-color: #ff4bda; 37 --identity-icon-color: #ff4bda; 38 } 39 40 .identity-color-purple { 41 --identity-tab-color: #af51f5; 42 --identity-icon-color: #af51f5; 43 } 44 45 .identity-color-toolbar { 46 --identity-tab-color: currentColor; 47 --identity-icon-color: currentColor; 48 } 49 50 .identity-icon-fence { 51 --identity-icon: url("resource://usercontext-content/fence.svg"); 52 } 53 54 .identity-icon-fingerprint { 55 --identity-icon: url("resource://usercontext-content/fingerprint.svg"); 56 } 57 58 .identity-icon-briefcase { 59 --identity-icon: url("resource://usercontext-content/briefcase.svg"); 60 } 61 62 .identity-icon-dollar { 63 --identity-icon: url("resource://usercontext-content/dollar.svg"); 64 } 65 66 .identity-icon-cart { 67 --identity-icon: url("resource://usercontext-content/cart.svg"); 68 } 69 70 .identity-icon-circle { 71 --identity-icon: url("resource://usercontext-content/circle.svg"); 72 } 73 74 .identity-icon-vacation { 75 --identity-icon: url("resource://usercontext-content/vacation.svg"); 76 } 77 78 .identity-icon-gift { 79 --identity-icon: url("resource://usercontext-content/gift.svg"); 80 } 81 82 .identity-icon-food { 83 --identity-icon: url("resource://usercontext-content/food.svg"); 84 } 85 86 .identity-icon-fruit { 87 --identity-icon: url("resource://usercontext-content/fruit.svg"); 88 } 89 90 .identity-icon-pet { 91 --identity-icon: url("resource://usercontext-content/pet.svg"); 92 } 93 94 .identity-icon-tree { 95 --identity-icon: url("resource://usercontext-content/tree.svg"); 96 } 97 98 .identity-icon-chill { 99 --identity-icon: url("resource://usercontext-content/chill.svg"); 100 } 101 102 #userContext-indicator { 103 height: 16px; 104 width: 16px; 105 margin-inline-start: 3px; 106 } 107 108 #userContext-label { 109 color: var(--identity-tab-color); 110 margin: 0; 111 max-width: 8em; 112 overflow: hidden; 113 text-overflow: ellipsis; 114 white-space: nowrap; 115 } 116 117 #userContext-icons { 118 align-items: center; 119 } 120 121 .tabbrowser-tab[usercontextid] > .tab-stack > .tab-background > .tab-context-line { 122 background-color: var(--identity-icon-color); 123 height: 2px; 124 border-radius: 2px; 125 margin: 0 calc(var(--tab-border-radius) / 2); 126 position: relative; 127 128 #tabbrowser-tabs[orient="vertical"] & { 129 height: auto; 130 width: 2px; 131 margin: calc(var(--tab-border-radius) / 2) 0; 132 } 133 } 134 135 .userContext-icon, 136 .subviewbutton[usercontextid] > .toolbarbutton-icon, 137 #userContext-indicator { 138 background-image: var(--identity-icon); 139 -moz-context-properties: fill; 140 fill: var(--identity-icon-color); 141 background-size: contain; 142 background-repeat: no-repeat; 143 background-position: center center; 144 } 145 146 .menuitem-iconic[data-usercontextid] { 147 --menuitem-icon: var(--identity-icon); 148 -moz-context-properties: fill; 149 fill: var(--identity-icon-color); 150 }