common.css 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804
  1. @namespace html "http://www.w3.org/1999/xhtml";
  2. @namespace xul "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
  3. html|body,
  4. xul|page,
  5. xul|window {
  6. font: message-box;
  7. -webkit-appearance: none;
  8. background-color: #fbfbfb;
  9. color: #424e5a;
  10. }
  11. html|body {
  12. font-size: 18px;
  13. font-weight: normal;
  14. margin: 0;
  15. }
  16. html|h1 {
  17. font-size: 2.5em;
  18. font-weight: lighter;
  19. line-height: 1.2;
  20. color: #333;
  21. margin: 0;
  22. margin-bottom: .5em;
  23. }
  24. html|hr {
  25. border-style: solid none none none;
  26. border-color: #c1c1c1;
  27. }
  28. xul|caption {
  29. -webkit-appearance: none;
  30. margin: 0;
  31. }
  32. xul|caption > xul|checkbox,
  33. xul|caption > xul|label {
  34. font-size: 1.3rem;
  35. font-weight: bold;
  36. line-height: 22px;
  37. margin: 0 !important;
  38. }
  39. *|*.main-content {
  40. padding-top: 40px;
  41. -webkit-padding-end: 44px; /* compensate the 4px margin of child elements */
  42. padding-bottom: 48px;
  43. -webkit-padding-start: 48px;
  44. overflow: auto;
  45. }
  46. xul|prefpane > xul|*.content-box {
  47. overflow: visible;
  48. }
  49. /* groupboxes */
  50. xul|groupbox {
  51. -webkit-appearance: none;
  52. border: none;
  53. margin: 15px 0 0;
  54. -webkit-padding-start: 0;
  55. -webkit-padding-end: 0;
  56. font-size: 1.25rem;
  57. }
  58. xul|groupbox xul|label,
  59. xul|groupbox xul|description {
  60. /* !important needed to override toolkit !important rule */
  61. -webkit-margin-start: 0 !important;
  62. -webkit-margin-end: 0 !important;
  63. }
  64. /* tabpanels and tabs */
  65. xul|tabpanels {
  66. -webkit-appearance: none;
  67. font-size: 1.25rem;
  68. line-height: 22px;
  69. border: none;
  70. padding: 0;
  71. background-color: transparent;
  72. color: inherit;
  73. }
  74. xul|tabs {
  75. margin-bottom: 15px;
  76. border-top: 1px solid #c1c1c1;
  77. border-bottom: 1px solid #c1c1c1;
  78. background-color: #fbfbfb;
  79. }
  80. xul|*.tabs-left,
  81. xul|*.tabs-right {
  82. border-bottom: none;
  83. }
  84. xul|tab {
  85. -webkit-appearance: none;
  86. margin-top: 0;
  87. padding: 4px 20px;
  88. min-height: 44px;
  89. color: #424f5a;
  90. background-color: #fbfbfb;
  91. border-width: 0;
  92. transition: background-color 50ms ease 0s;
  93. }
  94. xul|tab:hover {
  95. background-color: #ebebeb;
  96. }
  97. xul|tab[selected] {
  98. background-color: #ebebeb;
  99. padding-bottom: 0; /* compensate the 4px border */
  100. border-bottom: 4px solid #ff9500;
  101. }
  102. xul|*.tab-text {
  103. font-size: 1.3rem;
  104. line-height: 22px;
  105. }
  106. /* html buttons */
  107. html|button {
  108. padding: 3px;
  109. /* override forms.css */
  110. font: inherit;
  111. }
  112. /* xul buttons and menulists */
  113. *|button,
  114. xul|colorpicker[type="button"],
  115. xul|menulist {
  116. -webkit-appearance: none;
  117. height: 30px;
  118. color: #333;
  119. line-height: 20px;
  120. border: 1px solid #c1c1c1;
  121. -webkit-border-top-colors: none !important;
  122. -webkit-border-right-colors: none !important;
  123. -webkit-border-bottom-colors: none !important;
  124. -webkit-border-left-colors: none !important;
  125. border-radius: 2px;
  126. background-color: #fbfbfb;
  127. }
  128. html|button:enabled:hover,
  129. xul|button:not([disabled="true"]):hover,
  130. xul|colorpicker[type="button"]:not([disabled="true"]):hover,
  131. xul|menulist:not([disabled="true"]):hover {
  132. background-color: #ebebeb;
  133. }
  134. html|button:enabled:hover:active,
  135. xul|button:not([disabled="true"]):hover:active,
  136. xul|colorpicker[type="button"]:not([disabled="true"]):hover:active,
  137. xul|menulist[open="true"]:not([disabled="true"]) {
  138. background-color: #dadada;
  139. }
  140. html|button:disabled,
  141. xul|button[disabled="true"],
  142. xul|colorpicker[type="button"][disabled="true"],
  143. xul|menulist[disabled="true"] {
  144. cursor: not-allowed;
  145. opacity: 0.5;
  146. }
  147. *|button.primary {
  148. background-color: #0095dd;
  149. border-color: transparent;
  150. color: #fff;
  151. }
  152. html|button.primary:enabled:hover,
  153. xul|button.primary:not([disabled="true"]):hover {
  154. background-color: #008acb;
  155. }
  156. html|button.primary:enabled:hover:active,
  157. xul|button.primary:not([disabled="true"]):hover:active {
  158. background-color: #006b9d;
  159. }
  160. xul|colorpicker[type="button"] {
  161. padding: 6px;
  162. width: 50px;
  163. }
  164. xul|button > xul|*.button-box,
  165. xul|menulist > xul|*.menulist-label-box {
  166. padding-right: 10px !important;
  167. padding-left: 10px !important;
  168. }
  169. xul|menulist > xul|*.menulist-label-box > xul|*.menulist-icon[src] {
  170. -webkit-margin-end: 5px;
  171. }
  172. xul|button[type="menu"] > xul|*.button-box > xul|*.button-menu-dropmarker {
  173. -webkit-appearance: none;
  174. margin: 1px 0;
  175. -webkit-margin-start: 10px;
  176. padding: 0;
  177. width: 10px;
  178. height: 16px;
  179. border: none;
  180. background-color: transparent;
  181. list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
  182. }
  183. xul|*.help-button {
  184. min-width: 30px;
  185. border-radius: 2px;
  186. border-width: 0;
  187. background-color: #ffcb00;
  188. background-image: none;
  189. box-shadow: none;
  190. list-style-image: url("chrome://global/skin/in-content/help-glyph.svg");
  191. }
  192. xul|*.help-button:not([disabled="true"]):hover {
  193. background-color: #f4c200;
  194. background-image: none;
  195. }
  196. xul|*.help-button:not([disabled="true"]):hover:active {
  197. background-color: #eaba00;
  198. background-image: none;
  199. }
  200. xul|*.close-icon > xul|*.button-box,
  201. xul|*.help-button > xul|*.button-box {
  202. padding-top: 0;
  203. padding-bottom: 0;
  204. padding-right: 0 !important;
  205. padding-left: 0 !important;
  206. }
  207. xul|*.help-button > xul|*.button-box > xul|*.button-icon {
  208. width: 18px;
  209. height: 18px;
  210. }
  211. xul|*.help-button > xul|*.button-box > xul|*.button-text {
  212. display: none;
  213. }
  214. xul|*.spinbuttons-button {
  215. -webkit-margin-start: 10px !important;
  216. -webkit-margin-end: 2px !important;
  217. }
  218. xul|*.spinbuttons-up {
  219. margin-top: 2px !important;
  220. border-radius: 1px 1px 0 0;
  221. }
  222. xul|*.spinbuttons-down {
  223. margin-bottom: 2px !important;
  224. border-radius: 0 0 1px 1px;
  225. }
  226. xul|*.spinbuttons-button > xul|*.button-box {
  227. padding: 1px 5px 2px !important;
  228. }
  229. xul|*.spinbuttons-up > xul|*.button-box > xul|*.button-icon {
  230. list-style-image: url("chrome://global/skin/arrow/arrow-up.gif");
  231. }
  232. xul|*.spinbuttons-up[disabled="true"] > xul|*.button-box > xul|*.button-icon {
  233. list-style-image: url("chrome://global/skin/arrow/arrow-up-dis.gif");
  234. }
  235. xul|*.spinbuttons-down > xul|*.button-box > xul|*.button-icon {
  236. list-style-image: url("chrome://global/skin/arrow/arrow-dn.gif");
  237. }
  238. xul|*.spinbuttons-down[disabled="true"] > xul|*.button-box > xul|*.button-icon {
  239. list-style-image: url("chrome://global/skin/arrow/arrow-dn-dis.gif");
  240. }
  241. xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker {
  242. -webkit-appearance: none;
  243. -webkit-margin-end: 4px;
  244. padding: 0;
  245. border: none;
  246. background-color: transparent;
  247. list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
  248. }
  249. xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker > xul|*.dropmarker-icon {
  250. width: 18px;
  251. height: 18px;
  252. }
  253. xul|menulist[disabled="true"]:not([editable="true"]) > xul|*.menulist-dropmarker {
  254. list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown-disabled")
  255. }
  256. xul|menulist > xul|menupopup,
  257. xul|button[type="menu"] > xul|menupopup {
  258. -webkit-appearance: none;
  259. border: 1px solid #c1c1c1;
  260. border-radius: 2px;
  261. background-color: #fff;
  262. }
  263. xul|menulist > xul|menupopup xul|menu,
  264. xul|menulist > xul|menupopup xul|menuitem,
  265. xul|button[type="menu"] > xul|menupopup xul|menu,
  266. xul|button[type="menu"] > xul|menupopup xul|menuitem {
  267. -webkit-appearance: none;
  268. font-size: 1em;
  269. color: #333;
  270. padding-top: 0.2em;
  271. padding-bottom: 0.2em;
  272. -webkit-padding-start: 10px;
  273. -webkit-padding-end: 30px;
  274. }
  275. xul|menulist > xul|menupopup > xul|menu:not([disabled="true"])[_moz-menuactive="true"],
  276. xul|menulist > xul|menupopup > xul|menuitem:not([disabled="true"])[_moz-menuactive="true"],
  277. xul|button[type="menu"] > xul|menupopup > xul|menu:not([disabled="true"])[_moz-menuactive="true"],
  278. xul|button[type="menu"] > xul|menupopup > xul|menuitem:not([disabled="true"])[_moz-menuactive="true"] {
  279. color: #333;
  280. background-color: rgba(0,149,221,0.25);
  281. }
  282. xul|menulist > xul|menupopup > xul|menu:not([disabled="true"])[selected="true"],
  283. xul|menulist > xul|menupopup > xul|menuitem:not([disabled="true"])[selected="true"],
  284. xul|button[type="menu"] > xul|menupopup > xul|menu:not([disabled="true"])[selected="true"],
  285. xul|button[type="menu"] > xul|menupopup > xul|menuitem:not([disabled="true"])[selected="true"] {
  286. color: #fff;
  287. background-color: #0095dd;
  288. }
  289. xul|menulist > xul|menupopup > xul|menu[disabled="true"],
  290. xul|menulist > xul|menupopup > xul|menuitem[disabled="true"],
  291. xul|button[type="menu"] > xul|menupopup > xul|menu[disabled="true"],
  292. xul|button[type="menu"] > xul|menupopup > xul|menuitem[disabled="true"] {
  293. color: #999;
  294. /* override the [_moz-menuactive="true"] background color from
  295. global/menu.css */
  296. background-color: transparent;
  297. }
  298. xul|menulist > xul|menupopup xul|menuseparator,
  299. xul|button[type="menu"] > xul|menupopup xul|menuseparator {
  300. -webkit-appearance: none;
  301. margin: 0;
  302. padding: 0;
  303. border-top: 1px solid #c1c1c1;
  304. border-bottom: none;
  305. }
  306. /* textboxes */
  307. *|textbox {
  308. -webkit-appearance: none;
  309. height: 30px;
  310. color: #333;
  311. line-height: 20px;
  312. padding-right: 10px;
  313. padding-left: 10px;
  314. border: 1px solid #c1c1c1;
  315. -webkit-border-top-colors: none !important;
  316. -webkit-border-right-colors: none !important;
  317. -webkit-border-bottom-colors: none !important;
  318. -webkit-border-left-colors: none !important;
  319. border-radius: 2px;
  320. background-color: #fff;
  321. }
  322. html|textbox:focus,
  323. xul|textbox[focused] {
  324. border-color: #0095dd;
  325. }
  326. html|textbox:disabled,
  327. xul|textbox[disabled="true"] {
  328. opacity: 0.5;
  329. }
  330. /* Links */
  331. html|a,
  332. .text-link,
  333. .inline-link {
  334. color: #0095dd;
  335. text-decoration: none;
  336. }
  337. html|a:hover,
  338. .text-link:hover,
  339. .inline-link:hover {
  340. color: #178ce5;
  341. text-decoration: underline;
  342. }
  343. html|a:visited {
  344. color: #551a8b;
  345. }
  346. html|a:hover:active,
  347. .text-link:hover:active,
  348. .inline-link:hover:active {
  349. color: #ff9500;
  350. text-decoration: none;
  351. }
  352. /* Checkboxes and radio buttons */
  353. /* Hide the actual checkbox */
  354. html|input[type="checkbox"] {
  355. opacity: 0;
  356. position: absolute;
  357. }
  358. /* Create a box to style as the checkbox */
  359. html|input[type="checkbox"] + html|label:before {
  360. display: inline-block;
  361. content: "";
  362. vertical-align: middle;
  363. }
  364. html|input[type="checkbox"] + html|label {
  365. line-height: 0px;
  366. }
  367. xul|checkbox {
  368. -webkit-margin-start: 0;
  369. }
  370. xul|*.checkbox-check,
  371. html|input[type="checkbox"] + html|label:before {
  372. -webkit-appearance: none;
  373. width: 23px;
  374. height: 23px;
  375. border-radius: 2px;
  376. border: 1px solid #c1c1c1;
  377. -webkit-margin-end: 10px;
  378. background-color: #f1f1f1;
  379. /* !important needed to override toolkit checked !important rule */
  380. background-image: linear-gradient(#fff, rgba(255,255,255,0.8)) !important;
  381. background-position: center center;
  382. background-repeat: no-repeat;
  383. box-shadow: 0 1px 1px 0 #fff, inset 0 2px 0 0 rgba(0,0,0,0.03);
  384. }
  385. xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check,
  386. html|input[type="checkbox"]:not(:disabled) + html|label:hover:before {
  387. border-color: #0095dd;
  388. }
  389. xul|*.checkbox-check[checked] {
  390. list-style-image: url("chrome://global/skin/in-content/check.svg#check");
  391. }
  392. html|input[type="checkbox"]:checked + html|label:before {
  393. background-image: url("chrome://global/skin/in-content/check.svg#check"), linear-gradient(#fff, rgba(255,255,255,0.8)) !important;
  394. }
  395. xul|checkbox[disabled="true"] > xul|*.checkbox-check,
  396. html|input[type="checkbox"]:disabled + html|label {
  397. opacity: 0.5;
  398. }
  399. xul|*.checkbox-label-box {
  400. -webkit-margin-start: -1px; /* negative margin for the transparent border */
  401. -webkit-padding-start: 0;
  402. }
  403. xul|richlistitem > xul|*.checkbox-check {
  404. margin: 3px 6px;
  405. }
  406. xul|radio {
  407. -webkit-margin-start: 0;
  408. }
  409. xul|*.radio-check {
  410. -webkit-appearance: none;
  411. width: 23px;
  412. height: 23px;
  413. border: 1px solid #c1c1c1;
  414. border-radius: 50%;
  415. -webkit-margin-end: 10px;
  416. background-color: #f1f1f1;
  417. background-image: linear-gradient(#fff, rgba(255,255,255,0.80));
  418. box-shadow: 0 1px 1px 0 #fff, inset 0 2px 0 0 rgba(0,0,0,0.03);
  419. }
  420. xul|radio:not([disabled="true"]):hover > xul|*.radio-check {
  421. border-color: #0095dd;
  422. }
  423. xul|*.radio-check[selected] {
  424. list-style-image: url("chrome://global/skin/in-content/radio.svg#radio");
  425. }
  426. xul|radio[disabled="true"] > xul|*.radio-check {
  427. opacity: 0.5;
  428. }
  429. xul|*.radio-label-box {
  430. -webkit-margin-start: -1px; /* negative margin for the transparent border */
  431. -webkit-margin-end: 10px;
  432. -webkit-padding-start: 0;
  433. }
  434. /* Category List */
  435. xul|*#categories {
  436. -webkit-appearance: none;
  437. background-color: #424f5a;
  438. padding-top: 39px;
  439. margin: 0;
  440. border-width: 0;
  441. }
  442. xul|*.category {
  443. -webkit-appearance: none;
  444. color: #c1c1c1;
  445. -webkit-border-end-width: 0;
  446. -webkit-padding-start: 15px;
  447. -webkit-padding-end: 21px;
  448. min-height: 40px;
  449. transition: background-color 150ms;
  450. }
  451. xul|*.category:hover {
  452. background-color: #5e6972;
  453. }
  454. xul|*.category[selected] {
  455. background-color: #343f48;
  456. color: #f2f2f2;
  457. -webkit-padding-start: 11px; /* compensate the 4px border */
  458. -webkit-border-start: solid 4px #ff9500;
  459. }
  460. xul|*#categories[keyboard-navigation="true"]:-webkit-focusring > xul|*.category[current] {
  461. border-top: 1px #ffffff dotted;
  462. border-bottom: 1px #ffffff dotted;
  463. }
  464. *|*.category-name {
  465. line-height: 22px;
  466. font-size: 1.25rem;
  467. padding-bottom: 2px;
  468. -webkit-padding-start: 9px;
  469. margin: 0;
  470. -webkit-user-select: none;
  471. }
  472. *|*.category-icon {
  473. width: 24px;
  474. height: 24px;
  475. }
  476. /* header */
  477. *|*.header {
  478. border-bottom: 1px solid #c8c8c8;
  479. -webkit-margin-end: 4px; /* add the 4px end-margin of other elements */
  480. margin-bottom: 15px;
  481. padding-bottom: 15px;
  482. }
  483. *|*.header-name {
  484. font-size: 2.5rem;
  485. font-weight: normal;
  486. line-height: 40px;
  487. margin: 0;
  488. -webkit-user-select: none;
  489. }
  490. /* File fields */
  491. xul|filefield {
  492. -webkit-appearance: none;
  493. background-color: transparent;
  494. border: none;
  495. padding: 0;
  496. }
  497. xul|*.fileFieldContentBox {
  498. background-color: transparent;
  499. }
  500. xul|*.fileFieldIcon {
  501. -webkit-margin-start: 10px;
  502. -webkit-margin-end: 0;
  503. }
  504. xul|*.fileFieldLabel {
  505. -webkit-margin-start: -26px;
  506. -webkit-padding-start: 36px;
  507. }
  508. xul|textbox:-webkit-locale-dir(rtl),
  509. xul|*.fileFieldLabel:-webkit-locale-dir(rtl),
  510. xul|textbox + xul|button:-webkit-locale-dir(ltr),
  511. xul|filefield + xul|button:-webkit-locale-dir(ltr) {
  512. border-top-left-radius: 0;
  513. border-bottom-left-radius: 0;
  514. }
  515. xul|textbox:-webkit-locale-dir(ltr),
  516. xul|*.fileFieldLabel:-webkit-locale-dir(ltr),
  517. xul|textbox + xul|button:-webkit-locale-dir(rtl),
  518. xul|filefield + xul|button:-webkit-locale-dir(rtl) {
  519. border-top-right-radius: 0;
  520. border-bottom-right-radius: 0;
  521. }
  522. xul|textbox + xul|button,
  523. xul|filefield + xul|button {
  524. -webkit-border-start: none;
  525. }
  526. /* List boxes */
  527. xul|richlistbox,
  528. xul|listbox {
  529. -webkit-appearance: none;
  530. -webkit-margin-start: 0;
  531. background-color: #fff;
  532. border: 1px solid #c1c1c1;
  533. color: #333;
  534. }
  535. xul|treechildren::-webkit-tree-row,
  536. xul|listbox xul|listitem {
  537. padding: 0.3em;
  538. margin: 0;
  539. border: none;
  540. border-radius: 0;
  541. background-image: none;
  542. }
  543. xul|treechildren::-webkit-tree-row(hover),
  544. xul|listbox xul|listitem:hover {
  545. background-color: rgba(0,149,221,0.25);
  546. }
  547. xul|treechildren::-webkit-tree-row(selected),
  548. xul|listbox xul|listitem[selected="true"] {
  549. background-color: #0095dd;
  550. color: #fff;
  551. }
  552. /* Trees */
  553. xul|tree {
  554. -webkit-appearance: none;
  555. font-size: 1em;
  556. border: 1px solid #c1c1c1;
  557. margin: 0;
  558. }
  559. xul|tree:-webkit-focusring,
  560. xul|richlistbox:-webkit-focusring {
  561. border: 1px dotted #0095dd;
  562. }
  563. xul|listheader,
  564. xul|treecols {
  565. -webkit-appearance: none;
  566. border: none;
  567. border-bottom: 1px solid #c1c1c1;
  568. padding: 0;
  569. }
  570. xul|treecol:not([hideheader="true"]),
  571. xul|treecolpicker {
  572. -webkit-appearance: none;
  573. border: none;
  574. background-color: #ebebeb;
  575. color: #808080;
  576. padding: 5px 10px;
  577. }
  578. xul|treecol:not([hideheader="true"]):not([sortable="false"]):hover,
  579. xul|treecolpicker:hover {
  580. background-color: #dadada;
  581. color: #333;
  582. }
  583. xul|treecol:not([hideheader="true"]):not(:first-child),
  584. xul|treecolpicker {
  585. -webkit-border-start-width: 1px;
  586. -webkit-border-start-style: solid;
  587. border-image: linear-gradient(transparent 0%, transparent 20%, #c1c1c1 20%, #c1c1c1 80%, transparent 80%, transparent 100%) 1 1;
  588. }
  589. xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection] {
  590. list-style-image: url("chrome://global/skin/in-content/dropdown.svg#dropdown");
  591. width: 18px;
  592. height: 18px;
  593. }
  594. xul|treecol:not([hideheader="true"]) > xul|*.treecol-sortdirection[sortDirection="ascending"] {
  595. transform: scaleY(-1);
  596. }
  597. /* This is the only way to increase the height of a tree row unfortunately */
  598. xul|treechildren::-webkit-tree-row {
  599. min-height: 2em;
  600. }
  601. /* Color needs to be set on tree cell in order to be applied */
  602. xul|treechildren::-webkit-tree-cell-text {
  603. color: #333;
  604. }
  605. xul|treechildren::-webkit-tree-cell-text(selected) {
  606. color: #fff;
  607. }
  608. xul|caption {
  609. background-color: transparent;
  610. }
  611. xul|button,
  612. html|button,
  613. xul|colorpicker[type="button"],
  614. xul|menulist {
  615. margin: 2px 4px;
  616. }
  617. xul|menulist:not([editable="true"]) > xul|*.menulist-dropmarker {
  618. margin-top: 1px;
  619. margin-bottom: 1px;
  620. }
  621. xul|checkbox {
  622. -webkit-padding-start: 0;
  623. }
  624. @media not all and (-webkit-windows-default-theme) {
  625. xul|*.checkbox-check {
  626. background-image: none !important;
  627. }
  628. xul|*.checkbox-check[checked] {
  629. list-style-image: url("chrome://global/skin/in-content/check.svg#check-native");
  630. background-color: -webkit-dialog;
  631. }
  632. }
  633. xul|radio {
  634. -webkit-binding: url("chrome://global/content/bindings/radio.xml#radio");
  635. -webkit-padding-start: 0;
  636. }
  637. @media not all and (-webkit-windows-default-theme) {
  638. xul|*.radio-check {
  639. background-image: none;
  640. }
  641. xul|*.radio-check[selected] {
  642. list-style-image: url("chrome://global/skin/in-content/radio.svg#radio-native");
  643. background-color: -webkit-dialog;
  644. }
  645. }
  646. xul|*.radio-icon,
  647. xul|*.checkbox-icon {
  648. -webkit-margin-end: 0;
  649. }
  650. /* Never draw a border for the focusring, use outline instead */
  651. xul|*.button-box,
  652. xul|*.menulist-label-box,
  653. xul|*.radio-label-box,
  654. xul|*.checkbox-label-box {
  655. border-style: none;
  656. }
  657. xul|*.inline-link:-webkit-focusring,
  658. xul|button:-webkit-focusring > xul|*.button-box,
  659. xul|menulist:-webkit-focusring > xul|*.menulist-label-box,
  660. xul|radio[focused="true"] > xul|*.radio-label-box,
  661. xul|checkbox:-webkit-focusring > xul|*.checkbox-label-box {
  662. outline: 1px dotted;
  663. }
  664. /* Use a 2px border so that selected row highlight is still visible behind
  665. an existing high-contrast border that uses the background color */
  666. @media not all and (-webkit-windows-default-theme) {
  667. xul|treechildren::-webkit-tree-row(selected),
  668. xul|listbox xul|listitem[selected="true"] {
  669. border: 2px dotted Highlight;
  670. }
  671. }