summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLootyhoof <lootyhoofer@gmail.com>2017-01-02 17:57:01 +0000
committerLootyhoof <lootyhoofer@gmail.com>2017-01-02 17:57:01 +0000
commit3699d5c91aba9731e9e0cdc0638fc566f230261d (patch)
tree4ee8f6ece27dac74dffd2d4b9e4da16f5de82451 /src
parentee3fe4e5b3596e727869200f95124762a718cd75 (diff)
Add padlocks from upstream
Diffstat (limited to 'src')
-rw-r--r--src/chrome/browser/browser.css10
-rw-r--r--src/chrome/browser/identity-domain-secure.svg27
-rw-r--r--src/chrome/browser/identity-mixed-active-loaded.svg38
-rw-r--r--src/chrome/browser/identity-mixed-passive-loaded.svg31
-rw-r--r--src/chrome/browser/identity-secure.svg27
-rw-r--r--src/chrome/browser/padlock/padlock.css108
6 files changed, 239 insertions, 2 deletions
diff --git a/src/chrome/browser/browser.css b/src/chrome/browser/browser.css
index 677e043..cfc315c 100644
--- a/src/chrome/browser/browser.css
+++ b/src/chrome/browser/browser.css
@@ -1,5 +1,6 @@
1@import url("chrome://ostarget/skin/browser.css"); 1@import url("chrome://ostarget/skin/browser.css");
2@import url("chrome://global/skin/"); 2@import url("chrome://global/skin/");
3@import url("chrome://browser/skin/padlock/padlock.css");
3 4
4@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); 5@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
5@namespace html url("http://www.w3.org/1999/xhtml"); 6@namespace html url("http://www.w3.org/1999/xhtml");
@@ -1737,9 +1738,14 @@ toolbarbutton.bookmark-item[dragover="true"][open="true"] {
1737 -moz-margin-start: -24px; 1738 -moz-margin-start: -24px;
1738} 1739}
1739 1740
1740#identity-popup-content-box.verifiedIdentity > #identity-popup-encryption > vbox > #identity-popup-encryption-icon , 1741#identity-popup-content-box.verifiedIdentity > #identity-popup-encryption > vbox > #identity-popup-encryption-icon {
1742 list-style-image: url("chrome://browser/skin/identity-secure.svg");
1743 width: 32px;
1744}
1745
1741#identity-popup-content-box.verifiedDomain > #identity-popup-encryption > vbox > #identity-popup-encryption-icon { 1746#identity-popup-content-box.verifiedDomain > #identity-popup-encryption > vbox > #identity-popup-encryption-icon {
1742 list-style-image: url("chrome://browser/skin/Secure24.png"); 1747 list-style-image: url("chrome://browser/skin/identity-domain-secure.svg");
1748 width: 32px;
1743} 1749}
1744 1750
1745#identity-popup-help-icon { 1751#identity-popup-help-icon {
diff --git a/src/chrome/browser/identity-domain-secure.svg b/src/chrome/browser/identity-domain-secure.svg
new file mode 100644
index 0000000..89c7ac4
--- /dev/null
+++ b/src/chrome/browser/identity-domain-secure.svg
@@ -0,0 +1,27 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
6 width="16" height="16" viewBox="0 0 16 16">
7 <style>
8 .icon-default {
9 fill: #4562A5;
10 }
11 </style>
12
13 <defs>
14 <rect id="shape-lock-clasp-outer" x="4" y="2" width="8" height="10" rx="4" ry="4" />
15 <rect id="shape-lock-clasp-inner" x="6" y="4" width="4" height="6" rx="2" ry="2" />
16 <rect id="shape-lock-base" x="3" y="7" width="10" height="7" rx="1" ry="1" />
17
18 <mask id="mask-clasp-cutout">
19 <rect width="16" height="16" fill="#000" />
20 <use xlink:href="#shape-lock-clasp-outer" fill="#fff" />
21 <use xlink:href="#shape-lock-clasp-inner" fill="#000" />
22 </mask>
23 </defs>
24
25 <use xlink:href="#shape-lock-clasp-outer" mask="url(#mask-clasp-cutout)" class="icon-default" />
26 <use xlink:href="#shape-lock-base" class="icon-default" />
27</svg>
diff --git a/src/chrome/browser/identity-mixed-active-loaded.svg b/src/chrome/browser/identity-mixed-active-loaded.svg
new file mode 100644
index 0000000..05efae9
--- /dev/null
+++ b/src/chrome/browser/identity-mixed-active-loaded.svg
@@ -0,0 +1,38 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
6 width="16" height="16" viewBox="0 0 16 16">
7 <style>
8 .icon-default {
9 fill: #7F7F7F;
10 }
11 </style>
12
13 <defs>
14 <rect id="shape-lock-clasp-outer" x="4" y="2" width="8" height="10" rx="4" ry="4" />
15 <rect id="shape-lock-clasp-inner" x="6" y="4" width="4" height="6" rx="2" ry="2" />
16 <rect id="shape-lock-base" x="3" y="7" width="10" height="7" rx="1" ry="1" />
17
18 <mask id="mask-clasp-cutout">
19 <rect width="16" height="16" fill="#000" />
20 <use xlink:href="#shape-lock-clasp-outer" fill="#fff" />
21 <use xlink:href="#shape-lock-clasp-inner" fill="#000" />
22 <line x1="2" y1="13" x2="14" y2="1.5" stroke="#000" stroke-width="2" />
23 <line x1="2" y1="15" x2="14" y2="3.5" stroke="#000" stroke-width="2" />
24 <rect x="3" y="7" width="10" height="7" rx="1" ry="1" fill="#000" />
25 </mask>
26
27 <mask id="mask-base-cutout">
28 <rect width="16" height="16" fill="#000" />
29 <use xlink:href="#shape-lock-base" fill="#fff" />
30 <line x1="2" y1="14.8" x2="14" y2="3.2" stroke="#000" stroke-width="1.8" />
31 </mask>
32 </defs>
33
34 <use xlink:href="#shape-lock-clasp-outer" mask="url(#mask-clasp-cutout)" class="icon-default" />
35 <use xlink:href="#shape-lock-base" mask="url(#mask-base-cutout)" class="icon-default" />
36
37 <line x1="2" y1="14.1" x2="14" y2="2.5" stroke="#d92d21" stroke-width="1.8" />
38</svg>
diff --git a/src/chrome/browser/identity-mixed-passive-loaded.svg b/src/chrome/browser/identity-mixed-passive-loaded.svg
new file mode 100644
index 0000000..1471fb1
--- /dev/null
+++ b/src/chrome/browser/identity-mixed-passive-loaded.svg
@@ -0,0 +1,31 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
6 width="16" height="16" viewBox="0 0 16 16">
7 <style>
8 .icon-default {
9 fill: #7F7F7F;
10 }
11 </style>
12
13 <defs>
14 <rect id="shape-lock-clasp-outer" x="2" y="1" width="8" height="10" rx="4" ry="4" />
15 <rect id="shape-lock-clasp-inner" x="4" y="3" width="4" height="6" rx="2" ry="2" />
16 <rect id="shape-lock-base" x="1" y="6" width="10" height="7" rx="1" ry="1" />
17
18 <mask id="mask-clasp-cutout">
19 <rect width="16" height="16" fill="#000" />
20 <use xlink:href="#shape-lock-clasp-outer" fill="#fff" />
21 <use xlink:href="#shape-lock-clasp-inner" fill="#000" />
22 </mask>
23 </defs>
24
25 <use xlink:href="#shape-lock-clasp-outer" mask="url(#mask-clasp-cutout)" class="icon-default" />
26 <use xlink:href="#shape-lock-base" class="icon-default" />
27 <path fill="#fff" d="M10.5,5C9.8,5,9.1,5.4,8.8,6.2l-3.5,6.8c-0.4,0.7-0.4,1.4,0,2c0.4,0.6,1,1,1.8,1H14c0.8,0,1.4-0.4,1.8-1 c0.3-0.6,0.3-1.4,0-2l-3.5-6.8C11.9,5.4,11.2,5,10.5,5L10.5,5z"/>
28 <path fill="#ffbf00" d="M14.8,13.4l-3.5-6.8C11.2,6.2,10.9,6,10.5,6c-0.3,0-0.7,0.2-0.9,0.6l-3.5,6.8c-0.2,0.4-0.2,0.8,0,1.1C6.3,14.8,6.6,15,7,15 H14c0.4,0,0.7-0.2,0.9-0.5C15.1,14.2,15,13.8,14.8,13.4z"/>
29 <path fill="#fff" d="M10,8.5C10,8.2,10.2,8,10.5,8S11,8.2,11,8.5L10.8,11h-0.6L10,8.5z" />
30 <circle fill="#fff" cx="10.5" cy="12.5" r=".75" />
31</svg>
diff --git a/src/chrome/browser/identity-secure.svg b/src/chrome/browser/identity-secure.svg
new file mode 100644
index 0000000..5dad890
--- /dev/null
+++ b/src/chrome/browser/identity-secure.svg
@@ -0,0 +1,27 @@
1<?xml version="1.0" encoding="utf-8"?>
2<!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
5<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
6 width="16" height="16" viewBox="0 0 16 16">
7 <style>
8 .icon-default {
9 fill: #4d9a26;
10 }
11 </style>
12
13 <defs>
14 <rect id="shape-lock-clasp-outer" x="4" y="2" width="8" height="10" rx="4" ry="4" />
15 <rect id="shape-lock-clasp-inner" x="6" y="4" width="4" height="6" rx="2" ry="2" />
16 <rect id="shape-lock-base" x="3" y="7" width="10" height="7" rx="1" ry="1" />
17
18 <mask id="mask-clasp-cutout">
19 <rect width="16" height="16" fill="#000" />
20 <use xlink:href="#shape-lock-clasp-outer" fill="#fff" />
21 <use xlink:href="#shape-lock-clasp-inner" fill="#000" />
22 </mask>
23 </defs>
24
25 <use xlink:href="#shape-lock-clasp-outer" mask="url(#mask-clasp-cutout)" class="icon-default" />
26 <use xlink:href="#shape-lock-base" class="icon-default" />
27</svg>
diff --git a/src/chrome/browser/padlock/padlock.css b/src/chrome/browser/padlock/padlock.css
new file mode 100644
index 0000000..6488c23
--- /dev/null
+++ b/src/chrome/browser/padlock/padlock.css
@@ -0,0 +1,108 @@
1#padlock-ib[padshow="ib-trans-bg"][level="ev"] {
2 list-style-image: url("chrome://browser/skin/identity-secure.svg") !important;
3 background-color: transparent;
4}
5
6#padlock-ib[padshow="ib-trans-bg"][level="high"] {
7 list-style-image: url("chrome://browser/skin/identity-domain-secure.svg") !important;
8 background-color: transparent;
9}
10
11#padlock-ib[padshow="ib-trans-bg"][level="low"],
12#padlock-ib[padshow="ib-trans-bg"][level="mixed"] {
13 list-style-image: url("chrome://browser/skin/identity-mixed-passive-loaded.svg") !important;
14 background-color: transparent;
15}
16
17#padlock-ib[padshow="ib-trans-bg"][level="broken"] {
18 list-style-image: url("chrome://browser/skin/identity-mixed-active-loaded.svg") !important;
19 background-color: transparent;
20}
21
22#padlock-ib-left[padshow="ib-left"][level="ev"] {
23 list-style-image: url("chrome://browser/skin/identity-secure.svg") !important;
24 padding:2px;
25 background-color: transparent;
26}
27
28#padlock-ib-left[padshow="ib-left"][level="high"] {
29 list-style-image: url("chrome://browser/skin/identity-domain-secure.svg") !important;
30 padding:2px;
31 background-color: transparent;
32}
33
34#padlock-ib-left[padshow="ib-left"][level="low"],
35#padlock-ib-left[padshow="ib-left"][level="mixed"] {
36 list-style-image: url("chrome://browser/skin/identity-mixed-passive-loaded.svg") !important;
37 padding:2px;
38 background-color: transparent;
39}
40
41#padlock-ib-left[padshow="ib-left"][level="broken"] {
42 list-style-image: url("chrome://browser/skin/identity-mixed-active-loaded.svg") !important;
43 padding:2px;
44 background-color: transparent;
45}
46
47#padlock-ub-right[padshow="ub-right"][level="ev"] {
48 list-style-image: url("chrome://browser/skin/identity-secure.svg") !important;
49 background-color: transparent;
50}
51
52#padlock-ub-right[padshow="ub-right"][level="high"] {
53 list-style-image: url("chrome://browser/skin/identity-domain-secure.svg") !important;
54 background-color: transparent;
55}
56
57#padlock-ub-right[padshow="ub-right"][level="low"],
58#padlock-ub-right[padshow="ub-right"][level="mixed"] {
59 list-style-image: url("chrome://browser/skin/identity-mixed-passive-loaded.svg") !important;
60 background-color: transparent;
61}
62
63#padlock-ub-right[padshow="ub-right"][level="broken"] {
64 list-style-image: url("chrome://browser/skin/identity-mixed-active-loaded.svg") !important;
65 background-color: transparent;
66}
67
68#padlock-sb[padshow="statbar"][level="ev"] {
69 list-style-image: url("chrome://browser/skin/identity-secure.svg") !important;
70 background-color: transparent;
71}
72
73#padlock-sb[padshow="statbar"][level="high"] {
74 list-style-image: url("chrome://browser/skin/identity-domain-secure.svg") !important;
75 background-color: transparent;
76}
77
78#padlock-sb[padshow="statbar"][level="low"],
79#padlock-sb[padshow="statbar"][level="mixed"] {
80 list-style-image: url("chrome://browser/skin/identity-mixed-passive-loaded.svg") !important;
81 background-color: transparent;
82}
83
84#padlock-sb[padshow="statbar"][level="broken"] {
85 list-style-image: url("chrome://browser/skin/identity-mixed-active-loaded.svg") !important;
86 background-color: transparent;
87}
88
89#padlock-tab[padshow="tabs-bar"][level="ev"] {
90 list-style-image: url("chrome://browser/skin/identity-secure.svg") !important;
91 background-color: transparent;
92}
93
94#padlock-tab[padshow="tabs-bar"][level="high"] {
95 list-style-image: url("chrome://browser/skin/identity-domain-secure.svg") !important;
96 background-color: transparent;
97}
98
99#padlock-tab[padshow="tabs-bar"][level="low"],
100#padlock-tab[padshow="tabs-bar"][level="mixed"] {
101 list-style-image: url("chrome://browser/skin/identity-mixed-passive-loaded.svg") !important;
102 background-color: transparent;
103}
104
105#padlock-tab[padshow="tabs-bar"][level="broken"] {
106 list-style-image: url("chrome://browser/skin/identity-mixed-active-loaded.svg") !important;
107 background-color: transparent;
108} \ No newline at end of file