Bug 26655: Adjust color and size of onion button
[torbutton.git] / src / chrome / skin / aboutTor.css
blob62c9256c7a25f64e5a3c510f59003aac58c31ec3
1 /*
2 * Copyright (c) 2018, The Tor Project, Inc.
3 * See LICENSE for licensing information.
5 * vim: set sw=2 sts=2 ts=8 et syntax=css:
6 */
8 * {
9 padding: 0px;
10 margin: 0px;
13 body {
14 width: 100%;
15 height: 100%;
16 margin: 0px auto;
17 padding: 0px 0px;
18 font-size: 62.5%;
19 font-family: "Liberation Sans", Arial, Helvetica, sans-serif;
20 font-weight: normal;
21 color: #4d4d4d;
22 background-color: #FFFFFF;
23 background-attachment: fixed;
24 background-size: 100% 100%;
27 body {
28 background-image: linear-gradient(to bottom, #ffffff, #ffffff 10%, #dddddd 50%, #dddddd);
31 body[toron] {
32 background-image: linear-gradient(to bottom, #ffffff, #ffffff 10%, #d5ffd5 50%, #d5ffd5);
35 /* Hide the entire document by default to avoid showing the incorrect
36 * Tor on / off status (that info must be retrieved from the chrome
37 * process, which involves IPC when multiprocess mode is enabled). An
38 * initialized attribute will be added as soon as the status is known.
40 body:not([initialized]) {
41 display: none;
44 .torcontent-container {
45 margin: 40px 20px;
46 display: flex;
47 flex-direction: column;
50 #torstatus-version {
51 position: absolute;
52 top: 6px;
53 right: 6px;
54 height: 30px;
55 width: 200px;
56 font-size: 1.4em;
57 white-space: pre-wrap;
58 text-align: right;
61 body[toron] #torstatus-image {
62 background-image: url('chrome://torbutton/skin/tor-on.png');
65 #torstatus-image {
66 display: none;
67 position: absolute;
68 left: 85px;
69 height: 128px;
70 width: 128px;
71 background-image: url('chrome://torbutton/skin/tor-off.png');
72 background-repeat: no-repeat;
73 background-position: center;
74 z-index: -1;
77 .arrow {
78 display: none;
79 position: absolute;
80 z-index: -1;
83 #toolbarIconArrowHead {
84 top: 4px;
85 width: 30px;
86 height: 36px;
87 background-image: url('chrome://torbutton/skin/onionArrow-short.png');
90 #toolbarIconArrowVertExtension, #toolbarIconArrowHorzExtension {
91 width: 11px;
92 height: 11px;
93 background-image: url('chrome://torbutton/skin/onionArrow-extension.png');
96 #toolbarIconArrowBend {
97 width: 22px;
98 height: 22px;
99 background-image: url('chrome://torbutton/skin/onionArrow-leftBend.png');
102 #toolbarIconArrowBend[pos="right"] {
103 background-image: url('chrome://torbutton/skin/onionArrow-rightBend.png');
107 color: #008000;
108 text-decoration: none;
111 a:hover {
112 color: #00A000;
113 text-decoration: underline;
116 #testTorSettings {
117 font-size: 1.6em;
118 text-decoration: underline;
119 margin-bottom: 5px;
122 #torstatus {
123 position: relative; /* needed for torstatus-image positioning */
124 display: flex;
125 justify-content: center;
126 min-height: 148px;
129 .top {
130 white-space: nowrap;
133 .torstatus-container {
134 text-align: center;
137 body[toron][torNeedsUpdate] .hideIfTBBNeedsUpdate,
138 body:not([torNeedsUpdate]) .hideIfTorIsUpToDate {
139 display: none;
142 body[toron] .hideIfTorOn,
143 body:not([toron]) .hideIfTorOff {
144 display: none;
147 body[toron] .top h1 {
148 color: #600060;
151 body:not([showmanual]) .showForManual {
152 display: none;
155 div.hideIfTorIsUpToDate {
156 display: flex;
157 flex-direction: column;
160 div.hideIfTorIsUpToDate,
161 body .top div.hideIfTorIsUpToDate h1 {
162 color: black;
163 text-align: center;
166 /* Use inline-block for text-oriented elements whose widths need to measured. */
167 .torstatus-container *,
168 .top div.hideIfTorIsUpToDate h3 {
169 display: inline-block;
170 text-align: center;
173 .top div.hideIfTorOff h1 {
174 margin-top: 20px;
177 .top h1 {
178 font-size: 4.00em;
179 font-weight: bold;
180 margin-bottom: 5px;
183 .top h2 {
184 font-size: 2.934em;
185 margin-bottom: 20px;
186 font-weight: normal;
189 .top h3 {
190 font-size: 1.8em;
191 font-weight: normal;
192 color: #3B503C;
195 #middle {
196 display: flex;
197 flex-flow: row wrap;
198 font-size: 1.6em;
199 justify-content: space-evenly;
200 margin-top: 40px;
203 .bubble {
204 width: 242px;
205 padding: 20px 30px;
206 color: #3B503C;
207 background-color: #FFFFFF;
208 border: none;
209 border-radius: 16px;
210 margin-bottom: 40px;
211 text-align: start;
212 vertical-align: top;
215 #middle h1 {
216 font-size: 1.2em;
217 margin-bottom: 10px;
220 #middle ul {
221 padding: 5px 0 0 22px;
224 #middle ul:dir(rtl) {
225 padding: 5px 22px 0 0;
228 #middle li {
229 padding-top: 2px;
232 #bottom {
233 padding-bottom: 40px;
236 #bottom p {
237 font-size: 1.6em;
238 text-align: start;
239 margin: auto;
242 #bottom a {
243 color: #800080;
244 text-decoration: underline;
247 #bottom a:hover {
248 color: #A000A0;
249 text-decoration: none;
252 #bottom h4 {
253 margin-top: 50px;
254 line-height: 1em;
255 font-size: 1em;
256 font-weight: normal;
257 text-align: center;
260 #bottom p.lang {
261 max-width: 620px;
262 margin: 10px auto;
263 font-size: 1em;
264 font-weight: normal;
265 text-align: center;
268 .searchbox form {
269 width: 396px;
270 margin: 35px auto 1px auto;
271 text-align: left;
274 .searchbox h4 {
275 padding-top: 5px;
276 font-size: 12px;
277 font-weight: normal;
278 text-align: center;
281 #sbutton {
282 display: block;
283 float: right;
284 width: 33px;
287 #sbutton input {
288 height: 34px;
289 width: 33px;
290 border: 0;
291 background: url('chrome://torbutton/skin/search.png') no-repeat top left;
292 cursor: pointer;
295 /* #sxw is the container div for the search field and button */
296 #sxw {
297 border: none;
300 /* #sx is the search input (text) field */
301 #sx {
302 border-color: lightgray;
303 border-style: solid;
304 border-width: 1px 0px 1px 1px;
305 width: 350px;
306 min-height: 23px;
307 padding: 4px 6px 5px 6px;
308 margin: 0;
309 outline: none;
310 color: #222;
311 font-size: 18px;
314 @media only screen and (min-width : 820px) {
315 .torcontent-container {
316 margin: auto;
317 margin-top: 40px;
318 max-width: 920px;
319 min-width: 920px;
322 #torstatus-image {
323 display: block;
326 #bottom p {
327 margin: 10px 125px 0px 125px;
331 @media only screen and (max-width : 436px) {
332 .searchbox form {
333 width: auto;
336 #sx {
337 width: calc(100% - 46px);