light_theme.css 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887
  1. /*******************************************************************************
  2. * *
  3. * Fonts *
  4. * *
  5. ******************************************************************************/
  6. @font-face {
  7. src: url('opensans-regular.ttf');
  8. }
  9. @font-face {
  10. src: url('opensans-semibold.ttf');
  11. }
  12. @font-face {
  13. src: url('opensans-bold.ttf');
  14. }
  15. /*******************************************************************************
  16. * *
  17. * Root Styling & Colors *
  18. * *
  19. ******************************************************************************/
  20. .root {
  21. PRIMARY_D2: #2D4D2E;
  22. PRIMARY_D1: #407F41;
  23. PRIMARY: #49B04A;
  24. PRIMARY_L1: #66CC68;
  25. PRIMARY_L2: #EBF5EB;
  26. SECONDARY: #008A7B;
  27. GRAY_0: #222222;
  28. GRAY_1: #3B3B3B;
  29. GRAY_2: #515151;
  30. GRAY_3: #626262;
  31. GRAY_4: #7E7E7E;
  32. GRAY_5: #9E9E9E;
  33. GRAY_6: #B1B1B1;
  34. GRAY_7: #CFCFCF;
  35. GRAY_8: #E1E1E1;
  36. GRAY_9: #F7F7F7;
  37. RED_5: #E74C3C;
  38. ORANGE_5: #E67E22;
  39. YELLOW_5: #F1C40F;
  40. MAIN_BG: GRAY_9;
  41. MUTED_BG: GRAY_5;
  42. TEXT_FILL: GRAY_0;
  43. TEXT_FILL_HIGHLIGHTED: PRIMARY;
  44. TEXT_FILL_MUTED: GRAY_5;
  45. TITLE_BG: PRIMARY;
  46. TITLE_TEXT_FILL: white;
  47. CONTROL_BORDER_NORMAL: GRAY_7;
  48. CONTROL_BORDER_FOCUSED: GRAY_5;
  49. CONTROL_BORDER_DISABLED: GRAY_8;
  50. CONTROL_BG_NORMAL: white;
  51. CONTROL_BG_HOVER: GRAY_9;
  52. CONTROL_BG_ARMED: GRAY_8;
  53. CONTROL_BG_DISABLED: GRAY_9;
  54. CONTROL_BG_SELECTED: PRIMARY_L2;
  55. CONTROL_PRIMARY_BORDER_NORMAL: PRIMARY_D1;
  56. CONTROL_PRIMARY_BORDER_ARMED: PRIMARY_D2;
  57. CONTROL_PRIMARY_BORDER_FOCUSED: SECONDARY;
  58. CONTROL_PRIMARY_BG_NORMAL: PRIMARY;
  59. CONTROL_PRIMARY_BG_ARMED: PRIMARY_D1;
  60. SCROLL_BAR_THUMB_NORMAL: GRAY_7;
  61. SCROLL_BAR_THUMB_HOVER: GRAY_6;
  62. PROGRESS_INDICATOR_BEGIN: GRAY_2;
  63. PROGRESS_INDICATOR_END: GRAY_4;
  64. PROGRESS_BAR_BG: GRAY_8;
  65. -fx-background-color: MAIN_BG;
  66. -fx-text-fill: TEXT_FILL;
  67. -fx-font-family: 'Open Sans';
  68. }
  69. /*******************************************************************************
  70. * *
  71. * Labels *
  72. * *
  73. ******************************************************************************/
  74. .label {
  75. -fx-text-fill: TEXT_FILL;
  76. }
  77. .label-muted {
  78. -fx-text-fill: TEXT_FILL_MUTED;
  79. }
  80. .label-large {
  81. -fx-font-family: 'Open Sans SemiBold';
  82. -fx-font-size: 1.5em;
  83. }
  84. .label-small {
  85. -fx-font-size: 0.8em;
  86. }
  87. .label-extra-small {
  88. -fx-font-size: 0.64em;
  89. }
  90. .text-flow > * {
  91. -fx-fill: TEXT_FILL;
  92. }
  93. /*******************************************************************************
  94. * *
  95. * Glyph Icons *
  96. * *
  97. ******************************************************************************/
  98. .glyph-icon {
  99. -fx-fill: TEXT_FILL;
  100. }
  101. .glyph-icon-primary,
  102. .glyph-icon.glyph-icon-primary,
  103. .list-cell .glyph-icon.glyph-icon-primary,
  104. .list-cell:selected .glyph-icon.glyph-icon-primary {
  105. -fx-fill: PRIMARY;
  106. }
  107. .glyph-icon-muted,
  108. .glyph-icon.glyph-icon-muted,
  109. .list-cell .glyph-icon.glyph-icon-muted,
  110. .list-cell:selected .glyph-icon.glyph-icon-muted {
  111. -fx-fill: TEXT_FILL_MUTED;
  112. }
  113. .glyph-icon-white,
  114. .glyph-icon.glyph-icon-white,
  115. .list-cell .glyph-icon.glyph-icon-white,
  116. .list-cell:selected .glyph-icon.glyph-icon-white {
  117. -fx-fill: white;
  118. }
  119. .glyph-icon-red,
  120. .glyph-icon.glyph-icon-red,
  121. .list-cell .glyph-icon.glyph-icon-red,
  122. .list-cell:selected .glyph-icon.glyph-icon-red {
  123. -fx-fill: RED_5;
  124. }
  125. .glyph-icon-orange,
  126. .glyph-icon.glyph-icon-orange,
  127. .list-cell .glyph-icon.glyph-icon-orange,
  128. .list-cell:selected .glyph-icon.glyph-icon-orange {
  129. -fx-fill: ORANGE_5;
  130. }
  131. /*******************************************************************************
  132. * *
  133. * Main Window *
  134. * *
  135. ******************************************************************************/
  136. /* windows needs an explicit border: */
  137. .main-window.os-windows {
  138. -fx-border-color: TITLE_BG;
  139. -fx-border-width: 1px;
  140. }
  141. .main-window .title {
  142. -fx-background-color: TITLE_BG;
  143. }
  144. .main-window .title .button {
  145. -fx-pref-height: 30px;
  146. -fx-pref-width: 30px;
  147. -fx-background-color: none;
  148. -fx-padding: 0;
  149. }
  150. .main-window .title .button .glyph-icon {
  151. -fx-fill: white;
  152. }
  153. .main-window .title .button:armed .glyph-icon {
  154. -fx-fill: GRAY_8;
  155. }
  156. .main-window .update-indicator {
  157. -fx-background-color: white, RED_5;
  158. -fx-background-insets: 1px, 2px;
  159. -fx-background-radius: 6px, 5px;
  160. -fx-effect: dropshadow(three-pass-box, rgba(0, 0, 0, 0.8), 2, 0, 0, 0);
  161. }
  162. .main-window .drag-n-drop-indicator {
  163. -fx-border-color: SECONDARY;
  164. -fx-border-width: 3px;
  165. }
  166. .main-window .drag-n-drop-indicator .drag-n-drop-header {
  167. -fx-background-color: SECONDARY;
  168. -fx-padding: 3px;
  169. }
  170. /*******************************************************************************
  171. * *
  172. * TabPane *
  173. * *
  174. ******************************************************************************/
  175. .tab-pane {
  176. -fx-tab-min-height: 2em;
  177. }
  178. .tab-pane > .tab-header-area {
  179. -fx-padding: 0 12px;
  180. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  181. -fx-background-insets: 0, 0 0 3px 0;
  182. }
  183. .tab-pane .tab {
  184. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  185. -fx-background-insets: 0, 0 0 3px 0;
  186. -fx-padding: 6px 12px;
  187. }
  188. .tab-pane .tab:selected {
  189. -fx-background-color: PRIMARY, CONTROL_BG_SELECTED;
  190. }
  191. .tab-pane .tab .tab-label {
  192. -fx-text-fill: TEXT_FILL_MUTED;
  193. -fx-alignment: CENTER;
  194. }
  195. .tab-pane .tab .glyph-icon {
  196. -fx-fill: TEXT_FILL_MUTED;
  197. }
  198. .tab-pane .tab:selected .glyph-icon {
  199. -fx-fill: PRIMARY;
  200. }
  201. .tab-pane .tab:selected .tab-label {
  202. -fx-text-fill: TEXT_FILL_HIGHLIGHTED;
  203. }
  204. /*******************************************************************************
  205. * *
  206. * SplitPane *
  207. * *
  208. ******************************************************************************/
  209. .split-pane > .split-pane-divider {
  210. -fx-padding: 0px 1px;
  211. }
  212. .split-pane:horizontal > .split-pane-divider {
  213. -fx-background-color: MAIN_BG, CONTROL_BORDER_NORMAL;
  214. -fx-background-insets: 0, 0 1 0 0;
  215. }
  216. /*******************************************************************************
  217. * *
  218. * Vault List *
  219. * *
  220. ******************************************************************************/
  221. .list-view {
  222. -fx-background-color: CONTROL_BG_NORMAL;
  223. }
  224. .list-view:focused .list-cell:selected {
  225. -fx-background-color: PRIMARY, CONTROL_BG_SELECTED;
  226. -fx-background-insets: 0, 0 0 0 3px;
  227. }
  228. .list-cell:selected {
  229. -fx-background-color: CONTROL_BG_SELECTED;
  230. }
  231. .list-cell .glyph-icon {
  232. -fx-fill: TEXT_FILL_MUTED;
  233. }
  234. .list-cell .header-label {
  235. -fx-font-family: 'Open Sans SemiBold';
  236. -fx-font-size: 1.0em;
  237. }
  238. .list-cell .detail-label {
  239. -fx-text-fill: TEXT_FILL_MUTED;
  240. -fx-font-size: 0.8em;
  241. }
  242. .list-cell:selected .glyph-icon {
  243. -fx-fill: PRIMARY;
  244. }
  245. .list-cell:selected .header-label {
  246. -fx-text-fill: TEXT_FILL_HIGHLIGHTED;
  247. }
  248. .list-cell.drop-above {
  249. -fx-border-color: CONTROL_BG_ARMED transparent transparent transparent;
  250. -fx-border-width: 3px 0 0 0;
  251. }
  252. .list-cell.drop-below {
  253. -fx-border-color: transparent transparent CONTROL_BG_ARMED transparent;
  254. -fx-border-width: 0 0 3px 0;
  255. }
  256. .onboarding-overlay-arc {
  257. -fx-stroke: TEXT_FILL;
  258. -fx-fill: transparent;
  259. }
  260. .button.toolbar-button {
  261. -fx-min-height: 40px;
  262. -fx-background-color: transparent;
  263. -fx-background-insets: 0;
  264. -fx-background-radius: 0;
  265. -fx-border-color: CONTROL_BORDER_NORMAL transparent transparent transparent;
  266. -fx-border-width: 1px 0 0 0;
  267. -fx-padding: 0;
  268. }
  269. .button.toolbar-button:focused {
  270. -fx-background-color: CONTROL_BORDER_FOCUSED, MAIN_BG;
  271. -fx-background-insets: 0, 2px 1px 1px 1px;
  272. }
  273. .button.toolbar-button:armed {
  274. -fx-background-color: CONTROL_BG_ARMED;
  275. }
  276. /*******************************************************************************
  277. * *
  278. * ScrollBar *
  279. * *
  280. ******************************************************************************/
  281. .scroll-bar > .thumb {
  282. -fx-background-color: SCROLL_BAR_THUMB_NORMAL;
  283. -fx-background-insets: 1px;
  284. -fx-background-radius: 2px;
  285. }
  286. .scroll-bar > .thumb:hover {
  287. -fx-background-color: SCROLL_BAR_THUMB_HOVER;
  288. }
  289. .scroll-bar:horizontal > .increment-button,
  290. .scroll-bar:horizontal > .decrement-button {
  291. -fx-padding: 3 0 3 0;
  292. }
  293. .scroll-bar:vertical > .increment-button,
  294. .scroll-bar:vertical > .decrement-button {
  295. -fx-padding: 0 3 0 3;
  296. }
  297. /*******************************************************************************
  298. * *
  299. * Badge *
  300. * *
  301. ******************************************************************************/
  302. .badge {
  303. -fx-font-family: 'Open Sans Bold';
  304. -fx-font-size: 0.8em;
  305. -fx-background-radius: 4px;
  306. -fx-padding: 0.2em 0.4em 0.2em 0.4em;
  307. }
  308. .badge-pill {
  309. -fx-background-radius: 1em;
  310. }
  311. .badge-primary {
  312. -fx-text-fill: white;
  313. -fx-background-color: PRIMARY;
  314. }
  315. .badge-muted {
  316. -fx-text-fill: white;
  317. -fx-background-color: MUTED_BG;
  318. }
  319. /* Note: These values below are kinda random such that it looks ok. I'm pretty sure there is room for improvement. Additionally, fx-text-fill does not work*/
  320. .badge-debug {
  321. -fx-font-family: 'Open Sans Bold';
  322. -fx-font-size: 1.0em;
  323. -fx-background-radius: 8px;
  324. -fx-padding: 0.3em 0.55em 0.3em 0.55em;
  325. -fx-background-color: RED_5;
  326. -fx-background-radius: 2em;
  327. }
  328. /*******************************************************************************
  329. * *
  330. * Password Strength Indicator *
  331. * *
  332. ******************************************************************************/
  333. .password-strength-indicator .segment {
  334. -fx-background-color: CONTROL_BORDER_NORMAL;
  335. }
  336. .password-strength-indicator.strength-0 .segment.active {
  337. -fx-background-color: RED_5;
  338. }
  339. .password-strength-indicator.strength-1 .segment.active {
  340. -fx-background-color: ORANGE_5;
  341. }
  342. .password-strength-indicator.strength-2 .segment.active {
  343. -fx-background-color: YELLOW_5;
  344. }
  345. .password-strength-indicator.strength-3 .segment.active {
  346. -fx-background-color: PRIMARY;
  347. }
  348. .password-strength-indicator.strength-4 .segment.active {
  349. -fx-background-color: PRIMARY_D1;
  350. }
  351. /*******************************************************************************
  352. * *
  353. * Tooltip *
  354. * *
  355. ******************************************************************************/
  356. .tooltip {
  357. -fx-font-family: 'Open Sans';
  358. -fx-text-fill: TEXT_FILL;
  359. -fx-font-size: 0.8em;
  360. -fx-background-color: CONTROL_BG_NORMAL;
  361. -fx-padding: 0.2em 0.4em 0.2em 0.4em;
  362. -fx-effect: dropshadow(three-pass-box, rgba(0, 0, 0, 0.5), 2, 0, 0, 0);
  363. }
  364. /*******************************************************************************
  365. * *
  366. * Text Fields *
  367. * *
  368. ******************************************************************************/
  369. .text-input {
  370. -fx-cursor: text;
  371. -fx-text-fill: TEXT_FILL;
  372. -fx-highlight-fill: PRIMARY;
  373. -fx-prompt-text-fill: TEXT_FILL_MUTED;
  374. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  375. -fx-background-insets: 0, 1px;
  376. -fx-background-radius: 4px;
  377. -fx-padding: 0.3em 0.5em 0.3em 0.5em;
  378. }
  379. .text-input:focused {
  380. -fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
  381. }
  382. .text-input:disabled {
  383. -fx-text-fill: TEXT_FILL_MUTED;
  384. -fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
  385. }
  386. .nice-secure-password-field .secure-password-field {
  387. -fx-padding: 0.3em 48px 0.3em 0.5em;
  388. }
  389. .nice-secure-password-field .icons {
  390. -fx-width: 42px;
  391. -fx-padding: 4px 6px 4px 0;
  392. }
  393. /*******************************************************************************
  394. * *
  395. * Text Areas *
  396. * *
  397. ******************************************************************************/
  398. .text-area {
  399. -fx-cursor: default;
  400. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  401. -fx-background-insets: 0, 1px;
  402. -fx-background-radius: 4px;
  403. -fx-padding: 0;
  404. }
  405. .text-input:focused {
  406. -fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
  407. }
  408. .text-input:disabled {
  409. -fx-text-fill: TEXT_FILL_MUTED;
  410. -fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
  411. }
  412. .text-area > .scroll-pane > .scroll-bar {
  413. -fx-padding: 2px;
  414. }
  415. .text-area .content {
  416. -fx-padding: 0.2em 0.5em 0.2em 0.5em;
  417. -fx-cursor: text;
  418. -fx-text-fill: TEXT_FILL;
  419. -fx-highlight-fill: PRIMARY;
  420. -fx-prompt-text-fill: TEXT_FILL_MUTED;
  421. -fx-background-color: null;
  422. }
  423. /*******************************************************************************
  424. * *
  425. * Buttons *
  426. * *
  427. ******************************************************************************/
  428. .button {
  429. -fx-text-fill: TEXT_FILL;
  430. -fx-alignment: CENTER;
  431. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  432. -fx-background-insets: 0, 1px;
  433. -fx-background-radius: 4px;
  434. -fx-padding: 0.3em 1em 0.3em 1em;
  435. -fx-graphic-text-gap: 6px;
  436. }
  437. .button:focused {
  438. -fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
  439. }
  440. .button:armed {
  441. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_ARMED;
  442. }
  443. .button:default {
  444. -fx-text-fill: white;
  445. -fx-background-color: CONTROL_PRIMARY_BORDER_NORMAL, CONTROL_PRIMARY_BG_NORMAL;
  446. }
  447. .button:default:focused {
  448. -fx-background-color: CONTROL_PRIMARY_BORDER_FOCUSED, CONTROL_PRIMARY_BG_NORMAL;
  449. }
  450. .button:default:armed {
  451. -fx-background-color: CONTROL_PRIMARY_BORDER_ARMED, CONTROL_PRIMARY_BG_ARMED;
  452. }
  453. .button:disabled,
  454. .button:default:disabled {
  455. -fx-text-fill: TEXT_FILL_MUTED;
  456. -fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
  457. }
  458. .button:disabled .glyph-icon {
  459. -fx-fill: TEXT_FILL_MUTED;
  460. }
  461. .button:default .glyph-icon {
  462. -fx-fill: white;
  463. }
  464. .button:default:disabled .glyph-icon {
  465. -fx-fill: TEXT_FILL_MUTED;
  466. }
  467. .button:default .label {
  468. -fx-text-fill: white;
  469. }
  470. .button-large {
  471. -fx-font-size: 1.25em;
  472. -fx-padding: 0.6em 1.5em 0.6em 1.5em;
  473. -fx-graphic-text-gap: 9px;
  474. }
  475. /*******************************************************************************
  476. * *
  477. * Hyperlinks *
  478. * *
  479. ******************************************************************************/
  480. .hyperlink {
  481. -fx-text-fill: TEXT_FILL;
  482. -fx-graphic-text-gap: 6px;
  483. }
  484. .hyperlink.hyperlink-underline {
  485. -fx-underline: true;
  486. }
  487. .hyperlink.hyperlink-muted {
  488. -fx-text-fill: TEXT_FILL_MUTED;
  489. }
  490. .hyperlink-hover-icon {
  491. -fx-content-display: text-only;
  492. }
  493. .hyperlink-hover-icon:hover {
  494. -fx-content-display: right;
  495. }
  496. /*******************************************************************************
  497. * *
  498. * CheckBox *
  499. * *
  500. ******************************************************************************/
  501. .check-box {
  502. -fx-text-fill: TEXT_FILL;
  503. -fx-label-padding: 0 0 0 6px;
  504. -fx-padding: 4px 0 4px 0;
  505. }
  506. .check-box:disabled {
  507. -fx-text-fill: TEXT_FILL_MUTED;
  508. }
  509. .check-box > .box {
  510. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  511. -fx-background-insets: 0, 1px;
  512. -fx-background-radius: 4px;
  513. -fx-padding: 0.3em;
  514. }
  515. .check-box:focused > .box {
  516. -fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
  517. }
  518. .check-box:disabled > .box {
  519. -fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
  520. }
  521. .check-box > .box > .mark {
  522. -fx-background-color: transparent;
  523. -fx-padding: 0.4em;
  524. -fx-shape: "M-1,4, L-1,5.5 L3.5,8.5 L9,0 L9,-1 L7,-1 L3,6 L1,4 Z";
  525. }
  526. .check-box:selected > .box > .mark {
  527. -fx-background-color: TEXT_FILL;
  528. }
  529. .check-box:selected:disabled > .box > .mark {
  530. -fx-background-color: TEXT_FILL_MUTED;
  531. }
  532. /*******************************************************************************
  533. * *
  534. * RadioButton *
  535. * *
  536. ******************************************************************************/
  537. .radio-button {
  538. -fx-text-fill: TEXT_FILL;
  539. -fx-label-padding: 0 0 0 6px;
  540. -fx-padding: 4px 0 4px 0;
  541. }
  542. .radio-button > .radio {
  543. -fx-border-color: CONTROL_BORDER_NORMAL;
  544. -fx-border-radius: 1em; /* large value to make sure this remains circular */
  545. -fx-background-color: CONTROL_BG_NORMAL;
  546. -fx-background-radius: 1em;
  547. -fx-padding: 0.3em; /* padding from outside edge to the inner black dot */
  548. }
  549. .radio-button:focused > .radio {
  550. -fx-border-color: CONTROL_BORDER_FOCUSED;
  551. }
  552. .text-input:disabled > .radio {
  553. -fx-border-color: CONTROL_BORDER_DISABLED;
  554. -fx-background-color: CONTROL_BG_DISABLED;
  555. }
  556. .radio-button > .radio > .dot {
  557. -fx-background-color: transparent;
  558. -fx-background-radius: 1em; /* large value to make sure this remains circular */
  559. -fx-padding: 0.2em; /* radius of the inner black dot when selected */
  560. }
  561. .radio-button:selected > .radio > .dot {
  562. -fx-background-color: TEXT_FILL;
  563. }
  564. /*******************************************************************************
  565. * *
  566. * ChoiceBox *
  567. * *
  568. ******************************************************************************/
  569. .choice-box {
  570. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  571. -fx-background-insets: 0, 1px;
  572. -fx-background-radius: 4px;
  573. -fx-padding: 0.3em 0.5em 0.3em 0.5em;
  574. }
  575. .choice-box:focused {
  576. -fx-background-color: CONTROL_BORDER_FOCUSED, CONTROL_BG_NORMAL;
  577. }
  578. .choice-box:disabled {
  579. -fx-background-color: CONTROL_BORDER_DISABLED, CONTROL_BG_DISABLED;
  580. }
  581. .choice-box > .label {
  582. -fx-text-fill: TEXT_FILL;
  583. }
  584. .choice-box:disabled > .label {
  585. -fx-text-fill: TEXT_FILL_MUTED;
  586. }
  587. .choice-box > .open-button {
  588. -fx-padding: 0 0 0 0.3em;
  589. }
  590. .choice-box > .open-button > .arrow {
  591. -fx-background-color: transparent, TEXT_FILL;
  592. -fx-background-insets: 0 0 -1 0, 0;
  593. -fx-padding: 0.15em 0.3em 0.15em 0.3em;
  594. -fx-shape: "M 0 0 h 7 l -3.5 4 z";
  595. }
  596. .choice-box:disabled > .open-button > .arrow {
  597. -fx-background-color: transparent, TEXT_FILL_MUTED;
  598. }
  599. .choice-box .context-menu {
  600. -fx-translate-x: -1.4em;
  601. }
  602. /*******************************************************************************
  603. * *
  604. * ContextMenu *
  605. * *
  606. ******************************************************************************/
  607. .context-menu {
  608. -fx-background-color: CONTROL_BORDER_NORMAL, CONTROL_BG_NORMAL;
  609. -fx-background-insets: 0, 1px;
  610. -fx-background-radius: 4px;
  611. -fx-padding: 0.2em 0 0.2em 0;
  612. -fx-effect: dropshadow(three-pass-box, rgba(0, 0, 0, 0.2), 8, 0, 0, 0);
  613. }
  614. /*******************************************************************************
  615. * *
  616. * MenuItem *
  617. * *
  618. ******************************************************************************/
  619. .menu-item {
  620. -fx-padding: 0.2em 0.4em 0.2em 0.4em;
  621. }
  622. .menu-item:focused {
  623. -fx-background-color: transparent, CONTROL_BG_ARMED;
  624. -fx-background-insets: 0, 0 1px 0 1px;
  625. }
  626. .menu-item:disabled {
  627. -fx-background-color: transparent;
  628. }
  629. .menu-item > .left-container {
  630. -fx-padding: 0.5em 0.25em 0.5em 0.5em;
  631. }
  632. .menu-item > .label {
  633. -fx-padding: 1px 0.5em 1px 0.5em;
  634. }
  635. .menu-item:disabled > .label {
  636. -fx-text-fill: TEXT_FILL_MUTED;
  637. }
  638. .radio-menu-item:checked > .left-container > .radio {
  639. -fx-background-color: TEXT_FILL;
  640. -fx-shape: "M-1,4, L-1,5.5 L3.5,8.5 L9,0 L9,-1 L7,-1 L3,6 L1,4 Z";
  641. -fx-scale-shape: false;
  642. }
  643. /*******************************************************************************
  644. * *
  645. * ProgressBar *
  646. * *
  647. ******************************************************************************/
  648. .progress-bar {
  649. -fx-indeterminate-bar-length: 100;
  650. -fx-indeterminate-bar-escape: true;
  651. -fx-indeterminate-bar-flip: true;
  652. -fx-indeterminate-bar-animation-time: 2;
  653. }
  654. .progress-bar > .bar {
  655. -fx-background-color: CONTROL_PRIMARY_BG_NORMAL;
  656. -fx-background-radius: 4px;
  657. -fx-padding: 1em 0.5em;
  658. }
  659. .progress-bar:indeterminate > .bar {
  660. -fx-background-color: linear-gradient(to left, transparent, CONTROL_PRIMARY_BG_NORMAL);
  661. }
  662. .progress-bar > .track {
  663. -fx-background-color: PROGRESS_BAR_BG;
  664. -fx-background-radius: 4px;
  665. }
  666. /*******************************************************************************
  667. * *
  668. * I/O Statistics *
  669. * *
  670. ******************************************************************************/
  671. .chart {
  672. -fx-padding: 10px;
  673. }
  674. .chart-plot-background {
  675. -fx-background-color: MAIN_BG;
  676. -fx-padding: 20px;
  677. }
  678. /* content */
  679. .cache-arc-background {
  680. -fx-fill: transparent;
  681. -fx-stroke: MUTED_BG;
  682. -fx-stroke-type: centered;
  683. -fx-stroke-width: 12;
  684. -fx-stroke-line-cap: butt;
  685. }
  686. .cache-arc-foreground {
  687. -fx-fill: transparent;
  688. -fx-stroke: PRIMARY;
  689. -fx-stroke-type: centered;
  690. -fx-stroke-width: 12;
  691. -fx-stroke-line-cap: butt;
  692. }
  693. .chart.io-stats {
  694. -fx-padding: 10px;
  695. -fx-horizontal-grid-lines-visible: false;
  696. -fx-horizontal-zero-line-visible: false;
  697. -fx-vertical-grid-lines-visible: false;
  698. -fx-vertical-zero-line-visible: false;
  699. }
  700. .axis.io-stats {
  701. -fx-tick-mark-visible: false;
  702. -fx-minor-tick-visible: false;
  703. -fx-tick-labels-visible: false;
  704. }
  705. .chart-plot-background {
  706. -fx-background-color: transparent;
  707. }
  708. .chart-vertical-zero-line,
  709. .chart-horizontal-zero-line,
  710. .chart-alternative-row-fill {
  711. -fx-stroke: transparent;
  712. -fx-stroke-width: 0;
  713. }
  714. .default-color0.chart-series-area-line {
  715. -fx-stroke: PRIMARY;
  716. }
  717. .default-color0.chart-series-area-fill {
  718. -fx-fill: linear-gradient(to bottom, PRIMARY, transparent);
  719. -fx-stroke: transparent;
  720. }