Translation updates
[torbutton.git] / chrome / skin / tor-circuit-display.css
blob4f03b882446423566098cd5c672101220dfda1d8
1 /*
2 This CSS file is for styling the tor circuit display, which consists of a title,
3 a domain, and a bulleted list.
5 Each bullet in the circuit node list is supposed to represent a Tor circuit node,
6 and lines drawn between them to represent Tor network inter-relay connections.
7 */
9 #circuit-display-container {
10 margin-inline: 8px;
11 margin-top: 0px;
12 margin-bottom: 4px;
13 padding: 0px 3px;
16 #circuit-display-container > toolbarseparator {
17 margin-block: 0px;
18 margin-inline: -3px;
19 width: calc(100% + 6px);
22 #circuit-display-headline {
23 margin-inline-start: 8px;
26 #circuit-display-header {
27 background-image: url(chrome://torbutton/skin/torbutton.svg);
28 background-repeat: no-repeat;
29 background-position: 4px 50%;
30 background-size: 16px auto;
31 min-height: 16px;
32 -moz-context-properties: fill, fill-opacity;
33 fill: currentColor;
34 margin-block: 8px;
37 #circuit-display-header:-moz-locale-dir(rtl) {
38 background-position-x: right;
41 #circuit-display-header > hbox {
42 margin-inline-start: 16px;
45 #circuit-display-content {
46 width: 100%;
49 #circuit-display-content > * {
50 margin-inline: 0px;
51 margin-inline-start: 16px;
52 margin-top: 0px;
53 margin-bottom: 8px;
56 #circuit-display-content > hbox:not([hidden]) {
57 display: flex;
60 #circuit-reload-button-container {
61 padding-top: 8px;
62 justify-content: flex-end;
65 #circuit-reload-content {
66 cursor: default;
67 width: 100%;
70 /* Format the domain text. */
71 #circuit-display-domain {
72 opacity: 0.8;
75 #circuit-div {
76 position: relative;
77 margin-inline-start: 6px;
80 /* Format the circuit node list. */
81 ul#circuit-display-nodes {
82 line-height:32px;
83 padding-inline-start: 8px;
86 /* Hide default bullets, and draw our own bullets */
87 ul#circuit-display-nodes li {
88 background-image: url(chrome://torbutton/skin/tor-circuit-line.svg);
89 background-position: left center;
90 background-repeat: no-repeat;
91 list-style: none;
92 /* tor circuit svg are 16px wide */
93 padding-inline-start: calc(16px + 0.5em);
94 white-space: nowrap;
95 max-height: 32px;
96 -moz-context-properties: stroke, stroke-opacity;
97 stroke: currentColor;
98 stroke-opacity: 100%;
101 ul#circuit-display-nodes li:dir(rtl) {
102 background-position: right center;
105 ul#circuit-display-nodes li:first-child {
106 background-image: url(chrome://torbutton/skin/tor-circuit-line-first.svg);
109 ul#circuit-display-nodes li:last-child {
110 background-image: url(chrome://torbutton/skin/tor-circuit-line-last.svg);
113 .circuit-ip-address {
114 font-size: 80%;
115 opacity: 0.7;
116 padding-inline-start: 3px;
119 .circuit-guard-info {
120 font-size: 80%;
121 color: var(--button-primary-bgcolor);
122 font-weight: bold;
123 padding-inline-start: 3px;
126 #circuit-reload-button {
127 background-color: var(--button-primary-bgcolor);
128 border-radius: 4px;
129 border-width: 0px;
130 color: var(--button-primary-color);
131 font-weight: 600;
132 padding: 8px 16px;
133 margin: 0;
135 #circuit-reload-button:hover {
136 background-color: var(--button-primary-hover-bgcolor);
139 #circuit-reload-button:active {
140 background-color: var(--button-primary-active-bgcolor);
143 #circuit-guard-note-container div {
144 margin-inline-start: 8px;
147 .circuit-guard-name {
148 font-weight: bold;
151 .circuit-link {
152 cursor: pointer;
153 color: var(--urlbar-popup-url-color);
156 .circuit-link:hover {
157 text-decoration: underline;
160 .circuit-onion {
161 cursor: pointer;
164 .circuit-onion:hover::after {
165 opacity: 1;
168 .circuit-onion::after {
169 background-color: var(--button-bgcolor);;
170 border-radius: 4px;
171 color: var(--button-color);
172 content: attr(data-text-clicktocopy);
173 font-size: 80%;
174 opacity: 0;
175 padding: 5px 10px;
176 margin: 10px;
177 text-align: center;
178 transition: opacity 0.3s cubic-bezier(0.07, 0.95, 0, 1);
181 .circuit-onion:hover::after {
182 background-color: var(--button-hover-bgcolor);
185 .circuit-onion:active::after {
186 background-color: var(--button-active-bgcolor);
190 .circuit-onion-copied::after {
191 content: attr(data-text-copied);
192 opacity: 1;